]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
sparc: Assume GOTDATA support in the toolchain
[thirdparty/glibc.git] / ChangeLog
1 2019-10-09 Florian Weimer <fweimer@redhat.com>
2
3 * config.h.in (HAVE_GCC_GOTDATA): Remove.
4 * sysdeps/sparc/configure.ac: Remove checks for HAVE_GCC_GOTDATA
5 and PI_STATIC_AND_HIDDEN. Always define PI_STATIC_AND_HIDDEN.
6 * sysdeps/sparc/configure: Regenerate.
7
8 2019-10-09 Petr Vorel <pvorel@suse.cz>
9
10 * include/dirent.h (__getdents64): Update comment.
11
12 2019-10-08 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
13
14 * Makefile: Fix locale dependency for a couple of tests.
15 ($(objpfx)tst-strftime2.out): New rule.
16 ($(objpfx)tst-strftime3.out): Likewise.
17
18 2019-10-08 Florian Weimer <fweimer@redhat.com>
19
20 * posix/tst-wordexp-nocmd.c (do_test): Fix diagnostics output.
21
22 2019-10-08 Florian Weimer <fweimer@redhat.com>
23
24 * posix/Makefile (tests): Add tst-wordexp-nocmd.
25 * posix/wordexp-test.c (__app_register_atfork): Remove function.
26 (registered_forks): Remove variable.
27 (register_fork): Remove function.
28 (test_case): Remove WRDE_NOCMD tests.
29 (main): Do not set up fork tracking. Remove integer overflow in
30 division tests.
31 (testit): Do not check for unexpected forks.
32 * posix/tst-wordexp-nocmd.c: New file containing the tests removed
33 from posix/wordexp-test.c.
34
35 2019-10-07 Florian Weimer <fweimer@redhat.com>
36
37 nptl: Move pthread_attr_setschedparam implementation into libc.
38 * nptl/Makefile (routines): Add pthread_attr_setschedparam.
39 (libpthread-routines): Remove pthread_attr_setschedparam.
40 * nptl/Versions (libpthread GLIBC_2.0): Remove
41 pthread_attr_setschedparam.
42 * nptl/forward.c (pthread_attr_setschedparam): Remove definition.
43 * nptl/nptl-init.c (pthread_functions): Remove initializer for
44 ptr_pthread_attr_setschedparam.
45 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
46 Remove ptr_pthread_attr_setschedparam member.
47 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
48 Remove pthread_attr_setschedparam.
49 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
50 Likewise.
51 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
52 Likewise.
53 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
54 Likewise.
55 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
56 Likewise.
57 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
58 Likewise.
59 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
60 Likewise.
61 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
62 Likewise.
63 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
64 (GLIBC_2.4): Likewise.
65 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
66 (GLIBC_2.0): Likewise.
67 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
68 (GLIBC_2.18): Likewise.
69 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
70 (GLIBC_2.18): Likewise.
71 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
72 (GLIBC_2.0): Likewise.
73 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
74 (GLIBC_2.0): Likewise.
75 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
76 Likewise.
77 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
78 (GLIBC_2.0): Likewise.
79 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
80 (GLIBC_2.3): Likewise.
81 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
82 (GLIBC_2.17): Likewise.
83 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
84 (GLIBC_2.27): Likewise.
85 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
86 (GLIBC_2.0): Likewise.
87 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
88 (GLIBC_2.2): Likewise.
89 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
90 Likewise.
91 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
92 Likewise.
93 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
94 (GLIBC_2.0): Likewise.
95 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
96 (GLIBC_2.2): Likewise.
97 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
98 (GLIBC_2.2.5): Likewise.
99 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
100 (GLIBC_2.16): Likewise.
101
102 2019-10-07 Florian Weimer <fweimer@redhat.com>
103
104 riscv: Remove support for variable page sizes.
105 * sysdeps/unix/sysv/linux/riscv/Makefile [$(subdir) == elf]
106 (sysdep_routines): Do not add dl-static.
107 * sysdeps/unix/sysv/linux/riscv/dl-static.c: Remove file.
108 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
109
110 2019-10-07 Florian Weimer <fweimer@redhat.com>
111
112 nptl: Move pthread_attr_getschedparam implementation into libc.
113 * nptl/Makefile (routines): Add pthread_attr_getschedparam.
114 (libpthread-routines): Remove pthread_attr_getschedparam.
115 * nptl/Versions (libpthread GLIBC_2.0): Remove
116 pthread_attr_getschedparam.
117 * nptl/forward.c (pthread_attr_getschedparam): Remove definition.
118 * nptl/nptl-init.c (pthread_functions): Remove initializer for
119 ptr_pthread_attr_getschedparam.
120 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
121 Remove ptr_pthread_attr_getschedparam member.
122 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
123 Remove pthread_attr_getschedparam.
124 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
125 Likewise.
126 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
127 Likewise.
128 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
129 Likewise.
130 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
131 Likewise.
132 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
133 Likewise.
134 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
135 Likewise.
136 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
137 Likewise.
138 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
139 (GLIBC_2.4): Likewise.
140 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
141 (GLIBC_2.0): Likewise.
142 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
143 (GLIBC_2.18): Likewise.
144 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
145 (GLIBC_2.18): Likewise.
146 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
147 (GLIBC_2.0): Likewise.
148 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
149 (GLIBC_2.0): Likewise.
150 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
151 Likewise.
152 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
153 (GLIBC_2.0): Likewise.
154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
155 (GLIBC_2.3): Likewise.
156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
157 (GLIBC_2.17): Likewise.
158 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
159 (GLIBC_2.27): Likewise.
160 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
161 (GLIBC_2.0): Likewise.
162 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
163 (GLIBC_2.2): Likewise.
164 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
165 Likewise.
166 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
167 Likewise.
168 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
169 (GLIBC_2.0): Likewise.
170 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
171 (GLIBC_2.2): Likewise.
172 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
173 (GLIBC_2.2.5): Likewise.
174 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
175 (GLIBC_2.16): Likewise.
176
177 2019-10-04 Florian Weimer <fweimer@redhat.com>
178
179 [BZ #24930]
180 * elf/dl-load.c (_dl_map_object_from_fd): Only assign TLS modid if
181 the link map will be returned to the caller.
182 * elf/Makefile [$(have-fpie) && $(build-shared)] (tests, tests-pie):
183 Add tst-dlopen-aout-pie.
184 (tst-tst-dlopen-aout-no-pie): Set.
185 (CFLAGS-tst-dlopen-aout-pie.c): Build with -fpie.
186 (tst-dlopen-aout-pie): Link with -ldl -lpthread.
187 * elf/tst-dlopen-aout-pie.c: New file.
188
189 2019-10-04 Florian Weimer <fweimer@redhat.com>
190
191 [BZ #24900]
192 * elf/dl-load.c (_dl_map_object_from_fd): Do not use the file ID
193 when loading the executable as part of an explicit loader
194 invocation.
195
196 2019-10-04 Florian Weimer <fweimer@redhat.com>
197
198 nptl: Move pthread_attr_setinheritsched implementation into libc.
199 * nptl/Makefile (routines): Add pthread_attr_setinheritsched.
200 (libpthread-routines): Remove pthread_attr_setinheritsched.
201 * nptl/Versions (libpthread GLIBC_2.0): Remove
202 pthread_attr_setinheritsched.
203 * nptl/forward.c (pthread_attr_setinheritsched): Remove definition.
204 * nptl/nptl-init.c (pthread_functions): Remove initializer for
205 ptr_pthread_attr_setinheritsched.
206 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
207 Remove ptr_pthread_attr_setinheritsched member.
208 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
209 Remove pthread_attr_setinheritsched.
210 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
211 Likewise.
212 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
213 Likewise.
214 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
215 Likewise.
216 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
217 Likewise.
218 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
219 Likewise.
220 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
221 Likewise.
222 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
223 Likewise.
224 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
225 (GLIBC_2.4): Likewise.
226 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
227 (GLIBC_2.0): Likewise.
228 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
229 (GLIBC_2.18): Likewise.
230 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
231 (GLIBC_2.18): Likewise.
232 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
233 (GLIBC_2.0): Likewise.
234 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
235 (GLIBC_2.0): Likewise.
236 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
237 Likewise.
238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
239 (GLIBC_2.0): Likewise.
240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
241 (GLIBC_2.3): Likewise.
242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
243 (GLIBC_2.17): Likewise.
244 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
245 (GLIBC_2.27): Likewise.
246 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
247 (GLIBC_2.0): Likewise.
248 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
249 (GLIBC_2.2): Likewise.
250 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
251 Likewise.
252 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
253 Likewise.
254 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
255 (GLIBC_2.0): Likewise.
256 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
257 (GLIBC_2.2): Likewise.
258 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
259 (GLIBC_2.2.5): Likewise.
260 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
261 (GLIBC_2.16): Likewise.
262
263 2019-10-02 Joseph Myers <joseph@codesourcery.com>
264
265 * sunrpc/clnt_udp.c: Include <libc-diag.h>.
266 (clntudp_call): Disable -Wmaybe-uninitialized around declaration
267 of total_deadline.
268
269 2019-10-02 Alistair Francis <alistair.francis@wdc.com>
270
271 * string/endian.h: Restore the __USE_MISC conditionals.
272
273 2019-10-02 Joseph Myers <joseph@codesourcery.com>
274
275 * string/tester.c: Ignore -Warray-bounds and
276 -Wmemset-transposed-args at top level.
277 [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict and -Wstringop-overflow=
278 at top level.
279 [__GNUC_PREREQ (8, 0)]: Ignore -Wstringop-truncation at top level.
280 (test_stpncpy): Do not ignore warnings here.
281 (test_strncat): Likewise.
282 (test_strncpy): Likewise.
283 (test_memset): Likewise.
284
285 2019-10-02 Łukasz Majewski <lukma@denx.de>
286 * include/time.h: Add #include <bits/types/struct_timeval.h>
287
288 2019-10-02 Paul A. Clarke <pc@us.ibm.com>
289
290 * sysdeps/powerpc/fpu/fenv_private.h:
291 (__TEST_AND_BEGIN_NON_STOP): New.
292 (__TEST_AND_END_NON_STOP): New.
293 (libc_feholdexcept_setround_ppc): Use __TEST_AND_BEGIN_NON_STOP.
294 (__libc_femergeenv_ppc): Use __TEST_AND_BEGIN_NON_STOP and
295 __TEST_AND_END_NON_STOP.
296 (libc_feholdsetround_noex_ppc_ctx): Use __TEST_AND_END_NON_STOP.
297
298 2019-10-02 Arjun Shankar <arjun@redhat.com>
299
300 debugglibc.sh: Implement program arguments
301 * Makefile (debugglibc): Change variable definition.
302
303 2019-10-01 Alistair Francis <alistair.francis@wdc.com>
304
305 * time/bits/types/struct_timespec.h: Add padding for the timespec if
306 required.
307
308 2019-10-01 Zack Weinberg <zackw@panix.com>
309 Alistair Francis <alistair.francis@wdc.com>
310
311 * string/endian.h: Unconditionally define LITTLE_ENDIAN,
312 BIG_ENDIAN, PDP_ENDIAN, and BYTE_ORDER. Condition byteswapping
313 macros only on !__ASSEMBLER__. Move the definitions of
314 __BIG_ENDIAN, __LITTLE_ENDIAN, __PDP_ENDIAN, __FLOAT_WORD_ORDER,
315 and __LONG_LONG_PAIR to...
316 * string/bits/endian.h: ...this new file, which includes
317 the renamed header bits/endianness.h for the definition of
318 __BYTE_ORDER and possibly __FLOAT_WORD_ORDER.
319
320 * string/Makefile: Install bits/endianness.h.
321 * include/bits/endian.h: New wrapper.
322
323 * bits/endian.h: Rename to bits/endianness.h.
324 Add multiple-include guard. Rewrite the comment explaining what
325 the machine-specific variants of this file should do.
326
327 * sysdeps/unix/sysv/linux/ia64/bits/endian.h:
328 Move to sysdeps/ia64.
329
330 * sysdeps/aarch64/bits/endian.h
331 * sysdeps/alpha/bits/endian.h
332 * sysdeps/arm/bits/endian.h
333 * sysdeps/csky/bits/endian.h
334 * sysdeps/hppa/bits/endian.h
335 * sysdeps/ia64/bits/endian.h
336 * sysdeps/m68k/bits/endian.h
337 * sysdeps/microblaze/bits/endian.h
338 * sysdeps/mips/bits/endian.h
339 * sysdeps/nios2/bits/endian.h
340 * sysdeps/powerpc/bits/endian.h
341 * sysdeps/riscv/bits/endian.h
342 * sysdeps/s390/bits/endian.h
343 * sysdeps/sh/bits/endian.h
344 * sysdeps/sparc/bits/endian.h
345 * sysdeps/x86/bits/endian.h:
346 Rename to endianness.h; canonicalize form of file; remove
347 redundant definitions of __FLOAT_WORD_ORDER.
348
349 * sysdeps/powerpc/bits/endianness.h: Remove logic to check for
350 broken compilers.
351
352 * ctype/ctype.h
353 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
354 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
355 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h
356 * sysdeps/ia64/ieee754.h
357 * sysdeps/ieee754/ieee754.h
358 * sysdeps/ieee754/ldbl-128/ieee754.h
359 * sysdeps/ieee754/ldbl-128ibm/ieee754.h
360 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
361 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
362 * sysdeps/mips/ieee754/ieee754.h
363 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
364 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
365 * sysdeps/nptl/pthread.h
366 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h
367 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
368 * sysdeps/sparc/sparc32/ieee754.h
369 * sysdeps/unix/sysv/linux/generic/bits/stat.h
370 * sysdeps/unix/sysv/linux/generic/bits/statfs.h
371 * sysdeps/unix/sysv/linux/sys/acct.h
372 * wctype/bits/wctype-wchar.h:
373 Include bits/endian.h, not endian.h.
374
375 * sysdeps/unix/sysv/linux/hppa/pthread.h: Don’t include endian.h.
376
377 * sysdeps/mips/ieee754/ieee754.h: Use __LDBL_MANT_DIG__
378 in ifdefs, instead of LDBL_MANT_DIG. Only include float.h
379 when __LDBL_MANT_DIG__ is not predefined, in which case
380 define __LDBL_MANT_DIG__ to equal LDBL_MANT_DIG.
381
382 2019-09-17 Mike FABIAN <mfabian@redhat.com>
383
384 * localedata/locales/az_AZ: Make lang_name agree with CLDR
385 * localedata/locales/be_BY@latin: Make lang_name agree with langtable
386 * localedata/locales/ber_DZ: Make language, country_name, lang_name agree with langtable
387 * localedata/locales/ber_MA: Add country_name from langtable, make language, lang_name agree with langtable
388 * localedata/locales/bhb_IN: Add country_name from langtable, make lang_name agree with langtable
389 * localedata/locales/bho_IN: Add country_name from langtable
390 * localedata/locales/chr_US: Make country_name agree with CLDR
391 * localedata/locales/crh_UA: Make lang_name agree with langtable
392 * localedata/locales/csb_PL: Add country_name from langtable
393 * localedata/locales/doi_IN: Add country_name from langtable
394 * localedata/locales/dv_MV: Add country_name from langtable
395 * localedata/locales/eo: Fix capitalisation of lang_name, agree with CLDR
396 * localedata/locales/hak_TW: Make lang_name agree with langtable
397 * localedata/locales/hif_FJ: Make lang_name agree with langtable
398 * localedata/locales/hne_IN: Add country_name from langtable
399 * localedata/locales/ia_FR: Fix capitalisation of lang_name, agree with CLDR
400 * localedata/locales/id_ID: Make lang_name agree with CLDR
401 * localedata/locales/ig_NG: Make country_name, lang_name agree with CLDR
402 * localedata/locales/kab_DZ: Make country_name agree with CLDR
403 * localedata/locales/ks_IN: Make country_name agree with CLDR
404 * localedata/locales/ku_TR: Make country_name, lang_name agree with CLDR
405 * localedata/locales/mag_IN: Add country_name from langtable
406 * localedata/locales/mfe_MU: Make country_name agree with CLDR
407 * localedata/locales/mhr_RU: Add lang_name from langtable
408 * localedata/locales/mi_NZ: Make lang_name agree with CLDR
409 * localedata/locales/ms_MY: Make lang_name agree with CLDR
410 * localedata/locales/nan_TW: Make lang_name agree with langtable
411 * localedata/locales/nan_TW@latin: Make lang_name agree with langtable
412 * localedata/locales/nds_DE: Make lang_name agree with langtable
413 * localedata/locales/nds_NL: Make lang_name agree with langtable
414 * localedata/locales/nhn_MX: Add country_name from langtable, make lang_name agree with langtable
415 * localedata/locales/niu_NU: Add country_name, lang_name from langtable
416 * localedata/locales/niu_NZ: Add lang_name from langtable
417 * localedata/locales/nr_ZA: Fix capitalisation of lang_name from langtable
418 * localedata/locales/oc_FR: Fix capitalisation of lang_name from langtable
419 * localedata/locales/or_IN: Fix spelling of language from langtable
420 * localedata/locales/pa_PK: Make country_name agree with CLDR
421 * localedata/locales/ps_AF: Make country_name agree with CLDR
422 * localedata/locales/quz_PE: Make language, lang_name agree with langtable
423 * localedata/locales/raj_IN: Make country_name, lang_name agree with langtable
424 * localedata/locales/rw_RW: Make country_name agree with CLDR
425 * localedata/locales/sah_RU: Make langauge, country_name, lang_name agree with CLDR
426 * localedata/locales/sat_IN: Make country_name, lang_name agree with langtable
427 * localedata/locales/sc_IT: Fix capitalisaton of lang_name according to langtable
428 * localedata/locales/sd_IN: Make country_name, lang_name agree with CLDR
429 * localedata/locales/sd_IN@devanagari: Make lang_name agree with langtable
430 * localedata/locales/shn_MM: Make country_name agree with langtable
431 * localedata/locales/shs_CA: Make language, lang_name agree with langtable
432 * localedata/locales/sm_WS: Make country_name agree with langtable
433 * localedata/locales/ss_ZA: Fix capitalisation of lang_name from langtable
434 * localedata/locales/szl_PL: Add country_name from langtable
435 * localedata/locales/te_IN: Fix country_name from CLDR
436 * localedata/locales/tg_TJ: Add lang_name from CLDR
437 * localedata/locales/the_NP: Add country_name, lang_name from langtable
438 * localedata/locales/tk_TM: Make lang_name agree with CLDR
439 * localedata/locales/tl_PH: Add lang_name from langtable
440 * localedata/locales/to_TO: Make lang_name agree with CLDR
441 * localedata/locales/tpi_PG: Make country_name, lang_name agree with langtable
442 * localedata/locales/tt_RU@iqtelif: Add country_name, lang_name from langtable
443 * localedata/locales/ug_CN: Add lang_name from CLDR
444 * localedata/locales/unm_US: Add lang_name from langtable
445 * localedata/locales/wa_BE: Fix capitalisation of lang_name from langtable
446 * localedata/locales/wo_SN: Add lang_name from CLDR
447 * localedata/locales/xh_ZA: Fix capitalisation of country_name, lang_name from CLDR
448 * localedata/locales/yo_NG: Make country_name agree with CLDR
449 * localedata/locales/yuw_PG: Make langauge, lang_name agree with langtable
450 * localedata/locales/zh_HK: Add lang_name from langtable
451 * localedata/locales/zh_SG: Add lang_name from langtable
452
453 2019-09-30 Joseph Myers <joseph@codesourcery.com>
454
455 * scripts/build-many-glibcs.py (Context.checkout): Default
456 binutils version to 2.33 branch.
457
458 2019-10-01 Lukasz Majewski <lukma@denx.de>
459
460 * include/time.h (valid_timeval_to_timespec64): Add.
461 * include/time.h (valid_timespec_to_timespec64): Likewise.
462 * include/time.h (valid_timespec64_to_timespec): Likewise.
463 * include/time.h (valid_timespec64_to_timeval): Likewise.
464
465 2019-09-30 Joseph Myers <joseph@codesourcery.com>
466
467 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
468 (MAP_SYNC): New macro.
469 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
470 (MAP_SYNC): Likewise.
471 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
472 kernel version number to 5.3.
473
474 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
475
476 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): Rename to
477 fesetenv_control.
478 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
479 rename of fesetenv_mode to fegetenv_control.
480 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
481 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
482 * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc): Likewise.
483 (libc_feholdsetround_noex_ppc_ctx): Likewise.
484
485 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
486
487 * sysdeps/powerpc/fpu/fenv_private.h
488 (libc_feholdsetround_noex_ppc_ctx): Call fesetenv_mode instead
489 of fesetenv_register.
490
491 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
492
493 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status): Rename to
494 fegetenv_control.
495 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
496 rename of fegetenv_status to fegetenv_control.
497 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
498 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
499 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Likewise.
500 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
501 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
502
503 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
504
505 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline): Use
506 'mffscrn' instruction on POWER9.
507 (__fesetround_inline_nocheck): Likewise.
508
509 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
510
511 * sysdeps/powerpc/fpu/fenv_libc.h (FPSCR_EXCEPTIONS_MASK): New.
512 * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc): Optimize
513 to write FPSCR control only, if exceptions have not changed.
514
515 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
516
517 * sysdeps/powerpc/fpu/fenv_libc.h:
518 (__TEST_AND_ENTER_NON_STOP): New.
519 (__TEST_AND_EXIT_NON_STOP): New.
520 * sysdeps/powerpc/fpu/fenv_private.h
521 (_FPU_ALL_TRAPS): Delete, replace with FPSCR_ENABLES_MASK.
522 (_FPU_MASK_RN): Delete.
523 (_FPU_MASK_NOT_RN_NI): Delete.
524 (_FPU_MASK_TRAPS_RN): Delete, replace with ~FPSCR_CONTROL_MASK.
525 (_FPU_MASK_FRAC_INEX_RET_CC): Delete, replace with ~FPSCR_STATUS_MASK.
526 (__libc_feholdbits_ppc): Delete, move code into
527 libc_feholdexcept_setround_ppc.
528 (libc_feholdexcept_ppc): Delete.
529 (libc_fesetround_ppc): Delete.
530 (libc_fetestexcept_ppc): Delete.
531 (libc_feholdsetround_ppc): Delete.
532 (__libc_femergeenv_ppc): Use __TEST_AND_ENTER/EXIT_NON_STOP.
533 (libc_feholdsetround_noex_ppc_ctx): Likewise.
534 (libc_feupdateenv_test_ppc): Use FPSCR defines.
535 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
536 __TEST_AND_ENTER_NON_STOP.
537 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
538 * sysdeps/powerpc/fpu/feholdexcpt.c (__feholdexcept): Likewise.
539 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
540 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
541 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
542 (_FPU_MASK_ALL): Delete.
543
544 2019-09-27 Joseph Myers <joseph@codesourcery.com>
545
546 * sysdeps/gnu/netinet/tcp.h (TCP_TX_DELAY): New macro.
547
548 2019-09-26 Lukasz Majewski <lukma@denx.de>
549
550 * include/time.h: Add struct __timespec64 definition
551
552 2019-09-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
553
554 * scripts/vcs_to_changelog/misc_util.py (decode): Remove latin1
555 from codecs.
556
557 2019-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
558
559 * rt/Makefile (CFLAGS-clock_nanosleep.c): Move to ...
560 * time/Makefile (CFLAGS-clock_nanosleep.c): ... here.
561
562 * sysdeps/unix/sysv/linux/Makefile
563 (CFLAGS-tst-sigcontextinfo-get_pc.c): Rename to
564 CFLAGS-tst-sigcontext-get_pc.c.
565
566 2019-09-24 Alistair Francis <alistair.francis@wdc.com>
567
568 * inet/net-internal.h: Fix uninitalised clntudp_call() variable.
569
570 2019-09-24 Andreas Schwab <schwab@suse.de>
571
572 * sysdeps/unix/sysv/linux/arm/sysdep.h
573 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
574 not "__vdso_gettimeofday".
575 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
576 "__vdso_clock_gettime".
577 * sysdeps/unix/sysv/linux/mips/sysdep.h
578 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
579 not "__vdso_gettimeofday".
580 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
581 "__vdso_clock_gettime".
582
583 2019-09-19 Paul A. Clarke <pc@us.ibm.com>
584
585 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_and_set_rn): New.
586 (__fe_mffscrn): New.
587 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
588 Do not clear enable bits, remove obsolete code, use
589 fegetenv_and_set_rn.
590 (libc_feresetround_ppc): Remove obsolete code, use
591 fegetenv_and_set_rn.
592
593 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
594
595 * support/support_ptrace.c: Remove inclusion of sys/prctl.h.
596
597 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
598
599 * sysdeps/s390/hp-timing.h (_HP_TIMING_H): Undefine.
600 (_HP_TIMING_S390_H): Define.
601
602 2019-09-18 Joseph Myers <joseph@codesourcery.com>
603
604 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
605 version to 5.3.
606 (clone3): New syscall.
607 (pidfd_open): Likewise.
608
609 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
610 version to 5.3.
611
612 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
613
614 * sysdeps/s390/hp-timing.h: New file.
615
616 2019-09-18 Joseph Myers <joseph@codesourcery.com>
617
618 * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
619 <linux/sched.h>.
620 (CLONE_VM): New macro.
621 (CLONE_VFORK): Likewise.
622
623 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
624
625 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
626 Rearrange subprocesses.
627 (pldd_process): New function.
628 * support/Makefile (libsupport-routines): Add support_ptrace.
629 * support/xptrace.h: New file.
630 * support/support_ptrace.c: Likewise.
631
632 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
633
634 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
635
636 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
637 (INTERNAL_VSYSCALL_CALL): Remove.
638 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
639 (INTERNAL_VSYSCALL_CALL): Likewise.
640 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
641 (INTERNAL_VSYSCALL_CALL): Likewise.
642 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
643 New macro.
644
645 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
646 defined.
647 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
648 (__get_timebase_freq): Remove use of
649 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
650 (get_timebase_freq_fallback): New symbol.
651 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
652 HAVE_GETTIMEOFDAY_VSYSCALL.
653 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
654 HAVE_TIME_VSYSCALL.
655 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
656 implementation.
657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
658 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
659 powerpc64.
660 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
661 * .../sysv/linux/powerpc/powerpc64/sysdep.h
662 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
663 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
664 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
665
666 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
667 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
668 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
669 Likewise.
670 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
671 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
672 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
673 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
674 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
675 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
676 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
677 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
678 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
679 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
680 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
681 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
682 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
683 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
684 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
685 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
686 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
687 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
688 name.
689 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
690 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
691 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
692 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
693 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
694 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
695 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
696 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
697 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
698 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
699 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
700 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
701 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
702 HAVE_GETCPU_VSYSCALL): Likewise.
703 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
704 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
705 HAVE_GETCPU_VSYSCALL): Likewise.
706 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
707 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
708 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
709 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
710 HAVE_GETCPU_VSYSCALL): Likewise.
711 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
712 invalid names if architecture does not define them.
713 (get_vdso_mangle_symbol): New symbol.
714 * sysdeps/unix/sysv/linux/init-first.c: New file.
715 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
716 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
717 clock_gettime, clock_getres, getcpu, time): Remove declaration.
718 (__libc_vdso_platform_setup_arch): Likewise and use
719 get_vdso_mangle_symbol to setup vDSO symbols.
720 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
721 attribute_hidden.
722 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
723 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
724 definition.
725
726 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
727 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
728 Use get_vdso_symbol instead of _dl_vdso_vsym.
729 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
730 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
731 (__lookup_riscv_flush_icache): Likewise.
732 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
733 Likewise.
734 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
735 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
736 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
737 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
738 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
739 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
740 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
741 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
742 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
743 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
744 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
745 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
746 Define.
747 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
748 Likewise.
749 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
750 Likewise.
751 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
752 Likewise.
753 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
754 Likewise.
755 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
756 Likewise.
757 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
758 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
759 definition.
760 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
761 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
762 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
763 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
765 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
767 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
768 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
769 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
770 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
771 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
772 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
773 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
774 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
775 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
776 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
777 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
778 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
779 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
780 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
781 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
782 (get_vdso_symbol): New function.
783
784 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
785
786 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
787 position of string null termination.
788
789 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
790
791 [BZ #24986]
792 * sysdeps/unix/alpha/getegid.S: Move to ...
793 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
794 * sysdeps/unix/alpha/geteuid.S: Move to ...
795 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
796 * sysdeps/unix/alpha/getppid.S: Move to ...
797 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
798
799 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
800
801 Fix http: URL in 'configure'
802 * configure.ac: Add URL to AC_INIT so that it generates an
803 https: URL instead of an http: URL.
804 * configure: Regenerate.
805
806 Regenerate charmap-kw.h, locfile-kw.h
807 This propagates the recent http->https URL changes.
808 Since I used gperf 3.1 to regenerate, this is also a minor
809 internal-to-localedef API change.
810 URL problem reported by Joseph Myers in:
811 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
812 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
813 Regenerate with gperf 3.1.
814 * locale/programs/linereader.h (kw_hash_fct_t):
815 * locale/programs/repertoire.c (repertoiremap_hash):
816 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
817
818 2019-09-05 Florian Weimer <fweimer@redhat.com>
819
820 [BZ #24962]
821 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
822 (_nl_category_names_get): New function.
823 * intl/dcigettext.c (category_to_name): Call it.
824 * locale/findlocale.c (_nl_find_locale): Likewise.
825 * intl/loadlocale.c (_nl_load_locale): Likewise.
826 * locale/newlocale.c (__newlocale): Likewise.
827 * locale/setlocale.c (_nl_category_names): Adjust definition.
828 (_nl_category_name_idxs): Likewise.
829 (new_composite_name): Call _nl_category_names_get.
830 (setlocale): Likewise.
831
832 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
833
834 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
835 const attribute with pure attribute.
836
837 2019-09-04 Lukasz Majewski <lukma@denx.de>
838
839 * sysdeps/unix/sysv/linux/kernel-features.h
840 (__ASSUME_TIME64_SYSCALLS): New macro.
841
842 2019-09-04 Zack Weinberg <zackw@panix.com>
843
844 [BZ #24959]
845 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
846 * rt/clock_getres.c: Move to time/clock_getres.c.
847 * rt/clock_gettime.c: Move to time/clock_gettime.c.
848 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
849 * rt/clock_settime.c: Move to time/clock_settime.c.
850 * rt/tst-clock.c: Move to time/tst-clock.c.
851 * rt/tst-clock2.c: Move to time/tst-clock2.c.
852 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
853 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
854 * rt/clock-compat.c: Delete file.
855
856 * time/clock_getcpuclockid.c
857 * time/clock_getres.c
858 * time/clock_gettime.c
859 * time/clock_nanosleep.c
860 * time/clock_settime.c
861 * sysdeps/posix/clock_getres.c
862 * sysdeps/unix/clock_gettime.c
863 * sysdeps/unix/clock_nanosleep.c
864 * sysdeps/unix/clock_settime.c
865 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
866 * sysdeps/unix/sysv/linux/clock_getres.c
867 * sysdeps/unix/sysv/linux/clock_gettime.c
868 * sysdeps/unix/sysv/linux/clock_nanosleep.c
869 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
870 defined by this file with default symbol version GLIBC_2_17,
871 and optionally a compatibility alias at symbol version GLIBC_2_2.
872 * include/time.h: Remove internal prototypes for clock_getres,
873 clock_nanosleep, and clock_getcpuclockid.
874
875 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
876 Remove unused function realtime_gettime.
877
878 * rt/Makefile (clock-routines, routines): Remove variable.
879 (librt-routines): Remove clock-compat.
880 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
881 and tst-cpuclock1.
882 * time/Makefile (routines): Add clock_getres, clock_gettime,
883 clock_settime, clock_getcpuclockid, and clock_nanosleep.
884 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
885 and tst-cpuclock1.
886
887 * rt/Versions (libc): Remove entire stanza.
888 (librt GLIBC_2.2): Remove all clock_* functions.
889 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
890 Add clock_getres, clock_gettime, clock_settime,
891 clock_getcpuclockid, and clock_nanosleep.
892 (libc GLIBC_PRIVATE): Add __clock_gettime.
893
894 * sysdeps/mach/hurd/i386/librt.abilist
895 * sysdeps/unix/sysv/linux/alpha/librt.abilist
896 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
897 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
898 * sysdeps/unix/sysv/linux/hppa/librt.abilist
899 * sysdeps/unix/sysv/linux/i386/librt.abilist
900 * sysdeps/unix/sysv/linux/ia64/librt.abilist
901 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
902 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
903 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
904 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
905 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
906 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
909 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
910 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
911 * sysdeps/unix/sysv/linux/sh/librt.abilist
912 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
913 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
914 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
915 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
916 Remove entries for clock_getres, clock_gettime, clock_settime,
917 clock_getcpuclockid, and clock_nanosleep.
918
919 * sysdeps/mach/hurd/i386/libc.abilist
920 * sysdeps/unix/sysv/linux/alpha/libc.abilist
921 * sysdeps/unix/sysv/linux/arm/libc.abilist
922 * sysdeps/unix/sysv/linux/hppa/libc.abilist
923 * sysdeps/unix/sysv/linux/i386/libc.abilist
924 * sysdeps/unix/sysv/linux/ia64/libc.abilist
925 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
926 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
927 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
928 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
929 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
930 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
932 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
934 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
935 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
936 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
937 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
938 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
939 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
940 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
941 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
942 Add another set of entries for clock_getres, clock_gettime,
943 clock_settime, clock_getcpuclockid, and clock_nanosleep at
944 whatever version GLIBC_2.2 maps to.
945
946 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
947
948 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
949
950 2019-09-03 Florian Weimer <fweimer@redhat.com>
951
952 [BZ #24950]
953 * locale/programs/charmap.h (struct charseq): Turn bytes into a
954 flexible array member.
955 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
956 replace.
957
958 2019-09-02 Florian Weimer <fweimer@redhat.com>
959
960 * misc/tst-mntent-autofs.c: New file.
961 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
962
963 2019-09-02 Ian Kent <ikent@redhat.com>
964
965 Use autofs "ignore" mount hint in getmntent_r/getmntent.
966 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
967 getmntent_r.
968 (__getmntent_r): Call it. Filter out autofs entries with an
969 "ignore" mount option.
970
971 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
972
973 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
974 (generic_memcpy): Include generic C memcpy.
975 * benchtests/bench-memmove.c (simple_memmove): Remove.
976 (generic_memmove): Include generic C memmove.
977 * benchtests/bench-memset.c (simple_memset): Remove.
978 (generic_memset): Include generic C memset.
979 * benchtests/bench-memset-large.c (simple_memset): Remove.
980 (generic_memset): Include generic C memset.
981 * benchtests/bench-memset-walk.c (simple_memset): Remove.
982 (generic_memset): Include generic C memset.
983 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
984 * string/memset.c (MEMSET): Likewise.
985 * sysdeps/x86_64/memcopy.h: Remove empty file.
986
987 2019-08-30 Florian Weimer <fweimer@redhat.com>
988
989 nptl: Move pthread_attr_getinheritsched implementation into libc.
990 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
991 (libpthread-routines): Remove pthread_attr_getinheritsched.
992 * nptl/Versions (libpthread GLIBC_2.0): Remove
993 pthread_attr_getinheritsched.
994 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
995 * nptl/nptl-init.c (pthread_functions): Remove initializer for
996 ptr_pthread_attr_getinheritsched.
997 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
998 Remove ptr_pthread_attr_getinheritsched member.
999 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1000 Remove pthread_attr_getinheritsched.
1001 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1002 Likewise.
1003 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
1004 Likewise.
1005 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
1006 Likewise.
1007 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1008 Likewise.
1009 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1010 Likewise.
1011 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1012 Likewise.
1013 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1014 Likewise.
1015 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1016 (GLIBC_2.4): Likewise.
1017 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1018 (GLIBC_2.0): Likewise.
1019 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
1020 (GLIBC_2.18): Likewise.
1021 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
1022 (GLIBC_2.18): Likewise.
1023 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1024 (GLIBC_2.0): Likewise.
1025 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1026 (GLIBC_2.0): Likewise.
1027 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1028 Likewise.
1029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1030 (GLIBC_2.0): Likewise.
1031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1032 (GLIBC_2.3): Likewise.
1033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1034 (GLIBC_2.17): Likewise.
1035 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1036 (GLIBC_2.27): Likewise.
1037 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1038 (GLIBC_2.0): Likewise.
1039 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1040 (GLIBC_2.2): Likewise.
1041 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
1042 Likewise.
1043 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
1044 Likewise.
1045 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1046 (GLIBC_2.0): Likewise.
1047 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1048 (GLIBC_2.2): Likewise.
1049 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1050 (GLIBC_2.2.5): Likewise.
1051 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1052 (GLIBC_2.16): Likewise.
1053
1054 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1055
1056 * sysdeps/mach/hurd/getcwd.c
1057 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
1058 slash if we got an unknown root directory. (__getcwd): Do not fail with
1059 EGRATUITOUS if we got an unknown root directory.
1060 * hurd/hurdselect.c (SELECT_ERROR): New macro.
1061 (_hurd_select):
1062 - Add `error' field to `d' structures array.
1063 - If a poll descriptor is bogus, set EBADF, but continue with a zero
1064 timeout.
1065 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
1066 EBADF there is any bit set above _hurd_dtablesize.
1067 - Do not request io_select on bogus descriptors (SELECT_ERROR).
1068 - On io_select request error, record the error.
1069 - On io_select bogus reply, use EIO error code.
1070 - On io_select bogus or error reply, record the error.
1071 - Do not destroy reply port for bogus FDs.
1072 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
1073 EBADF case, or else POLLERR.
1074 - On error, make select simulated readiness.
1075
1076 [BZ #19903]
1077 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
1078 as __vm_allocate.
1079
1080 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
1081 unlocks SS and returns to the saved PC.
1082 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
1083 thread stack instead of the saved PC.
1084
1085 2019-08-30 Richard Braun <rbraun@sceen.net>
1086
1087 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
1088 timeout.
1089 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
1090 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
1091 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
1092 <limits.h>.
1093 (_hurd_select): Replace the call to __io_select with either
1094 __io_select_request or __io_select_timeout_request, depending on the
1095 timeout. Count the number of ready descriptors (replies for which at
1096 least one type bit is set). Implement the timeout locally when there is
1097 no file descriptor.
1098
1099 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
1100
1101 * elf/dl-addr.c (determine_info): Calculate the symbol index
1102 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
1103 * elf/dl-lookup.c (do_lookup_x): Ditto.
1104 (_dl_setup_hash): Initialize MIPS xhash translation table.
1105 * elf/elf.h (SHT_MIPS_XHASH): New define.
1106 (DT_MIPS_XHASH): New define.
1107 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
1108 define.
1109 (ELF_MACHINE_HASH_SYMIDX): Ditto.
1110 (ELF_MACHINE_XHASH_SETUP): Ditto.
1111 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
1112 define.
1113 (ELF_MACHINE_HASH_SYMIDX): Ditto.
1114 (ELF_MACHINE_XHASH_SETUP): Ditto.
1115 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
1116 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
1117 version.
1118 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
1119
1120 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1121
1122 * sysdeps/sh/preconfigure.ac: New file.
1123 * sysdeps/sh/preconfigure: Regenerate.
1124 * sysdeps/sh/be/sh3/Implies: New file.
1125 * sysdeps/sh/be/sh4/Implies: Likewise.
1126 * sysdeps/sh/le/sh3/Implies: Likewise.
1127 * sysdeps/sh/le/sh4/Implies: Likewise.
1128 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
1129 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
1130 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
1131 sysdeps/unix/sysv/linux/sh/le/*.abilist.
1132 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
1133
1134 * sysdeps/microblaze/preconfigure.ac: New file.
1135 * sysdeps/microblaze/preconfigure: Regenerate.
1136 * sysdeps/microblaze/be/implies: New file.
1137 * sysdeps/microblaze/le/implies: Likewise.
1138 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
1139 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
1140 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
1141 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
1142 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
1143
1144 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
1145 * sysdeps/arm/preconfigure: Regenerate.
1146 * sysdeps/arm/be/Implies: New file.
1147 * sysdeps/arm/be/armv6/Implies: Likewise.
1148 * sysdeps/arm/be/armv6t2/Implies: Likewise.
1149 * sysdeps/arm/be/armv7/Implies: Likewise.
1150 * sysdeps/arm/le/Implies: Likewise.
1151 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
1152 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
1153 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
1154 sysdeps/unix/sysv/linux/arm/le/*.abilist.
1155 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
1156
1157 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
1158
1159 Fix posix/tst-regex by using UTF-8 and own test input
1160 Problem reported by Stefan Liebler in:
1161 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
1162 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
1163 (do_test, test_expr): Adjust to the fact that this source file,
1164 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
1165 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
1166 so that it is now UTF-8.
1167
1168 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1169
1170 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
1171 (fegetenv_status): Generate 'mffsl' unconditionally.
1172
1173 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1174
1175 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
1176 FPSCR read.
1177 (_FPU_MASK_ALL): Delete.
1178
1179 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1180
1181 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
1182 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
1183 if possible.
1184 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
1185 with simpler required steps, set fewer FPSCR bits if possible.
1186
1187 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1188
1189 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
1190 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
1191 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
1192 weight access to FPSCR; remove unnecessary second FPSCR read and
1193 validate.
1194 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1195 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
1196 access to FPSCR; Use macros in fenv_libc.h in favor of local.
1197
1198 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
1199
1200 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
1201 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
1202 (fenv_exceptions_to_reg): New.
1203 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
1204 operation with call to fenv_exceptions_to_reg().
1205 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
1206
1207 2019-08-28 Florian Weimer <fweimer@redhat.com>
1208
1209 * misc/mntent.c (struct mntent_buffer): Define.
1210 (mntent_buffer): Adjust type to void *.
1211 (allocate): Adjust for allocate_once.
1212 (deallocate): New function.
1213 (getmntent): Call allocate_once.
1214
1215 2019-08-28 Florian Weimer <fweimer@redhat.com>
1216
1217 nptl: Move pthread_attr_setdetachstate implementation into libc.
1218 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
1219 (libpthread-routines): Remove pthread_attr_setdetachstate.
1220 * nptl/Versions (libpthread GLIBC_2.0): Remove
1221 pthread_attr_setdetachstate.
1222 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
1223 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1224 ptr_pthread_attr_setdetachstate.
1225 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1226 Remove ptr_pthread_attr_setdetachstate member.
1227 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1228 Remove pthread_attr_setdetachstate.
1229 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1230 Likewise.
1231 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1232 Likewise.
1233 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1234 Likewise.
1235 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1236 Likewise.
1237 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1238 Likewise.
1239 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1240 Likewise.
1241 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1242 (GLIBC_2.4): Likewise.
1243 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1244 (GLIBC_2.0): Likewise.
1245 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1246 (GLIBC_2.18): Likewise.
1247 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1248 (GLIBC_2.0): Likewise.
1249 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1250 (GLIBC_2.0): Likewise.
1251 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1252 Likewise.
1253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1254 (GLIBC_2.0): Likewise.
1255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1256 (GLIBC_2.3): Likewise.
1257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1258 (GLIBC_2.17): Likewise.
1259 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1260 (GLIBC_2.27): Likewise.
1261 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1262 (GLIBC_2.0): Likewise.
1263 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1264 (GLIBC_2.2): Likewise.
1265 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1266 Likewise.
1267 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1268 (GLIBC_2.0): Likewise.
1269 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1270 (GLIBC_2.2): Likewise.
1271 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1272 (GLIBC_2.2.5): Likewise.
1273 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1274 (GLIBC_2.16): Likewise.
1275
1276 2019-08-28 Florian Weimer <fweimer@redhat.com>
1277
1278 [BZ #24902]
1279 * login/Makefile (tests): Add tst-pututxline-lockfail.
1280 (tst-pututxline-lockfail): Link with -lpthread.
1281 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
1282 (__libc_getutid_r): Adjust.
1283 (__libc_pututline): Likewise. Check for file_offset == -1.
1284 * login/tst-pututxline-lockfail.c: New file.
1285
1286 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
1287
1288 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
1289 * posix/tst-regex.input: New file.
1290
1291 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
1292
1293 [BZ #24916]
1294 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
1295 tst-undefined-weak.
1296 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
1297 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
1298 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
1299 * sysdeps/mips/tst-undefined-weak.c: Likewise.
1300 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
1301 Increment highest valid ABIVERSION value.
1302
1303 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1304
1305 * sysdeps/unix/sysv/linux/mips/Makefile
1306 (test-xfail-check-execstack):
1307 Move under mips-has-gnustack != yes.
1308 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
1309 Apply -Wa,-execstack if mips-force-execstack == yes.
1310 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1311 * sysdeps/unix/sysv/linux/mips/configure.ac
1312 (mips-force-execstack): New var.
1313 Set to yes for hard-float builds with minimum_kernel < 4.8.0
1314 or minimum_kernel not set at all.
1315 (mips-has-gnustack): New var.
1316 Use value of libc_cv_as_noexecstack
1317 if mips-force-execstack != yes, otherwise set to no.
1318
1319 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1320 Florian Weimer <fweimer@redhat.com>
1321
1322 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
1323 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1324 Make a compat_symbol.
1325 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
1326 (__profil_counter_global): Likewise.
1327
1328 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
1329 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
1330 uintptr_t.
1331 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
1332 sigcontext_get_pc and return aligned cast to uintptr_t.
1333 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
1334 * sysdeps/posix/profil.c (profil_count): Change PC argument to
1335 uintptr_t.
1336 (__profil): Use SA_SIGINFO.
1337 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
1338 uintptr_t.
1339 (__sprofil): Use SA_SIGINFO.
1340 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
1341 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
1342 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1343 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
1344 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
1345 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
1346 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
1347 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
1348 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
1349 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
1350 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
1351 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
1352 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
1353 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
1354 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
1355 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
1356 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
1357 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
1358 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
1359 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
1360 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
1361 GET_PC, __sigaction, sigaction): Remove defines.
1362 (sigcontext_get_pc): New function.
1363 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
1364 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
1365 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1366 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
1367 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
1368 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
1369 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
1370 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1371 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
1372 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
1373 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
1374 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
1375 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
1376 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
1377 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
1378 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
1379 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
1380 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
1381 Handle CTX argument as ucontext_t.
1382 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1383 Likewise.
1384 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1385 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1386 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1387 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
1388 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
1389 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1390 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1391 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1392 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
1393 tst-sigcontextinfo-get_pc.
1394 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
1395 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
1396
1397 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1398
1399 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
1400 definition.
1401
1402 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
1403
1404 [BZ #24682]
1405 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
1406 * localedata/locales/ug_CN (first_weekday): Likewise.
1407 * localedata/locales/zh_CN (first_weekday): Likewise.
1408
1409 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
1410
1411 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
1412 field name in mcontext_t struct.
1413
1414 2019-08-22 Joseph Myers <joseph@codesourcery.com>
1415
1416 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
1417 unsupported with libidn2 before 2.0.5.
1418 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
1419
1420 * manual/time.texi (strftime): Document %Ob and %OB as C2X
1421 features.
1422
1423 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
1424
1425 Remove dead regex code
1426 * posix/regex_internal.c (re_node_set_insert):
1427 Remove unnecessary assignment. Reported by Tim Rühsen in:
1428 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
1429
1430 Fix bad pointer / leak in regex code
1431 This was found by Coverity (CID 1484201). [BZ#24844]
1432 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
1433 pointer and/or memory leak when storage is exhausted.
1434
1435 2019-08-21 Zack Weinberg <zackw@panix.com>
1436
1437 * misc/syslog.c (__vsyslog_internal)
1438 * time/getdate.c (__getdate_r)
1439 * time/tst_wcsftime.c (main):
1440 Use return value of time, not its argument.
1441
1442 * string/strfry.c (strfry)
1443 * sysdeps/mach/sleep.c (__sleep):
1444 Remove unnecessary casts of NULL in calls to time.
1445
1446 2019-08-21 Joseph Myers <joseph@codesourcery.com>
1447
1448 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
1449 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
1450 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
1451 (__TGMATH_2_NARROW_F): Likewise.
1452 (__TGMATH_2_NARROW_D): New macro.
1453 (__TGMATH_2_NARROW_F16): Likewise.
1454 (__TGMATH_2_NARROW_F32): Likewise.
1455 (__TGMATH_2_NARROW_F64): Likewise.
1456 (__TGMATH_2_NARROW_F32X): Likewise.
1457 (__TGMATH_2_NARROW_F64X): Likewise.
1458 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
1459 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
1460 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
1461 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
1462 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
1463 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
1464 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
1465 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
1466 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
1467 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
1468 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
1469 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
1470 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
1471 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
1472 Likewise.
1473 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
1474 Likewise.
1475 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
1476 Likewise.
1477 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
1478 Likewise.
1479 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
1480 Likewise.
1481 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
1482 Likewise.
1483 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
1484 Likewise.
1485 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
1486 Likewise.
1487 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1488 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
1489 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1490 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
1491 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1492 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
1493 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1494 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
1495 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
1496 Likewise.
1497 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
1498 Likewise.
1499 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
1500 Likewise.
1501 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
1502 Likewise.
1503 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1504 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
1505 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1506 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
1507 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1508 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
1509 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1510 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
1511 * math/gen-tgmath-tests.py (Type): Add members
1512 non_standard_real_argument_types_list, long_double_type,
1513 complex_float64_type and float32x_ext_type.
1514 (Type.__init__): Set the new members.
1515 (Type.floating_type): Add new argument floatn.
1516 (Type.real_floating_type): Likewise.
1517 (Type.can_combine_types): Likewise.
1518 (Type.combine_types): Likewise.
1519 (Type.init_types): Create internal Float32x_ext type.
1520 (Tests.__init__): Define Float32x_ext in generated C code.
1521 (Tests.add_tests): Handle narrowing functions.
1522 (Tests.add_all_tests): Likewise.
1523 (Tests.tests_text): Allow variation in mant_dig for narrowing
1524 functions with compilers before GCC 8.
1525 * math/Makefile (tgmath3-narrow-types): New variable.
1526 (tgmath3-narrow-macros): Likewise.
1527 (tgmath3-macros): Add $(tgmath3-narrow-macros).
1528
1529 2019-08-20 Andreas Schwab <schwab@suse.de>
1530
1531 * sysdeps/i386/fpu/libm-test-ulps: Update.
1532
1533 2019-08-19 Carlos O'Donell <carlos@redhat.com>
1534
1535 * nscd/nscd.conf: Add warning and comment about shared option.
1536
1537 2019-08-19 Carlos O'Donell <carlos@redhat.com>
1538
1539 * nss/nsswitch.conf: Expand comments, and simplify defaults.
1540 * manual/nss.texi (NSS Basics): List all known databases.
1541 (Services in the NSS configuration): Mention automount.
1542
1543 2019-08-19 Florian Weimer <fweimer@redhat.com>
1544
1545 Do not print backtraces on fatal errors.
1546 * debug/fortify_fail.c (__libc_argv): Remove declaration.
1547 (__fortify_fail_abort): Remove definition.
1548 (__fortify_fail): Call __libc_message directly.
1549 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
1550 (__stack_chk_fail): Call __fortify_fail instead of
1551 __fortify_fail_abort.
1552 * include/stdio.h (__fortify_fail_abort): Remove declaration.
1553 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
1554 definitions.
1555 (__libc_message): Do not handle do_backtrace. Do not call
1556 BEFORE_ABORT.
1557 (__libc_fatal): Do not pass do_backtrace to __libc_message.
1558 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
1559 (before_abort): Remove definitions.
1560
1561 2019-08-16 Florian Weimer <fweimer@redhat.com>
1562
1563 nptl: Move pthread_attr_getdetachstate implementation into libc.
1564 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
1565 (libpthread-routines): Remove pthread_attr_getdetachstate.
1566 * nptl/Versions (libpthread GLIBC_2.0): Remove
1567 pthread_attr_getdetachstate.
1568 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
1569 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1570 ptr_pthread_attr_getdetachstate.
1571 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1572 Remove ptr_pthread_attr_getdetachstate member.
1573 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1574 Remove pthread_attr_getdetachstate.
1575 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1576 Likewise.
1577 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1578 Likewise.
1579 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1580 Likewise.
1581 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1582 Likewise.
1583 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1584 Likewise.
1585 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1586 Likewise.
1587 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1588 (GLIBC_2.4): Likewise.
1589 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1590 (GLIBC_2.0): Likewise.
1591 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1592 (GLIBC_2.18): Likewise.
1593 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1594 (GLIBC_2.0): Likewise.
1595 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1596 (GLIBC_2.0): Likewise.
1597 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1598 Likewise.
1599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1600 (GLIBC_2.0): Likewise.
1601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1602 (GLIBC_2.3): Likewise.
1603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1604 (GLIBC_2.17): Likewise.
1605 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1606 (GLIBC_2.27): Likewise.
1607 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1608 (GLIBC_2.0): Likewise.
1609 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1610 (GLIBC_2.2): Likewise.
1611 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1612 Likewise.
1613 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1614 (GLIBC_2.0): Likewise.
1615 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1616 (GLIBC_2.2): Likewise.
1617 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1618 (GLIBC_2.2.5): Likewise.
1619 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1620 (GLIBC_2.16): Likewise.
1621
1622 2019-08-16 Joseph Myers <joseph@codesourcery.com>
1623
1624 * math/libm-test-compat_totalorder.inc (do_test)
1625 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1626 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1627 * math/libm-test-compat_totalordermag.inc (do_test)
1628 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1629
1630 2019-08-15 Florian Weimer <fweimer@redhat.com>
1631
1632 nptl: Move pthread_attr_init implementation into libc.
1633 * nptl/Makefile (routines): Add pthread_attr_init.
1634 (libpthread-routines): Remove pthread_attr_init.
1635 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1636 (libpthread GLIBC_2.0): Likewise.
1637 * nptl/pthread_attr_init.c: Check for libc compat version instead
1638 of libpthread compat version.
1639 * nptl/forward.c (__pthread_attr_init_2_0)
1640 (__pthread_attr_init_2_1): Remove definitions.
1641 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1642 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1643 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1644 Remove members ptr___pthread_attr_init_2_0,
1645 ptr___pthread_attr_init_2_1.
1646 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1647 Remove pthread_attr_init.
1648 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1649 Likewise.
1650 (GLIBC_2.1): Likewise.
1651 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1652 Likewise.
1653 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1654 Likewise.
1655 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1656 Likewise.
1657 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1658 Likewise.
1659 (GLIBC_2.1): Likewise.
1660 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1661 Likewise.
1662 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1663 (GLIBC_2.4): Likewise.
1664 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1665 (GLIBC_2.0): Likewise.
1666 (GLIBC_2.1): Likewise.
1667 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1668 (GLIBC_2.18): Likewise.
1669 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1670 (GLIBC_2.0): Likewise.
1671 (GLIBC_2.1): Likewise.
1672 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1673 (GLIBC_2.0): Likewise.
1674 (GLIBC_2.1): Likewise.
1675 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1676 Likewise.
1677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1678 (GLIBC_2.0): Likewise.
1679 (GLIBC_2.1): Likewise.
1680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1681 (GLIBC_2.3): Likewise.
1682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1683 (GLIBC_2.17): Likewise.
1684 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1685 (GLIBC_2.27): Likewise.
1686 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1687 (GLIBC_2.0): Likewise.
1688 (GLIBC_2.1): Likewise.
1689 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1690 (GLIBC_2.2): Likewise.
1691 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1692 Likewise.
1693 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1694 (GLIBC_2.0): Likewise.
1695 (GLIBC_2.1): Likewise.
1696 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1697 (GLIBC_2.2): Likewise.
1698 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1699 (GLIBC_2.2.5): Likewise.
1700 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1701 (GLIBC_2.16): Likewise.
1702
1703 2019-08-15 Florian Weimer <fweimer@redhat.com>
1704
1705 [BZ #24900]
1706 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1707 new object in __RTLD_OPENEXEC mode (except for the origin).
1708 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1709 check for the error message.
1710 (do_test): Call it. Add check using relative path.
1711 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1712 (tst-dlopen-aout-container): Link with libpthread.
1713 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1714
1715 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1716
1717 * math/bits/mathcalls.h
1718 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1719 (totalorder): Take pointer arguments.
1720 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1721 (totalordermag): Likewise.
1722 * manual/arith.texi (totalorder): Likewise.
1723 (totalorderf): Likewise.
1724 (totalorderl): Likewise.
1725 (totalorderfN): Likewise.
1726 (totalorderfNx): Likewise.
1727 (totalordermag): Likewise.
1728 (totalordermagf): Likewise.
1729 (totalordermagl): Likewise.
1730 (totalordermagfN): Likewise.
1731 (totalordermagfNx): Likewise.
1732 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1733 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1734 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1735 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1736 totalorderl, totalordermag, totalordermagf, totalordermagl,
1737 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1738 totalordermagf64, totalordermagf32x, totalorderf64x,
1739 totalordermagf64x, totalorderf128 and totalordermagf128.
1740 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1741 and compat_totalordermag.
1742 (libm-test-funcs-compat): New variable.
1743 (libm-tests-compat): Likewise.
1744 (tests): Do not include compat tests.
1745 (tests-internal): Add compat tests.
1746 ($(foreach t,$(libm-tests-base),
1747 $(objpfx)$(t)-compat_totalorder.o)): Depend
1748 on $(objpfx)libm-test-totalorder.c.
1749 ($(foreach t,$(libm-tests-base),
1750 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1751 $(objpfx)libm-test-totalordermag.c.
1752 (tgmath3-macros): Remove totalorder and totalordermag.
1753 * math/libm-test-compat_totalorder.inc: New file.
1754 * math/libm-test-compat_totalordermag.inc: Likewise.
1755 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1756 (RUN_TEST_fpfp_b): New macro.
1757 (RUN_TEST_LOOP_fpfp_b): Likewise.
1758 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1759 TEST_fpfp_b.
1760 (totalorder_test): Condition on [!COMPAT_TEST].
1761 (do_test): Likewise.
1762 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1763 TEST_fpfp_b.
1764 (totalordermag_test): Condition on [!COMPAT_TEST].
1765 (do_test): Likewise.
1766 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1767 totalorder and totalordermag.
1768 * math/test-tgmath.c (NCALLS): Change to 132.
1769 (F(compile_test)): Do not call totalorder or totalordermag.
1770 (F(totalorder)): Remove.
1771 (F(totalordermag)): Likewise.
1772 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1773 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1774 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1775 SJSTR_HELPER.
1776 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1777 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1778 [!_ISOMAC] (TEST_ALIGN): Likewise.
1779 [!_ISOMAC] (TEST_OFFSET): Likewise.
1780 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1781 and <first-versions.h>.
1782 (__totalorder): Take pointer arguments. Add symbol versions and
1783 compat symbols.
1784 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1785 <shlib-compat.h> and <first-versions.h>.
1786 (__totalordermag): Take pointer arguments. Add symbol versions
1787 and compat symbols.
1788 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1789 <shlib-compat.h> and <first-versions.h>.
1790 (__totalorder): Take pointer arguments. Add symbol versions and
1791 compat symbols.
1792 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1793 <shlib-compat.h> and <first-versions.h>.
1794 (__totalordermag): Take pointer arguments. Add symbol versions
1795 and compat symbols.
1796 * sysdeps/ieee754/float128/float128_private.h
1797 (__totalorder_compatl): New macro.
1798 (__totalordermag_compatl): Likewise.
1799 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1800 and <first-versions.h>.
1801 (__totalorderf): Take pointer arguments. Add symbol versions and
1802 compat symbols.
1803 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1804 <shlib-compat.h> and <first-versions.h>.
1805 (__totalordermagf): Take pointer arguments. Add symbol versions
1806 and compat symbols.
1807 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1808 <shlib-compat.h> and <first-versions.h>.
1809 (__totalorderl): Take pointer arguments. Add symbol versions and
1810 compat symbols.
1811 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1812 <shlib-compat.h> and <first-versions.h>.
1813 (__totalordermagl): Take pointer arguments. Add symbol versions
1814 and compat symbols.
1815 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1816 <shlib-compat.h>.
1817 (__totalorderl): Take pointer arguments. Add symbol versions and
1818 compat symbols.
1819 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1820 <shlib-compat.h>.
1821 (__totalordermagl): Take pointer arguments. Add symbol versions
1822 and compat symbols.
1823 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1824 <shlib-compat.h> and <first-versions.h>.
1825 (__totalorderl): Take pointer arguments. Add symbol versions and
1826 compat symbols.
1827 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1828 <shlib-compat.h> and <first-versions.h>.
1829 (__totalordermagl): Take pointer arguments. Add symbol versions
1830 and compat symbols.
1831 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1832 pointer arguments.
1833 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1834 Likewise.
1835 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1836 (do_test): Update calls to totalorderl and totalordermagl.
1837 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1838 Update calls to totalorderl and totalordermagl.
1839 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1840 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1841 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1842 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1843 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1844 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1845 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1846 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1847 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1848 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1849 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1850 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1851 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1852 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1854 Likewise.
1855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1856 Likewise.
1857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1858 Likewise.
1859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1860 Likewise.
1861 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1862 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1863 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1864 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1865 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1866 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1867 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1868 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1869
1870 2019-08-15 Florian Weimer <fweimer@redhat.com>
1871
1872 [BZ #24899]
1873 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1874 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1875 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1876 Likewise.
1877 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1878 __attribute_nonstring__ to ut_id.
1879 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1880 Likewise.
1881
1882 2019-08-15 Florian Weimer <fweimer@redhat.com>
1883
1884 [BZ #24880]
1885 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1886 (file_locking_unlock): Likewise.
1887
1888 2019-08-15 Florian Weimer <fweimer@redhat.com>
1889
1890 [BZ #24879]
1891 login: Disarm timer after utmp lock acquisition.
1892 * login/utmp_file.c (struct file_locking): Remove.
1893 (try_file_lock): Adjust.
1894 (file_lock_restore): Remove function.
1895 (__libc_getutent_r): .
1896 (internal_getut_r): Likewise.
1897 (__libc_getutline_r): Likewise.
1898 (__libc_pututline): Likewise.
1899 (__libc_updwtmp): Likewise.
1900
1901 2019-08-15 Florian Weimer <fweimer@redhat.com>
1902
1903 nptl: Remove pthread_self compatibility symbol from libpthread.
1904 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1905 pthread_equal.
1906 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1907 * nptl/compat-pthread_self.c: Remove file.
1908 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1909 Remove pthread_self.
1910 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1911 Likewise.
1912 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1913 Likewise.
1914 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1915 Likewise.
1916 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1917 Likewise.
1918 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1919 Likewise.
1920 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1921 (GLIBC_2.4): Likewise.
1922 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1923 (GLIBC_2.0): Likewise.
1924 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1925 (GLIBC_2.18): Likewise.
1926 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1927 (GLIBC_2.0): Likewise.
1928 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1929 (GLIBC_2.0): Likewise.
1930 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1931 Likewise.
1932 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1933 (GLIBC_2.0): Likewise.
1934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1935 (GLIBC_2.3): Likewise.
1936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1937 (GLIBC_2.17): Likewise.
1938 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1939 (GLIBC_2.0): Likewise.
1940 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1941 (GLIBC_2.2): Likewise.
1942 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1943 Likewise.
1944 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1945 (GLIBC_2.0): Likewise.
1946 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1947 (GLIBC_2.2): Likewise.
1948 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1949 (GLIBC_2.2.5): Likewise.
1950 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1951 (GLIBC_2.16): Likewise.
1952
1953 2019-08-15 Florian Weimer <fweimer@redhat.com>
1954
1955 nptl: Move pthread_attr_destroy implementation into libc.
1956 * nptl/Makefile (routines): Add pthread_attr_destroy.
1957 (libpthread-routines): Remove pthread_attr_destroy.
1958 * nptl/Versions (libpthread GLIBC_2.0): Remove
1959 pthread_attr_destroy.
1960 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1961 libc compat version instead of libpthread compat version.
1962 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1963 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1964 ptr_pthread_attr_destroy.
1965 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1966 Remove ptr_pthread_attr_destroy member.
1967 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1968 Remove pthread_attr_destroy.
1969 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1970 Likewise.
1971 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1972 Likewise.
1973 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1974 Likewise.
1975 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1976 Likewise.
1977 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1978 Likewise.
1979 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1980 Likewise.
1981 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1982 (GLIBC_2.4): Likewise.
1983 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1984 (GLIBC_2.0): Likewise.
1985 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1986 (GLIBC_2.18): Likewise.
1987 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1988 (GLIBC_2.0): Likewise.
1989 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1990 (GLIBC_2.0): Likewise.
1991 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1992 Likewise.
1993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1994 (GLIBC_2.0): Likewise.
1995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1996 (GLIBC_2.3): Likewise.
1997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1998 (GLIBC_2.17): Likewise.
1999 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2000 (GLIBC_2.27): Likewise.
2001 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2002 (GLIBC_2.0): Likewise.
2003 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2004 (GLIBC_2.2): Likewise.
2005 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2006 Likewise.
2007 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2008 (GLIBC_2.0): Likewise.
2009 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2010 (GLIBC_2.2): Likewise.
2011 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2012 (GLIBC_2.2.5): Likewise.
2013 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2014 (GLIBC_2.16): Likewise.
2015
2016 2019-08-15 Andreas Schwab <schwab@suse.de>
2017
2018 * sysdeps/i386/fpu/libm-test-ulps: Update.
2019
2020 2019-08-15 Florian Weimer <fweimer@redhat.com>
2021
2022 * malloc/Makefile (tests): Only add tst-mxfast for
2023 $(have-tunables).
2024 * malloc/tst-mxfast.c: Fix copyright year.
2025 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
2026 assert for checks.
2027
2028 2019-08-15 Florian Weimer <fweimer@redhat.com>
2029
2030 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
2031 descriptor.
2032 * login/Makefile (tests): Add tst-updwtmpx.
2033 * login/tst-updwtmpx.c: New file.
2034
2035 2019-08-15 Florian Weimer <fweimer@redhat.com>
2036
2037 nptl: Move pthread_equal implementation into libc.
2038 * nptl/Makefile (routines): Add pthread_equal.
2039 * nptl/forward.c (pthread_equal): Remove definition.
2040 * nptl/nptl-init.c (pthread_functions): Remove initializer for
2041 ptr_pthread_equal.
2042 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
2043 Remove ptr_pthread_equal member.
2044 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2045 Remove pthread_equal.
2046 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2047 Likewise.
2048 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2049 Likewise.
2050 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
2051 Likewise.
2052 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2053 Likewise.
2054 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2055 Likewise.
2056 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2057 Likewise.
2058 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2059 (GLIBC_2.4): Likewise.
2060 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2061 (GLIBC_2.0): Likewise.
2062 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2063 (GLIBC_2.18): Likewise.
2064 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2065 (GLIBC_2.0): Likewise.
2066 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2067 (GLIBC_2.0): Likewise.
2068 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
2069 Likewise.
2070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2071 (GLIBC_2.0): Likewise.
2072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2073 (GLIBC_2.3): Likewise.
2074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2075 (GLIBC_2.17): Likewise.
2076 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2077 (GLIBC_2.27): Likewise.
2078 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2079 (GLIBC_2.0): Likewise.
2080 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2081 (GLIBC_2.2): Likewise.
2082 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2083 Likewise.
2084 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2085 (GLIBC_2.0): Likewise.
2086 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2087 (GLIBC_2.2): Likewise.
2088 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2089 (GLIBC_2.2.5): Likewise.
2090 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2091 (GLIBC_2.16): Likewise.
2092
2093 2019-08-14 Florian Weimer <fweimer@redhat.com>
2094
2095 * support/support_descriptors.c: Include <support/descriptors.h>.
2096
2097 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
2098
2099 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
2100 Disable DC ZVA code if this macro is defined as zero.
2101 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
2102 Change to zero to disable using DC ZVA.
2103
2104 2019-08-13 Joseph Myers <joseph@codesourcery.com>
2105
2106 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
2107 Update comment.
2108 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
2109 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
2110 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
2111 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
2112 Likewise.
2113
2114 2019-08-13 Florian Weimer <fweimer@redhat.com>
2115
2116 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
2117 Remove macros.
2118 (struct file_locking): New.
2119 (try_file_lock, file_unlock, file_lock_restore): New functions.
2120 (__libc_getutent_r): Use the new functions.
2121 (internal_getut_r): Likewise.
2122 (__libc_getutline_r): Likewise.
2123 (__libc_pututline): Likewise.
2124 (__libc_updwtmp): Likewise.
2125
2126 2019-08-13 Joseph Myers <joseph@codesourcery.com>
2127
2128 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
2129 comment.
2130 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
2131 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
2132 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
2133 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2134 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2135 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2136 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2137 Likewise.
2138 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2139 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
2140 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2141 Likewise.
2142 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2143 Likewise.
2144 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2145 Likewise.
2146 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2147 Likewise.
2148 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2149 Likewise.
2150 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2151 Likewise.
2152 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2153 Likewise.
2154 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
2155 (IEC_60559_BFP_EXT)]: Likewise.
2156 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2157 Likewise.
2158 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2159 Likewise.
2160 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2161 Likewise.
2162 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2163 Likewise.
2164 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2165 Likewise.
2166 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2167 Likewise.
2168 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2169 Likewise.
2170 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2171 Likewise.
2172 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
2173 Likewise, except for totalorder, totalordermag, getpayload,
2174 setpayload and setpayloadsig.
2175 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
2176 except for totalorder and totalordermag.
2177
2178 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
2179 (strdup): Likewise.
2180 (strndup): Likewise.
2181
2182 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
2183 Undefine and define to 1 if [_GNU_SOURCE].
2184 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
2185 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
2186 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
2187 (__USE_ISOC99): Likewise.
2188 (__USE_ISOC95): Likewise.
2189 * manual/creature.texi (_ISOC2X_SOURCE): Document.
2190
2191 2019-08-13 Florian Weimer <fweimer@redhat.com>
2192
2193 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
2194 are always true.
2195 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
2196 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
2197 * login/getutmpx.c (getutmpx): Likewise.
2198 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
2199 true.
2200 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
2201 _HAVE_UT_TV are always true.
2202 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
2203 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
2204 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
2205 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
2206 are always true.
2207 (internal_getut_r): _HAVE_UT_TYPE is always true.
2208 (__libc_pututline): Likewise.
2209 * login/programs/utmpdump.c (print_entry): Assume that
2210 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
2211 _HAVE_UT_TV are always true.
2212 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
2213 _HAVE_UT_ID are always true.
2214 * sysdeps/gnu/bits/utmp.h: Move to ...
2215 * bits/utmp.h: ... here, replacing the old file.
2216
2217 2019-08-12 Florian Weimer <fweimer@redhat.com>
2218
2219 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
2220 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
2221 not set.
2222 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
2223 (do_test): Open the executable using an absolute path. Print
2224 error message to standard output.
2225
2226 2019-08-09 DJ Delorie <dj@redhat.com>
2227
2228 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
2229 * manual/tunables.texi: Document it.
2230 * malloc/malloc.c (do_set_mxfast): New.
2231 (__libc_mallopt): Call it.
2232 * malloc/arena.c: Add mxfast tunable.
2233 * malloc/tst-mxfast.c: New.
2234 * malloc/Makefile: Add it.
2235
2236 2019-08-08 Niklas Hambüchen <mail@nh2.me>
2237 Carlos O'Donell <carlos@redhat.com>
2238
2239 [BZ #24026]
2240 * malloc/malloc.c (__malloc_info): Account for top chunk.
2241
2242 2019-08-07 Joseph Myers <joseph@codesourcery.com>
2243
2244 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
2245 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
2246
2247 2019-08-06 Joseph Myers <joseph@codesourcery.com>
2248
2249 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
2250
2251 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2252
2253 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
2254
2255 2019-08-05 Joseph Myers <joseph@codesourcery.com>
2256
2257 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
2258 New macro.
2259
2260 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2261
2262 [BZ #19767]
2263 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
2264 Remove definition.
2265 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
2266 Likewise.
2267 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
2268 Likewise.
2269 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
2270 Likewise.
2271 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
2272 (ALWAYS_USE_VSYSCALL): Likewise.
2273 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
2274 (ALWAYS_USE_VSYSCALL): Likewise.
2275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2276 (ALWAYS_USE_VSYSCALL): Likewise.
2277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2278 (ALWAYS_USE_VSYSCALL): Likewise.
2279 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
2280 Likewise.
2281 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2282 (ALWAYS_USE_VSYSCALL): Likewise.
2283 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2284 (ALWAYS_USE_VSYSCALL): Likewise.
2285 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
2286 Likewise.
2287 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
2288 Likewise.
2289 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
2290 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
2291 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
2292 USE_VSYSCALL): Remove defitions.
2293
2294 [BZ #19767]
2295 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
2296 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
2297 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
2298 Define.
2299
2300 [BZ #19767]
2301 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
2302 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
2303 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2304 (ALWAYS_USE_VSYSCALL): Define.
2305 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2306 (ALWAYS_USE_VSYSCALL): Likewise.
2307
2308 [BZ #19767]
2309 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
2310 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
2311 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
2312 Define.
2313
2314 * sysdeps/sh/libm-test-ulps: Update.
2315
2316 2019-08-05 Florian Weimer <fweimer@redhat.com>
2317
2318 [BZ #23518]
2319 * login/uptmp-private.h (struct ufuncs): Remove definition.
2320 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
2321 (__libc_utmp_jump_table): Remove declarations.
2322 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
2323 (__libc_getutline_r, __libc_pututline, __libc_endutent)
2324 (__libc_updwtmp): Declare.
2325 * login/getutent_r.c (__libc_utmp_unknown_functions)
2326 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
2327 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
2328 (endutent_unknown): Remove definitions.
2329 (__setutent): Call __libc_setutent.
2330 (__getutent_r): Call __libc_getutent_r.
2331 (__pututline): Call __libc_pututline.
2332 (__endutent): Call __libc_endutent.
2333 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
2334 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
2335 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
2336 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
2337 (__libc_setutent): Rename from stetutent_file. Drop static.
2338 (maybe_setutent): New function.
2339 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
2340 Check for initialization.
2341 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
2342 Check for initialization.
2343 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
2344 Check for initialization.
2345 (__libc_pututline): Rename from pututline_file. Drop static.
2346 Check for initialization.
2347 (__libc_endutent): Rename from endutent_file. Drop static. Check
2348 for initialization.
2349 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
2350 * login/utmpname.c (__utmpname): Call __libc_endutent.
2351 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
2352 __libc_getutlien_r, __libc_endutent.
2353 * manual/users.texi (Who Logged In, Manipulating the Database):
2354 Adjust.
2355
2356 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
2357
2358 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
2359
2360 2019-08-02 Joseph Myers <joseph@codesourcery.com>
2361
2362 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
2363
2364 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
2365 kernel version number to 5.2.
2366
2367 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
2368
2369 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
2370 mnemonics and set .machine power8.
2371 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
2372 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
2373 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
2374 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
2375 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
2376 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
2377 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
2378 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
2379 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
2380 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
2381
2382 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2383
2384 * sysdeps/hppa/fpu/libm-test-ulps: Update.
2385
2386 2019-08-01 Florian Weimer <fweimer@redhat.com>
2387
2388 [BZ #24867]
2389 * malloc/malloc.c (__malloc_info): Remove unwanted leading
2390 whitespace.
2391
2392 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2393
2394 [BZ #15813]
2395 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
2396 attempt.
2397
2398 2019-08-01 Carlos O'Donell <carlos@redhat.com>
2399
2400 * version.h (RELEASE): Set to "stable".
2401 (VERSION): Set to "2.30".
2402 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
2403
2404 * manual/install.texi: Update component versions.
2405 * INSTALL: Regenerate.
2406 * NEWS: Update.
2407
2408 2019-07-31 Carlos O'Donell <carlos@redhat.com>
2409
2410 * po/be.po: Update translations.
2411 * po/bg.po: Likewise.
2412 * po/ca.po: Likewise.
2413 * po/cs.po: Likewise.
2414 * po/da.po: Likewise.
2415 * po/de.po: Likewise.
2416 * po/el.po: Likewise.
2417 * po/eo.po: Likewise.
2418 * po/es.po: Likewise.
2419 * po/fi.po: Likewise.
2420 * po/fr.po: Likewise.
2421 * po/gl.po: Likewise.
2422 * po/hr.po: Likewise.
2423 * po/hu.po: Likewise.
2424 * po/ia.po: Likewise.
2425 * po/id.po: Likewise.
2426 * po/it.po: Likewise.
2427 * po/ja.po: Likewise.
2428 * po/ko.po: Likewise.
2429 * po/lt.po: Likewise.
2430 * po/nb.po: Likewise.
2431 * po/nl.po: Likewise.
2432 * po/pl.po: Likewise.
2433 * po/pt_BR.po: Likewise.
2434 * po/ru.po: Likewise.
2435 * po/rw.po: Likewise.
2436 * po/sk.po: Likewise.
2437 * po/sl.po: Likewise.
2438 * po/sv.po: Likewise.
2439 * po/tr.po: Likewise.
2440 * po/uk.po: Likewise.
2441 * po/vi.po: Likewise.
2442 * po/zh_CN.po: Likewise.
2443 * po/zh_TW.po: Likewise.
2444
2445 2019-07-31 Florian Weimer <fweimer@redhat.com>
2446
2447 [BZ #24583]
2448 [BZ #24677]
2449 iconv, libio: Revert reference counting changes.
2450 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
2451 free the steps array.
2452 * libio/Makefile (tests): Remove tst-wfile-gconv.
2453 (tests-container): Do not add tst-wfile-ascii.
2454 (tst-wfile-gconv-ENV): Do not set.
2455 (generated): Do not add tst-wfile-gconv.mtrace,
2456 tst-wfile-gconv.check.
2457 [($run-built-tests)] (tests-special): Do not add
2458 tst-wfile-gconv-mem.out.
2459 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
2460 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
2461 instead of __wcsmbs_clone_conv.
2462 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
2463 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
2464
2465 2019-07-30 Joseph Myers <joseph@codesourcery.com>
2466
2467 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2468 (__CONTEXT_FUNC_NAME): Restore setting of r31.
2469
2470 2019-07-30 Florian Weimer <fweimer@redhat.com>
2471
2472 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
2473 type to uintptr_t. Update comment.
2474 (check_stack_top): Adjust.
2475
2476 2019-07-29 Florian Weimer <fweimer@redhat.com>
2477
2478 Linux: Move declaration of getdents64 to <dirent.h>.
2479 * bits/dirent_ext.h: New file.
2480 * dirent/Makefile (headers): Add bits/dirent_ext.h.
2481 * dirent/dirent.h: Include <bits/dirent_ext.h>.
2482 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
2483 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
2484 declaration.
2485 * manual/filesys.texi (Low-level Directory Access): Update header
2486 to dirent.h.
2487
2488 2019-07-29 DJ Delorie <dj@redhat.com>
2489 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2490
2491 [BZ #24794]
2492 * Makeconfig (all-subdirs): Improved source comments.
2493 * Makefile (testroot.pristine/install.stamp): Pass
2494 subdirs='$(sorted-subdirs)' to make install.
2495
2496 2019-07-25 Florian Weimer <fweimer@redhat.com>
2497
2498 [BZ #24677]
2499 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
2500 counter before freeing array.
2501
2502 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
2503
2504 [BZ #24603]
2505 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
2506 works.
2507 * sysdeps/x86_64/configure: Regenerated.
2508 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
2509 to -mprefer-vector-width=128 if supported.
2510
2511 2019-07-24 Florian Weimer <fweimer@redhat.com>
2512
2513 * scripts/build-many-glibcs.py (Context.checkout): Default to
2514 Linux 5.2.
2515
2516 2019-07-24 Florian Weimer <fweimer@redhat.com>
2517
2518 [BZ #24532]
2519 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
2520 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
2521 (sysdep_headers): Add bits/socket-constants.h.
2522 (tests-special): Add tst-socket-consts.out.
2523 (tst-socket-consts.out): New target.
2524 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
2525 around <asm/unistd.h>.
2526 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
2527 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
2528 <asm/socket.h>.
2529 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
2530 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
2531 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
2532 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
2533 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
2534 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
2535 Likewise.
2536 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
2537
2538 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2539
2540 [BZ #24794]
2541 * Makefile (testroot.pristine/install.stamp): Pass
2542 subdirs='$(all-subdirs)' to make install.
2543
2544 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
2545 the same arguments used in all tests.
2546
2547 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2548
2549 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
2550
2551 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
2552
2553 [BZ #2872]
2554 * locale/C-translit.h.in: Add Cyrillic transliteration.
2555
2556 2019-07-19 Florian Weimer <fweimer@redhat.com>
2557
2558 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
2559 from Linux 5.2.
2560 (fsconfig): Add system call name.
2561 (fsmount): Likewise.
2562 (fsopen): Likewise.
2563 (fspick): Likewise.
2564 (move_mount): Likewise.
2565 (open_tree): Likewise.
2566
2567 2019-07-18 Carlos O'Donell <carlos@redhat.com>
2568
2569 * po/libc.pot: Regenerate.
2570
2571 2019-07-18 Mike Crowe <mac@mcrowe.com>
2572
2573 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
2574 functions recently added to sysdeps/nptl/pthread.h:
2575 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
2576 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
2577
2578 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
2579 pthread_cond_clockwait forwarding functions. There are no internal
2580 users, so it is unnecessary to expose these functions in libc.so.
2581 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2582 unnecessary ptr___pthread_cond_clockwait member.
2583 * nptl/nptl-init.c (pthread_functions): Remove assignment of
2584 removed member.
2585
2586 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2587
2588 [BZ #21897]
2589 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
2590 begin with an uppercase letter now.
2591 (abmon): Likewise.
2592 (mon): Update from CLDR, reword February from "Kudo" to
2593 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
2594 and August from "Liiqen" to "Leqeeni".
2595 * localedata/locales/aa_ER (mon): Update from CLDR, reword
2596 April from "Agda Baxisso" to "Agda Baxis" and August from
2597 "Leqeeni" to "Liiqen".
2598 * localedata/locales/aa_ER@saaho (mon): Likewise.
2599 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
2600 abbreviated February from "Kud" to "Nah".
2601 (mon): Update from CLDR, reword February from "Kudo" to
2602 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
2603
2604 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2605
2606 [BZ #23996]
2607 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
2608
2609 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
2610
2611 [BZ #23996]
2612 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
2613 name_mrs, name_miss, and name_ms.
2614 * localedata/locales/nl_NL (LC_NAME): Likewise.
2615
2616 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
2617
2618 [BZ #24200]
2619 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2620 * localedata/locales/en_IE (first_weekday): Likewise.
2621
2622 2019-07-12 Mike Crowe <mac@mcrowe.com>
2623
2624 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2625 that is only useful if futex_supports_exact_relative_timeouts ()
2626 returns false.
2627 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2628 Likewise.
2629 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2630 timeouts potentially being imprecise since it's no longer true.
2631 Remove declaration of futex_supports_exact_relative_timeouts.
2632 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2633 of futex_supports_exact_relative_timeouts.
2634
2635 * NEWS: Mention recently-added pthread_cond_clockwait,
2636 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2637 sem_clockwait functions.
2638
2639 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2640 works like pthread_mutex_timedlock but takes a clockid parameter to
2641 measure the abstime parameter against.
2642 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2643 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2644 * nptl/pthread_mutex_timedlock.c
2645 (__pthread_mutex_clocklock_common): Rename from
2646 __pthread_mutex_timedlock and add clockid parameter. Pass this
2647 parameter to lll_clocklock and lll_clocklock_elision in place of
2648 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2649 LIBC_PROBE and validate clockid parameter before calling
2650 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2651 implementation to add LIBC_PROBE and calls
2652 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2653 clockid.
2654 * nptl/Makefile: Add tst-mutex11.c.
2655 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2656 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2657 clockid parameters to pthread_mutex_clocklock.
2658 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2659 clockid parameter to indicate which clock to be used. Call
2660 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2661 (do_test): Call do_test_clock to separately test
2662 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2663 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2664 * nptl/tst-mutex9.c: Likewise.
2665 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2666 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2667 Likewise.
2668 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2669 Likewise.
2670 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2671 Likewise.
2672 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2673 Likewise.
2674 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2675 Likewise.
2676 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2677 Likewise.
2678 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2679 Likewise.
2680 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2681 (GLIBC_2.30): Likewise.
2682 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2683 (GLIBC_2.30): Likewise.
2684 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2685 (GLIBC_2.30): Likewise.
2686 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2687 (GLIBC_2.30): Likewise.
2688 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2689 (GLIBC_2.30): Likewise.
2690 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2691 Likewise.
2692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2693 (GLIBC_2.30): Likewise.
2694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2695 (GLIBC_2.30): Likewise.
2696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2697 (GLIBC_2.30): Likewise.
2698 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2699 (GLIBC_2.30): Likewise.
2700 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2701 (GLIBC_2.30): Likewise.
2702 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2703 (GLIBC_2.30): Likewise.
2704 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2705 Likewise.
2706 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2707 (GLIBC_2.30): Likewise.
2708 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2709 (GLIBC_2.30): Likewise.
2710 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2711 (GLIBC_2.30): Likewise.
2712 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2713 (GLIBC_2.30): Likewise.
2714
2715 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2716 parameter to indicate the clock that the abstime parameter should
2717 be measured against in preparation for adding
2718 pthread_mutex_clocklock.
2719 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2720 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2721 from __lll_timedlock and add clockid parameter.
2722 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2723 Likewise.
2724 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2725 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2726 rather than __gettimeofday so that clockid can be used. This means
2727 that conversion from struct timeval is no longer required.
2728 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2729 Likewise.
2730 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2731 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2732 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2733 from lll_timedlock_elision, add clockid parameter and use
2734 meaningful names for other parameters. (__pthread_mutex_timedlock):
2735 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2736 lll_clocklock_elision.
2737 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2738 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2739 clockid parameter. (__lll_clocklock_elision): Rename from
2740 __lll_timedlock_elision and add clockid parameter.
2741 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2742 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2743 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2744 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2745 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2746 (LLL_LOCK): Likewise.
2747 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2748 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2749
2750 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2751 pthread_rwlock_clockwrlock which behave like
2752 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2753 respectively, except they always measure abstime against the
2754 supplied clockid. The functions currently support CLOCK_REALTIME
2755 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2756 specified.
2757 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2758 pthread_wrlock_clockwrlock.
2759 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2760 pthread_rwlock_clockwrlock.c.
2761 * nptl/pthread_rwlock_clockrdlock.c: Implement
2762 pthread_rwlock_clockrdlock.
2763 * nptl/pthread_rwlock_clockwrlock.c: Implement
2764 pthread_rwlock_clockwrlock.
2765 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2766 clockid parameter and verify that it indicates a supported clock on
2767 entry so that we fail even if it doesn't end up being used. Pass
2768 that clock on to futex_abstimed_wait when necessary.
2769 (__pthread_rwlock_wrlock_full): Likewise.
2770 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2771 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2772 be used because there's no timeout.
2773 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2774 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2775 be used because there is no timeout.
2776 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2777 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2778 uses that clock.
2779 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2780 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2781 uses that clock.
2782 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2783 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2784 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2785 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2786 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2787 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2788 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2789 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2790 (GLIBC_2.30): Likewise.
2791 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2792 (GLIBC_2.30): Likewise.
2793 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2794 (GLIBC_2.30): Likewise.
2795 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2796 (GLIBC_2.30): Likewise.
2797 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2798 (GLIBC_2.30): Likewise.
2799 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2801 (GLIBC_2.30): Likewise.
2802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2803 (GLIBC_2.30): Likewise.
2804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2805 (GLIBC_2.30): Likewise.
2806 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2807 (GLIBC_2.30): Likewise.
2808 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2809 (GLIBC_2.30): Likewise.
2810 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2811 (GLIBC_2.30): Likewise.
2812 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2813 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2814 (GLIBC_2.30): Likewise.
2815 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2816 (GLIBC_2.30): Likewise.
2817 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2818 (GLIBC_2.30): Likewise.
2819 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2820 (GLIBC_2.30): Likewise.
2821 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2822 pthread_rwlock_clockwrlock timeout tests to match the existing
2823 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2824 * nptl/tst-rwlock14.c (do_test): Likewise.
2825 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2826 ancillary output throughout. (tf): Accept thread_args structure so
2827 that rwlock, a clockid and function name can be passed to the
2828 thread. (do_test_clock): Rename from do_test. Accept clockid
2829 parameter to specify test clock. Use the magic clockid value of
2830 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2831 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2832 specified clockid to pthread_rwlock_clockrdlock and
2833 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2834 (do_test): Call do_test_clock to test each clockid in turn.
2835 * nptl/tst-rwlock7.c: Likewise.
2836 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2837 thread_args structure so that the (now int) thread number, the
2838 clockid and the function name can be passed to the thread.
2839 (do_test_clock): Renamed from do_test. Pass the necessary
2840 thread_args when creating the reader and writer threads. Use
2841 xpthread_create and xpthread_join.
2842 (do_test): Call do_test_clock to test each clockid in turn.
2843 * manual/threads.texi: Add documentation for
2844 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2845
2846 nptl: pthread_rwlock: Move timeout validation into _full functions
2847 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2848 Check validity of abstime parameter.
2849 (__pthread_rwlock_rwlock_full): Likewise.
2850 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2851 Remove check for validity of abstime parameter.
2852 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2853 Likewise.
2854
2855 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2856 like pthread_cond_timedwait except it always measures abstime
2857 against the supplied clockid.
2858 * nptl/Makefile: Add tst-cond26 and tst-cond27
2859 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2860 * sysdeps/nptl/pthread.h: Likewise
2861 * nptl/forward.c: Add __pthread_cond_clockwait
2862 * nptl/forward.c: Likewise
2863 * nptl/pthreadP.h: Likewise
2864 * sysdeps/nptl/pthread-functions.h: Likewise
2865 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2866 clockid parameter and comment describing why we don't need to check
2867 its value. Use that value when calling
2868 futex_abstimed_wait_cancelable rather than reading the clock from
2869 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2870 (__pthread_cond_timedwait): Read clock from flags and pass it to
2871 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2872 function with weak alias from pthread_cond_clockwait.
2873 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2874 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2875 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2876 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2877 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2878 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2879 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2880 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2881 (GLIBC_2.30): Likewise.
2882 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2883 (GLIBC_2.30): Likewise.
2884 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2885 (GLIBC_2.30): Likewise.
2886 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2887 (GLIBC_2.30): Likewise.
2888 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2889 (GLIBC_2.30): Likewise.
2890 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2891 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2892 (GLIBC_2.30): Likewise.
2893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2894 (GLIBC_2.30): Likewise.
2895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2896 (GLIBC_2.30): Likewise.
2897 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2898 (GLIBC_2.30): Likewise.
2899 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2900 (GLIBC_2.30): Likewise.
2901 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2902 (GLIBC_2.30): Likewise.
2903 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2904 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2905 (GLIBC_2.30): Likewise.
2906 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2907 (GLIBC_2.30): Likewise.
2908 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2909 (GLIBC_2.30): Likewise.
2910 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2911 (GLIBC_2.30): Likewise.
2912 * nptl/tst-cond11.c (run_test): Support testing
2913 pthread_cond_clockwait too by using a special magic
2914 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2915 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2916 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2917 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2918 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2919 clocks to pthread_cond_clockwait.
2920 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2921 struct timespec and pthread_cond_clockwait.
2922 * manual/threads.texi: Document pthread_cond_clockwait.
2923
2924 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2925 sem_timedwait, but measures abstime against the specified clock.
2926 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2927 clockid parameters to indicate the clock which abstime should be
2928 measured against.
2929 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2930 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2931 __new_sem_wait_slow.
2932 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2933 on sem_timedwait.c.
2934 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2935 sem_clockwait.c to match those used for sem_timedwait.c.
2936 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2937 * nptl/Versions (GLIBC_2.30): Likewise.
2938 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2939 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2940 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2941 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2942 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2943 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2944 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2945 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2946 (GLIBC_2.30): Likewise.
2947 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2948 (GLIBC_2.30): Likewise.
2949 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2950 (GLIBC_2.30): Likewise.
2951 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2952 (GLIBC_2.30): Likewise.
2953 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2954 (GLIBC_2.30): Likewise.
2955 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2956 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2957 (GLIBC_2.30): Likewise.
2958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2959 (GLIBC_2.30): Likewise.
2960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2961 (GLIBC_2.30): Likewise.
2962 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2963 (GLIBC_2.30): Likewise.
2964 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2965 (GLIBC_2.30): Likewise.
2966 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2967 (GLIBC_2.30): Likewise.
2968 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2969 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2970 (GLIBC_2.30): Likewise.
2971 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2972 (GLIBC_2.30): Likewise.
2973 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2974 (GLIBC_2.30): Likewise.
2975 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2976 (GLIBC_2.30): Likewise.
2977 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2978 sem_clockwait.
2979 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2980 tests to also test sem_clockwait.
2981 * manual/threads.texi: Document sem_clockwait.
2982
2983 nptl: Add clockid parameter to futex timed wait calls
2984 * sysdeps/nptl/lowlevellock-futex.h,
2985 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2986 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2987 takes a clockid rather than a special clockbit.
2988 * sysdeps/nptl/lowlevellock-futex.h: Add
2989 lll_futex_supported_clockid so that client functions can check
2990 whether their clockid parameter is valid even if they don't
2991 ultimately end up calling lll_futex_clock_wait_bitset.
2992 * sysdeps/nptl/futex-internal.h,
2993 sysdeps/unix/sysv/linux/futex-internal.h
2994 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2995 clockid_t parameter to indicate which clock the absolute time
2996 passed should be measured against. Pass that clockid onto
2997 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2998 returning -EINVAL.
2999 * sysdeps/nptl/futex-internal.h,
3000 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
3001 futex_abstimed_supported_clockid so that client functions can check
3002 whether their clockid parameter is valid even if they don't
3003 ultimately end up calling futex_abstimed_wait.
3004 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
3005 code to calculate relative timeout for
3006 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
3007 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
3008 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
3009 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
3010 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
3011 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
3012 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
3013
3014 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3015
3016 [BZ #24699]
3017 * posix/tst-mmap-offset.c: Mention BZ #24699.
3018 (do_test_bz21270): Rename to do_test_large_offset and use
3019 mmap64_maximum_offset to check for maximum expected offset value.
3020 * sysdeps/generic/mmap_info.h: New file.
3021 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
3022 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
3023 __NR_mmap2 is used.
3024
3025 2019-07-10 DJ Delorie <dj@redhat.com>
3026 Sergei Trofimovich <slyfox@inbox.ru>
3027
3028 [BZ #24696]
3029 [BZ #24695]
3030 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
3031 mappings.
3032 * nss/tst-nss-db-endgrent.c: New.
3033 * nss/tst-nss-db-endgrent.root: New.
3034 * nss/tst-nss-db-endpwent.c: New.
3035 * nss/tst-nss-db-endpwent.root: New.
3036 * nss/Makefile: Add new tests.
3037 * support/links-dso-program-c.c: Add selinux dependency.
3038 * support/links-dso-program.cc: Add selinux dependency.
3039 * support/Makefile: Build those with -lselinux if enabled.
3040
3041 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
3042
3043 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
3044 DT_AARCH64_VARIANT_PCS check.
3045 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
3046 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
3047 variant_pcs.
3048
3049 2019-07-10 Andreas Schwab <schwab@suse.de>
3050
3051 [BZ #23352]
3052 * malloc/malloc.h (__malloc_check_init): Don't declare.
3053 * include/malloc.h (__malloc_check_init): Likewise.
3054 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
3055 * manual/memory.texi (__malloc_check_init): Don't mention it.
3056
3057 2019-07-10 Mao Han <han_mao@c-sky.com>
3058
3059 * locale/Makefile: Fix tst-locale-locpath arguments passing.
3060
3061 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
3062
3063 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
3064 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
3065
3066 2019-07-08 DJ Delorie <dj@redhat.com>
3067
3068 [BZ #23501]
3069 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
3070 * io/tst-ftw-lnk.c: New test.
3071 * io/Makefile: Run it.
3072
3073 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3074
3075 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
3076 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
3077 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
3078 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
3079 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
3080 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
3081 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
3082 Adjust implementation path.
3083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
3084 Adjust implementation path.
3085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
3086 Adjust implementation path.
3087 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3088 (libm-sysdep_routines): Add s_log* objects.
3089 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
3090 CFLAGS-s_logb-power7.c): New fule.
3091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
3092 to ...
3093 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
3094 ... here.
3095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
3096 to ...
3097 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
3098 ... here.
3099 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
3100 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
3101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
3102 to ...
3103 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
3104 ... here.
3105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
3106 to ...
3107 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
3108 ... here.
3109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
3110 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
3111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
3112 to ...
3113 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
3114 ... here.
3115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
3116 to ...
3117 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
3118 ... here.
3119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
3120 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
3121 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
3122 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
3123 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
3124 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
3125
3126 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
3127 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
3128 powerpc32 integer 0 converting to -0.
3129
3130 * benchtests/Makefile (bench-math): Add logb.
3131 * benchtests/logb-inputs: New file.
3132 * benchtests/logbf-inputs: New file.
3133
3134 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
3135 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
3136 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
3137 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
3138 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
3139 Adjust include.
3140 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
3141 Likewise.
3142 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
3143 sysdep_routines): Add s_modf* objects.
3144 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
3145 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
3146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
3147 to ...
3148 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
3149 ... here.
3150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
3151 to ...
3152 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
3153 ... here.
3154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
3155 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
3156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
3157 to ...
3158 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
3159 ... here.
3160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
3161 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
3162 ... here.
3163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
3164 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
3165
3166 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
3167 twoM500, twoM600, two60factor, pdnum): Remove.
3168 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
3169 (__ieee754_hypot): Replace static variables with inline definition,
3170 remove ununsed branches.
3171 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3172 (libm-sysdep_routines): Remove e_hypot-* objects.
3173 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
3174 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
3175 file.
3176 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
3177 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
3178 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
3179 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
3180 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
3181
3182 * benchtests/Makefile (bench-math): Add hypot.
3183 * benchtests/hypot-inputs: New file.
3184
3185 2019-07-08 Vincent Chen <vincentc@andestech.com>
3186
3187 * sysdeps/unix/sysv/linux/dl-vdso.h
3188 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
3189
3190 2019-07-04 Andreas Schwab <schwab@suse.de>
3191
3192 [BZ #24484]
3193 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
3194
3195 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3196
3197 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
3198 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
3199 * sysdeps/aarch64/sys/ifunc.h: New file.
3200 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
3201 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
3202
3203 2019-07-01 Florian Weimer <fweimer@redhat.com>
3204
3205 [BZ #20188]
3206 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
3207 Replace __vfork with __libpthread_version_placeholder for
3208 GLIBC_2.1.2.
3209 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
3210 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
3211 libpthread-compat.
3212 * nptl/pt-vfork.c: Remove file.
3213 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
3214 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
3215 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3216 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
3217 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
3218 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
3219 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
3220 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
3221 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
3222 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
3223 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
3224 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
3225 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
3226 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
3227 Remove vfork, __vfork.
3228 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
3229 Remove vfork.
3230 (GLIBC_2.1.2): Replace __vfork with
3231 __libpthread_version_placeholder.
3232 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
3233 Remove vfork, __vfork.
3234 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
3235 Likewise.
3236 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
3237 Remove vfork.
3238 (GLIBC_2.1.2): Replace __vfork with
3239 __libpthread_version_placeholder.
3240 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
3241 Remove vfork.
3242 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
3243 (GLIBC_2.4): Remove vfork, __vfork.
3244 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
3245 (GLIBC_2.0): Remove vfork.
3246 (GLIBC_2.1.2): Replace __vfork with
3247 __libpthread_version_placeholder.
3248 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
3249 (GLIBC_2.18): Remove vfork, __vfork.
3250 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
3251 (GLIBC_2.0): Remove vfork.
3252 (GLIBC_2.2): Remove __vfork.
3253 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
3254 (GLIBC_2.2): Remove vfork, __vfork.
3255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
3256 (GLIBC_2.0): Remove vfork.
3257 (GLIBC_2.1.2): Replace __vfork with
3258 __libpthread_version_placeholder.
3259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
3260 (GLIBC_2.3): Remove vfork, __vfork.
3261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
3262 (GLIBC_2.17): Likewise.
3263 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
3264 (GLIBC_2.0): Remove vfork.
3265 (GLIBC_2.1.2): Replace __vfork with
3266 __libpthread_version_placeholder.
3267 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
3268 (GLIBC_2.2): Remove vfork, __vfork.
3269 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
3270 Likewise.
3271 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
3272 (GLIBC_2.0): Remove vfork.
3273 (GLIBC_2.1.2): Replace __vfork with
3274 __libpthread_version_placeholder.
3275 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
3276 (GLIBC_2.2): Remove vfork, __vfork.
3277 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
3278 (GLIBC_2.2.5): Likewise.
3279 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
3280 (GLIBC_2.16): Likewise.
3281 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
3282 Remove __errno_location.
3283
3284 2019-07-02 Florian Weimer <fweimer@redhat.com>
3285
3286 [BZ #24757]
3287 * malloc/Depend: Add nptl and htl, due to potential indirect
3288 libpthread dependency of memusagestat.
3289
3290 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
3291
3292 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
3293 warning.
3294
3295 2019-07-01 Florian Weimer <fweimer@redhat.com>
3296
3297 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
3298 variant for arm-linux-gnueabi.
3299
3300 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
3301
3302 [BZ #24259]
3303 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
3304 relocation.
3305 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
3306 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
3307 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
3308 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
3309 and tst-cet-legacy-mod-6c.
3310 (CFLAGS-tst-cet-legacy-5a.c): New.
3311 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
3312 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
3313 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
3314 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
3315 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
3316 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
3317 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
3318 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
3319 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
3320 ($(objpfx)tst-cet-legacy-5a): Likewise.
3321 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
3322 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
3323 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
3324 ($(objpfx)tst-cet-legacy-5b): Likewise.
3325 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
3326 (tst-cet-legacy-5b-ENV): Likewise.
3327 ($(objpfx)tst-cet-legacy-6a): Likewise.
3328 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
3329 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
3330 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
3331 ($(objpfx)tst-cet-legacy-6b): Likewise.
3332 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
3333 (tst-cet-legacy-6b-ENV): Likewise.
3334 * sysdeps/x86/tst-cet-legacy-5.c: New file.
3335 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
3336 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
3337 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
3338 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
3339 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
3340 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
3341 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
3342 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
3343 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
3344 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
3345 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
3346 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
3347 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
3348
3349 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
3350
3351 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
3352 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
3353 (__fegetround_ISA300) New.
3354 (__fegetround_ISA2) New.
3355 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
3356 (_FPU_MFFS): Move implementation...
3357 (_FPU_GETCW): Here.
3358 (_FPU_MFFSL): Move implementation....
3359 (_FPU_GET_RC_ISA300): Here. New.
3360 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
3361 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
3362 (fegetenv_status): New.
3363 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
3364 instead of fegetenv_register().
3365 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
3366
3367 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
3368
3369 * benchtests/bench-math-inlines.c: Increase iterations.
3370 * benchtests/bench-memcmp.c: Likewise.
3371 * benchtests/bench-rawmemchr.c: Likewise.
3372 * benchtests/bench-strcmp.c: Likewise.
3373 * benchtests/bench-strcpy_chk.c: Likewise.
3374 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
3375 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
3376 (INNER_LOOP_ITERS_SMALL): Likewise.
3377 * benchtests/bench-strncat.c: Increase iterations.
3378 * benchtests/bench-strncmp.c: Increase iterations.
3379 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
3380 * benchtests/bench-strrchr.c: Increase iterations.
3381 * benchtests/bench-strstr.c: Keep iterations unchanged.
3382 * benchtests/bench-strtod.c: Increase iterations.
3383
3384 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3385
3386 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
3387 with INNER_LOOP_ITERS_LARGE.
3388 * benchtests/bench-memchr.c: Likewise.
3389 * benchtests/bench-rawmemchr.c: Likewise.
3390 * benchtests/bench-strcat.c: Likewise.
3391 * benchtests/bench-strchr.c: Likewise.
3392 * benchtests/bench-string.h: Likewise.
3393 * benchtests/bench-strlen.c: Likewise.
3394 * benchtests/bench-strncpy.c: Likewise.
3395 * benchtests/bench-strnlen.c: Likewise.
3396
3397 2019-06-28 Florian Weimer <fweimer@redhat.com>
3398
3399 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
3400 Use mmap instead of malloc. malloc with M_PERTURB writes to the
3401 entire allocated memory range.
3402
3403 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
3404
3405 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
3406 (prepare_version_base): New helper inline function.
3407 (prepare_version): New macro replacing PREPARE_VERSION.
3408 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
3409
3410 2019-06-28 Florian Weimer <fweimer@redhat.com>
3411
3412 [BZ #24741]
3413 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
3414 mismatch in a versioned symbol reference.
3415 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
3416 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
3417 tst-sonamemove-dlopen.
3418 (module-names): Add tst-sonamemove-linkmod1,
3419 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
3420 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
3421 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
3422 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
3423 (tst-sonamemove-runmod1.so): Link against
3424 tst-sonamemove-runmod2.so.
3425 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
3426 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
3427 tst-sonamemove-runmod2.so.
3428 (tst-sonamemove-dlopen): Link with -ldl.
3429 (tst-sonamemove-dlopen.out): Likewise.
3430 * elf/tst-sonamemove-link.c: New file.
3431 * elf/tst-sonamemove-dlopen.c: Likewise.
3432 * elf/tst-sonamemove-linkmod1.c: Likewise.
3433 * elf/tst-sonamemove-linkmod1.map: Likewise.
3434 * elf/tst-sonamemove-runmod1.c: Likewise.
3435 * elf/tst-sonamemove-runmod1.map: Likewise.
3436 * elf/tst-sonamemove-runmod2.c: Likewise.
3437 * elf/tst-sonamemove-runmod2.map: Likewise.
3438
3439 2019-06-28 Florian Weimer <fweimer@redhat.com>
3440
3441 * support/xdlfcn.h (xdlvsym): Declare function.
3442 * support/xdlfcn.c (xdlvsym): Define funciton.
3443
3444 2019-06-28 Florian Weimer <fweimer@redhat.com>
3445
3446 [BZ #24744]
3447 io: Remove the copy_file_range emulation.
3448 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
3449 not define and call copy_file_range_compat.
3450 * io/Makefile (tests-static, tests-internal): Do not add
3451 tst-copy_file_range-compat.
3452 * io/copy_file_range-compat.c: Remove file.
3453 * io/copy_file_range.c (copy_file_range): Define as stub.
3454 * io/tst-copy_file_range-compat.c: Remove file.
3455 * io/tst-copy_file_range.c (xdevfile): Remove variable.
3456 (typical_sizes): Update comment. Remove 16K sizes.
3457 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
3458 Remove variables.
3459 (find_maximum_offset, pipe_as_source, pipe_as_destination)
3460 (delayed_write_failure_beginning, delayed_write_failure_end)
3461 (cross_device_failure, enospc_failure_1, enospc_failure)
3462 (oappend_failure): Remove functions.
3463 (tests): Adjust test case list.
3464 (do_test): Remove file system search code. Check for ENOSYS from
3465 copy_file_range. Do not free xdevfile.
3466 * manual/llio.texi (Copying File Data): Document ENOSYS error from
3467 copy_file_range. Do not document the EXDEV error, which future
3468 kernels may not report. Update the wording to reflect that
3469 further errors are possible.
3470 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3471 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
3472 not undefine.
3473 * sysdeps/unix/sysv/linux/arm/kernel-features.h
3474 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
3475 Likewise.
3476 * sysdeps/unix/sysv/linux/kernel-features.h
3477 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
3478 Remove definition.
3479 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3480 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
3481 not undefine.
3482 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3483 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
3484 Likewise.
3485
3486 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3487
3488 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
3489 used as a mask for the mode argument of __vfprintf_internal.
3490 * stdio-common/printf-parse.h (printf_arg): New union member:
3491 pa_float128.
3492 * stdio-common/vfprintf-internal.c
3493 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
3494 (PARSE_FLOAT_VA_ARG): Likewise.
3495 (SETUP_FLOAT128_INFO): Likewise.
3496 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
3497 SETUP_FLOAT128_INFO.
3498 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
3499 floating-point value to the new union member, pa_float128.
3500 (printf_positional): Zero-initialize args_value[cnt] with memset.
3501
3502 2019-06-27 Florian Weimer <fweimer@redhat.com>
3503
3504 [BZ #24740]
3505 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
3506 buffer size if necessary.
3507 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3508 Likewise.
3509 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
3510 New function.
3511 (large_buffer_checks): Likewise.
3512 (do_test): Call large_buffer_checks.
3513
3514 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
3515
3516 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
3517 * sysdeps/x86/dl-lookupcfg.h: Here.
3518 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
3519
3520 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3521
3522 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3523 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
3524 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
3525 file.
3526 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
3527 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
3528 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
3529 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
3530 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
3531
3532 * sysdeps/powerpc/powerpc32/fpu/Makefile
3533 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
3534 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
3535 and fctidz optimization.
3536 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
3537 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
3538 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3539 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
3540 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
3541 CFLAGS-s_lround-power5+.c): New rule.
3542 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
3543 New file.
3544 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
3545 Likewise.
3546 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
3547 Likewise.
3548 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
3549 Likewise.
3550 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
3551 Likewise.
3552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
3553 Remove file.
3554 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
3555 Likewise.
3556 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
3557 Likewise.
3558 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
3559 Likewise.
3560 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
3561 Likewise.
3562 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3563 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
3564 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3565 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3566 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3567 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3568 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3569
3570 2019-06-26 Vincent Chen <vincentc@andestech.com>
3571
3572 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
3573 specific system calls, fp_udfiex_crtl and udftrap.
3574
3575 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3576
3577 * nptl/tst-eintr1.c (tf1): Add return statement.
3578 (do_test): Remove unused th variable.
3579
3580 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3581
3582 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
3583 Return error if get_character fails.
3584
3585 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
3586
3587 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3588
3589 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
3590
3591 [BZ #24652]
3592 * localedata/locales/szl_PL (day): Use the correct Unicode
3593 sequences instead of non-ASCII characters.
3594
3595 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
3596
3597 [BZ #24652]
3598 * localedata/locales/szl_PL (abday): Spelling corrections.
3599 (day): Likewise.
3600 (abmon): Likewise.
3601 (mon): Rename to...
3602 (alt_mon): This, then apply spelling corrections.
3603 (mon): New entry, month names in the genitive case.
3604
3605 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
3606
3607 [BZ #23831]
3608 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
3609 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
3610 (thousands_sep): Likewise.
3611 (grouping): Set to 3;3.
3612
3613 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
3614
3615 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3616 PREPARE_VERSION_KNOWN.
3617 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3618 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3619 define.
3620 (VDSO_HASH_LINUX_2_6_39): Likewise.
3621 (VDSO_NAME_LINUX_4_9): Likewise.
3622 (VDSO_HASH_LINUX_4_9): Likewise.
3623 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3624 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3625 (_libc_vdso_platform_setup): Likewise.
3626 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3627 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3628 Likewise.
3629 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3630 Likewise.
3631
3632 2019-06-20 Mike Crowe <mac@mcrowe.com>
3633
3634 * nptl/eintr.c: Use libsupport.
3635 * nptl/tst-eintr1.c: Likewise.
3636 * nptl/tst-eintr2.c: Likewise.
3637 * nptl/tst-eintr3.c: Likewise.
3638 * nptl/tst-eintr4.c: Likewise.
3639 * nptl/tst-eintr5.c: Likewise.
3640 * nptl/tst-mutex-errorcheck.c: Likewise.
3641 * nptl/tst-mutex5.c: Likewise.
3642
3643 * support/test-driver.h: Add verbose_printf macro.
3644
3645 * support/xtime.h: Add xclock_now() helper function.
3646
3647 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3648 Florian Weimer <fweimer@redhat.com>
3649
3650 [BZ #24228]
3651 * libio/genops.c (_IO_unbuffer_all)
3652 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3653 buffers and access _IO_FILE_complete members of legacy libio streams.
3654 * libio/tst-bz24228.c: New file.
3655 * libio/tst-bz24228.map: Likewise.
3656 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3657 [build-shared] (generated): Add tst-bz24228.mtrace and
3658 tst-bz24228.check.
3659 [run-built-tests && build-shared] (tests-special): Add
3660 $(objpfx)tst-bz24228-mem.out.
3661 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3662 ($(objpfx)tst-bz24228-mem.out): New rule.
3663
3664 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3665
3666 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3667 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3668 (__FPU_MFFSL): Likewise.
3669 (_FPU_SETCW): Likewise.
3670
3671 2019-06-19 Stan Shebs <stanshebs@google.com>
3672 Raoni Fassina Firmino <raoni@linux.ibm.com>
3673
3674 [BZ #24640]
3675 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3676 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3677 static-linking version.
3678 * sysdeps/unix/sysv/linux/powerpc/Makefile
3679 (tests-static): Add test-gettimebasefreq-static.
3680 (tests): Likewise.
3681 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3682 New file.
3683
3684 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
3685
3686 [BZ #24614]
3687 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3688 between the currency symbol and the minus sign).
3689 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3690
3691 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3692
3693 [BZ #24556]
3694 * string/test-strcasestr.c (check_result): Add NULL check.
3695 * nss/tst-field.c (check_rewrite): Likewise.
3696 * benchtests/bench-strstr.c (do_one_test): Likewise.
3697 * string/test-strstr.c (check_result): Likewise.
3698 * argp/argp-test.c (popt): Increase size of buf to 12.
3699 * benchtests/bench-malloc-simple.c (bench):
3700 Do not initialize tests array out of bounds.
3701
3702 2019-06-19 Florian Weimer <fweimer@redhat.com>
3703
3704 [BZ #24166]
3705 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3706 dls_serpath field.
3707
3708 2019-06-18 Florian Weimer <fweimer@redhat.com>
3709
3710 [BZ #24323]
3711 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3712 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3713 fail when called from dlopen.
3714 * elf/Makefile [have-fpie && build-shared] (tests): Add
3715 tst-dlopen-pie.
3716 (tst-dlopen-pie): Link with -ldl.
3717 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3718 * elf/tst-dlopen-pie.c (do_test): New file.
3719
3720 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
3721
3722 [BZ #24614]
3723 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3724 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3725 between the currency symbol and the minus sign).
3726 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3727 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3728
3729 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3730
3731 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3732 sysdep-rtld-routines): Remove rules.
3733 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3734 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3735 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3736 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3737 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3738 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3739 vDSO path for SHARED.
3740 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3741 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3742 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3743 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3744 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3745 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3746
3747 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3748 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3749 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3750 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3751 CFLAGS-s_llround-power5+.c): New rule.
3752 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3753 New file.
3754 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3755 Likewise.
3756 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3757 Likewise.
3758 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3759 Likewise.
3760 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3761 Likewise.
3762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3763 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3765 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3767 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3768 * sysdeps/powerpc/powerpc64/fpu/Makefile
3769 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3770 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3771 (libm-sysdep_routines): Remove s_llround-* objects.
3772 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3773 file.
3774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3775 Likewise.
3776 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3777 Likewise.
3778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3779 Likewise.
3780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3781 Likewise.
3782 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3783 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3784 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3785 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3786 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3787 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3788 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3789 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3790 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3791 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3792 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3793 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3794 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3795 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3796
3797 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3798 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3799 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3800 * sysdeps/powerpc/powerpc32/fpu/Makefile
3801 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3802 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3803 optimization.
3804 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3805 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3806 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3807 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3808 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3809 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3810 CFLAGS-s_lrint-ppc32.c): New rule.
3811 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3812 Remove file.
3813 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3814 Likewise.
3815 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3816 Likewise.
3817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3818 Likewise.
3819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3820 Likewise.
3821 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3822 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3823 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3824 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3825 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3826 New file.
3827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3828 Likewise.
3829 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3830 Likewise.
3831 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3832 Likewise.
3833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3834 Likewise.
3835
3836 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3837 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3838 s_llrint-ppc64.
3839 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3840 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3841 file.
3842 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3843 Likewise.
3844 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3845 Likewise.
3846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3847 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3849 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3851 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3852 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3853 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3854 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3855 (libm-sysdep_routines): Remove s_llrint-* objects.
3856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3857 file.
3858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3859 Likewise.
3860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3861 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3862 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3863 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3864 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3865 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3866 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3867 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3868 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3869 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3870
3871 2019-06-14 Florian Weimer <fweimer@redhat.com>
3872
3873 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3874 argument to __glibc_has_include to inhibit macro expansion.
3875
3876 2019-06-14 Florian Weimer <fweimer@redhat.com>
3877
3878 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3879 function-like macro, so that __has_include can inhibit expansion
3880 of its argument.
3881
3882 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3883
3884 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3885 New macro.
3886
3887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3888 Allow memset in libc.so.
3889
3890 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3891
3892 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3893 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3894 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3895 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3896 symbols at load time.
3897 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3898
3899 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3900
3901 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3902 (DT_AARCH64_VARIANT_PCS): Define.
3903
3904 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3905
3906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3907 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3908 objects.
3909 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3910 Remove file.
3911 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3912 Likewise.
3913 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3914 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3915 Likewise.
3916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3917 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3918 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3919 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3920 Remove s_finite* objects.
3921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3922 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3923 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3924 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3925 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3926 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3927 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3928 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3929 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3930 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3931
3932 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3933 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3934
3935 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3936 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3937 objects.
3938 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3939 Remove file.
3940 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3941 Likewise.
3942 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3943 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3944 Likewise.
3945 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3946 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3947 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3948 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3949 Remove s_isinf* and s_isinf* objects.
3950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3952 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3954 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3955 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3956 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3957 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3958 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3959 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3960
3961 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3962 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3963
3964 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3965 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3966 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3967 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3968 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3969 s_isnanf-* objects.
3970 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3971 Remove file
3972 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3973 Likewise.
3974 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3975 Likewise.
3976 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3977 Likewise.
3978 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3979 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3980 Likewise.
3981 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3982 Likewise.
3983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3984 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3985 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3986 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3987 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3988 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3989 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3990 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3991 Remove s_isnan-* and s_isnanf-* objects.
3992 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3995 Likewise.
3996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
4000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
4001 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
4002 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
4003 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
4004 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
4005 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
4006 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
4007 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
4008 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
4009
4010 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
4011 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
4012
4013 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
4014 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
4015 CFLAGS-bench-isfinite.c): New rule.
4016 * benchtests/isnan-input: New file.
4017 * benchtests/isinf-input: New file.
4018 * benchtests/isfinite-input: New file.
4019
4020 * sysdeps/powerpc/fpu/s_copysign.c: New file.
4021 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
4022 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
4023 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
4024 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4025 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
4026 s_copysign-ppc32.
4027 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
4028 Remove file.
4029 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
4030 Likewise.
4031 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
4032 Likewise.
4033 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
4034 Likewise.
4035 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
4036 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
4037 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
4038 Remove s_copysign-power6 s_copysign-ppc64.
4039 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
4040 Remove file.
4041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
4042 Likewise.
4043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
4044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
4045 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
4046 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
4047 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4048 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
4049
4050 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
4051 round_to_integer_float, round_mode): Add RINT handling.
4052 (reset_fenv_mode): New symbol.
4053 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
4054 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
4055 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
4056 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
4057 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
4058 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4059
4060 2019-06-12 Florian Weimer <fweimer@redhat.com>
4061
4062 [BZ #24632]
4063 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
4064 * libio/freopen.c (freopen): Use it.
4065
4066 2019-06-12 Florian Weimer <fweimer@redhat.com>
4067
4068 Linux: Deprecate sysctl.
4069 * include/sysctl.h (__sysctl): Remove declaration.
4070 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
4071 check.
4072 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
4073 (sysctl): Add deprecation attribute.
4074 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
4075 directly, to avoid the deprecation warning. Do not include
4076 <string.h>.
4077 (__sysctl): Remove hidden alias.
4078
4079 2019-06-12 Florian Weimer <fweimer@redhat.com>
4080
4081 Linux: Use kernel headers for statx definitions if available.
4082 * include/bits/statx-generic.h: New file.
4083 * include/bits/types/struct_statx.h: Likewise.
4084 * include/bits/types/struct_statx_timestamp.h: Likewise.
4085 * io/Makefile (headers): Add bits/statx-generic.h.
4086 * io/bits/statx-generic.h: New file. Partly copied from
4087 io/bits/statx.h.
4088 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
4089 define original_statx.
4090 * io/bits/types/struct_statx.h: Likewise.
4091 * io/bits/types/struct_statx_timestamp.h: Likewise.
4092 (statx_generic): Use original_statx.
4093 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
4094 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
4095
4096 2019-06-12 Florian Weimer <fweimer@redhat.com>
4097
4098 * misc/sys/cdefs.h (__glibc_has_include): Define.
4099
4100 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
4101
4102 * string/memmem.c (__memmem): Rewrite to improve performance.
4103
4104 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
4105
4106 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
4107 warning.
4108 (two_way_long_needle): Block inlining.
4109 * string/strstr.c (strstr2): Add new function.
4110 (strstr3): Likewise.
4111 (STRSTR): Completely rewrite strstr to improve performance.
4112
4113 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
4114
4115 * benchtests/bench-strstr.c (test_hard_needle): New function.
4116
4117 2019-06-10 Joseph Myers <joseph@codesourcery.com>
4118
4119 * malloc/tst-calloc.c: Include <libc-diag.h>.
4120 (null_test): Ignore -Wunused-result around calls to calloc.
4121 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
4122 (do_test): Ignore -Wunused-result around call to malloc.
4123
4124 2019-06-07 Florian Weimer <fweimer@redhat.com>
4125
4126 Linux: Add getdents64 system call.
4127 * include/dirnent.h (getdents): Add comment and change buffer
4128 argument type to void *.
4129 (getdents64): Likewise. Add hidden prototype.
4130 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
4131 getdents64.
4132 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
4133 Add tst-getdents64.
4134 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
4135 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
4136 argument type to void *.
4137 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
4138 Add hidden definition and getdents64 alias.
4139 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
4140 Likewise.
4141 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
4142 * manual/filesys.texi (Accessing Directories): Add Low-level
4143 Directory Access node reference.
4144 (Opening a Directory): Cross-reference it.
4145 (Low-level Directory Access): New node.
4146 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4147 getdents64.
4148 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4149 Likewise.
4150 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4151 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
4152 Likewise.
4153 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
4154 Likewise.
4155 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
4156 Likewise.
4157 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
4158 Likewise.
4159 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4160 Likewise.
4161 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4162 Likewise.
4163 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4164 Likewise.
4165 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4166 (GLIBC_2.30): Likewise.
4167 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4168 (GLIBC_2.30): Likewise.
4169 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4170 (GLIBC_2.30): Likewise.
4171 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4172 (GLIBC_2.30): Likewise.
4173 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4174 Likewise.
4175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4176 (GLIBC_2.30): Likewise.
4177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4178 (GLIBC_2.30): Likewise.
4179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4180 (GLIBC_2.30): Likewise.
4181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4182 (GLIBC_2.30): Likewise.
4183 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4184 Likewise.
4185 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4186 Likewise.
4187 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4188 Likewise.
4189 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4190 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4191 Likewise.
4192 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4193 Likewise.
4194 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4195 Likewise.
4196 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4197 Likewise.
4198
4199 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
4200
4201 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
4202 (__FPU_MFFS): New.
4203 (__FPU_MFFSL): New.
4204 (_FPU_GET_RC): New.
4205 (_FPU_GETCW): Use __FPU_MFFS().
4206 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
4207
4208 2019-06-06 Florian Weimer <fweimer@redhat.com>
4209
4210 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
4211 internal GCC preprocessor identifier __has_include__.
4212
4213 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
4214
4215 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
4216 with call to equivalent function.
4217
4218 2019-06-04 Florian Weimer <fweimer@redhat.com>
4219
4220 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
4221 (do_release_shlib): Adjust for __twalk_r.
4222 (__gconv_release_shlib): Call __twalk_r.
4223
4224 2019-06-04 Andreas Schwab <schwab@suse.de>
4225
4226 [BZ #18830]
4227 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
4228 no irreversible characters occurred.
4229 * iconv/gconv_simple.c (internal_ucs4_loop)
4230 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
4231 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
4232 (ucs4_internal_loop_single, internal_ucs4le_loop)
4233 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
4234 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
4235 (ucs4le_internal_loop_single): Add const to outend.
4236 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
4237 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
4238 * iconv/Makefile (tests): Add tst-iconv7.
4239 * iconv/tst-iconv7.c: New file.
4240
4241 2019-06-03 Joseph Myers <joseph@codesourcery.com>
4242
4243 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
4244
4245 2019-06-01 Florian Weimer <fweimer@redhat.com>
4246
4247 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
4248 * sysdeps/unix/sysv/linux/arm/Makefile
4249 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
4250 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
4251 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
4252 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
4253 compatibility symbols.
4254
4255 2019-05-31 Florian Weimer <fweimer@redhat.com>
4256
4257 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
4258 system calls for the arm architecture: breakpoint, get_tls,
4259 set_tls, usr26, usr32.
4260
4261 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
4262
4263 * sysdeps/powerpc/Makefile
4264 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
4265 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
4266 Declare '.machine power7' to get support for ldbrx.
4267 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
4268 directive based on the directory of the file.
4269 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
4270 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
4271 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
4272 '.machine' directive.
4273 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
4274 (VADDUQM_V7_V8): Remove.
4275 (__STRCASECMP): Replace macros with actual instructions.
4276 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
4277 '.machine' directive.
4278 (VCLZD_V8_v7): Remove.
4279 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
4280
4281 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4282
4283 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
4284 Remove file.
4285 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
4286
4287 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4288
4289 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4290 NEARBYINT handling.
4291 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
4292 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
4293 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
4294 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
4295 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
4296 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4297
4298 2019-05-28 mansayk <6688000@gmail.com>
4299
4300 [BZ #24370]
4301 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
4302
4303 2019-05-28 mansayk <6688000@gmail.com>
4304
4305 [BZ #24369]
4306 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
4307 (abmon): Likewise, but remove the trailing dots.
4308
4309 2019-05-28 Joseph Myers <joseph@codesourcery.com>
4310
4311 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
4312
4313 2019-05-27 Florian Weimer <fweimer@redhat.com>
4314
4315 * nptl/nptl-init.c: Add comment.
4316
4317 2019-05-24 Florian Weimer <fweimer@redhat.com>
4318
4319 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
4320 struct in_addr/struct in6_addr alignment.
4321
4322 2019-05-23 Joseph Myers <joseph@codesourcery.com>
4323
4324 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4325 (F_SEAL_FUTURE_WRITE): New macro.
4326
4327 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
4328
4329 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
4330 * elf/tst-ldconfig-bad-aux-cache.c: New file.
4331 * elf/tst-ldconfig_aux-cache.root: New directory.
4332 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
4333 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
4334 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
4335
4336 2019-05-22 Zack Weinberg <zackw@panix.com>
4337
4338 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
4339 host type.
4340 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
4341 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
4342
4343 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
4344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
4345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
4346 Delete.
4347
4348 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
4349 Issue an #error if used with a compiler in SPE-float mode.
4350 * sysdeps/powerpc/powerpc32/__longjmp_common.S
4351 * sysdeps/powerpc/powerpc32/setjmp_common.S
4352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
4354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
4355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
4356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4358 Remove code to preserve SPE register state.
4359
4360 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
4361 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
4362 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
4363 Remove __SPE__ ifndefs.
4364
4365 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
4366
4367 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
4368 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
4369 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
4370 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
4371 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
4372 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
4373 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
4374 (INNER_LOOP_ITERS_MEDIUM): New define.
4375 (INNER_LOOP_ITERS_SMALL): New define.
4376 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
4377 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
4378 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
4379 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
4380 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
4381
4382 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4383
4384 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
4385 New define.
4386 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
4387 (SEMTIMEDOP_IPC_ARGS): Likewise.
4388
4389 2019-05-21 Florian Weimer <fweimer@redhat.com>
4390
4391 [BZ #24584]
4392 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
4393 before updating __counter field and release it afterwards. Add
4394 overflow check.
4395 * iconv/gconv.h (struct __gconv_step): Mention synchronization
4396 requirement for __counter member.
4397
4398 2019-05-21 Florian Weimer <fweimer@redhat.com>
4399
4400 [BZ #24583]
4401 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
4402 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
4403 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
4404 instead of __gconv_release_step.
4405 * libio/Makefile (tests): Add tst-wfile-gconv.
4406 (tests-container): Add tst-wfile-ascii.
4407 (tst-wfile-gconv-ENV): Enable mtrace.
4408 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
4409 (tests-special): Add tst-wfile-gconv-mem.out.
4410 (tst-wfile-gconv.out): Depend on locales.
4411 (tst-wfile-gconv-mem.out): Add mtrace rule.
4412 * libio/tst-wfile-ascii.c: New file.
4413 * libio/tst-wfile-gconv.c: Likewise.
4414
4415 2019-05-20 Florian Weimer <fweimer@redhat.com>
4416
4417 [BZ #24588]
4418 libio: Remove codecvt vtable.
4419 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
4420 __libio_codecvt.
4421 * libio/iofgetpos.c (_IO_new_fgetpos): Call
4422 __libio_codecvt_encoding.
4423 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
4424 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
4425 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
4426 * libio/iofwide.c (__libio_codecvt): Remove variable.
4427 (_IO_fwide): Do not copy __libio_codecvt.
4428 (__libio_codecvt_out): Rename from do_out and export.
4429 (do_unshift): Remove function.
4430 (__libio_codecvt_in): Rename from do_in and export.
4431 (__libio_codecvt_encoding): Rename from do_encoding and export.
4432 (do_always_noconv): Remove function.
4433 (__libio_codecvt_length): Rename from do_length and export.
4434 (do_max_length): Remove function.
4435 * libio/libio.h (enum __codecvt_result): Remove definition; moved
4436 to libioP.h.
4437 (struct _IO_codecvt): Remove fields __codecvt_destr,
4438 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
4439 __codecvt_do_encoding, __codecvt_do_always_noconv,
4440 __codecvt_do_length, __codecvt_do_max_length.
4441 * libio/libioP.h (enum __codecvt_result): Define; moved from
4442 libio.h.
4443 (__libio_codecvt_out, __libio_codecvt_in)
4444 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
4445 functions.
4446 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
4447 (_IO_wfile_underflow): Call __libio_codecvt_in.
4448 (_IO_wfile_underflow): Likewise.
4449 (_IO_wfile_underflow_mmap): Likewise.
4450 (_IO_wfile_sync): Call __libio_codecvt_encoding,
4451 __libio_codecvt_length.
4452 (adjust_wide_data): Call __libio_codecvt_encoding,
4453 __libio_codecvt_in.
4454 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
4455 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
4456 __libio_codecvt_length.
4457
4458 2019-05-20 Florian Weimer <fweimer@redhat.com>
4459
4460 * support/support.h (support_sbindir_prefix): Declare.
4461 (support_install_rootsbindir): Update comment.
4462 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
4463 * support/support_paths.c (support_sbindir_prefix): Define.
4464
4465 2019-05-20 Mike Crowe <mac@mcrowe.com>
4466
4467 * support/timespec.c: Add backslash to correct newline in failure
4468 message.
4469
4470 * support/timespec.h: Correct confusing comment.
4471
4472 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4473
4474 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
4475 define.
4476 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
4477 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
4478 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
4479 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
4480
4481 [BZ #24570]
4482 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
4483 usage.
4484
4485 2019-05-20 Joseph Myers <joseph@codesourcery.com>
4486
4487 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
4488 (NT_ARM_PACG_KEYS): Likewise.
4489
4490 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
4491
4492 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
4493 (tcache_put): Remove redundant assert.
4494 (tcache_get): Remove redundant asserts.
4495 (__libc_malloc): Check tcache count is not zero.
4496 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
4497
4498 2019-05-17 Florian Weimer <fweimer@redhat.com>
4499
4500 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
4501
4502 2019-05-16 Joseph Myers <joseph@codesourcery.com>
4503
4504 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4505 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
4506 0x050100].
4507 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
4508 Likewise.
4509 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4510 (__ASSUME_STATX): Likewise.
4511
4512 2019-05-16 Florian Weimer <fweimer@redhat.com>
4513
4514 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
4515 flags argument.
4516 (LINE_PARSER): Do not map IPv4 addresses.
4517 (internal_nis_gethostent_r): Remove flags argument. Adjust call
4518 to parse_line.
4519 (_nss_nis_gethostent_r): Always pass AF_INET to
4520 internal_nis_gethostent_r.
4521 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4522 to parse_line.
4523 (_nss_nis_gethostbyname2_r): Adjust call to
4524 internal_nis_gethostent_r.
4525 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
4526 call to internal_nis_gethostent_r.
4527 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
4528 from parse_line.
4529 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
4530 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4531 Remove flags argument. Do not map IPv4 addresses.
4532 (internal_nisplus_gethostent_r): Adjust call to
4533 _nss_nisplus_parse_hostent.
4534 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4535 to _nss_nisplus_parse_hostent.
4536 (_nss_nisplus_gethostbyname2_r): Adjust call to
4537 internal_gethostbyname2_r.
4538 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
4539 Adjust call to internal_gethostbyname2_r.
4540 (_nss_nisplus_gethostbyaddr_r): Adjust call to
4541 _nss_nisplus_parse_hostent.
4542 (_nss_nisplus_gethostbyname4_r): Adjust call to
4543 internal_gethostbyname2_r.
4544
4545 2019-05-16 Florian Weimer <fweimer@redhat.com>
4546
4547 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
4548 Remove flags.
4549 (LINE_PARSER): Remove address mapping.
4550 (EXTRA_ARGS_VALUE): Remove flags argument.
4551 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
4552 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
4553 gethostbyname3_multi.
4554 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
4555 _nss_files_gethostbyname3_r.
4556 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
4557
4558 2019-05-16 Florian Weimer <fweimer@redhat.com>
4559
4560 * support/support_test_compare_blob.c (report_blob): Report
4561 incorrect NULL blobs.
4562
4563 2019-05-15 Mark Wielaard <mark@klomp.org>
4564
4565 [BZ# 24476]
4566 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
4567 __libc_once_get (once) and static_buf == NULL.
4568 (__dlerror): Check we have a valid key, set result to static_buf
4569 otherwise.
4570
4571 2019-05-15 Andreas Schwab <schwab@suse.de>
4572
4573 [BZ #20568]
4574 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
4575 __codecvt_do_length.
4576 * libio/Makefile (tests): Add tst-wfile-sync.
4577 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
4578 * libio/tst-wfile-sync.c: New file.
4579 * libio/tst-wfile-sync.input: New file.
4580
4581 2019-05-15 Florian Weimer <fweimer@redhat.com>
4582
4583 nss: Turn __nss_database_lookup into a compatibility symbol.
4584 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
4585 __nss_database_lookup.
4586 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
4587 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
4588 __nss_database_lookup.
4589 (__nss_next): Move to …
4590 * nss/compat-lookup.c (nss_next): … here. Change it to fail
4591 unconditionally.
4592 (__nss_database_lookup): New function.
4593 * nss/Versions (GLIBC_2.0): Update comment.
4594 (GLIBC_PRIVATE): Export __nss_database_lookup2.
4595 * grp/initgroups.c (internal_getgrouplist): Call
4596 __nss_database_lookup2 instead of __nss_database_lookup.
4597 * nscd/aicache.c (addhstaiX): Likewise.
4598 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4599 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
4600 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
4601 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
4602 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
4603 Likewise.
4604 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
4605 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
4606 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4607
4608 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
4609
4610 * support/support.h (support_install_rootsbindir): New variable.
4611 * support/support_paths.c: Likewise.
4612 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
4613
4614 2019-05-15 Florian Weimer <fweimer@redhat.com>
4615
4616 * iconv/gconv.h (__gconv_transliterate): Move declaration …
4617 * iconv/gconv_int.h (__gconv_transliterate): … here.
4618 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4619 * iconv/skeleton.c: Likewise.
4620
4621 2019-05-14 Florian Weimer <fweimer@redhat.com>
4622
4623 Linux: Add the tgkill function.
4624 * bits/signal_ext.h: New file.
4625 * manual/signal.texi (Signaling Another Process): Document tgkill.
4626 * signal/Makefile (headers): Add bits/signal_ext.h.
4627 * signal/signal.h: Include <bits/signal_ext.h>.
4628 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4629 (tst-tgkill): Link with libpthread.
4630 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4631 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4632 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4633 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4634 tgkill.
4635 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4636 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4637 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4638 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4639 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4640 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4641 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4642 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4643 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4644 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4645 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4646 Likewise.
4647 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4648 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4649 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4651 Likewise.
4652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4653 Likewise.
4654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4655 Likewise.
4656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4657 Likewise.
4658 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4659 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4660 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4661 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4662 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4663 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4664 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4665 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4666
4667 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4668
4669 * manual/search.texi (Tree Search Function): Adjust twalk_r
4670 documentation.
4671
4672 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4673
4674 [BZ #24544]
4675 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4676 pre-defined value.
4677
4678 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4679 * support/support.h (support_bindir_prefix): New variable.
4680 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4681
4682 * config.make.in (bindir): New variable.
4683
4684 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4685 (lll_trylock): Call __lll_trylock.
4686 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4687 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4688 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4689 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4690 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4691 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4692 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4693 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4694 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4695 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4696 lowlevellock-futex.h.
4697
4698 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4699 initialization for LLL_LOCK_INITIALIZER different than 0.
4700 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4701 Assume LLL_LOCK_INITIALIZER being 0.
4702 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4703 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4704 Likewise.
4705 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4706 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4707
4708 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4709 Optimize futex call and add systemtap probe.
4710
4711 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4712 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4713 __libc_disable_asynccancel, __librt_enable_asynccancel,
4714 __libc_disable_asynccancel, __librt_enable_asynccancel,
4715 __librt_disable_asynccancel): Move to ...
4716 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4717 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4718 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4719 * sysdeps/generic/single-thread.h: New file.
4720 * sysdeps/unix/sysdep.h: Include single-thread.h.
4721 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4722 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4723
4724 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4725
4726 [BZ #24535]
4727 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4728 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4729 Unicode 12.1.0.
4730 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4731 * localedata/unicode-gen/PropList.txt: Likewise.
4732 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4733 * localedata/charmaps/UTF-8: Regenerate.
4734 * localedata/locales/i18n_ctype: Likewise.
4735 * localedata/locales/tr_TR: Likewise.
4736 * localedata/locales/translit_circle: Likewise.
4737 * localedata/locales/translit_cjk_compat: Likewise.
4738 * localedata/locales/translit_combining: Likewise.
4739 * localedata/locales/translit_compat: Likewise.
4740 * localedata/locales/translit_font: Likewise.
4741 * localedata/locales/translit_fraction: Likewise.
4742
4743 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4744
4745 [BZ #24531]
4746 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4747 (do_set_tcache_count): Only update if count is small enough.
4748 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4749
4750 2019-05-10 Florian Weimer <fweimer@redhat.com>
4751
4752 * nptl/sem_close.c (struct walk_closure): Define.
4753 (walker): Adjust for __twalk_r.
4754 (sem_close): Call __twalk_r.
4755
4756 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4757
4758 * support/timespec.c (test_timespec_before_impl,
4759 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4760 insted of long int.
4761
4762 2019-05-09 Mike Crowe <mac@mcrowe.com>
4763
4764 * nptl/tst-abstime.c: Use libsupport.
4765
4766 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4767 small bug where only tv.tv_usec was checked which could cause an
4768 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4769 than a second.
4770
4771 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4772 libsupport.
4773
4774 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4775 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4776
4777 * nptl/tst-cond11.c: Use libsupport.
4778
4779 * support/timespec.h: New file. Provide timespec helper functions
4780 along with macros in the style of those in check.h.
4781 * support/timespec.c: New file. Implement check functions declared
4782 in support/timespec.h.
4783 * support/timespec-add.c: New file from gnulib containing
4784 timespec_add implementation that handles overflow.
4785 * support/timespec-sub.c: New file from gnulib containing
4786 timespec_sub implementation that handles overflow.
4787 * support/README: Mention timespec.h.
4788
4789 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4790
4791 [BZ #24537]
4792 * nptl/Makefile: Move tst-eintr1 to xtests.
4793
4794 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4795
4796 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4797 TRUNC handling.
4798 (round_mode): Add definition for TRUNC.
4799 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4800 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4801 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4802 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4803 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4804 Likewise.
4805 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4806 Likewise.
4807 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4808 Likewise.
4809 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4810 Likewise.
4811 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4812 file.
4813 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4814 Likewise.
4815 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4816 Likewise.
4817 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4818 Likewise.
4819 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4820 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4821 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4822 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4823 s_truncf-power5+, and s_truncf-ppc64.
4824 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4825 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4826 file.
4827 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4829 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4830 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4831 file.
4832 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4833 Likewise.
4834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4835 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4836 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4837 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4838 s_truncf-power5+, and s_truncf-ppc64.
4839 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4840 file.
4841 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4842 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4843 Likewise.
4844 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4845 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4846 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4847 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4848 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4849
4850 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4851 ROUND handling.
4852 (round_mode): Add definition for ROUND.
4853 (round_to_integer_float): Likewise.
4854 * sysdeps/powerpc/fpu/s_round.c: New file.
4855 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4856 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4857 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4858 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4859 Likewise.
4860 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4861 Likewise.
4862 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4863 Likewise.
4864 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4865 Likewise.
4866 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4867 file.
4868 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4869 Likewise.
4870 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4871 Likewise.
4872 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4873 Likewise.
4874 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4875 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4876 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4877 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4878 s_roundf-power5+, and s_roundf-ppc64.
4879 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4880 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4881 file.
4882 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4883 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4884 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4885 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4886 file.
4887 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4888 Likewise.
4889 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4890 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4891 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4892 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4893 s_roundf-power5+, and s_roundf-ppc64.
4894 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4895 file.
4896 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4897 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4898 Likewise.
4899 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4900 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4901 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4902 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4903 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4904
4905 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4906 Add FLOOR option.
4907 (round_mode): Add definition for FLOOR.
4908 * sysdeps/powerpc/fpu/s_floor.c: New file.
4909 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4910 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4911 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4912 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4913 Remove file.
4914 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4915 Likewise
4916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4917 Likewise.
4918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4919 Likewise.
4920 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4921 New file.
4922 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4923 Likewise.
4924 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4925 Likewise.
4926 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4927 Likewise.
4928 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4929 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4930 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4931 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4932 s_floorf-power5+, and s_floorf-ppc64.
4933 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4934 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4935 file.
4936 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4938 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4939 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4940 file.
4941 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4942 Likewise.
4943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4944 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4945 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4946 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4947 s_floorf-power5+, and s_floorf-ppc64.
4948 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4949 file.
4950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4951 file.
4952 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4953 Likewise.
4954 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4955 Likewise.
4956 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4957 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4958 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4959 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4960
4961 2019-05-08 Mike Crowe <mac@mcrowe.com>
4962
4963 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4964 clock_gettime wrapper for use in tests that fails the test rather
4965 than returning failure.
4966
4967 * support/xtime.h: New file to declare xclock_gettime.
4968
4969 * support/Makefile: Add xclock_gettime.c.
4970
4971 * support/README: Mention xtime.h.
4972
4973 2019-05-08 Florian Weimer <fweimer@redhat.com>
4974
4975 malloc/tst-mallocfork2: Use process-shared barriers.
4976 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4977 (signal_count, sigusr1_sender_pid): Remove.
4978 (iterations): Define constant.
4979 (shared): New variable.
4980 (sigusr1_received): Update comment.
4981 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4982 (signal_sender): Optional use barriers to avoid sending signals
4983 during irrelevant times.
4984 (do_it): Initialize variable shared. Use xfork for error
4985 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4986 the iteration count, independent of signal delivery. Check for
4987 deadlocks in fork. Introduce barriers for reducing signal
4988 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4989 replaced by the barriers. Count signals during fork/free/malloc
4990 and report them.
4991 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4992
4993 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4994
4995 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4996 version to 5.1.
4997 (clock_adjtime64) New syscall.
4998 (clock_getres_time64) Likewise.
4999 (clock_gettime64) Likewise.
5000 (clock_nanosleep_time64) Likewise.
5001 (clock_settime64) Likewise.
5002 (futex_time64) Likewise.
5003 (io_pgetevents_time64) Likewise.
5004 (io_uring_enter) Likewise.
5005 (io_uring_register) Likewise.
5006 (io_uring_setup) Likewise.
5007 (mq_timedreceive_time64) Likewise.
5008 (mq_timedsend_time64) Likewise.
5009 (pidfd_send_signal) Likewise.
5010 (ppoll_time64) Likewise.
5011 (pselect6_time64) Likewise.
5012 (recvmmsg_time64) Likewise.
5013 (rt_sigtimedwait_time64) Likewise.
5014 (sched_rr_get_interval_time64) Likewise.
5015 (semtimedop_time64) Likewise.
5016 (timer_gettime64) Likewise.
5017 (timer_settime64) Likewise.
5018 (timerfd_gettime64) Likewise.
5019 (timerfd_settime64) Likewise.
5020 (utimensat_time64) Likewise.
5021
5022 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
5023 version to 9 branch.
5024
5025 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5026
5027 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
5028 __memmove_thunderx2 to the list of implementations
5029 * sysdeps/aarch64/multiarch/memmove.c: Likewise
5030 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
5031 (__memmove_thunderx2): Rewritten using SIMD ld/st
5032 (__memcpy_thunderx2): Fixed handling overlapping cases.
5033 Used ldp/stp instead of ldr/str if possible. Made loops
5034 tails branchless.
5035
5036 2019-05-03 Florian Weimer <fweimer@redhat.com>
5037
5038 * misc/tst-tsearch.c (walk_tree): Add more error checking.
5039
5040 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5041
5042 [BZ #24506]
5043 * elf/tst-pldd.c (in_str_list): New function.
5044 (do_test): Add default names for ld and libc as one option.
5045
5046 2019-05-02 Florian Weimer <fweimer@redhat.com>
5047
5048 misc: Add twalk_r function.
5049 * include/search.h (__twalk_r): Declare.
5050 * manual/examples/twalk.c: New file.
5051 * manual/search.texi (Tree Search Function): Document twalk_r.
5052 * misc/Versions (2.30): Export twalk_r.
5053 (GLIBC_PRIVATE): Export __twalk_r.
5054 * misc/search.h [__USE_GNU] (twalk_r): Declare.
5055 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
5056 (twalk_r): Add weak alias.
5057 * misc/tst-tsearch.c (struct walk_trace_element): Define.
5058 (walk_trace): New variable.
5059 (struct twalk_with_twalk_r_closure): Define.
5060 (twalk_with_twalk_r_action): New function.
5061 (twalk_with_twalk_r): Likewise.
5062 (walk_action): Call walk_trace_add.
5063 (walk_tree_with): Rename from walk_tree. Add walk argument.
5064 (walk_tree): New function.
5065 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
5066 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
5067 Likewise.
5068 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
5069 Likewise.
5070 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
5071 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
5072 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
5073 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
5074 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
5075 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
5076 Likewise.
5077 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
5078 Likewise.
5079 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
5080 Likewise.
5081 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5082 (GLIBC_2.30): Likewise.
5083 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5084 (GLIBC_2.30): Likewise.
5085 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5086 (GLIBC_2.30): Likewise.
5087 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5088 (GLIBC_2.30): Likewise.
5089 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
5090 Likewise.
5091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5092 (GLIBC_2.30): Likewise.
5093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5094 (GLIBC_2.30): Likewise.
5095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
5096 (GLIBC_2.30): Likewise.
5097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
5098 (GLIBC_2.30): Likewise.
5099 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
5100 Likewise.
5101 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
5102 Likewise.
5103 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
5104 Likewise.
5105 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
5106 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
5107 Likewise.
5108 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
5109 Likewise.
5110 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
5111 Likewise.
5112 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
5113 Likewise.
5114
5115 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
5116
5117 Make mktime etc. compatible with __time64_t
5118 Keep these functions compatible with Gnulib while adding
5119 __time64_t support. The basic idea is to move private API
5120 declarations from include/time.h to time/mktime-internal.h, since
5121 the former file cannot easily be shared with Gnulib whereas the
5122 latter can.
5123 Also, do some other minor cleanup while in the neighborhood.
5124 * include/time.h: Include stdbool.h, time/mktime-internal.h.
5125 (__mktime_internal): Move this prototype to time/mktime-internal.h,
5126 since Gnulib needs it.
5127 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
5128 Move these macros to time/mktime-internal.h, since Gnulib needs them.
5129 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
5130 (in_time_t_range): New static function.
5131 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
5132 so that glibc users are not tempted to use __time64_t.
5133 * time/mktime-internal.h: Rewrite so that it does both glibc
5134 and Gnulib work. Include time.h if not _LIBC.
5135 (mktime_offset_t) [!_LIBC]: Define for gnulib.
5136 (__time64_t): New type or macro, moved here from
5137 posix/bits/types.h.
5138 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
5139 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
5140 from include/time.h.
5141 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
5142 New macros, taken from GNulib.
5143 (__mktime_internal): New prototype, moved here from include/time.h.
5144 * time/mktime.c (mktime_min, mktime_max, convert_time)
5145 (ranged_convert, __mktime_internal, __mktime64):
5146 * time/timegm.c (__timegm64):
5147 Use __time64_t, not time_t.
5148 * time/mktime.c: Stop worrying about whether time_t is floating-point.
5149 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
5150 Rename from mktime.
5151 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
5152 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
5153 for libc_hidden_def.
5154 Include errno.h.
5155 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
5156 Rename from timegm.
5157 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
5158
5159 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
5160
5161 [BZ #19444]
5162 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
5163 from `-Wmaybe-uninitialized'.
5164 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
5165
5166 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5167
5168 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
5169 function.
5170 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
5171 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
5172 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
5173 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
5174 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5175 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5176 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
5177 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
5178 Remove file.
5179 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
5180 Likewise.
5181 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
5182 Likewise.
5183 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
5184 Likewise.
5185 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
5186 New file.
5187 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
5188 Likewise.
5189 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
5190 Likewise.
5191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
5192 Likewise.
5193 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
5194 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
5195 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
5196 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
5197 Likewise.
5198 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
5199 Likewise.
5200 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
5201 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
5202 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
5203 file.
5204 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
5205 Likewise.
5206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
5207 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
5208 * here.
5209 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
5210 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
5211 s_ceilf-power5+, and s_ceilf-ppc64.
5212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
5213 file.
5214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
5215 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
5216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
5217 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
5218 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
5219 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
5220 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
5221
5222 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
5223 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
5224 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
5225
5226 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
5227
5228 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
5229 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
5230 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
5231 (sem_getvalue): Likewise.
5232
5233 2019-04-26 Florian Weimer <fweimer@redhat.com>
5234
5235 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
5236 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
5237
5238 2019-04-26 Florian Weimer <fweimer@redhat.com>
5239
5240 Makeconfig: Move -Wl,-rpath-link options before library references.
5241 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
5242 (link-libc): Remove $(link-libc-rpath-link).
5243
5244 2019-04-25 Florian Weimer <fweimer@redhat.com>
5245
5246 * Makeconfig (+link-pie-before-libc): Remove $(CC).
5247 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
5248 (+link-static-before-libc): Remove $(CC).
5249 (+link-static, +link-static-tests): Add $(CC).
5250 (+link-before-libc): Remove $(CC).
5251 (+link, +link-pie, +link-pie-printers): Add $(CC).
5252
5253 2019-04-26 Florian Weimer <fweimer@redhat.com>
5254
5255 * Makeconfig (+link-pie-before-libc): Remove $(CC).
5256 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
5257 (+link-static-before-libc): Remove $(CC).
5258 (+link-static, +link-static-tests): Add $(CC).
5259 (+link-before-libc): Remove $(CC).
5260 (+link, +link-pie, +link-pie-printers): Add $(CC).
5261
5262 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
5263
5264 [BZ#24484]
5265 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
5266
5267 2019-04-25 Florian Weimer <fweimer@redhat.com>
5268
5269 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
5270 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
5271 (bench-link-targets): New variable.
5272 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
5273
5274 2019-04-25 Florian Weimer <fweimer@redhat.com>
5275
5276 Also enable BIND_NOW for programs if --enable-bind-now.
5277 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
5278 (+link-pie): Use $(link-extra-flags).
5279 (+link-static): Likewise.
5280 [! $(build-pie-default)] (+link): Likewise.
5281 * manual/install.texi (Configuring and compiling): Update
5282 --enable-bind-now description.
5283 * INSTALL: Regenerated.
5284
5285 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
5286
5287 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
5288 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
5289
5290 2019-04-24 Mike Frysinger <vapier@gentoo.org>
5291
5292 [BZ #18465]
5293 * malloc/Makefile (others): Add memusagestat.
5294 ($(objpfx)memusagestat): Delete rule.
5295 (LDLIBS-memusagestat): New variable.
5296
5297 2019-04-24 Florian Weimer <fweimer@redhat.com>
5298
5299 * locale/Makefile (tests-special): Guard setting by
5300 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
5301 to run while cross-compiling.
5302
5303 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5304
5305 [BZ #18035]
5306 * elf/Makefile (tests-container): Add tst-pldd.
5307 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
5308 (E(find_maps)): Avoid use alloca, use default read file operations
5309 instead of explicit LFS names, and fix infinite loop.
5310 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
5311 (get_process_info): Use _Static_assert instead of assert, use default
5312 directory operations instead of explicit LFS names, and free some
5313 leadek pointers.
5314 * elf/tst-pldd.c: New file.
5315
5316 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
5317
5318 * malloc/arena.c (do_set_mallopt_check): Removed.
5319
5320 2019-04-23 Florian Weimer <fweimer@redhat.com>
5321
5322 locale: Add LOCPATH diagnostics to the locale program.
5323 * locale/programs/locale.c (setlocale_failed): New variable.
5324 (try_setlocale): New function.
5325 (quote_string): Likewise.
5326 (setlocale_diagnostics): Likewise.
5327 (main): Call try_setlocale instead of setlocale. Call
5328 setlocale_diagnostics.
5329 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
5330 (tst-locale-locpath.out): New target.
5331 * locale/tst-locale-locpath.sh: New file.
5332
5333 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5334
5335 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
5336 to 2.30 notes.
5337
5338 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5339
5340 [BZ #23741]
5341 * malloc/hooks.c (malloc_check, realloc_check): Use
5342 __builtin_add_overflow on overflow check and adapt to
5343 checked_request2size change.
5344 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
5345 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
5346 allocation size to PTRDIFF_MAX.
5347 (REQUEST_OUT_OF_RANGE): Remove macro.
5348 (checked_request2size): Change to inline function and limit maximum
5349 requested size to PTRDIFF_MAX.
5350 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
5351 maximum allocation size to PTRDIFF_MAX.
5352 (_mid_memalign): Use _int_memalign call for overflow check.
5353 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
5354 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
5355 limit maximum requested size to PTRDIFF_MAX.
5356 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
5357 valloc, pvalloc): Add __attribute_alloc_size__.
5358 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
5359 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
5360 larger than PTRDIFF_MAX.
5361 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
5362 around tests of malloc with negative sizes.
5363 * malloc/tst-posix_memalign.c (do_test): Likewise.
5364 * malloc/tst-pvalloc.c (do_test): Likewise.
5365 * malloc/tst-valloc.c (do_test): Likewise.
5366 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
5367 with resulting size allocation larger than PTRDIFF_MAX with
5368 reallocarray_nowarn.
5369 (reallocarray_nowarn): New function.
5370 * NEWS: Mention the malloc function semantic change.
5371
5372 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5373
5374 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
5375 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5376
5377 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
5378 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
5379 * sysdeps/powerpc/fpu/s_fma.c: New file.
5380 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5381
5382 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
5383 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
5384
5385 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
5386 the magic flag store.
5387 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
5388 Likewise.
5389 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
5390 Likewise.
5391 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
5392 Remove rt_sigreturn call.
5393
5394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5395 Remove rt_sigreturn call.
5396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5397 Likewise.
5398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
5399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5400
5401 * support/Makefile (libsupport-routines): Add support_subprocess,
5402 xposix_spawn, xposix_spawn_file_actions_addclose, and
5403 xposix_spawn_file_actions_adddup2.
5404 (tst-support_capture_subprocess-ARGS): New rule.
5405 * support/capture_subprocess.h (support_capture_subprogram): New
5406 prototype.
5407 * support/support_capture_subprocess.c (support_capture_subprocess):
5408 Refactor to use support_subprocess and support_capture_poll.
5409 (support_capture_subprogram): New function.
5410 * support/tst-support_capture_subprocess.c (write_mode_to_str,
5411 str_to_write_mode, test_common, parse_int, handle_restart,
5412 do_subprocess, do_subprogram, do_multiple_tests): New functions.
5413 (do_test): Add support_capture_subprogram tests.
5414 * support/subprocess.h: New file.
5415 * support/support_subprocess.c: Likewise.
5416 * support/xposix_spawn.c: Likewise.
5417 * support/xposix_spawn_file_actions_addclose.c: Likewise.
5418 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
5419 * support/xspawn.h: Likewise.
5420
5421 2019-04-17 Mike Gerow <gerow@google.com>
5422
5423 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
5424 groups limit.
5425
5426 2019-04-11 Florian Weimer <fweimer@redhat.com>
5427
5428 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
5429 domain with empty string.
5430 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
5431
5432 2019-04-11 Florian Weimer <fweimer@redhat.com>
5433
5434 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
5435 comment.
5436 (alloc_buffer_next): Change return type to non-const. Update
5437 comment.
5438
5439 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
5440
5441 * manual/time.texi (Formatting Calendar Time): Add missing percent
5442 sign to conversion specifier.
5443
5444 2019-04-09 Carlos O'Donell <carlos@redhat.com>
5445 Kwok Cheung Yeung <kcy@codesourcery.com>
5446
5447 [BZ #16573]
5448 * malloc/mtrace.c: Define prototypes for all hooks.
5449 (set_default_hooks): New function.
5450 (set_trace_hooks): Likewise.
5451 (save_default_hooks): Likewise.
5452 (tr_freehook): Use new s*_hooks functions.
5453 (tr_mallochook): Likewise.
5454 (tr_reallochook): Likewise.
5455 (tr_memalignhook): Likewise.
5456 (mtrace): Likewise.
5457 (muntrace): Likewise.
5458
5459 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5460
5461 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
5462 (generic_stpcpy): New function.
5463 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
5464 (generic_stpncpy): New function.
5465 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
5466 (generic_strcat): New function.
5467 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
5468 (generic_strcpy): New function.
5469 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
5470 (STUPID_STRNCAT): Remove function.
5471 (generic_strncat): New function.
5472 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
5473 (STUPID_STRNCPY): Remove function.
5474 (generic_strncpy): New function.
5475 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
5476 (generic_strnlen): New function.
5477 (memchr_strnlen): New function.
5478 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
5479 (memchr_strlen): Likewise.
5480
5481 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5482
5483 * benchtests/bench-strstr.c (input): Add realistic input text.
5484 (stupid_strstr): Remove function.
5485 (basic_strstr): Add function.
5486 (twoway_strstr): Add function.
5487 (do_one_test): Add result checking.
5488 (do_test): Use new input text. Remove accidental early matches.
5489 (test_main): Improve range of tests, reduce unaligned cases.
5490
5491 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5492
5493 * benchtests/bench-memmem.c (simple_memmem): Remove function.
5494 (basic_memmem): Add function.
5495 (twoway_memmem): Add function.
5496
5497 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5498
5499 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
5500 * benchtests/bench-malloc-thread.c: Likewise.
5501 * benchtests/bench-skeleton.c: Likewise.
5502 * benchtests/bench-strtod.c: Likewise.
5503 * benchtests/bench-timing.h: Likewise.
5504
5505 2019-04-08 Florian Weimer <fweimer@redhat.com>
5506
5507 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
5508 definitions.
5509 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
5510 RES_INSECURE2 security checks.
5511 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
5512 RES_INSECURE2 handling.
5513
5514 2019-04-08 Florian Weimer <fweimer@redhat.com>
5515
5516 resolv: Remove support for RES_USE_INET6 and the inet6 option.
5517 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
5518 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
5519 GETHOSTBYNAME.
5520 * resolv/Makefile (tests): Remove tst-res_use_inet6.
5521 (tests-internal): Update justification for tst-resolv-res_init,
5522 tst-resolv-res_init-thread.
5523 (tst-res_use_inet6): Remove target.
5524 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
5525 * resolv/res_debug.c (p_option): Remove "inet6" support.
5526 * resolv/res_init.c (res_setoptions): Likewise.
5527 * resolv/res_use_inet6.h: Remove file.
5528 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
5529 definition.
5530 (res_use_inet6): Always return false.
5531 * resolv/resolv.h (RES_USE_INET6): Remove definition.
5532 * resolv/resolv_context.h: Adjust file comment.
5533 (struct resolv_context): Update comment on __next field.
5534 (__resolv_context_put): Update comment.
5535 * resolv/tst-res_use_inet6.c: Remove file.
5536 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
5537 "inet6" support.
5538 (test_cases): Adjust test case.
5539 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
5540 (thread_byname2_af_inet6): Use old byname_inet6 code.
5541 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
5542 (gai): Remove do_inet6 argument.
5543 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
5544 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
5545 (thread_gai_unspec_inet6): Remove functions.
5546 (do_test): Adjust thread_funcs.
5547 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
5548 RES_USE_INET6 flag.
5549 (gaih_inet): Do not disable RES_USE_INET6 flag.
5550
5551 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5552
5553 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
5554 and remove redundant code.
5555
5556 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5557
5558 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
5559 New rule.
5560 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
5561 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
5562 Likewise.
5563 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
5564 Likewise.
5565 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
5566 Likewise.
5567 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
5568 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
5569 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
5570 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
5571 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
5572 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
5573 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5574 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
5575 wcsrchr-power7.
5576 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
5577 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5578 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5579 Remove wcsrchr optimizations.
5580 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5581
5582 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
5583 the loop unroll.
5584
5585 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
5586 New rule.
5587 * sysdeps/powerpc/power6/wcschr.c: Remove file.
5588 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
5589 Likewise.
5590 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
5591 Likewise.
5592 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
5593 Likewise.
5594 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
5595 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
5596 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
5597 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
5598 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
5599 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
5600 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5601 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
5602 wcschr-power7.
5603 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
5604 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5605 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5606 Remove wcschr optimizations.
5607 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5608
5609 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
5610 the loop unroll.
5611
5612 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
5613 New rule.
5614 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5615 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5616 Likewise.
5617 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5618 Likewise.
5619 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5620 Likewise.
5621 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5622 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5623 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5624 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5625 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5626 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5627 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5628 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5629 wcscpy-power7.
5630 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5631 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5632 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5633 Remove wcscpy optimizations.
5634 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5635
5636 * include/loop_unroll.h: New file.
5637 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5638 besides generic implementation.
5639
5640 2019-04-03 DJ Delorie <dj@redhat.com>
5641
5642 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5643 snprintf truncating output.
5644
5645 2019-04-02 DJ Delorie <dj@redhat.com>
5646
5647 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5648 warning.
5649
5650 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5651
5652 [BZ #22964]
5653 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5654 era.
5655 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5656 (mkreftable): Add rules for the new Japanese era and the new dates.
5657
5658 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5659 Rafał Lużyński <digitalfreak@lingonborough.com>
5660
5661 * time/tst-strftime2.c (date_t): Explicitly define the type.
5662 (dates): Use natural month and year numbers to express a date.
5663 (is_before): New function to compare dates.
5664 (mkreftable): Minor improvements to simplify maintenance.
5665 (do_test): Reflect the changes in dates array.
5666
5667 [BZ #24293]
5668 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5669 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5670 * time/tst-strftime2.c (locales): Likewise.
5671 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5672 2010-04-01, and 2011-04-01.
5673 (mkreftable): Add rules for the new locales and the new dates.
5674
5675 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5676
5677 * localedata/locales/ja_JP: Add comments to era entries.
5678
5679 2019-04-01 DJ Delorie <dj@redhat.com>
5680
5681 [BZ #24394]
5682 * time/strptime_l.c (%Ey): Fix fencepost error.
5683 * time/tst-strftime3.c: New.
5684 * time/Makefile (tests): Add tst-strftime3.
5685
5686 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
5687
5688 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5689 conditional branch to DIVBYZERO. Fix unwind info.
5690 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5691 excb after conditional branch to $powerof2. Add missing unop
5692 instructions and .align directives and reorder instructions to
5693 match __divqu.
5694
5695 2019-04-01 Richard Henderson <rth@twiddle.net>
5696
5697 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5698 Do not redefine.
5699 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5700 Do not redefine.
5701
5702 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5703
5704 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5705 $libc_cv_riscv_float_abi in `test' invocation.
5706 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5707
5708 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5709
5710 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5711 asm with builtin.
5712 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5713 Likewise.
5714 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5715 (_GET_SI_FPSCR): Likewise.
5716 (_SET_SI_FPSCR): Likewise.
5717
5718 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5719
5720 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5721 clang 2.8.
5722 (signbit): Use builtin for clang 3.3.
5723 (isinf): Use builtin for clang 3.7.
5724
5725 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5726
5727 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5728
5729 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5730
5731 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5732 quote in printf.
5733
5734 2019-03-25 Mike Crowe <mac@mcrowe.com>
5735
5736 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5737 pthread_rwlock_timedrdlock with calls to
5738 pthread_rwlock_timedwrlock to ensure that the latter is tested
5739 too. Use new function name in diagnostic messages too.
5740
5741 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5742 (do_test) Use libsupport test macros rather than hand-coded
5743 conditionals and error messages. Ensure that sem_init returns zero
5744 rather than not -1. Use <support/test-driver.c> rather than
5745 test-skeleton.c.
5746
5747 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5748 test macros rather than hand-coded conditionals and error messages.
5749 Use <support/test-driver.c> rather than test-skeleton.c.
5750
5751 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5752
5753 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5754
5755 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5756 (NT_MIPS_MSA): Likewise.
5757
5758 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5759
5760 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5761 * benchtests/README: Update description.
5762 * benchtests/bench-timing.h: Default to hp-timing.
5763 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5764 HP_TIMING_PRINT): Remove.
5765 (HP_TIMING_NOW): Add generic implementation.
5766 (hp_timing_t): Change to uint64_t.
5767
5768 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5769 HP_TIMING_INLINE.
5770 * nptl/descr.h: Likewise.
5771 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5772 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5773 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5774 Abstract hp-timing usage with RTLD_* macros.
5775 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5776 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5777 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5778 HP_TIMING_NONAVAIL): Likewise.
5779 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5780 Likewise.
5781 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5782 HP_SMALL_TIMING_AVAIL): Likewise.
5783 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5784 HP_SMALL_TIMING_AVAIL): Likewise.
5785 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5786 HP_SMALL_TIMING_AVAIL): Likewise.
5787 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5788 HP_SMALL_TIMING_AVAIL): Likewise.
5789 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5790 Likewise.
5791 * sysdeps/generic/hp-timing-common.h: Update comment with
5792 HP_TIMING_AVAIL removal.
5793
5794 * include/random-bits.h: New file.
5795 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5796 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5797 random_bits.
5798 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5799 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5800 Likewise.
5801
5802 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5803 * rt/Makefile (clock-routines): Remove get_clockfreq.
5804 * rt/get_clockfreq.c: Remove file.
5805 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5806 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5807 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5808 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5809 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5810
5811 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5812 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5813 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5814 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5815 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5816
5817 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5818 pthread_clock_settime.
5819 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5820 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5821 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5822 * elf/rtld.c (_dl_start_final): Likewise.
5823 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5824 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5825 Remove.
5826 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5827 (_dl_cpuclock_offset): Remove.
5828 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5829 cpuclock_offset_ununsed.
5830 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5831 cpuclock_offset set.
5832 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5833 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5834 * nptl/pthread_clock_gettime.c: Remove file.
5835 * nptl/pthread_clock_settime.c: Likewise.
5836 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5837 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5838 and CLOCK_PROCESS_CPUTIME_ID support.
5839 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5840 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5841 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5842 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5843 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5844 Likewise.
5845 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5846
5847 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5848
5849 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5850 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5851 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5852 New defines.
5853 * sysdeps/s390/memmem-arch13.S: New file.
5854 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5855 if it is only used as fallback.
5856 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5857 * sysdeps/s390/multiarch/ifunc-impl-list.c
5858 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5859
5860 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5861
5862 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5863 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5864 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5865 New defines.
5866 * sysdeps/s390/multiarch/ifunc-impl-list.c
5867 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5868 * sysdeps/s390/strstr-arch13.S: New file.
5869 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5870 if it is only used as fallback.
5871 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5872
5873 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5874
5875 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5876 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5877 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5878 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5879 ifunc selector.
5880 * sysdeps/s390/multiarch/ifunc-impl-list.c
5881 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5882 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5883 S390_IS_ARCH13_MIE3): New defines.
5884
5885 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5886
5887 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5888 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5889 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5890 * sysdeps/s390/configure: Regenerated.
5891
5892 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5893
5894 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5895 Add vxe2, vxp, dflt, sort flags.
5896 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5897 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5898 capabilities.
5899 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5900 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5901 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5902 HWCAP_S390_DFLT): Define.
5903
5904 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5905
5906 [BZ #24372]
5907 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5908 of compiler warning.
5909 * locale/programs/ld-collate.c (collate_output): Likewise.
5910
5911 2019-03-21 DJ Delorie <dj@redhat.com>
5912
5913 [BZ #24372]
5914 * iconv/iconvconfig.c (write_output): Replace floating point math
5915 with integer math to avoid imprecise results.
5916 * locale/programs/ld-collate.c (collate_output): Likewise.
5917
5918 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5919
5920 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5921 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5922
5923 2019-03-20 mansayk <6688000@gmail.com>
5924
5925 [BZ #24296]
5926 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5927 (abday): Likewise, but remove the trailing dots.
5928
5929 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5930
5931 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5932 macro.
5933 (HWCAP_PACA): Likewise.
5934 (HWCAP_PACG): Likewise.
5935 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5936 Increase to 32.
5937 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5938
5939 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5940
5941 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5942 should be handled.
5943
5944 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5945
5946 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5947 version to 5.0.
5948 (old_getpagesize): New syscall.
5949
5950 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5951
5952 [BZ #24293]
5953 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5954 * localedata/locales/cmn_TW (era): Likewise.
5955 * localedata/locales/hak_TW (era): Likewise.
5956 * localedata/locales/lzh_TW (era): Likewise.
5957 * localedata/locales/nan_TW (era): Likewise.
5958
5959 2019-03-14 Adam Maris <amaris@redhat.com>
5960
5961 * malloc/malloc.c (_int_malloc): Check for large bin list
5962 corruption when inserting unsorted chunk.
5963
5964 2019-03-14 Florian Weimer <fweimer@redhat.com>
5965
5966 Remove obsolete, never-implemented XSI STREAMS declarations.
5967 * manual/terminal.texi (Allocation): Remove portability note and
5968 adjust example.
5969 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5970 _SC_STREAMS.
5971 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5972 * sysdeps/unix/inet/Subdirs (streams): Remove.
5973 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5974 (conformtest-headers-UNIX98): Likewise.
5975 (conformtest-headers-XOPEN2K): Likewise.
5976 (conformtest-headers-POSIX2008): Likewise.
5977 * posix/compat-streams.c: New file.
5978 * posix/Makefile (routines): Add it.
5979 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5980 getpmsg, isastream, putmsg, putpmsg.
5981 (GLIBC_2.30): New section.
5982 * bits/stropts.h: Remove file.
5983 * bits/xtitypes.h: Likewise.
5984 * conform/data/stropts.h-data: Likewise.
5985 * include/stropts.h: Likewise.
5986 * include/sys/stropts.h: Likewise.
5987 * include/xtitypes.h: Likewise.
5988 * streams/Makefile: Likewise.
5989 * streams/fattach.c: Likewise.
5990 * streams/fdetach.c: Likewise.
5991 * streams/getmsg.c: Likewise.
5992 * streams/getpmsg.c: Likewise.
5993 * streams/isastream.c: Likewise.
5994 * streams/putmsg.c: Likewise.
5995 * streams/putpmsg.c: Likewise.
5996 * streams/stropts.h: Likewise.
5997 * streams/sys/stropts.h: Likewise.
5998 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5999 * sysdeps/s390/bits/xtitypes.h: Likewise.
6000 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
6001 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
6002 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
6003 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
6004 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
6005 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
6006 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
6007 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
6008 * sysdeps/x86/bits/xtitypes.h: Likewise.
6009
6010 2019-03-14 Florian Weimer <fweimer@redhat.com>
6011
6012 * nss/tst-nss-files-alias-truncated.c (do_test): Load
6013 libnss_files.
6014 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
6015 but not with libnss_files.
6016 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
6017
6018 2019-03-14 Zack Weinberg <zackw@panix.com>
6019
6020 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
6021 Specify encoding="utf-8" when opening headers to check.
6022
6023 2019-03-13 Joseph Myers <joseph@codesourcery.com>
6024
6025 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6026 version to 5.0.
6027 (Context.checkout_tar): Handle variable major version for Linux
6028 kernel.
6029
6030 2019-03-13 Florian Weimer <fweimer@redhat.com>
6031
6032 [BZ #24047]
6033 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
6034
6035 2019-03-13 Zack Weinberg <zackw@panix.com>
6036
6037 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
6038 Move to stdlib.
6039 * include/inttypes.h: Adjust to match.
6040 * include/stdint.h: New wrapper.
6041
6042 2019-03-13 Zack Weinberg <zackw@panix.com>
6043
6044 * scripts/check-obsolete-constructs.py: New test script.
6045 * scripts/check-installed-headers.sh: Remove tests for
6046 obsolete typedefs, superseded by check-obsolete-constructs.py.
6047 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
6048 as a special test. Update commentary.
6049 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
6050 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
6051 Update commentary.
6052 * posix/sys/types.h (__u_intN_t): Remove.
6053 (u_int8_t): Typedef using __uint8_t.
6054 (u_int16_t): Typedef using __uint16_t.
6055 (u_int32_t): Typedef using __uint32_t.
6056 (u_int64_t): Typedef using __uint64_t.
6057
6058 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
6059
6060 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
6061 call _dl_procinfo.
6062 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
6063 Ignore types other than AT_HWCAP.
6064 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
6065 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
6066 Likewise.
6067 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
6068 in the case of falling back to generic output mechanism.
6069 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
6070 Likewise.
6071
6072 2019-03-12 Florian Weimer <fweimer@redhat.com>
6073
6074 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
6075
6076 2019-03-12 Florian Weimer <fweimer@redhat.com>
6077
6078 [BZ #24047]
6079 resolv: Enable full ICMP errors for UDP DNS sockets
6080 * resolv/res_enable_icmp.c: New file.
6081 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
6082 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
6083 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
6084 socket.
6085
6086 2019-03-11 Mao Han <han_mao@c-sky.com>
6087
6088 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
6089 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
6090
6091 2019-03-11 Mao Han <han_mao@c-sky.com>
6092
6093 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
6094 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
6095 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
6096
6097 2019-03-11 Mao Han <han_mao@c-sky.com>
6098
6099 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
6100 directly.
6101 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
6102 definition.
6103
6104 2019-03-11 Mao Han <han_mao@c-sky.com>
6105
6106 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
6107 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
6108 in mcontext_t
6109
6110 2019-03-08 Mike FABIAN <mfabian@redhat.com>
6111
6112 [BZ #24307]
6113 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
6114 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
6115 Unicode 12.0.0.
6116 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
6117 * localedata/unicode-gen/PropList.txt: Likewise.
6118 * localedata/unicode-gen/UnicodeData.txt: Likewise.
6119 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
6120 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
6121 * localedata/charmaps/UTF-8: Regenerate.
6122 * localedata/locales/i18n_ctype: Likewise.
6123 * localedata/locales/tr_TR: Likewise.
6124 * localedata/locales/translit_circle: Likewise.
6125 * localedata/locales/translit_cjk_compat: Likewise.
6126 * localedata/locales/translit_combining: Likewise.
6127 * localedata/locales/translit_compat: Likewise.
6128 * localedata/locales/translit_font: Likewise.
6129 * localedata/locales/translit_fraction: Likewise.
6130
6131 2019-03-07 Joseph Myers <joseph@codesourcery.com>
6132
6133 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
6134 than after operators.
6135 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
6136 (setitimer_locked): Likewise.
6137 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
6138 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
6139 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
6140 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
6141 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
6142 (PPC_CPU_SUPPORTED): Likewise.
6143 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
6144 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
6145 (stat_overflow): Likewise.
6146 (statfs_overflow): Likewise.
6147 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
6148 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
6149 (eq_ttyname_r): Likewise.
6150 (run_chroot_tests): Likewise.
6151
6152 2019-03-07 Florian Weimer <fweimer@redhat.com>
6153
6154 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
6155 header check.
6156
6157 2019-03-07 Martin Liska <mliska@suse.cz>
6158
6159 * math/Makefile: Change location where math-vector-fortran.h is
6160 installed.
6161 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
6162 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
6163 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
6164 * scripts/check-installed-headers.sh: Skip Fortran header files.
6165 * scripts/check-wrapper-headers.py: Likewise.
6166
6167 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6168
6169 * nptl/nptl-init.c (__have_futex_clock_realtime,
6170 __have_futex_clock_realtime): Remove definition.
6171 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
6172 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
6173 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
6174 __ASSUME_FUTEX_CLOCK_REALTIME support.
6175 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
6176 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6177 * sysdeps/unix/sysv/linux/kernel-features.h
6178 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
6179 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
6180 Adjust comment.
6181
6182 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6183
6184 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
6185 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
6186 __GI___wcscpy and wcscpy.
6187
6188 2019-03-04 Florian Weimer <fweimer@redhat.com>
6189
6190 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
6191 declaration.
6192 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
6193 defined.
6194
6195 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
6196
6197 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
6198 * sysdeps/s390/s390-32/sysdep.h: Likewise.
6199
6200 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
6201
6202 [BZ #24162]
6203 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
6204 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
6205
6206 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6207
6208 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
6209 tests.
6210 (do_test): Likewise.
6211 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
6212 (do_test_call_varg): Likewise.
6213 (do_test_call_rarg): Likewise.
6214 * sysdeps/ieee754/ldbl-opt/Makefile
6215 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
6216 tst-nldbl-error.
6217 ($(objpfx)tst-nldbl-warn.c): New rule.
6218 ($(objpfx)tst-nldbl-error.c): Likewise.
6219 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
6220 New variables.
6221
6222 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6223
6224 [BZ #23984]
6225 * include/bits/error-ldbl.h: New file.
6226 * include/error.h: Include stdarg.h. Declare internal functions
6227 __error_internal and __error_at_line_internal.
6228 * misc/Makefile (headers): Add bits/error-ldbl.h.
6229 * misc/bits/error-ldbl.h: New file.
6230 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
6231 avoid the inclusion of bits/error.h.
6232 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
6233 and __nldbl_error_at_line.
6234 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
6235 (__nldbl_error, __ndlbl_error_at_line): New functions.
6236 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
6237 Redirect error and error_at_line.
6238 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6240 Likewise.
6241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6242 Likewise.
6243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6244 Likewise.
6245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6246 Likewise.
6247 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6248 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6249 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6250
6251 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6252
6253 [BZ #23984]
6254 * include/bits/err-ldbl.h: New file.
6255 * include/err.h: Add prototypes for the internal functions:
6256 __vwarnx_internal and __vwarn_internal.
6257 * misc/Makefile (headers): Add bits/err-ldbl.h.
6258 * misc/bits/err-ldbl.h: New file.
6259 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
6260 defined, i.e.: when -mlong-double-64 is in use.
6261 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
6262 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
6263 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
6264 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
6265 (VA_CALL): New macro.
6266 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
6267 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
6268 functions.
6269 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
6270 declare prototypes for the new functions.
6271 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6273 Likewise.
6274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6275 Likewise.
6276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6277 Likewise.
6278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6279 Likewise.
6280 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6281 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6282 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6283
6284 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6285
6286 * sysdeps/ieee754/ldbl-opt/Makefile
6287 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
6288 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
6289 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
6290
6291 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6292
6293 [BZ #23983]
6294 * argp/Makefile (headers): Add bits/argp-ldbl.h.
6295 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
6296 * argp/bits/argp-ldbl.h: New file.
6297 * include/argp.h: Include stdarg.h. Add prototypes for internal
6298 functions: __argp_error_internal and __argp_failure_internal.
6299 * include/bits/argp-ldbl.h: New file.
6300 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
6301 __nldbl_argp_error and __nldbl_argp_failure.
6302 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
6303 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
6304 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
6305 Redirect argp_error and argp_failure calls.
6306 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6308 Likewise.
6309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6310 Likewise.
6311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6312 Likewise.
6313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6314 Likewise.
6315 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6316 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6317 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6318
6319 2019-03-01 Florian Weimer <fweimer@redhat.com>
6320
6321 [BZ #20419]
6322 * elf/tst-big-note-lib.S: Create a syntactically valid note.
6323 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
6324 code, to avoid creating an ABI tag note.
6325 (modules-names-nobuild): Add tst-big-note-lib.
6326
6327 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
6328
6329 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
6330 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
6331
6332 2019-03-01 Florian Weimer <fweimer@redhat.com>
6333
6334 [BZ #20271]
6335 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6336 (__netlink_assert_response): Add additional missing newlines.
6337
6338 2019-02-28 Joseph Myers <joseph@codesourcery.com>
6339
6340 * sysdeps/powerpc/powerpc32/dl-machine.c
6341 (__elf_machine_fixup_plt): Use space before '('.
6342 (__process_machine_rela): Likewise.
6343 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
6344 Likewise.
6345 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
6346 Likewise.
6347 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
6348 Likewise.
6349 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
6350 (pattern): Likewise.
6351 (delta): Likewise.
6352 (check_result): Likewise.
6353 (check_excepts): Likewise.
6354 (check_op): Likewise.
6355 (fail_xr): Likewise.
6356 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
6357 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
6358 (SCNHSZ): Likewise.
6359 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
6360 Likewise.
6361 (ARGS): Likewise.
6362 (__makecontext): Likewise.
6363 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
6364 Likewise.
6365
6366 2019-02-28 Florian Weimer <fweimer@redhat.com>
6367
6368 [BZ #23937]
6369 elf: Add test with a local IFUNC resolver.
6370 * elf/ifuncmain9.c: New file.
6371 * elf/ifuncmain9pic.c: Likewise.
6372 * elf/ifuncmain9picstatic.c: Likewise.
6373 * elf/ifuncmain9pie.c: Likewise.
6374 * elf/ifuncmain9static.c: Likewise.
6375 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
6376 ifuncmain9static, ifuncmain9picstatic.
6377 * elf/Makefile [multi-arch && build-shared] (tests-internal):
6378 Add ifuncmain9, ifuncmain9pic.
6379 * elf/Makefile [multi-arch && build-shared && have-fpie]
6380 (ifunc-pie-tests): Add ifuncmain9pie.
6381 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
6382 (CFLAGS-ifuncmain9picstatic.c): Likewise.
6383 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
6384
6385 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
6386
6387 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
6388 * configure: Regenerated.
6389 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
6390
6391 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6392
6393 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
6394 symbol as __wcspcy instead of wcscpy.
6395
6396 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
6397
6398 * include/stdio.h (__renameat2): New hidden prototype.
6399 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
6400 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
6401 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
6402 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
6403
6404 2019-02-27 Joseph Myers <joseph@codesourcery.com>
6405
6406 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
6407 if statement.
6408
6409 * benchtests/bench-strcpy.c (do_test): Use space before '('.
6410 * benchtests/bench-string.h (cmdline_process_function): Likewise.
6411 * benchtests/bench-strlen.c (do_test): Likewise.
6412 (test_main): Likewise.
6413 * catgets/gencat.c (read_old): Likewise.
6414 * elf/cache.c (load_aux_cache): Likewise.
6415 * iconvdata/bug-iconv8.c (do_test): Likewise.
6416 * math/test-tgmath-ret.c (do_test): Likewise.
6417 * nis/nis_call.c (rec_dirsearch): Likewise.
6418 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6419 * nptl/tst-audit-threads.c (do_test): Likewise.
6420 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
6421 * nss/nss_test1.c (init): Likewise.
6422 * nss/test-netdb.c (test_hosts): Likewise.
6423 * posix/execvpe.c (maybe_script_execute): Likewise.
6424 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
6425 * stdio-common/tst-printf.c (do_test): Likewise.
6426 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
6427 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
6428 * stdlib/qsort.c (STACK_SIZE): Likewise.
6429 * stdlib/test-canon.c (do_test): Likewise.
6430 * stdlib/tst-swapcontext1.c (do_test): Likewise.
6431 * string/memcmp.c (OPSIZ): Likewise.
6432 * string/test-strcpy.c (do_test): Likewise.
6433 (do_random_tests): Likewise.
6434 * string/test-strlen.c (do_test): Likewise.
6435 (test_main): Likewise.
6436 * string/test-strrchr.c (do_test): Likewise.
6437 (do_random_tests): Likewise.
6438 * string/tester.c (test_memrchr): Likewise.
6439 (test_memchr): Likewise.
6440 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
6441 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
6442 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
6443 (read_encoded_value_with_base): Likewise.
6444 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
6445 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
6446 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
6447 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6448 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
6449 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
6450 Likewise.
6451 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
6452 Likewise.
6453 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
6454 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
6455 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
6456 Likewise.
6457 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
6458 Likewise.
6459 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
6460 Likewise.
6461 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6462 Likewise.
6463 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
6464 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
6465 (FP_XSTATE_MAGIC2_SIZE): Likewise.
6466 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
6467 * time/test_time.c (main): Likewise.
6468
6469 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6470
6471 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
6472
6473 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
6474 wmemcpy.
6475
6476 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
6477 wmemcpy.
6478
6479 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6480
6481 * include/wchar.h (__wcscpy): New prototype.
6482 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
6483 (__wcscpy): Route internal symbol to generic implementation.
6484 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
6485 Add internal __wcscpy alias.
6486 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
6487 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
6488 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
6489 * wcsmbs/wcscpy.c (wcscpy): Add
6490 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
6491 use generic implementation.
6492 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
6493
6494 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
6495 wmemset.
6496
6497 * sysdeps/m68k/wcpcpy.c: Remove file.
6498 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6499
6500 2019-02-26 Joseph Myers <joseph@codesourcery.com>
6501
6502 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
6503 than after operators.
6504 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6505 * sysdeps/mach/hurd/getcwd.c
6506 (__hurd_canonicalize_directory_name_internal): Likewise.
6507 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
6508 (pthread_mutex_consistent): Likewise.
6509 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
6510 Likewise.
6511 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
6512 (__pthread_mutex_transfer_np): Likewise.
6513 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
6514 (__pthread_mutex_unlock): Likewise.
6515 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
6516 (mtx_owned_p): Likewise.
6517 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
6518 (pthread_mutexattr_getrobust): Likewise.
6519 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
6520 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6521 Likewise.
6522 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6523 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
6524 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
6525 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
6526 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6527 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6528 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
6529 Likewise.
6530 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
6531 Likewise.
6532 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
6533 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
6534 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
6535 (____longjmp_chk): Likewise.
6536 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
6537 Likewise.
6538 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
6539 (INTERNAL_SYSCALL): Likewise.
6540 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6541 (INTERNAL_SYSCALL): Likewise.
6542 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6543 (__get_clockfreq_via_cpuinfo): Likewise.
6544
6545 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
6546 comments.
6547 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
6548 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
6549 (WORD_COPY_BWD): Likewise.
6550 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6551 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6552 Likewise.
6553 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
6554 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
6555 comment.
6556 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6557
6558 2019-02-25 Joseph Myers <joseph@codesourcery.com>
6559
6560 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
6561 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
6562 rather than after operators.
6563 * elf/cache.c (print_cache): Likewise.
6564 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
6565 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
6566 * hurd/hurdinit.c (_hurd_setproc): Likewise.
6567 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
6568 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
6569 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
6570 (reauth_proc): Likewise.
6571 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
6572 (__file_name_split_at): Likewise.
6573 (__directory_name_split_at): Likewise.
6574 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6575 * hurd/port2fd.c (_hurd_port2fd): Likewise.
6576 * iconv/gconv_dl.c (do_print): Likewise.
6577 * inet/netinet/in.h (struct sockaddr_in): Likewise.
6578 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
6579 * locale/setlocale.c (new_composite_name): Likewise.
6580 * malloc/memusagestat.c (main): Likewise.
6581 * misc/fstab.c (fstab_convert): Likewise.
6582 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
6583 Likewise.
6584 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
6585 (getgrent_next_file): Likewise.
6586 (internal_getgrnam_r): Likewise.
6587 (internal_getgrgid_r): Likewise.
6588 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
6589 Likewise.
6590 (internal_getgrent_r): Likewise.
6591 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
6592 (getpwent_next_nss): Likewise.
6593 (getpwent_next_file): Likewise.
6594 (internal_getpwnam_r): Likewise.
6595 (internal_getpwuid_r): Likewise.
6596 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
6597 Likewise.
6598 (getspent_next_nss): Likewise.
6599 (internal_getspnam_r): Likewise.
6600 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
6601 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
6602 * string/strchr.c (STRCHR): Likewise.
6603 * string/strchrnul.c (STRCHRNUL): Likewise.
6604 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
6605 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6606 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
6607 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
6608 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
6609 Likewise.
6610 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
6611 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6612 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6613 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
6614 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6615 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6616 (open_file): Likewise.
6617 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6618 (pthread_mutexattr_setprotocol): Likewise.
6619 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6620 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6621 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6622 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6623 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6624 Likewise.
6625 (elf_machine_rela): Likewise.
6626 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6627 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6628 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6629 * sysdeps/posix/rename.c (rename): Likewise.
6630 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6631 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6632 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6633 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6634 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6635 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6636 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6637 Likewise.
6638 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6639 Likewise.
6640 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6641 * time/tzfile.c (__tzfile_compute): Likewise.
6642
6643 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6644
6645 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6646 rather than after operators.
6647 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6648 * crypt/md5.c (md5_finish_ctx): Likewise.
6649 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6650 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6651 * elf/cache.c (load_aux_cache): Likewise.
6652 * elf/dl-load.c (open_verify): Likewise.
6653 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6654 * elf/readelflib.c (process_elf_file): Likewise.
6655 * elf/rtld.c (dl_main): Likewise.
6656 * elf/sprof.c (generate_call_graph): Likewise.
6657 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6658 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6659 * hurd/dtable.c (reauth_dtable): Likewise.
6660 * hurd/getdport.c (__getdport): Likewise.
6661 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6662 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6663 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6664 Likewise.
6665 * hurd/hurdioctl.c (fioctl): Likewise.
6666 * hurd/hurdselect.c (_hurd_select): Likewise.
6667 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6668 (STOPSIGS): Likewise.
6669 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6670 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6671 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6672 * hurd/msgportdemux.c (msgport_server): Likewise.
6673 * hurd/setauth.c (_hurd_setauth): Likewise.
6674 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6675 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6676 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6677 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6678 * login/tst-utmp.c (do_check): Likewise.
6679 (simulate_login): Likewise.
6680 * mach/lowlevellock.h (lll_lock): Likewise.
6681 (lll_trylock): Likewise.
6682 * math/test-fenv.c (ALL_EXC): Likewise.
6683 * math/test-fenvinline.c (ALL_EXC): Likewise.
6684 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6685 * nis/nis_call.c (__do_niscall3): Likewise.
6686 * nis/nis_callback.c (cb_prog_1): Likewise.
6687 * nis/nis_defaults.c (searchaccess): Likewise.
6688 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6689 * nis/nis_ismember.c (internal_ismember): Likewise.
6690 * nis/nis_local_names.c (nis_local_principal): Likewise.
6691 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6692 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6693 Likewise.
6694 * nis/ypclnt.c (yp_match): Likewise.
6695 (yp_first): Likewise.
6696 (yp_next): Likewise.
6697 (yp_master): Likewise.
6698 (yp_order): Likewise.
6699 * nscd/hstcache.c (cache_addhst): Likewise.
6700 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6701 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6702 (internal_getpwuid_r): Likewise.
6703 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6704 * posix/glob.h (__GLOB_FLAGS): Likewise.
6705 * posix/regcomp.c (peek_token): Likewise.
6706 (peek_token_bracket): Likewise.
6707 (parse_expression): Likewise.
6708 * posix/regexec.c (sift_states_iter_mb): Likewise.
6709 (check_node_accept_bytes): Likewise.
6710 * posix/tst-spawn3.c (do_test): Likewise.
6711 * posix/wordexp-test.c (testit): Likewise.
6712 * posix/wordexp.c (parse_tilde): Likewise.
6713 (exec_comm): Likewise.
6714 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6715 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6716 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6717 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6718 * stdio-common/tst-fileno.c (do_test): Likewise.
6719 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6720 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6721 * stdlib/strtod_l.c (round_and_return): Likewise.
6722 (____STRTOF_INTERNAL): Likewise.
6723 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6724 * string/strcspn.c (STRCSPN): Likewise.
6725 * string/test-memmem.c (simple_memmem): Likewise.
6726 * termios/tcsetattr.c (tcsetattr): Likewise.
6727 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6728 * time/asctime.c (asctime_internal): Likewise.
6729 * time/strptime_l.c (__strptime_internal): Likewise.
6730 * time/sys/time.h (timercmp): Likewise.
6731 * time/tzfile.c (__tzfile_compute): Likewise.
6732
6733 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6734
6735 [BZ #21915]
6736 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6737
6738 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6739
6740 * argp/argp-help.c (__argp_error_internal): New function,
6741 renamed from __argp_error, but that takes a 'mode_flags'
6742 parameter to control the format of long double parameters.
6743 (__argp_error): Converted into a call __argp_error_internal.
6744 (__argp_failure_internal): New function, renamed from
6745 __argp_failure, but that takes a 'mode_flags' parameter.
6746 (__argp_failure): Converted into a call __argp_failure_internal.
6747 * misc/err.c (__vwarnx_internal): New function, renamed from
6748 vwarnx, but that takes a 'mode_flags' parameter.
6749 (vwarnx): Converted into a call to __vwarnx_internal.
6750 (__vwarn_internal): New function, renamed from vwarn, but that
6751 takes a 'mode_flags' parameter.
6752 (vwarn): Converted into a call to __vwarn_internal.
6753 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6754 call to __vfxprintf with 'mode_flags'.
6755 (__error_internal): New function, renamed from error, but that
6756 takes a 'mode_flags' parameter.
6757 (error): Converted into a call to __error_internal.
6758 (__error_at_line_internal): New function, renamed from
6759 error_at_line, but that takes a 'mode_flags' parameter.
6760 (error_at_line): Converted into a call to
6761 __error_at_line_internal.
6762 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6763 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6764 Likewise.
6765
6766 2019-02-20 Martin Liska <mliska@suse.cz>
6767
6768 * math/Makefile: Install math-vector-fortran.h.
6769 * bits/math-vector-fortran.h: New file.
6770 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6771
6772 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6773
6774 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6775 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6776
6777 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6778
6779 * nptl/pthread_mutex_trylock.c: Fix comment.
6780
6781 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6782
6783 * nptl/pthread_tryjoin.c: Fix comment.
6784
6785 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6786
6787 [BZ #24231]
6788 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6789 after R_SPARC_H34 case.
6790
6791 2019-02-18 Florian Weimer <fweimer@redhat.com>
6792
6793 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6794 (getanswer): Do not call Dprintf.
6795 (res_gethostbyname2_context): Likewise.
6796 (res_gethostbyaddr_context): Likewise.
6797
6798 2019-02-18 Florian Weimer <fweimer@redhat.com>
6799
6800 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6801 declaration.
6802 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6803 Remove definitions.
6804 * libio/stdfiles.c: Update comment.
6805 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6806 set _IO_stdin, _IO_stdout, _IO_stderr.
6807 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6808 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6809 inline function.
6810 (_IO_deallocate_file): New inline function.
6811 * libio/iolibio.h (_IO_vprintf): Remove definition.
6812 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6813 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6814 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6815 _IO_legacy_file.
6816 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6817 __builtin_expect. Use _IO_legacy_file.
6818
6819 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6820
6821 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6822 Initialize ctid with a known value and remove update of ctid
6823 after clone.
6824 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6825 as assumed current value of ctid_ptr.
6826
6827 2019-02-16 Florian Weimer <fweimer@redhat.com>
6828
6829 Check that non-sysdeps headers have wrapper headers.
6830 * scripts/check-wrapper-headers.py: New file.
6831 * Makefile (tests-special): Add check-wrapper-headers.out.
6832 (check-wrapper-headers.out): New target.
6833 * Rules (tests-special): Add check-wrapper-headers.out.
6834 (check-wrapper-headers.out): New target.
6835
6836 2019-02-16 Florian Weimer <fweimer@redhat.com>
6837
6838 Add missing header wrappers under include/.
6839 * include/ar.h: New file.
6840 * include/bits/mqueue2.h: Likewise.
6841 * include/bits/stdio.h: Likewise.
6842 * include/bits/stdio2.h: Likewise.
6843 * include/fstab.h: Likewise.
6844 * include/fts.h: Likewise.
6845 * include/lastlog.h: Likewise.
6846 * include/netinet/icmp6.h: Likewise.
6847 * include/netinet/igmp.h: Likewise.
6848 * include/netinet/ip6.h: Likewise.
6849 * include/re_comp.h: Likewise.
6850 * include/regexp.h: Likewise.
6851 * include/rpcsvc/bootparam.h: Likewise.
6852 * include/rpcsvc/yp_prot.h: Likewise.
6853 * include/sys/random.h: Likewise.
6854 * include/sys/stropts.h: Likewise.
6855 * include/sys/ttychars.h: Likewise.
6856 * include/sys/vfs.h: Likewise.
6857 * include/wait.h: Likewise.
6858
6859 2019-02-16 Florian Weimer <fweimer@redhat.com>
6860
6861 * nptl_db/proc_service.h: Move to ...
6862 * sysdeps/nptl/proc_service.h: ... here.
6863 * nptl_db/thread_db.h: Move to ...
6864 * sysdeps/nptl/thread_db.h: ... here.
6865 * nptl/descr.h: Include <thread_db.h>.
6866
6867 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6868
6869 * io/Makefile (tests): Add tst-lockf.
6870 * io/lockf.c (lockf): Use __fcntl and only define for
6871 !__OFF_T_MATCHES_OFF64_T.
6872 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6873 __OFF_T_MATCHES_OFF64_T case.
6874 * io/tst-lockf.c: New file.
6875 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6876 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6877 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6878 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6879 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6881 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6882 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6883 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6884
6885 2019-02-15 Florian Weimer <fweimer@redhat.com>
6886
6887 [BZ #24211]
6888 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6889 pd->result after the thread descriptor has been freed.
6890
6891 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6892
6893 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6894 from function return type.
6895
6896 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6897
6898 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6899
6900 * scripts/test_printers_common.py: Set TERM to a known harmless
6901 value.
6902
6903 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6904
6905 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6906 (xdr_u_int): Likewise.
6907 (xdr_enum): Likewise.
6908 (xdr_bytes): Reword fall-through comment.
6909 (xdr_string): Likewise.
6910
6911 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6912
6913 [BZ #2421]
6914 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6915 (tests): Add tst-join8 tst-join9.
6916 * nptl/lll_timedwait_tid.c: Remove file.
6917 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6918 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6919 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6920 * nptl/pthread_join_common.c (timedwait_tid): New function.
6921 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6922 is set.
6923 * nptl/tst-join5.c (thread_join): New function.
6924 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6925 check.
6926 * nptl/tst-join8.c: New file.
6927 * nptl/tst-join9.c: Likewise.
6928 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6929 lll_futex_timed_wait_cancel): Add generic macros.
6930 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6931 Remove definitions.
6932 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6933 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6934 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6935 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6936 Remove function.
6937 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6938 Likewise.
6939 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6940 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6941 (lll_futex_timed_wait_cancel): New macro.
6942
6943 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6944
6945 * benchtests/Makefile: Add malloc-simple benchmark.
6946 * benchtests/bench-malloc-simple.c: New benchmark.
6947
6948 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6949
6950 * benchtests/bench-memmove.c (do_one_test): Remove unused
6951 ORIG_SRC.
6952 (do_test): Adjust.
6953 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6954 ORIG_SRC.
6955 (do_test): Adjust.
6956
6957 2019-01-13 Jim Wilson <jimw@sifive.com>
6958
6959 [BZ #24040]
6960 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6961 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6962 (func): New.
6963 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6964 call func directly.
6965 * nptl/Makefile (tests): Add tst-unwind-thread.
6966 (CFLAGS-tst-unwind-thread.c): Define.
6967 * nptl/tst-unwind-thread.c: New file.
6968 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6969 as undefined.
6970
6971 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6972
6973 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6974 comment wording.
6975 * nis/nis_call.c (__do_niscall3): Likewise.
6976
6977 * catgets/gencat.c (normalize_line): Use braces around empty
6978 'else' body.
6979 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6980 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6981 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6982 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6983 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6984 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6985 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6986 definition.
6987
6988 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6989 execlp returns.
6990
6991 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6992
6993 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6994 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6995 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6996 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6997 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6998 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6999 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
7000 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
7001 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
7002 * benchtests/bench-strspn.c (stupid_strspn): Remove.
7003 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
7004 * benchtests/bench-bcopy.c: Delete file.
7005 * benchtests/bench-bzero.c: Likewise.
7006 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
7007 (simple_memccpy): Remove.
7008 (generic_memccpy): Add function.
7009 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
7010 * benchtests/bench-memmove.c (simple_bcopy): Remove.
7011 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
7012 (generic_mempcpy): Add new function.
7013 * benchtests/bench-memset.c (simple_bzero): Remove.
7014 (builtin_bzero): Remove.
7015 (builtin_memset): Remove.
7016 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
7017 (generic_rawmemchr): Add new function.
7018
7019 2019-02-12 Florian Weimer <fweimer@redhat.com>
7020
7021 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
7022
7023 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7024
7025 [BZ #24122]
7026 * elf/Makefile (tests): Add tst-audit13.
7027 (modules-names): Add tst-audit13mod1.
7028 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7029 rule.
7030 * elf/tst-audit13.c: New file.
7031 * elf/tst-audit13mod1.c: Likewise.
7032
7033 2019-02-12 Florian Weimer <fweimer@redhat.com>
7034
7035 [BZ #24122]
7036 * elf/rtld.c (unload_audit_module): New function.
7037 (report_audit_module_load_error): Likewise.
7038 (load_audit_module): Likewise. Extracted from dl_main. Call
7039 _dl_close if the laversion symbol cannot be found. Use early
7040 returns for error handling. Add malloc error check. Check for a
7041 zero return value from la_version. Remove spurious comment about
7042 static TLS initialization. Remove useless casts.
7043 (notify_audit_modules_of_loaded_object): New function. Extracted
7044 from dl_main.
7045 (load_audit_module): Likewise.
7046 (dl_main): Call load_audit_modules.
7047
7048 2019-02-12 Joseph Myers <joseph@codesourcery.com>
7049
7050 * elf/dl-exception.c (_dl_exception_create_format): Add
7051 fall-through comments.
7052 * elf/ldconfig.c (parse_conf_include): Likewise.
7053 * elf/rtld.c (print_statistics): Likewise.
7054 * locale/programs/charmap.c (parse_charmap): Likewise.
7055 * misc/mntent_r.c (__getmntent_r): Likewise.
7056 * posix/wordexp.c (parse_arith): Likewise.
7057 (parse_backtick): Likewise.
7058 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
7059 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
7060 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7061
7062 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
7063
7064 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
7065 Use float instead of double.
7066
7067 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7068
7069 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
7070
7071 2019-02-08 Joseph Myers <joseph@codesourcery.com>
7072
7073 * sysdeps/powerpc/bits/mathinline.h: Remove.
7074
7075 2019-02-08 Florian Weimer <fweimer@redhat.com>
7076
7077 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
7078 * math/bits/math-finite.h: Move to ...
7079 * bits/math-finite.h: ... here.
7080
7081 2019-02-08 Florian Weimer <fweimer@redhat.com>
7082
7083 * sysdeps/generic/bits/unistd_ext.h: Move to ...
7084 * bits/unistd_ext.h: here.
7085
7086 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
7087
7088 [BZ #21915]
7089 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
7090 * nss/tst-nss-files-hosts-long.c: New file.
7091 * nss/tst-nss-files-hosts-long.root: New directory.
7092 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
7093 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
7094
7095 2019-02-08 Florian Weimer <fweimer@redhat.com>
7096
7097 * include/bits/unistd_ext.h: Remove file.
7098 * posix/bits/unistd_ext.h: Move to ...
7099 * sysdeps/generic/bits/unistd_ext.h: ... here.
7100
7101 2019-02-08 Florian Weimer <fweimer@redhat.com>
7102
7103 * include/bits/unistd_ext.h: New file.
7104
7105 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
7106
7107 * time/tst-strftime2.c: Use array_length macros instead of magic
7108 numbers.
7109
7110 2019-02-08 Florian Weimer <fweimer@redhat.com>
7111
7112 [BZ #24161]
7113 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
7114 argument.
7115 * nptl/register-atfork.c (__run_fork_handlers): Only perform
7116 locking if the new do_locking argument is true.
7117 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
7118 __run_fork_handlers.
7119
7120 2019-02-08 Florian Weimer <fweimer@redhat.com>
7121
7122 [BZ #6399]
7123 Linux: Add gettid system call wrapper.
7124 * posix/Makefile (headers): Add bits/unistd_ext.h.
7125 * posix/bits/unistd_ext.h: New file.
7126 * posix/unistd.h: Include it.
7127 * manual/process.texi (Process Identification): Document gettid.
7128 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
7129 tst-gettid, tst-gettid-kill.
7130 (tst-gettid): Link with $(shared-thread-library).
7131 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
7132 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
7133 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
7134 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
7135 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
7136 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
7137 Add gettid.
7138 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
7139 Likewise.
7140 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
7141 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
7142 Likewise.
7143 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
7144 Likewise.
7145 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
7146 Likewise.
7147 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
7148 Likewise.
7149 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
7150 Likewise.
7151 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
7152 Likewise.
7153 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
7154 Likewise.
7155 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7156 (GLIBC_2.30): Likewise.
7157 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7158 (GLIBC_2.30): Likewise.
7159 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7160 (GLIBC_2.30): Likewise.
7161 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7162 (GLIBC_2.30): Likewise.
7163 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
7164 Likewise.
7165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7166 (GLIBC_2.30): Likewise.
7167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7168 (GLIBC_2.30): Likewise.
7169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
7170 (GLIBC_2.30): Likewise.
7171 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
7172 (GLIBC_2.30): Likewise.
7173 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
7174 Likewise.
7175 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
7176 Likewise.
7177 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
7178 Likewise.
7179 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
7180 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
7181 Likewise.
7182 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
7183 Likewise.
7184 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
7185 Likewise.
7186 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
7187 Likewise.
7188 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
7189
7190 2019-02-08 Florian Weimer <fweimer@redhat.com>
7191
7192 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
7193 compatibility symbols.
7194
7195 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
7196
7197 [BZ #24180]
7198 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7199 Add compiler barriers and comments.
7200
7201 2019-02-07 Florian Weimer <fweimer@redhat.com>
7202
7203 * include/array_length.h (array_length): Do not use a statement
7204 expression and _Static_assert, so that array_length can be used at
7205 file scope and as a constant expression.
7206
7207 2019-02-07 Florian Weimer <fweimer@redhat.com>
7208
7209 * support/xdlfcn.h (xdlmopen): Declare.
7210 * support/xdlmopen.c: New file.
7211 * support/Makefile (libsupport-routines): Add xdlmopen.
7212
7213 2019-02-06 Joseph Myers <joseph@codesourcery.com>
7214
7215 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
7216 before return type, without separate inline.
7217 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
7218 * elf/dl-tunables.h (tunable_is_name): Likewise.
7219 * malloc/malloc.c (do_set_trim_threshold): Likewise.
7220 (do_set_top_pad): Likewise.
7221 (do_set_mmap_threshold): Likewise.
7222 (do_set_mmaps_max): Likewise.
7223 (do_set_mallopt_check): Likewise.
7224 (do_set_perturb_byte): Likewise.
7225 (do_set_arena_test): Likewise.
7226 (do_set_arena_max): Likewise.
7227 (do_set_tcache_max): Likewise.
7228 (do_set_tcache_count): Likewise.
7229 (do_set_tcache_unsorted_limit): Likewise.
7230 * nis/nis_subr.c (count_dots): Likewise.
7231 * nptl/allocatestack.c (advise_stack_range): Likewise.
7232 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
7233 (do_sin): Likewise.
7234 (reduce_sincos): Likewise.
7235 (do_sincos): Likewise.
7236 * sysdeps/unix/sysv/linux/x86/elision-conf.c
7237 (do_set_elision_enable): Likewise.
7238 (TUNABLE_CALLBACK_FNDECL): Likewise.
7239
7240 2019-02-06 Florian Weimer <fweimer@redhat.com>
7241
7242 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
7243 (xdlsym): Use dlerror to detect a NULL symbol.
7244
7245 2019-02-06 Florian Weimer <fweimer@redhat.com>
7246
7247 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
7248 <stap-probe.h>.
7249 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
7250
7251 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
7252
7253 * libio/tst-bz24153.c (wide): Use wide char format specifier.
7254
7255 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
7256
7257 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
7258 __wmemcmp and weak alias to wmemcmp.
7259
7260 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
7261
7262 [BZ #23403]
7263 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
7264 TLS_TCB_AT_TP tls variant.
7265 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
7266 Add alignment checks.
7267 * support/Makefile (libsupport-routines): Add xposix_memalign and
7268 xpthread_setstack.
7269 * support/support.h: Add xposix_memalign.
7270 * support/xthread.h: Add xpthread_attr_setstack.
7271 * support/xposix_memalign.c: New File.
7272 * support/xpthread_attr_setstack.c: Likewise.
7273
7274 2019-02-05 Florian Weimer <fweimer@redhat.com>
7275
7276 [BZ #24164]
7277 arm: Use "nr" constraint for Systemtap probes, to avoid the
7278 compiler using memory operands for constants, due to the "o"
7279 alternative in the default "nor" constraint.
7280 * include/stap-probe.h [USE_STAP_PROBE]: Include
7281 <stap-probe-machine.h>
7282 * sysdeps/generic/stap-probe-machine.h: New file.
7283 * sysdeps/arm/stap-probe-machine.h: Likewise.
7284
7285 2019-02-04 Joseph Myers <joseph@codesourcery.com>
7286
7287 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
7288 with 0, not tcache->entries[tc_idx].
7289
7290 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
7291 once.
7292
7293 2019-02-04 Andreas Schwab <schwab@suse.de>
7294
7295 [BZ #16976]
7296 [BZ #17396]
7297 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
7298 looking up collating elements match against (wide) character
7299 sequence instead of name. Correct alignment adjustment.
7300 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
7301 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
7302 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
7303 (LOCALES): Add cs_CZ.ISO-8859-2.
7304 * posix/tst-fnmatch4.c: New file.
7305 * posix/tst-fnmatch5.c: New file.
7306 * include/wchar.h (__wmemcmp): Declare.
7307 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
7308 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7309 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
7310 * sysdeps/s390/wmemcmp.c: Likewise.
7311
7312 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
7313
7314 [BZ #24155]
7315 CVE-2019-7309
7316 * NEWS: Updated for CVE-2019-7309.
7317 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
7318 upper 32 bits of RDX register for x32. Use unsigned Jcc
7319 instructions, instead of signed.
7320 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
7321 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
7322
7323 2019-02-04 Florian Weimer <fweimer@redhat.com>
7324
7325 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
7326 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
7327 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
7328 Likewise.
7329 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
7330 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
7331 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
7332 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
7333 Likewise.
7334 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
7335 Likewise.
7336 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
7337 Likewise.
7338 (posix_spawn_file_actions_addopen): Likewise.
7339 (posix_spawn_file_actions_addclose): Likewise.
7340 (posix_spawn_file_actions_adddup2): Likewise.
7341 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
7342 qualifiers.
7343 (posix_spawn_file_actions_addfchdir_np): Likewise.
7344
7345 2019-02-04 David Newall <glibc@davidnewall.com>
7346
7347 elf: Implement --preload option for the dynamic linker.
7348 * elf/rtld.c (preloadarg): New variable.
7349 (handle_preload_list): Pass through “where” argument to
7350 do_preload.
7351 (dl_main): Handle "--preload" and add second call to
7352 handle_preload_list.
7353 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
7354 (tst-rtld-preload-OBJS): Set variable.
7355 (tst-rtld-preload.out): New target.
7356 * elf/tst-rtld-preload.sh: New file.
7357
7358 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
7359
7360 * Makefile (testrun.sh): Exit in case of incorrect argument.
7361
7362 2019-02-04 Florian Weimer <fweimer@redhat.com>
7363
7364 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
7365 alignment gaps.
7366
7367 2019-02-03 Florian Weimer <fweimer@redhat.com>
7368
7369 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
7370 implicit overflow checks.
7371
7372 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
7373
7374 * stdlib/isomac.c: Include <unistd.h>.
7375
7376 2019-02-03 Florian Weimer <fweimer@redhat.com>
7377
7378 * include/time.h (__tzfile_default): Use int, not long int, for
7379 the GMT offsets.
7380 * time/tzfile.c (struct ttinfo): Change type of the offset member
7381 to int.
7382 (__tzfile_read): Remove useless cast.
7383 (__tzfile_default): Adjust prototype.
7384 * time/tzset.c (tz_rule): Change type of the offset member to int.
7385 (parse_offset): Change the type of the sign variable to int.
7386
7387 2019-02-03 Florian Weimer <fweimer@redhat.com>
7388
7389 [BZ #24153]
7390 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
7391 * libio/getchar.c (getchar): Likewise.
7392 * libio/getchar_u.c (getchar_unlocked): Likewise.
7393 * libio/getwchar.c (getwchar): Likewise.
7394 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7395 * libio/iogets.c (_IO_gets): Likewise.
7396 * libio/vscanf.c (_IO_vscanf): Likewise.
7397 * libio/vwscanf.c (__vwscanf): Likewise.
7398 * libio/tst-bz24153.c: New file.
7399 * libio/Makefile (tests): Add it.
7400
7401 2019-02-02 Florian Weimer <fweimer@redhat.com>
7402
7403 [BZ #14829]
7404 * manual/resource.texi (Basic Scheduling Functions): Add
7405 portability note. Change process to task throughout the section.
7406 Remove incorrect comment about sched_yield as it affects
7407 tasks/threads, not entire processes.
7408 * sysdeps/unix/sysv/linux/bits/posix_opt.h
7409 (_POSIX_PRIORITY_SCHEDULING): Update comment.
7410
7411 2019-02-01 Joseph Myers <joseph@codesourcery.com>
7412
7413 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
7414 * configure: Regenerated.
7415 * manual/install.texi (Tools for Compilation): Update minimum GCC
7416 version.
7417 * INSTALL: Regenerated.
7418
7419 2019-02-01 Florian Weimer <fweimer@redhat.com>
7420
7421 * support/support_test_compare_string.c
7422 (support_test_compare_string): Use "string" in error message.
7423 * support/tst-test_compare_string.c (do_test): Adjust.
7424
7425 2019-02-01 Florian Weimer <fweimer@redhat.com>
7426
7427 * support/support_format_address_family.c
7428 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
7429
7430 2019-02-01 Florian Weimer <fweimer@redhat.com>
7431
7432 * manual/socket.texi (Internet Address Formats): Clarify the byte
7433 order of struct sockaddr_in, struct sockaddr_in6. Document
7434 sin6_flowinfo and sin6_scope_id.
7435
7436 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
7437
7438 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
7439 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
7440 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
7441 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
7442 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
7443 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
7444
7445 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7446
7447 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
7448 [!MEMCHR](MEMCHR): Set to __memchr.
7449 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7450 Add memchr_generic and memchr_nosimd.
7451 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7452 (__libc_ifunc_impl_list): Add memchr ifuncs.
7453 * sysdeps/aarch64/multiarch/memchr.c: New file.
7454 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
7455 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
7456
7457 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7458
7459 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7460 Add memset_emag.
7461 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7462 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
7463 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
7464 Add IS_EMAG check for ifunc dispatch.
7465 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
7466 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
7467
7468 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7469
7470 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
7471 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7472 Add emag.
7473 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
7474 New macro.
7475
7476 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
7477
7478 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
7479
7480 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
7481
7482 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
7483 syscall-template file.
7484
7485 2019-01-31 Carlos O'Donell <carlos@redhat.com>
7486 Torvald Riegel <triegel@redhat.com>
7487 Rik Prohaska <prohaska7@gmail.com>
7488
7489 [BZ# 23844]
7490 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
7491 tst-rwlock-trywrlock-stall.
7492 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
7493 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
7494 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
7495 Set __wrphase_fute to 1 only if we started the write phase.
7496 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
7497 * nptl/tst-rwlock-trywrlock-stall.c: New file.
7498 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
7499 * support/xpthread_rwlock_destroy.c: New file.
7500 * support/xthread.h: Declare xpthread_rwlock_destroy.
7501
7502 2019-02-01 Joseph Myers <joseph@codesourcery.com>
7503
7504 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
7505 version to 4.0.2.
7506
7507 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7508
7509 [BZ #24051]
7510 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
7511 * libio/fileops.c (_IO_new_file_underflow): Likewise
7512 * libio/wfileops.c (_IO_wfile_underflow): Likewise
7513 * libio/putchar.c (putchar): Likewise.
7514 * libio/putchar_u.c (putchar_unlocked): Likewise.
7515 * libio/putwchar.c (putchar): Likewise.
7516 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
7517 * libio/tst-bz24051.c: New test.
7518 * libio/Makefile (tests): Add tst-bz24051
7519
7520 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
7521
7522 CVE-2019-9169
7523 regex: fix read overrun [BZ #24114]
7524 Problem found by AddressSanitizer, reported by Hongxu Chen in:
7525 https://debbugs.gnu.org/34140
7526 * posix/regexec.c (proceed_next_node):
7527 Do not read past end of input buffer.
7528
7529 2019-01-31 Florian Weimer <fweimer@redhat.com>
7530
7531 [BZ #24059]
7532 * nss/nss_files/files-alias.c (get_next_alias): Handle
7533 continuation line without newline at the end.
7534 * nss/tst-nss-files-alias-truncated.c: New file.
7535 * nss/Makefile [$(build-shared)] (tests): Add
7536 tst-nss-files-alias-truncated.
7537 (tst-nss-files-alias-truncated): Link with libnss_files.so.
7538 * support/namespace.h (struct support_chroot_configuration): Add
7539 aliases member.
7540 (struct support_chroot): Add path_aliases member.
7541 * support/support_chroot.c (support_chroot_create): Handle
7542 aliases.
7543 (support_chroot_free): Free path_aliases.
7544
7545 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
7546
7547 * version.h (RELEASE): Set to "development".
7548 (VERSION): Set to "2.29.9000".
7549 * NEWS: Add section for 2.30.
7550
7551 * version.h (RELEASE): Set to "stable".
7552 (VERSION): Set to "2.29".
7553 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
7554
7555 * NEWS: Add the list of bugs fixed in 2.29.
7556 * manual/contrib.texi: Update contributors list with some more
7557 names.
7558 * manual/install.texi: Update latest versions of packages
7559 tested.
7560 * INSTALL: Regenerated.
7561
7562 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
7563
7564 * po/be.po: Update translations.
7565 * po/bg.po: Likewise.
7566 * po/ca.po: Likewise.
7567 * po/cs.po: Likewise.
7568 * po/da.po: Likewise.
7569 * po/de.po: Likewise.
7570 * po/el.po: Likewise.
7571 * po/eo.po: Likewise.
7572 * po/es.po: Likewise.
7573 * po/fi.po: Likewise.
7574 * po/fr.po: Likewise.
7575 * po/gl.po: Likewise.
7576 * po/hr.po: Likewise.
7577 * po/hu.po: Likewise.
7578 * po/ia.po: Likewise.
7579 * po/id.po: Likewise.
7580 * po/it.po: Likewise.
7581 * po/ja.po: Likewise.
7582 * po/ko.po: Likewise.
7583 * po/lt.po: Likewise.
7584 * po/nb.po: Likewise.
7585 * po/nl.po: Likewise.
7586 * po/pl.po: Likewise.
7587 * po/pt_BR.po: Likewise.
7588 * po/ru.po: Likewise.
7589 * po/rw.po: Likewise.
7590 * po/sk.po: Likewise.
7591 * po/sl.po: Likewise.
7592 * po/sv.po: Likewise.
7593 * po/tr.po: Likewise.
7594 * po/uk.po: Likewise.
7595 * po/vi.po: Likewise.
7596 * po/zh_CN.po: Likewise.
7597 * po/zh_TW.po: Likewise.
7598
7599 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7600
7601 [BZ #24130]
7602 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
7603 of $f3 register on $y_is_neg path.
7604
7605 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
7606
7607 [BZ #24110]
7608 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
7609 sigaltstack.ss_flags.
7610
7611 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
7612
7613 [BZ #23758]
7614 * manual/time.texi (strftime): Document "%Ey".
7615 * time/strftime_l.c (__strftime_internal): Set the default width
7616 padding with zero of "%Ey" to 2.
7617
7618 [BZ #24096]
7619 * manual/time.texi (strftime): Document "%EC" and "%EY".
7620 * time/Makefile (tests): Add tst-strftime2.
7621 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7622 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7623 override padding for "%Ey".
7624 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7625 "%Ey" in the subformat as if decorated with that flag.
7626 * time/tst-strftime2.c: New file.
7627
7628 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7629
7630 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7631 are not defined.
7632
7633 [BZ #24122]
7634 * elf/Makefile (tests): Add tst-audit13.
7635 (modules-names): Add tst-audit13mod1.
7636 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7637 rule.
7638 * elf/rtld.c (dl_main): Handle invalid audit module version.
7639 * elf/tst-audit13.c: New file.
7640 * elf/tst-audit13mod1.c: Likewise.
7641
7642 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7643
7644 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7645 returned by __hurd_at_flags.
7646 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7647 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7648 directly instead of __hurd_file_name_lookup.
7649
7650 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7651
7652 * scripts/build-many-glibcs.py (Context.checkout): Default
7653 binutils version to 2.32 branch.
7654
7655 2019-01-21 Florian Weimer <fweimer@redhat.com>
7656
7657 [BZ #20018]
7658 CVE-2016-10739
7659 resolv: Reject trailing characters in host names
7660 * include/arpa/inet.h (__inet_aton_exact): Declare.
7661 (inet_aton): Remove hidden prototype. No longer used internally.
7662 * nscd/gai.c (__inet_aton): Do not define.
7663 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7664 * nss/digits_dots.c (__inet_aton): Likewise.
7665 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7666 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7667 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7668 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7669 (tst-resolv-trailing): Likewise.
7670 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7671 libc.
7672 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7673 Make static. Add endp parameter.
7674 (__inet_aton_exact): New function.
7675 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7676 (__inet_addr): Call inet_aton_end.
7677 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7678 not just IPv6. Call __inet_aton_exact.
7679 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7680 (tests): Make const. Add additional test cases with trailing
7681 characters.
7682 (do_test): Use array_length.
7683 * resolv/tst-inet_aton_exact.c: New file.
7684 * resolv/tst-resolv-trailing.c: Likewise.
7685 * resolv/tst-resolv-nondecimal.c: Likewise.
7686 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7687
7688 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7689
7690 [BZ# 24097]
7691 CVE-2019-6488
7692 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7693 Clear the upper 32 bits of RSI register.
7694 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7695 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7696 and tst-size_t-wcsnlen.
7697 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7698 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7699
7700 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7701
7702 [BZ# 24097]
7703 CVE-2019-6488
7704 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7705 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7706 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7707 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7708 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7709
7710 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7711
7712 [BZ# 24097]
7713 CVE-2019-6488
7714 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7715 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7716 * sysdeps/x86_64/strcmp.S: Likewise.
7717 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7718 tst-size_t-strncmp and tst-size_t-wcsncmp.
7719 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7720 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7721 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7722
7723 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7724
7725 [BZ# 24097]
7726 CVE-2019-6488
7727 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7728 RDX_LP for length. Clear the upper 32 bits of RDX register.
7729 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7730 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7731 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7732 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7733
7734 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7735
7736 [BZ# 24097]
7737 CVE-2019-6488
7738 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7739 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7740 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7741 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7742
7743 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7744
7745 [BZ# 24097]
7746 CVE-2019-6488
7747 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7748 length. Clear the upper 32 bits of RDX register.
7749 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7750 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7751 Likewise.
7752 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7753 Likewise.
7754 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7755 tst-size_t-wmemchr.
7756 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7757
7758 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7759
7760 [BZ# 24097]
7761 CVE-2019-6488
7762 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7763 length. Clear the upper 32 bits of RDX register.
7764 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7765 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7766 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7767 tst-size_t-wmemcmp.
7768 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7769 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7770
7771 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7772
7773 [BZ# 24097]
7774 CVE-2019-6488
7775 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7776 upper 32 bits of RDX register.
7777 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7778 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7779 tst-size_t-wmemchr.
7780 * sysdeps/x86_64/x32/test-size_t.h: New file.
7781 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7782 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7783
7784 2019-01-18 Florian Weimer <fweimer@redhat.com>
7785
7786 [BZ #24112]
7787 resolv: Do not send queries for non-host-names in nss_dns.
7788 * resolv/nss_dns/dns-host.c (check_name): New function.
7789 (_nss_dns_gethostbyname2_r): Use it.
7790 (_nss_dns_gethostbyname_r): Likewise.
7791 (_nss_dns_gethostbyname4_r): Likewise.
7792
7793 2019-01-21 Florian Weimer <fweimer@redhat.com>
7794
7795 * resolv/inet_addr.c: Reformat to GNU style.
7796 (__inet_addr, __inet_aton): Update comment.
7797
7798 2019-01-18 Florian Weimer <fweimer@redhat.com>
7799
7800 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7801 ("malloc: Use current (C11-style) atomics for fastbin access").
7802 This commit introduces a substantial performance regression on
7803 POWER and Aarch64.
7804 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7805 (REMOVE_FB): Define.
7806 (_int_malloc): Use it and reindent.
7807 (_int_free): Use CAS loop with
7808 catomic_compare_and_exchange_val_rel.
7809 (malloc_consolidate): Use atomic_exchange_acq.
7810
7811
7812 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7813
7814 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7815 -Wl,-z,now.
7816 (LDFLAGS-tst-minsigstksz-2): Likewise.
7817 (LDFLAGS-tst-minsigstksz-3): Likewise.
7818 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7819 (LDFLAGS-tst-minsigstksz-4): Likewise.
7820
7821 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7822
7823 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7824 than "alternate".
7825
7826 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7827
7828 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7829
7830 2019-01-16 Zack Weinberg <zackw@panix.com>
7831
7832 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7833 (xget_sigstack_location): New test support functions.
7834 * support/xsigstack.c: New file, implementing them.
7835 * support/tst-xsigstack.c: New test for them.
7836 * support/Makefile: Update.
7837
7838 * signal/tst-minsigstksz-1.c
7839 * signal/tst-minsigstksz-2.c
7840 * signal/tst-minsigstksz-3.c
7841 * signal/tst-minsigstksz-3a.c
7842 * signal/tst-minsigstksz-4.c: New tests.
7843 * signal/Makefile: Run them.
7844
7845 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7846
7847 * po/libc.pot: Regenerate.
7848
7849 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7850
7851 * math/libm-test-fma.inc (fma_test_data): Set
7852 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7853
7854 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7855
7856 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7857 (do_test): Changed __vector __int128_t to __vector unsigned int.
7858
7859 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7860
7861 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7862 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7863 stpcpy-avx2 and stpncpy-avx2.
7864 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7865 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7866 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7867 and __stpncpy_avx2.
7868 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7869 ifunc-strcpy.h}: rename header for a more generic name.
7870 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7871 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7872 AVX unaligned load is fast and vzeroupper is preferred.
7873 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7874 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7875 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7876 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7877 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7878 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7879
7880 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7881
7882 * argp/argp-help.c: Fix typo in comment.
7883 * misc/sys/cdefs.h: Likewise.
7884 * posix/regexec.c (sift_states_iter_mb): Likewise.
7885 * socket/sockatmark.c: Likewise.
7886 * socket/sys/socket.h: Likewise.
7887 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7888 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7889 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7890 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7891 * sysdeps/unix/sockatmark.c: Likewise.
7892 * time/strptime_l.c: Likewise.
7893
7894 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7895
7896 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7897 missing space after the cast of "_NL_CURRENT".
7898
7899 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7900
7901 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7902 ifdef to fix read of VSCR.
7903 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7904 tst-ucontext-ppc64-vscr.c to test list.
7905 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7906
7907 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7908
7909 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7910 fall-through.
7911
7912 2019-01-09 Jim Wilson <jimw@sifive.com>
7913
7914 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7915
7916 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7917
7918 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7919 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7920 __memcpy_falkor for ares.
7921 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7922 Add new define.
7923 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7924 Add ares cpu.
7925
7926 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7927
7928 [BZ #24066]
7929 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7930 4_FP_W_TYPEs are used for IEEE quad precision.
7931 * soft-fp/extendhftf2.c: Likewise.
7932 * soft-fp/extendsftf2.c: Likewise.
7933 * soft-fp/extendxftf2.c: Likewise.
7934 * soft-fp/trunctfdf2.c: Likewise.
7935 * soft-fp/trunctfhf2.c: Likewise.
7936 * soft-fp/trunctfsf2.c: Likewise.
7937 * soft-fp/trunctfxf2.c: Likewise.
7938 * sysdeps/alpha/ots_cvttx.c: Likewise.
7939 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7940 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7941 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7942 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7943 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7944 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7945 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7946 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7947 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7948 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7949 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7950 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7951 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7952 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7953 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7954 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7955 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7956
7957 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7958
7959 [BZ #24024]
7960 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7961 code with -fmath-errno.
7962 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7963 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7964 * string/test-strerror-errno.c: New file.
7965
7966 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7967
7968 [BZ #24046]
7969 * localedata/locales/en_US (date_fmt): Add, set to
7970 "%a %d %b %Y %r %Z".
7971
7972 2019-01-07 Florian Weimer <fweimer@redhat.com>
7973
7974 [BZ #24063]
7975 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7976 instead of @var{errno}.
7977 (Parsing of Integers): Likewise.
7978 (Parsing of Floats): Likewise.
7979 * manual/filesys.texi (Working with Directory Trees): Likewise.
7980 (Temporary Files): Likewise.
7981 * manual/job.texi (Terminal Access Functions): Likewise.
7982 * manual/llio.texi (Synchronizing I/O): Likewise.
7983 * manual/math.texi (SVID Random): Likewise.
7984 * manual/message.texi (The catgets Functions): Likewise.
7985 (Translation with gettext): Likewise.
7986 (Locating gettext catalog): Likewise.
7987 (Charset conversion in gettext): Likewise.
7988 * manual/nss.texi (NSS Module Function Internals): Likewise.
7989 * manual/search.texi (Hash Search Function): Likewise.
7990 * manual/setjmp.texi (System V contexts): Likewise.
7991 * manual/time.texi (Sleeping): Likewise.
7992 * manual/users.texi (Lookup User): Likewise.
7993 (Lookup Group): Likewise.
7994
7995 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7996
7997 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7998 fix typo.
7999
8000 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
8001
8002 [BZ #19444]
8003 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
8004 __builtin_unreachable for default case in switch.
8005 (__ieee754_yn): Likewise.
8006 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8007 (__ieee754_ynl): Likewise.
8008 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8009 (__ieee754_ynl): Likewise.
8010 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8011 (__ieee754_ynl): Likewise.
8012
8013 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8014
8015 * manual/maint.texi: Use @{ and @}.
8016
8017 2019-01-04 Florian Weimer <fweimer@redhat.com>
8018
8019 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
8020 function.
8021 (do_in_chroot_1): Call it.
8022 (run_chroot_tests):
8023 Improve error reporting in case it is not possible to create a
8024 collision for the PTY name required by the test.
8025
8026 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8027
8028 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
8029 lll_wait_tid with timeout.
8030 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
8031 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
8032 futex_reltimed_wait_cancelable for cancelabla mode.
8033 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
8034 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
8035 macros.
8036 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
8037 * sysdeps/posix/waitid.c (__sigwait): Likewise.
8038 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
8039 SYSCALL_CANCEL_NCS): New macro.
8040 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
8041 (lll_timedwait_tid): Remove macro.
8042 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
8043 Likewise.
8044 (lll_timedwait_tid): Likewise.
8045 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
8046 Likewise.
8047 (lll_timedwait_tid): Likewise.
8048 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
8049 Likewise.
8050 (lll_timedwait_tid): Likewise.
8051 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
8052 Use INTERNAL_SYSCALL_CANCEL.
8053 * sysdeps/unix/sysv/linux/futex-internal.h
8054 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
8055 instead of __pthread_{enable,disable}_asynccancel.
8056 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
8057 (lll_futex_wait_cancel): New macro.
8058
8059 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
8060 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
8061
8062 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
8063 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
8064
8065 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
8066 in backtrace analysis.
8067 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
8068 side-effects.
8069 (tf_send): Likewise.
8070
8071 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
8072 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
8073 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
8074 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
8075 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
8076 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
8077 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
8078 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
8079 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
8080 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
8081 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
8082 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
8083 Likewise.
8084 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
8085 tst-cancel-wrappers.sh.
8086 (generated): Remove tst-cancel-wrappers.out.
8087 (tst-cancel-wrappers.out): Remove rule.
8088 * nptl/tst-cancel-wrappers.sh: Remove file.
8089
8090 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8091
8092 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
8093 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
8094 Update.
8095
8096 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8097
8098 [BZ #23640]
8099 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
8100 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
8101 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
8102 close-on-exec reset for adddup2 file action.
8103 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
8104
8105 2019-01-03 Zack Weinberg <zackw@panix.com>
8106
8107 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
8108 parameter. Only use deprecated scanf when __USE_GNU is defined
8109 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
8110 than 201103L, whichever is relevant for the language being compiled.
8111
8112 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
8113 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
8114 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
8115 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
8116 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
8117
8118 * libio/iovsscanf.c
8119 * libio/fwscanf.c
8120 * libio/iovswscanf.c
8121 * libio/swscanf.c
8122 * libio/vscanf.c
8123 * libio/vwscanf.c
8124 * libio/wscanf.c
8125 * stdio-common/fscanf.c
8126 * stdio-common/scanf.c
8127 * stdio-common/vfscanf.c
8128 * stdio-common/vfwscanf.c
8129 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
8130 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
8131 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
8132 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
8133 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
8134 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
8135 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
8136 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
8137 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
8138 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
8139 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
8140 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
8141 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
8142 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
8143 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
8144
8145 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
8146 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
8147 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
8148 not sscanf.
8149 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
8150 with a preprocessor macro.
8151
8152 * stdio-common/bug21.c, stdio-common/scanf14.c:
8153 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
8154 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
8155 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
8156 to xscanf, xfscanf, xsscanf.
8157
8158 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
8159 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
8160 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
8161 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
8162 xfscanf, xsscanf.
8163 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
8164 override feature selection macros or provide definitions of u_char etc.
8165 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
8166 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
8167 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
8168 with -std=gnu89.
8169
8170 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8171
8172 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8173 bits/termios-misc.h.
8174 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
8175 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8176 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8177 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8178 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
8179 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
8180
8181 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
8182 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
8183 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
8184 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
8185 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
8186 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
8187 termios-misc.h.
8188 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
8189 (sysdep_headers): Add termios-misc.h.
8190
8191 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
8192 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8193 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8194
8195 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8196 termios-tcflow.h.
8197 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
8198 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
8199 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
8200 TCSAFLUSH): Move to termios-tcflow.h.
8201 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8202 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8203 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8204 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8205
8206 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8207 termios-c_lflag.h.
8208 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
8209 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
8210 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
8211 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
8212 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
8213 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
8214 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
8215 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
8216 Likewise.
8217 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8218 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8219 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8220 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8221
8222 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8223 termios-c_cflag.h.
8224 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
8225 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
8226 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
8227 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
8228 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
8229 termios-c_cflag.h.
8230 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8231 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8232 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8233 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8234
8235 [BZ #23783]
8236 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8237 termios-baud.h.
8238 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
8239 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
8240 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
8241 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
8242 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
8243 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
8244 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
8245 __MAX_BAUD): Move to termios-baud.h.
8246 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
8247 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
8248 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8249 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8250 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8251
8252 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
8253 termios-c_oflag.h.
8254 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
8255 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
8256 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
8257 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
8258 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
8259 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
8260 termios-c_oflag.h.
8261 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
8262 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
8263 FFR1): Likewise.
8264 [USE_MISC] (XTABS): Likewise.
8265 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8266 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8267 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8268 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
8269
8270 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
8271 termios-c_iflag.h.
8272 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
8273 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
8274 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
8275 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
8276 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
8277 IUTF8): Move to termios-c_iflag.h.
8278 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8279 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8280 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8281 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8282
8283 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
8284 termios-cc.h.
8285 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
8286 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
8287 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
8288 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
8289 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
8290 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
8291 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
8292 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
8293 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8294 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8295 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8296 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8297
8298 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
8299 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
8300 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
8301 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
8302 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8303 termios-struct.h.
8304 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
8305 termios-struct.h.
8306 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
8307 Likewise.
8308 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
8309 Likewise.
8310 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
8311 Likewise.
8312 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
8313 Likewise.
8314 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
8315 _HAVE_C_OSPEED): Define.
8316 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
8317 _HAVE_C_OSPEED): Likewise.
8318 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
8319 _HAVE_C_OSPEED): Likewise.
8320 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
8321 (cfsetospeed): Check for define value instead of existence.
8322 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
8323 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8324 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
8325 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8326 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
8327
8328 [BZ #17783]
8329 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
8330 Define.
8331 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
8332 (TIOCSER_TEMT): Likewise.
8333 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
8334 (TEOCSER_TEMT): Likewise.
8335
8336 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
8337
8338 [BZ #24011]
8339 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
8340
8341 2019-01-02 Joseph Myers <joseph@codesourcery.com>
8342
8343 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8344
8345 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8346
8347 * sysdeps/htl/pt-barrierattr-setpshared.c
8348 (pthread_barrierattr_setpshared): Add stub warning.
8349 * sysdeps/htl/pt-condattr-setpshared.c
8350 (pthread_condattr_setpshared): Likewise.
8351 * sysdeps/htl/pt-mutexattr-setpshared.c
8352 (pthread_mutexattr_setpshared): Likewise.
8353 * sysdeps/htl/pt-rwlockattr-setpshared.c
8354 (pthread_rwlockattr_setpshared): Likewise.
8355 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
8356 (pthread_mutexattr_setpshared): Likewise.
8357
8358 2019-01-02 Joseph Myers <joseph@codesourcery.com>
8359
8360 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
8361 constants to match with Linux 4.20.
8362
8363 * sysdeps/mips/mips32/libm-test-ulps: Update.
8364 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8365
8366 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
8367
8368 [BZ #24034]
8369 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
8370 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
8371 than __typeof (...) for the a_ptr variable.
8372
8373 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8374
8375 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
8376 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
8377 * libio/Makefile (tests): Add tst-sprintf-ub and
8378 tst-sprintf-chk-ub.
8379 (CFLAGS-tst-sprintf-ub.c): New variable.
8380 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
8381 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
8382 destination buffer and check for overflows in fortified mode.
8383 * libio/libioP.h (PRINTF_CHK): New macro.
8384 * libio/tst-sprintf-chk-ub.c: New file.
8385 * libio/tst-sprintf-ub.c: Likewise.
8386
8387 2019-01-02 Florian Weimer <fweimer@redhat.com>
8388
8389 [BZ #24018]
8390 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
8391 failure.
8392
8393 2019-01-02 Florian Weimer <fweimer@redhat.com>
8394
8395 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
8396
8397 2019-01-01 Joseph Myers <joseph@codesourcery.com>
8398
8399 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
8400 macro.
8401
8402 * sysdeps/unix/sysv/linux/netpacket/packet.h
8403 (PACKET_IGNORE_OUTGOING): New macro.
8404
8405 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
8406 macro.
8407
8408 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8409 version to 4.20.
8410 (riscv_flush_icache): New syscall.
8411
8412 * manual/texinfo.tex: Update to version 2018-12-28.17 with
8413 trailing whitespace removed.
8414 * scripts/config.guess: Update to version 2019-01-01.
8415 * scripts/config.sub: Update to version 2019-01-01.
8416 * scripts/move-if-change: Update from gnulib.
8417
8418 * NEWS: Update copyright dates.
8419 * catgets/gencat.c (print_version): Likewise.
8420 * csu/version.c (banner): Likewise.
8421 * debug/catchsegv.sh: Likewise.
8422 * debug/pcprofiledump.c (print_version): Likewise.
8423 * debug/xtrace.sh (do_version): Likewise.
8424 * elf/ldconfig.c (print_version): Likewise.
8425 * elf/ldd.bash.in: Likewise.
8426 * elf/pldd.c (print_version): Likewise.
8427 * elf/sotruss.sh: Likewise.
8428 * elf/sprof.c (print_version): Likewise.
8429 * iconv/iconv_prog.c (print_version): Likewise.
8430 * iconv/iconvconfig.c (print_version): Likewise.
8431 * locale/programs/locale.c (print_version): Likewise.
8432 * locale/programs/localedef.c (print_version): Likewise.
8433 * login/programs/pt_chown.c (print_version): Likewise.
8434 * malloc/memusage.sh (do_version): Likewise.
8435 * malloc/memusagestat.c (print_version): Likewise.
8436 * malloc/mtrace.pl: Likewise.
8437 * manual/libc.texinfo: Likewise.
8438 * nptl/version.c (banner): Likewise.
8439 * nscd/nscd.c (print_version): Likewise.
8440 * nss/getent.c (print_version): Likewise.
8441 * nss/makedb.c (print_version): Likewise.
8442 * posix/getconf.c (main): Likewise.
8443 * scripts/test-installation.pl: Likewise.
8444 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
8445
8446 * All files with FSF copyright notices: Update copyright dates
8447 using scripts/update-copyrights.
8448 * locale/programs/charmap-kw.h: Regenerated.
8449 * locale/programs/locfile-kw.h: Likewise.
8450
8451 2018-12-31 Joseph Myers <joseph@codesourcery.com>
8452
8453 * timezone/zdump.c: Update from tzcode 2018i.
8454 * timezone/zic.c: Likewise.
8455
8456 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
8457
8458 regex: improve Gnulib port to AIX
8459 From the glibc point of view, this removes duplicate macro
8460 definitions and is obviously safe.
8461 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
8462 * posix/regex_internal.h:
8463 (__attribute__, __attribute_warn_unused_result__):
8464 Remove; already defined elsewhere.
8465
8466 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
8467
8468 [BZ #24027]
8469 * malloc/malloc.c (_int_realloc): Always call memcpy for the
8470 copying operation. (ncopies had the wrong type, resulting in an
8471 integer wraparound and too few elements being copied.)
8472
8473 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
8474
8475 [BZ #24022]
8476 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
8477 <asm/syscalls.h> exists with __has_include__ before including it.
8478
8479 2018-12-31 Joseph Myers <joseph@codesourcery.com>
8480
8481 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8482 version to 4.20.
8483
8484 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
8485
8486 * hurd/lookup-retry: Include <unistd.h>.
8487 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
8488 Release it on return. Handle "pid" magical lookup retry.
8489
8490 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
8491
8492 [BZ #10496]
8493 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
8494 (t_fmt_ampm): Likewise.
8495 * localedata/locales/aa_ER (t_fmt): Likewise.
8496 (t_fmt_ampm): Likewise.
8497 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
8498 (t_fmt_ampm): Likewise.
8499 * localedata/locales/aa_ET (t_fmt): Likewise.
8500 (t_fmt_ampm): Likewise.
8501 * localedata/locales/am_ET (t_fmt): Likewise.
8502 (t_fmt_ampm): Likewise.
8503 * localedata/locales/byn_ER (t_fmt): Likewise.
8504 (t_fmt_ampm): Likewise.
8505 * localedata/locales/om_ET (t_fmt): Likewise.
8506 (t_fmt_ampm): Likewise.
8507 * localedata/locales/sid_ET (t_fmt): Likewise.
8508 (t_fmt_ampm): Likewise.
8509 * localedata/locales/so_DJ (t_fmt): Likewise.
8510 (t_fmt_ampm): Likewise.
8511 * localedata/locales/so_ET (t_fmt): Likewise.
8512 (t_fmt_ampm): Likewise.
8513 * localedata/locales/so_SO (t_fmt): Likewise.
8514 (t_fmt_ampm): Likewise.
8515 * localedata/locales/ti_ER (t_fmt): Likewise.
8516 (t_fmt_ampm): Likewise.
8517 * localedata/locales/ti_ET (t_fmt): Likewise.
8518 (t_fmt_ampm): Likewise.
8519 * localedata/locales/tig_ER (t_fmt): Likewise.
8520 (t_fmt_ampm): Likewise.
8521 * localedata/locales/wal_ET (t_fmt): Likewise.
8522 (t_fmt_ampm): Likewise.
8523
8524 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
8525 * localedata/locales/ar_IN (t_fmt): Likewise.
8526 * localedata/locales/bhb_IN (t_fmt): Likewise.
8527 * localedata/locales/bho_IN (t_fmt): Likewise.
8528 * localedata/locales/bi_VU (t_fmt): Likewise.
8529 * localedata/locales/bn_BD (t_fmt): Likewise.
8530 * localedata/locales/bn_IN (t_fmt): Likewise.
8531 * localedata/locales/brx_IN (t_fmt): Likewise.
8532 * localedata/locales/doi_IN (t_fmt): Likewise.
8533 * localedata/locales/en_HK (t_fmt): Likewise.
8534 (t_fmt_ampm): Likewise.
8535 * localedata/locales/en_IN (t_fmt): Likewise.
8536 * localedata/locales/en_PH (t_fmt): Likewise.
8537 * localedata/locales/gu_IN (t_fmt): Likewise.
8538 * localedata/locales/hi_IN (t_fmt): Likewise.
8539 * localedata/locales/hif_FJ (t_fmt): Likewise.
8540 * localedata/locales/hne_IN (t_fmt): Likewise.
8541 * localedata/locales/kn_IN (t_fmt): Likewise.
8542 * localedata/locales/kok_IN (t_fmt): Likewise.
8543 * localedata/locales/ks_IN (t_fmt): Likewise.
8544 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
8545 * localedata/locales/mag_IN (t_fmt): Likewise.
8546 * localedata/locales/mai_IN (t_fmt): Likewise.
8547 * localedata/locales/mjw_IN (t_fmt): Likewise.
8548 * localedata/locales/ml_IN (t_fmt): Likewise.
8549 * localedata/locales/mni_IN (t_fmt): Likewise.
8550 * localedata/locales/mr_IN (t_fmt): Likewise.
8551 * localedata/locales/ms_MY (t_fmt): Likewise.
8552 * localedata/locales/pa_IN (t_fmt): Likewise.
8553 * localedata/locales/raj_IN (t_fmt): Likewise.
8554 * localedata/locales/sa_IN (t_fmt): Likewise.
8555 * localedata/locales/sat_IN (t_fmt): Likewise.
8556 * localedata/locales/sd_IN (t_fmt): Likewise.
8557 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
8558 * localedata/locales/tcy_IN (t_fmt): Likewise.
8559 * localedata/locales/the_NP (t_fmt): Likewise.
8560 * localedata/locales/to_TO (t_fmt): Likewise.
8561 * localedata/locales/ur_IN (t_fmt): Likewise.
8562
8563 * localedata/locales/hif_FJ (d_t_fmt): Set to
8564 "%A %d %b %Y %I:%M:%S %p".
8565 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
8566
8567 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
8568 * localedata/locales/ar_BH (t_fmt): Likewise.
8569 * localedata/locales/ar_DZ (t_fmt): Likewise.
8570 * localedata/locales/ar_EG (t_fmt): Likewise.
8571 * localedata/locales/ar_IQ (t_fmt): Likewise.
8572 * localedata/locales/ar_JO (t_fmt): Likewise.
8573 * localedata/locales/ar_KW (t_fmt): Likewise.
8574 * localedata/locales/ar_LB (t_fmt): Likewise.
8575 * localedata/locales/ar_LY (t_fmt): Likewise.
8576 * localedata/locales/ar_OM (t_fmt): Likewise.
8577 * localedata/locales/ar_QA (t_fmt): Likewise.
8578 * localedata/locales/ar_SD (t_fmt): Likewise.
8579 * localedata/locales/ar_SS (t_fmt): Likewise.
8580 * localedata/locales/ar_SY (t_fmt): Likewise.
8581 * localedata/locales/ar_TN (t_fmt): Likewise.
8582 * localedata/locales/ar_YE (t_fmt): Likewise.
8583
8584 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
8585 (t_fmt_ampm): Likewise.
8586 * localedata/locales/gez_ET (t_fmt): Likewise.
8587 (t_fmt_ampm): Likewise.
8588
8589 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
8590 (t_fmt_ampm): Likewise.
8591 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
8592
8593 * localedata/locales/zh_HK (t_fmt):
8594 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
8595
8596 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
8597 because this locale does not use the 12-hour clock.
8598 (t_fmt): Set to "%Z %H:%M:%S".
8599 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
8600
8601 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
8602 because this locale does not use the 12-hour clock.
8603 (t_fmt): Set to "%H:%M:%S %Z".
8604 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
8605
8606 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
8607 because this locale does not use the 12-hour clock.
8608 (t_fmt): Set to "%T".
8609 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
8610 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
8611
8612 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
8613 because this locale does not use the 12-hour clock.
8614 (t_fmt): Set to "%H:%M:%S %Z".
8615 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8616
8617 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8618 because this locale does not use the 12-hour clock.
8619 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8620 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8621
8622 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
8623
8624 [BZ #10496]
8625 [BZ #23724]
8626 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8627 (t_fmt_ampm): Likewise.
8628 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8629 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8630 (d_fmt): Set to "%-d.%-m.%y".
8631
8632 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8633
8634 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8635 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8636 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8637 Likewise.
8638 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8639 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8640 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8641 function.
8642 * support/blob_repeat.c (check_mul_overflow_size_t,
8643 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8644
8645 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8646
8647 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8648
8649 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8650
8651 regex: simplify Gnulib port
8652 This simplifies the code, by removing stuff intended for porting
8653 to Gnulib but no longer needed there.
8654 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8655 uses of libc_hidden_def, weak_alias.
8656 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8657 _Restrict_ except for public-facing headers.
8658 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8659 Remove; already defined elsewhere.
8660 * posix/regex.c, posix/regex_internal.h:
8661 Use __GNUC_PREREQ instead of rolling our own.
8662 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8663
8664 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8665
8666 * benchtests/bench-strlen.c (generic_strlen): New function.
8667 (memchr_strlen): New function.
8668
8669 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8670
8671 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8672 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8673 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8674
8675 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8676
8677 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8678
8679 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8680
8681 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8682 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8683 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8684 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8685 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8686 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8687 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8688
8689 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8690
8691 [BZ #24023]
8692 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8693 PLT reference in libc.so.
8694 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8695 _Q_lltoq and _Q_qtod PLT references in libc.so.
8696
8697 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8698
8699 * benchtests/bench-memchr.c: Cleanup defines.
8700 * benchtests/bench-memcmp.c: Likewise.
8701 * benchtests/bench-memset.c: Likewise.
8702 * benchtests/bench-memset-large.c: Likewise.
8703 * benchtests/bench-memset-walk.c: Likewise.
8704 * benchtests/bench-stpcpy.c: Likewise.
8705 * benchtests/bench-stpncpy.c: Likewise.
8706 * benchtests/bench-strcat.c: Likewise.
8707 * benchtests/bench-strchr.c: Likewise.
8708 * benchtests/bench-strcmp.c: Likewise.
8709 * benchtests/bench-strcpy.c: Likewise.
8710 * benchtests/bench-strcspn.c: Likewise.
8711 * benchtests/bench-string.h: Likewise.
8712 * benchtests/bench-strlen.c: Likewise.
8713 * benchtests/bench-strncat.c: Likewise.
8714 * benchtests/bench-strncmp.c: Likewise.
8715 * benchtests/bench-strncpy.c: Likewise.
8716 * benchtests/bench-strnlen.c: Likewise.
8717 * benchtests/bench-strpbrk.c: Likewise.
8718 * benchtests/bench-strrchr.c: Likewise.
8719 * benchtests/bench-strspn.c: Likewise.
8720
8721 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8722
8723 * stdlib/longlong.h: Update from GCC.
8724
8725 [BZ #23993]
8726 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8727 * configure: Regenerated.
8728 * manual/install.texi (Tools for Compilation): Update minimum GCC
8729 version.
8730 * INSTALL: Regenerated.
8731
8732 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8733
8734 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8735
8736 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8737
8738 * malloc/malloc.c (mremap_chunk): Additional checks.
8739
8740 2018-12-21 Mao Han <han_mao@c-sky.com>
8741
8742 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8743 * scripts/build-many-glibcs.py: Add C-SKY targets.
8744 * sysdeps/csky/Implies: New file.
8745 * sysdeps/csky/Makefile: Likewise.
8746 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8747 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8748 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8749 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8750 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8751 * sysdeps/csky/abiv2/memmove.S: Likewise.
8752 * sysdeps/csky/abiv2/memset.S: Likewise.
8753 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8754 * sysdeps/csky/abiv2/start.S: Likewise.
8755 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8756 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8757 * sysdeps/csky/abiv2/strlen.S: Likewise.
8758 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8759 * sysdeps/csky/abort-instr.h: Likewise.
8760 * sysdeps/csky/atomic-machine.h: Likewise.
8761 * sysdeps/csky/bits/endian.h: Likewise.
8762 * sysdeps/csky/bits/fenv.h: Likewise.
8763 * sysdeps/csky/bits/link.h: Likewise.
8764 * sysdeps/csky/bits/setjmp.h: Likewise.
8765 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8766 * sysdeps/csky/bsd-setjmp.S: Likewise.
8767 * sysdeps/csky/configure: Likewise.
8768 * sysdeps/csky/configure.ac: Likewise.
8769 * sysdeps/csky/dl-machine.h: Likewise.
8770 * sysdeps/csky/dl-procinfo.c: Likewise.
8771 * sysdeps/csky/dl-procinfo.h: Likewise.
8772 * sysdeps/csky/dl-sysdep.h: Likewise.
8773 * sysdeps/csky/dl-tls.h: Likewise.
8774 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8775 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8776 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8777 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8778 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8779 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8780 * sysdeps/csky/fpu/fegetround.c: Likewise.
8781 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8782 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8783 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8784 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8785 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8786 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8787 * sysdeps/csky/fpu/fesetround.c: Likewise.
8788 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8789 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8790 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8791 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8792 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8793 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8794 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8795 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8796 * sysdeps/csky/fpu_control.h: Likewise.
8797 * sysdeps/csky/gccframe.h: Likewise.
8798 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8799 * sysdeps/csky/ldsodefs.h: Likewise.
8800 * sysdeps/csky/libc-tls.c: Likewise.
8801 * sysdeps/csky/linkmap.h: Likewise.
8802 * sysdeps/csky/machine-gmon.h: Likewise.
8803 * sysdeps/csky/memusage.h: Likewise.
8804 * sysdeps/csky/nofpu/Implies: Likewise.
8805 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8806 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8807 * sysdeps/csky/nptl/Makefile: Likewise.
8808 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8809 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8810 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8811 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8812 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8813 * sysdeps/csky/nptl/tls.h: Likewise.
8814 * sysdeps/csky/preconfigure: Likewise.
8815 * sysdeps/csky/sfp-machine.h: Likewise.
8816 * sysdeps/csky/sotruss-lib.c: Likewise.
8817 * sysdeps/csky/stackinfo.h: Likewise.
8818 * sysdeps/csky/sysdep.h: Likewise.
8819 * sysdeps/csky/tininess.h: Likewise.
8820 * sysdeps/csky/tst-audit.h: Likewise.
8821 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8822 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8823 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8824 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8825 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8826 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8827 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8828 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8829 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8830 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8831 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8832 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8833 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8834 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8835 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8836 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8837 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8838 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8839 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8840 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8841 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8842 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8843 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8844 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8845 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8846 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8847 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8848 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8849 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8850 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8851 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8852 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8853 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8854 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8855 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8856 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8857 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8858 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8859 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8860 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8861 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8862 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8863 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8864 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8865
8866 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8867
8868 * include/time.h (__difftime64): Add.
8869 * time/difftime.c (subtract): convert to 64-bit time.
8870 * time/difftime.c (__difftime64): Add.
8871 * time/difftime.c (__difftime): Wrap around __difftime64.
8872
8873 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8874
8875 * manual/examples/add.c: Remove redundant "if not".
8876 * manual/examples/argp-ex1.c: Likewise.
8877 * manual/examples/argp-ex2.c: Likewise.
8878 * manual/examples/argp-ex3.c: Likewise.
8879 * manual/examples/argp-ex4.c: Likewise.
8880 * manual/examples/atexit.c: Likewise.
8881 * manual/examples/db.c: Likewise.
8882 * manual/examples/dir.c: Likewise.
8883 * manual/examples/dir2.c: Likewise.
8884 * manual/examples/execinfo.c: Likewise.
8885 * manual/examples/filecli.c: Likewise.
8886 * manual/examples/filesrv.c: Likewise.
8887 * manual/examples/fmtmsgexpl.c: Likewise.
8888 * manual/examples/genpass.c: Likewise.
8889 * manual/examples/inetcli.c: Likewise.
8890 * manual/examples/inetsrv.c: Likewise.
8891 * manual/examples/isockad.c: Likewise.
8892 * manual/examples/longopt.c: Likewise.
8893 * manual/examples/memopen.c: Likewise.
8894 * manual/examples/memstrm.c: Likewise.
8895 * manual/examples/mkdirent.c: Likewise.
8896 * manual/examples/mkfsock.c: Likewise.
8897 * manual/examples/mkisock.c: Likewise.
8898 * manual/examples/mygetpass.c: Likewise.
8899 * manual/examples/pipe.c: Likewise.
8900 * manual/examples/popen.c: Likewise.
8901 * manual/examples/rprintf.c: Likewise.
8902 * manual/examples/search.c: Likewise.
8903 * manual/examples/select.c: Likewise.
8904 * manual/examples/setjmp.c: Likewise.
8905 * manual/examples/sigh1.c: Likewise.
8906 * manual/examples/sigusr.c: Likewise.
8907 * manual/examples/stpcpy.c: Likewise.
8908 * manual/examples/strdupa.c: Likewise.
8909 * manual/examples/strftim.c: Likewise.
8910 * manual/examples/subopt.c: Likewise.
8911 * manual/examples/swapcontext.c: Likewise.
8912 * manual/examples/termios.c: Likewise.
8913 * manual/examples/testopt.c: Likewise.
8914 * manual/examples/testpass.c: Likewise.
8915 * manual/examples/timeval_subtract.c: Likewise.
8916
8917 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8918
8919 * sysdeps/x86/fpu/math_private.h: New file.
8920 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8921
8922 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8923 definition.
8924 (cosh): Likewise.
8925 (tanh): Likewise.
8926
8927 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8928
8929 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8930 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8931 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8932 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8933 fields.
8934 (_dl_show_auxv): Give a special treatment to
8935 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8936 and AT_L3_CACHEGEOMETRY.
8937 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8938 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8939 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8940 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8941
8942 2018-12-19 Andreas Schwab <schwab@suse.de>
8943
8944 * nscd/connections.c (check_use): Don't abort on invalid len.
8945
8946 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8947
8948 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8949 values in the 64bit value cases.
8950
8951 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8952
8953 * include/time.h
8954 (__ctime64_r): Add.
8955 * time/ctime_r.c
8956 (__ctime64_r): Add.
8957 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8958
8959 * include/time.h
8960 (__ctime64): Add.
8961 * time/gmtime.c
8962 (__ctime64): Add.
8963 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8964
8965 * include/time.h
8966 (__gmtime64_r): Add.
8967 * time/gmtime.c
8968 (__gmtime64_r): Add.
8969 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8970
8971 * include/time.h
8972 (__gmtime64): Add.
8973 * time/gmtime.c
8974 (__gmtime64): Add.
8975 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8976
8977 * include/time.h
8978 (__localtime64_r): Add.
8979 * time/localtime.c
8980 (__localtime64_r): Add.
8981 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8982
8983 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8984
8985 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8986 kernel_sigction definition.
8987
8988 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8989
8990 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8991
8992 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8993 __syscall_rt_sigaction.
8994 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8995 (kernel_sigaction): Use Linux generic defintion.
8996 (STUB): Define.
8997 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8998 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8999 (__syscall_rt_sigaction): Remove implementation.
9000 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
9001 hidden.
9002 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
9003 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
9004 INTERNAL_SYSCALL): Remove definitions.
9005 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
9006 action and signal set size.
9007 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
9008 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
9009
9010 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9011 James Clarke <jrtc27@jrtc27.com>
9012
9013 [BZ #23967]
9014 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
9015 Define if SA_RESTORER is defined.
9016 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
9017 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
9018 already defined.
9019 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
9020 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
9021 definitions.
9022 (HAS_SA_RESTORER): Define.
9023 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
9024 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
9025 (HAS_SA_RESTORER): Define.
9026 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
9027 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
9028 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
9029 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
9030 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9031
9032 2018-12-18 Joseph Myers <joseph@codesourcery.com>
9033
9034 * sysdeps/unix/sysv/linux/kernel-features.h
9035 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
9036 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9037 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
9038 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9039 (__ASSUME_ST_INO_64_BIT): Likewise.
9040 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9041 <kernel-features.h>.
9042 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9043 Remove conditional code.
9044 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9045 <kernel-features.h>.
9046 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9047 Remove conditional code.
9048 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
9049 <kernel-features.h>.
9050 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
9051 Remove conditional code.
9052 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
9053 <kernel-features.h>.
9054 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
9055 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
9056
9057 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9058
9059 * sysdeps/s390/multiarch/ifunc-resolve.h
9060 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
9061 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
9062 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
9063 Delete macro definition.
9064 (s390_libc_ifunc_init): Rename to
9065 s390_libc_ifunc_expr_stfle_init.
9066 * sysdeps/s390/bzero: Use
9067 s390_libc_ifunc_expr_stfle_init instead of
9068 s390_libc_ifunc_init.
9069 * sysdeps/s390/memcmp.c: Likewise.
9070 * sysdeps/s390/memcpy.c: Likewise.
9071 * sysdeps/s390/mempcpy.c: Likewise.
9072 * sysdeps/s390/memset.c: Likewise.
9073
9074 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9075
9076 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
9077 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
9078
9079 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9080
9081 * sysdeps/s390/multiarch/Makefile
9082 (sysdep_routines): Remove wmemcmp variants.
9083 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
9084 * sysdeps/s390/multiarch/ifunc-impl-list.c
9085 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
9086 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
9087 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
9088 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
9089 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
9090 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
9091 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
9092 * sysdeps/s390/ifunc-wmemcmp.h: New file.
9093
9094 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9095
9096 * sysdeps/s390/multiarch/Makefile
9097 (sysdep_routines): Remove wmemset variants.
9098 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
9099 * sysdeps/s390/multiarch/ifunc-impl-list.c
9100 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
9101 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
9102 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
9103 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
9104 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
9105 * sysdeps/s390/multiarch/wmemset.c: Move to ...
9106 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
9107 * sysdeps/s390/ifunc-wmemset.h: New file.
9108
9109 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9110
9111 * sysdeps/s390/multiarch/Makefile
9112 (sysdep_routines): Remove wmemchr variants.
9113 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
9114 * sysdeps/s390/multiarch/ifunc-impl-list.c
9115 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
9116 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
9117 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
9118 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
9119 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
9120 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
9121 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
9122 * sysdeps/s390/ifunc-wmemchr.h: New file.
9123
9124 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9125
9126 * sysdeps/s390/multiarch/Makefile
9127 (sysdep_routines): Remove wcscspn variants.
9128 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
9129 * sysdeps/s390/multiarch/ifunc-impl-list.c
9130 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
9131 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
9132 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
9133 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
9134 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
9135 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
9136 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
9137 * sysdeps/s390/ifunc-wcscspn.h: New file.
9138
9139 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9140
9141 * sysdeps/s390/multiarch/Makefile
9142 (sysdep_routines): Remove wcspbrk variants.
9143 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
9144 * sysdeps/s390/multiarch/ifunc-impl-list.c
9145 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
9146 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
9147 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
9148 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
9149 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
9150 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
9151 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
9152 * sysdeps/s390/ifunc-wcspbrk.h: New file.
9153
9154 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9155
9156 * sysdeps/s390/multiarch/Makefile
9157 (sysdep_routines): Remove wcsspn variants.
9158 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
9159 * sysdeps/s390/multiarch/ifunc-impl-list.c
9160 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
9161 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
9162 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
9163 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
9164 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
9165 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
9166 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
9167 * sysdeps/s390/ifunc-wcsspn.h: New file.
9168
9169 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9170
9171 * sysdeps/s390/multiarch/Makefile
9172 (sysdep_routines): Remove wcsrchr variants.
9173 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
9174 * sysdeps/s390/multiarch/ifunc-impl-list.c
9175 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
9176 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
9177 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
9178 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
9179 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
9180 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
9181 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
9182 * sysdeps/s390/ifunc-wcsrchr.h: New file.
9183
9184 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9185
9186 * sysdeps/s390/multiarch/Makefile
9187 (sysdep_routines): Remove wcschrnul variants.
9188 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
9189 * sysdeps/s390/multiarch/ifunc-impl-list.c
9190 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
9191 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
9192 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
9193 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
9194 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
9195 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
9196 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
9197 * sysdeps/s390/ifunc-wcschrnul.h: New file.
9198
9199 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9200
9201 * sysdeps/s390/multiarch/Makefile
9202 (sysdep_routines): Remove wcschr variants.
9203 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
9204 * sysdeps/s390/multiarch/ifunc-impl-list.c
9205 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
9206 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
9207 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
9208 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
9209 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
9210 * sysdeps/s390/multiarch/wcschr.c: Move to ...
9211 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
9212 * sysdeps/s390/ifunc-wcschr.h: New file.
9213
9214 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9215
9216 * sysdeps/s390/multiarch/Makefile
9217 (sysdep_routines): Remove wcsncmp variants.
9218 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
9219 * sysdeps/s390/multiarch/ifunc-impl-list.c
9220 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
9221 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
9222 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
9223 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
9224 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
9225 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
9226 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
9227 * sysdeps/s390/ifunc-wcsncmp.h: New file.
9228
9229 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9230
9231 * sysdeps/s390/multiarch/Makefile
9232 (sysdep_routines): Remove wcscmp variants.
9233 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
9234 * sysdeps/s390/multiarch/ifunc-impl-list.c
9235 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
9236 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
9237 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
9238 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
9239 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
9240 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
9241 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
9242 * sysdeps/s390/ifunc-wcscmp.h: New file.
9243
9244 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9245
9246 * sysdeps/s390/multiarch/Makefile
9247 (sysdep_routines): Remove wcsncat variants.
9248 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
9249 * sysdeps/s390/multiarch/ifunc-impl-list.c
9250 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
9251 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
9252 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
9253 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
9254 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
9255 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
9256 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
9257 * sysdeps/s390/ifunc-wcsncat.h: New file.
9258
9259 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9260
9261 * sysdeps/s390/multiarch/Makefile
9262 (sysdep_routines): Remove wcscat variants.
9263 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
9264 * sysdeps/s390/multiarch/ifunc-impl-list.c
9265 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
9266 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
9267 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
9268 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
9269 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
9270 * sysdeps/s390/multiarch/wcscat.c: Move to ...
9271 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
9272 * sysdeps/s390/ifunc-wcscat.h: New file.
9273
9274 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9275
9276 * sysdeps/s390/multiarch/Makefile
9277 (sysdep_routines): Remove wcpncpy variants.
9278 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
9279 * sysdeps/s390/multiarch/ifunc-impl-list.c
9280 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
9281 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
9282 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
9283 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
9284 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
9285 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
9286 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
9287 * sysdeps/s390/ifunc-wcpncpy.h: New file.
9288
9289 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9290
9291 * sysdeps/s390/multiarch/Makefile
9292 (sysdep_routines): Remove wcsncpy variants.
9293 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
9294 * sysdeps/s390/multiarch/ifunc-impl-list.c
9295 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
9296 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
9297 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
9298 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
9299 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
9300 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
9301 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
9302 * sysdeps/s390/ifunc-wcsncpy.h: New file.
9303
9304 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9305
9306 * sysdeps/s390/multiarch/Makefile
9307 (sysdep_routines): Remove wcpcpy variants.
9308 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
9309 * sysdeps/s390/multiarch/ifunc-impl-list.c
9310 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
9311 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
9312 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
9313 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
9314 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
9315 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
9316 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
9317 * sysdeps/s390/ifunc-wcpcpy.h: New file.
9318
9319 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9320
9321 * sysdeps/s390/multiarch/Makefile
9322 (sysdep_routines): Remove wcscpy variants.
9323 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
9324 * sysdeps/s390/multiarch/ifunc-impl-list.c
9325 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
9326 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
9327 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
9328 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
9329 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
9330 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
9331 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
9332 * sysdeps/s390/ifunc-wcscpy.h: New file.
9333
9334 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9335
9336 * sysdeps/s390/multiarch/Makefile
9337 (sysdep_routines): Remove wcsnlen variants.
9338 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
9339 * sysdeps/s390/multiarch/ifunc-impl-list.c
9340 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
9341 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
9342 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
9343 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
9344 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
9345 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
9346 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
9347 * sysdeps/s390/ifunc-wcsnlen.h: New file.
9348
9349 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9350
9351 * sysdeps/s390/multiarch/Makefile
9352 (sysdep_routines): Remove wcslen variants.
9353 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
9354 * sysdeps/s390/multiarch/ifunc-impl-list.c
9355 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
9356 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
9357 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
9358 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
9359 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
9360 * sysdeps/s390/multiarch/wcslen.c: Move to ...
9361 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
9362 * sysdeps/s390/ifunc-wcslen.h: New file.
9363
9364 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9365
9366 * sysdeps/s390/multiarch/Makefile
9367 (sysdep_routines): Remove memrchr variants.
9368 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
9369 * sysdeps/s390/multiarch/ifunc-impl-list.c
9370 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
9371 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
9372 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
9373 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
9374 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
9375 * sysdeps/s390/multiarch/memrchr.c: Move to ...
9376 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
9377 * sysdeps/s390/ifunc-memrchr.h: New file.
9378
9379 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9380
9381 * sysdeps/s390/multiarch/Makefile
9382 (sysdep_routines): Remove memccpy variants.
9383 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
9384 * sysdeps/s390/multiarch/ifunc-impl-list.c
9385 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
9386 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
9387 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
9388 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
9389 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
9390 * sysdeps/s390/multiarch/memccpy.c: Move to ...
9391 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
9392 * sysdeps/s390/ifunc-memccpy.h: New file.
9393
9394 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9395
9396 * sysdeps/s390/multiarch/Makefile
9397 (sysdep_routines): Remove rawmemchr variants.
9398 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
9399 * sysdeps/s390/multiarch/ifunc-impl-list.c
9400 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
9401 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
9402 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
9403 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
9404 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
9405 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
9406 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
9407 * sysdeps/s390/ifunc-rawmemchr.h: New file.
9408
9409 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9410
9411 * sysdeps/s390/multiarch/Makefile
9412 (sysdep_routines): Remove memchr variants.
9413 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
9414 * sysdeps/s390/multiarch/ifunc-impl-list.c
9415 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
9416 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
9417 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
9418 * sysdeps/s390/multiarch/memchr.c: Move to ...
9419 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
9420 * sysdeps/s390/ifunc-memchr.h: New file.
9421 * sysdeps/s390/s390-64/memchr.S: Move to ...
9422 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
9423 for 31/64bit and ifunc handling.
9424 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
9425 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
9426 * sysdeps/s390/s390-32/memchr.S: Likewise.
9427
9428 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9429
9430 * sysdeps/s390/multiarch/Makefile
9431 (sysdep_routines): Remove strcspn variants.
9432 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
9433 * sysdeps/s390/multiarch/ifunc-impl-list.c
9434 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
9435 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
9436 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
9437 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
9438 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
9439 * sysdeps/s390/multiarch/strcspn.c: Move to ...
9440 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
9441 * sysdeps/s390/ifunc-strcspn.h: New file.
9442
9443 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9444
9445 * sysdeps/s390/multiarch/Makefile
9446 (sysdep_routines): Remove strpbrk variants.
9447 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
9448 * sysdeps/s390/multiarch/ifunc-impl-list.c
9449 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
9450 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
9451 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
9452 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
9453 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
9454 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
9455 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
9456 * sysdeps/s390/ifunc-strpbrk.h: New file.
9457
9458 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9459
9460 * sysdeps/s390/multiarch/Makefile
9461 (sysdep_routines): Remove strspn variants.
9462 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
9463 * sysdeps/s390/multiarch/ifunc-impl-list.c
9464 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
9465 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
9466 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
9467 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
9468 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
9469 * sysdeps/s390/multiarch/strspn.c: Move to ...
9470 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
9471 * sysdeps/s390/ifunc-strspn.h: New file.
9472
9473 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9474
9475 * sysdeps/s390/multiarch/Makefile
9476 (sysdep_routines): Remove strrchr variants.
9477 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
9478 * sysdeps/s390/multiarch/ifunc-impl-list.c
9479 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
9480 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
9481 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
9482 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
9483 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
9484 * sysdeps/s390/multiarch/strrchr.c: Move to ...
9485 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
9486 * sysdeps/s390/ifunc-strrchr.h: New file.
9487
9488 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9489
9490 * sysdeps/s390/multiarch/Makefile
9491 (sysdep_routines): Remove strchrnul variants.
9492 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
9493 * sysdeps/s390/multiarch/ifunc-impl-list.c
9494 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
9495 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
9496 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
9497 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
9498 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
9499 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
9500 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
9501 * sysdeps/s390/ifunc-strchrnul.h: New file.
9502
9503 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9504
9505 * sysdeps/s390/multiarch/Makefile
9506 (sysdep_routines): Remove strchr variants.
9507 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
9508 * sysdeps/s390/multiarch/ifunc-impl-list.c
9509 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
9510 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
9511 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
9512 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
9513 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
9514 * sysdeps/s390/multiarch/strchr.c: Move to ...
9515 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
9516 * sysdeps/s390/ifunc-strchr.h: New file.
9517
9518 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9519
9520 * sysdeps/s390/multiarch/Makefile
9521 (sysdep_routines): Remove strncmp variants.
9522 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
9523 * sysdeps/s390/multiarch/ifunc-impl-list.c
9524 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
9525 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
9526 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
9527 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
9528 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
9529 * sysdeps/s390/multiarch/strncmp.c: Move to ...
9530 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
9531 * sysdeps/s390/ifunc-strncmp.h: New file.
9532
9533 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9534
9535 * sysdeps/s390/multiarch/Makefile
9536 (sysdep_routines): Remove strcmp variants.
9537 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
9538 * sysdeps/s390/multiarch/ifunc-impl-list.c
9539 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
9540 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
9541 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
9542 * sysdeps/s390/multiarch/strcmp.c: Move to ...
9543 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
9544 * sysdeps/s390/ifunc-strcmp.h: New file.
9545 * sysdeps/s390/s390-64/strcmp.S: Move to ...
9546 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
9547 for 31/64bit and ifunc handling.
9548 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
9549 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
9550 * sysdeps/s390/s390-32/strcmp.S: Likewise.
9551
9552 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9553
9554 * sysdeps/s390/multiarch/Makefile
9555 (sysdep_routines): Remove strncat variants.
9556 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
9557 * sysdeps/s390/multiarch/ifunc-impl-list.c
9558 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
9559 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
9560 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
9561 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
9562 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
9563 * sysdeps/s390/multiarch/strncat.c: Move to ...
9564 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
9565 * sysdeps/s390/ifunc-strncat.h: New file.
9566
9567 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9568
9569 * sysdeps/s390/multiarch/Makefile
9570 (sysdep_routines): Remove strcat variants.
9571 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
9572 * sysdeps/s390/multiarch/ifunc-impl-list.c
9573 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
9574 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
9575 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
9576 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
9577 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
9578 * sysdeps/s390/multiarch/strcat.c: Move to ...
9579 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
9580 * sysdeps/s390/ifunc-strcat.h: New file.
9581
9582 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9583
9584 * sysdeps/s390/multiarch/Makefile
9585 (sysdep_routines): Remove stpncpy variants.
9586 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
9587 * sysdeps/s390/multiarch/ifunc-impl-list.c
9588 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
9589 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
9590 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
9591 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
9592 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
9593 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
9594 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
9595 * sysdeps/s390/ifunc-stpncpy.h: New file.
9596
9597 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9598
9599 * sysdeps/s390/multiarch/Makefile
9600 (sysdep_routines): Remove strncpy variants.
9601 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
9602 * sysdeps/s390/multiarch/ifunc-impl-list.c
9603 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
9604 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
9605 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
9606 * sysdeps/s390/multiarch/strncpy.c: Move to ...
9607 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
9608 * sysdeps/s390/ifunc-strncpy.h: New file.
9609 * sysdeps/s390/s390-64/strncpy.S: Move to ...
9610 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
9611 and adjust ifunc handling.
9612 * sysdeps/s390/s390-32/strncpy.S: Move to ...
9613 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
9614 and adjust ifunc handling.
9615 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9616 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9617
9618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9619
9620 * sysdeps/s390/multiarch/Makefile
9621 (sysdep_routines): Remove stpcpy variants.
9622 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9623 * sysdeps/s390/multiarch/ifunc-impl-list.c
9624 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9625 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9626 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9627 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9628 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9629 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9630 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9631 * sysdeps/s390/ifunc-stpcpy.h: New file.
9632
9633 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9634
9635 * sysdeps/s390/multiarch/Makefile
9636 (sysdep_routines): Remove strcpy variants.
9637 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9638 * sysdeps/s390/multiarch/ifunc-impl-list.c
9639 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9640 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9641 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9642 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9643 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9644 * sysdeps/s390/ifunc-strcpy.h: New file.
9645 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9646 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9647 for 31/64bit and ifunc handling.
9648 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9649 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9650 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9651
9652 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9653
9654 * sysdeps/s390/multiarch/Makefile
9655 (sysdep_routines): Remove strnlen variants.
9656 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9657 * sysdeps/s390/multiarch/ifunc-impl-list.c
9658 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9659 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9660 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9661 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9662 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9663 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9664 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9665 * sysdeps/s390/ifunc-strnlen.h: New file.
9666
9667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9668
9669 * sysdeps/s390/multiarch/Makefile
9670 (sysdep_routines): Remove strlen variants.
9671 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9672 * sysdeps/s390/multiarch/ifunc-impl-list.c
9673 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9674 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9675 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9676 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9677 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9678 * sysdeps/s390/multiarch/strlen.c: Move to ...
9679 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9680 * sysdeps/s390/ifunc-strlen.h: New file.
9681
9682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9683
9684 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9685 * sysdeps/s390/multiarch/ifunc-impl-list.c
9686 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9687 * sysdeps/s390/ifunc-memmem.h: New file.
9688 * sysdeps/s390/memmem.c: Likewise.
9689 * sysdeps/s390/memmem-c.c: Likewise.
9690 * sysdeps/s390/memmem-vx.c: Likewise.
9691
9692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9693
9694 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9695 * sysdeps/s390/multiarch/ifunc-impl-list.c
9696 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9697 * sysdeps/s390/ifunc-strstr.h: New file.
9698 * sysdeps/s390/strstr.c: Likewise.
9699 * sysdeps/s390/strstr-c.c: Likewise.
9700 * sysdeps/s390/strstr-vx.c: Likewise.
9701
9702 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9703
9704 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9705 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9706 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9707 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9708 New defines.
9709 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9710 * sysdeps/s390/memmove-c.c: New file.
9711 * sysdeps/s390/memmove.c: Likewise.
9712 * sysdeps/s390/multiarch/ifunc-impl-list.c
9713 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9714
9715 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9716
9717 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9718 * sysdeps/s390/configure.ac: Add check for z13 support.
9719 * sysdeps/s390/configure: Regenerated.
9720
9721 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9722
9723 * sysdeps/s390/memcopy.h: New file.
9724
9725 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9726
9727 * sysdeps/s390/s390-32/bcopy.S: Remove.
9728 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9729
9730 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9731
9732 * sysdeps/s390/ifunc-memcpy.h: New File.
9733 * sysdeps/s390/memcpy.S: Move to ...
9734 * sysdeps/s390/memcpy-z900.S ... here.
9735 Move implementations from memcpy-s390x.s to here.
9736 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9737 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9738 Remove memcpy/mempcpy variants.
9739 * sysdeps/s390/Makefile (sysdep_routines):
9740 Add memcpy/mempcpy variants.
9741 * sysdeps/s390/multiarch/ifunc-impl-list.c
9742 (__libc_ifunc_impl_list): Adjust ifunc variants for
9743 memcpy and mempcpy.
9744 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9745 to ...
9746 * sysdeps/s390/memcpy.c: ... here.
9747 Adjust ifunc variants for memcpy.
9748 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9749 * sysdeps/s390/mempcpy.c: ... here.
9750 Adjust ifunc variants for mempcpy.
9751 * sysdeps/s390/mempcpy.S: Delete file.
9752
9753 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9754
9755 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9756 * sysdeps/s390/memcpy.S: ... here.
9757 Adjust to be usable for 31/64bit.
9758 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9759 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9760 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9761 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9762 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9763 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9764 Adjust to be usable for 31/64bit.
9765 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9766 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9767 * sysdeps/s390/multiarch/memcpy.c: ... here.
9768 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9769
9770 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9771
9772 * sysdeps/s390/ifunc-memcmp.h: New File.
9773 * sysdeps/s390/memcmp.S: Move to ...
9774 * sysdeps/s390/memcmp-z900.S ... here.
9775 Move implementations from memcmp-s390x.s to here.
9776 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9777 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9778 Remove memcmp variants.
9779 * sysdeps/s390/Makefile (sysdep_routines):
9780 Add memcmp variants.
9781 * sysdeps/s390/multiarch/ifunc-impl-list.c
9782 (__libc_ifunc_impl_list): Adjust ifunc variants for
9783 memcmp.
9784 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9785 to ...
9786 * sysdeps/s390/memcmp.c: ... here.
9787 Adjust ifunc variants for memcmp.
9788
9789 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9790
9791 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9792 * sysdeps/s390/memcmp.S: ... here.
9793 Adjust to be usable for 31/64bit.
9794 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9795 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9796 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9797 Remove memcmp.
9798 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9799 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9800 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9801 Adjust to be usable for 31/64bit.
9802 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9803 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9804 * sysdeps/s390/multiarch/memcmp.c: ... here.
9805 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9806
9807 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9808
9809 * sysdeps/s390/s390-32/bzero.S: Delete file.
9810 * sysdeps/s390/s390-64/bzero.S: Likewise.
9811 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9812 * sysdeps/s390/bzero.c: New file.
9813 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9814 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9815 * sysdeps/s390/multiarch/ifunc-impl-list.c
9816 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9817
9818 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9819
9820 * sysdeps/s390/ifunc-memset.h: New File.
9821 * sysdeps/s390/memset.S: Move to ...
9822 * sysdeps/s390/memset-z900.S ... here.
9823 Move implementations from memset-s390x.s to here.
9824 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9825 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9826 Remove memset variants.
9827 * sysdeps/s390/Makefile (sysdep_routines):
9828 Add memset variants.
9829 * sysdeps/s390/multiarch/ifunc-impl-list.c
9830 (__libc_ifunc_impl_list): Adjust ifunc variants for
9831 memset.
9832 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9833 to ...
9834 * sysdeps/s390/memset.c: ... here.
9835 Adjust ifunc variants for memset.
9836
9837 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9838
9839 * sysdeps/s390/s390-64/memset.S: Move to ...
9840 * sysdeps/s390/memset.S: ... here.
9841 Adjust to be usable for 31/64bit.
9842 * sysdeps/s390/s390-32/memset.S: Delete File.
9843 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9844 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9845 Remove memset.
9846 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9847 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9848 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9849 Adjust to be usable for 31/64bit.
9850 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9851 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9852 * sysdeps/s390/multiarch/memset.c: ... here.
9853 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9854
9855 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9856
9857 * sysdeps/s390/multiarch/ifunc-resolve.h
9858 (s390_libc_ifunc_init, s390_libc_ifunc,
9859 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9860
9861 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9862
9863 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9864 * sysdeps/s390/configure.ac: Add check for z10 support.
9865 * sysdeps/s390/configure: Regenerated.
9866
9867 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9868
9869 * sysdeps/i386/atomic-machine.h: Merged with ...
9870 * sysdeps/x86_64/atomic-machine.h: To ...
9871 * sysdeps/x86/atomic-machine.h: This. New file.
9872
9873 2018-12-18 Florian Weimer <fweimer@redhat.com>
9874
9875 Rewrite locale/gen-translit.pl in Python.
9876 * locale/Makefile (generated): Add C-translit.h.
9877 (before-compile): Add $(objpfx)C-translit.h.
9878 (C-translit.h): Move to $(objpfx). Create target directory.
9879 Build using Python script.
9880 * locale/gen-translit.py: New file.
9881 * locale/gen-translit.pl: Remove file.
9882 * locale/C-translit.h.in: Change comment character to '#' for
9883 easier parsing without a C preprocessor.
9884 * locale/C-translit.h: Remove generated file.
9885 * manual/install.texi (Tools for Compilation): Do not mention
9886 C-translit.h.
9887 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9888 Remove locale/C-translit.h.
9889 * scripts/update-copyrights: Likewise.
9890 * INSTALL: Regenerate.
9891
9892 2018-12-18 Florian Weimer <fweimer@redhat.com>
9893
9894 [BZ #23995]
9895 * localedata/locales/bi_VU: Remove executable bit from file.
9896
9897 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9898
9899 * include/time.h
9900 (__localtime64): Add.
9901 * manual/maint.texi: Document Y2038 symbol handling.
9902 * time/localtime.c
9903 (__localtime64): Add.
9904 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9905
9906 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9907
9908 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9909 Do not clobber r12.
9910
9911 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9912 to allow extra macros from first or second sources.
9913 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9914 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9915 (tests-special): Add $(objpfx)tst-mman-consts.out.
9916 ($(objpfx)tst-mman-consts.out): New makefile target.
9917
9918 2018-12-17 Mao Han <han_mao@c-sky.com>
9919
9920 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9921 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9922 without stat64 system call support.
9923 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9924 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9925 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9926 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9927 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9928 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9929 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9930 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9931 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9932 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9933 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9934
9935 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9936
9937 regex: fix storage-exhaustion error
9938 [BZ #18040]
9939 * posix/regexec.c (get_subexp):
9940 Do not continue if storage is exhausted.
9941
9942 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9943
9944 regex: fix heap-use-after-free error
9945 [BZ #18040]
9946 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9947 https://debbugs.gnu.org/32592
9948 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9949 call extend_buffers which reallocates the re_string_t internal buffer.
9950 Local variable 'buf' was not updated in such case, resulting in
9951 use-after-free.
9952 * posix/regexec.c (get_subexp): Update 'buf' after call to
9953 get_subexp_sub.
9954
9955 2018-12-15 Florian Weimer <fweimer@redhat.com>
9956
9957 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9958 (minimum_stride_size): Use it.
9959 (support_blob_repeat_allocate): Likewise.
9960
9961 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9962
9963 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9964 definition.
9965 (acosh): Likewise.
9966 (atanh): Likewise.
9967
9968 2018-12-14 Florian Weimer <fweimer@redhat.com>
9969
9970 * manual/process.texi (Process Creation Concepts): Remove
9971 documentation of process (ID) lifetime. List more process
9972 creation functions. Reference Process Identification section.
9973 (Process Identification): Add information about process ID
9974 lifetime. Describe Linux thread/task IDs.
9975 * manual/signal.texi (Signaling Another Process): Mention that the
9976 signal is always sent to the process.
9977
9978 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9979
9980 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9981 and tst-ldbl-efgcvt.
9982 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9983 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9984 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9985 (fcvt_tests, output_error, output_r_error, do_test): Use the
9986 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9987 select the type of floating-point variables and arguments; to
9988 produce extra tests for double and conversion specifiers for
9989 printf; and to set the names of called functions.
9990 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9991 in tst-efgcvt-template.c.
9992 * misc/tst-ldbl-efgcvt.c: Likewise.
9993
9994 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9995
9996 * nss/Makefile (tst-nss-test3.out): New rule.
9997
9998 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9999
10000 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
10001 clobber sp.
10002
10003 2018-12-13 fanjinke <fanjinke@hygon.cn>
10004
10005 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
10006 "HygonGenuine".
10007
10008 2018-12-13 Andreas Schwab <schwab@suse.de>
10009
10010 [BZ #23861]
10011 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
10012 (__pthread_rwlock_rdlock_full): Update expected value for
10013 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
10014 * nptl/tst-rwlock-pwn.c: New file.
10015 * nptl/Makefile (tests): Add tst-rwlock-pwn.
10016
10017 2018-12-12 Joseph Myers <joseph@codesourcery.com>
10018
10019 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
10020 definition.
10021
10022 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10023
10024 * benchtests/scripts/compare_bench.py (do_compare): write to
10025 stderr in casestat is not present.
10026 * benchtests/scripts/compare_bench.py (plot_graphs): write to
10027 stderr in case timings field is not present. Also string showing
10028 the output filename goes into the stderr.
10029
10030 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10031
10032 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
10033 and ZeroDivisorError exceptions.
10034 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
10035 argument to loop through user provided statistics.
10036 * benchtests/scripts/compare_bench.py (main): Include the --stats
10037 argument.
10038
10039 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10040
10041 * benchtests/scripts/compare_bench.py (compare_runs): Continue
10042 instead of return.
10043
10044 2018-12-12 Florian Weimer <fweimer@redhat.com>
10045
10046 * sysdeps/posix/timespec_get.c: Add missing “any later version”
10047 clause to copyright header.
10048
10049 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10050
10051 [BZ #23614]
10052 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
10053 registers saved in the stack frame.
10054 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
10055 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
10056
10057 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10058
10059 * include/bits/monetary-ldbl.h: New file.
10060 * include/bits/printf-ldbl.h: Likewise.
10061 * include/bits/stdio-ldbl.h: Likewise.
10062 * include/bits/stdlib-ldbl.h: Likewise.
10063 * include/bits/syslog-ldbl.h: Likewise.
10064 * include/bits/wchar-ldbl.h: Likewise.
10065
10066 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10067
10068 * libio/libio.h: Remove redirection for _IO_vfprintf.
10069
10070 2018-12-11 Andreas Schwab <schwab@suse.de>
10071
10072 * Makerules: Remove all references to abilist-pattern.
10073 (update-all-abi): Simplify find expression.
10074
10075 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
10076
10077 [BZ #23961]
10078 * math/auto-libm-test-in: Add new test case.
10079 * math/auto-libm-test-out-pow: Regenerated.
10080 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
10081
10082 2018-12-10 DJ Delorie <dj@redhat.com>
10083
10084 [BZ #23948]
10085 * support/test-container.c: Move postclean step to before we
10086 change namespaces.
10087
10088 2018-12-10 Joseph Myers <joseph@codesourcery.com>
10089
10090 * scripts/gen-as-const.py (main): Handle --python option.
10091 * scripts/gen-py-const.awk: Remove.
10092 * Makerules (py-const-script): Use gen-as-const.py.
10093 ($(py-const)): Likewise.
10094 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
10095 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
10096 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
10097 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
10098 ~PTHREAD_MUTEX_NO_ELISION_NP.
10099 * manual/README.pretty-printers: Update reference to
10100 gen-py-const.awk.
10101
10102 * scripts/glibcextract.py: New file.
10103 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
10104 or tempfile. Import glibcexctract.
10105 (compute_c_consts): Remove. Moved to glibcextract.py.
10106 (gen_test): Update reference to compute_c_consts.
10107 (main): Likewise.
10108 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
10109 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
10110 * sysdeps/unix/sysv/linux/Makefile
10111 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
10112 Redirect stderr as well as stdout.
10113
10114 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
10115
10116 [BZ #19767]
10117 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
10118 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
10119 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
10120 ALWAYS_USE_VSYSCALL.
10121 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
10122 ALWAYS_USE_VSYSCALL.
10123 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
10124 ALWAYS_USE_VSYSCALL.
10125
10126 2018-12-10 Florian Weimer <fweimer@redhat.com>
10127
10128 [BZ #23972]
10129 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
10130 offset instead of count for clarity. Fix typo in comment.
10131 (__old_getdents64): Keep track of previous offset. Use it to call
10132 handle_overflow.
10133 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
10134 that d_off is never zero.
10135
10136 2018-12-10 Andreas Schwab <schwab@suse.de>
10137
10138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
10139 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
10140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
10141 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
10142 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
10143
10144 2018-12-10 Joseph Myers <joseph@codesourcery.com>
10145
10146 * timezone/private.h: Update from tzcode 2018g.
10147 * timezone/tzfile.h: Likewise.
10148 * timezone/tzselect.ksh: Likewise.
10149 * timezone/zdump.c: Likewise.
10150 * timezone/zic.c: Likewise.
10151
10152 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
10153
10154 [BZ #23490]
10155 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
10156 (do_test): Adjust buffer size and fix format.
10157
10158 2018-12-07 DJ Delorie <dj@redhat.com>
10159
10160 [BZ #23907]
10161 * malloc/tst-tcfree3.c: New.
10162 * malloc/Makefile: Add it.
10163
10164 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
10165
10166 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
10167
10168 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10169
10170 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
10171 used as a mask for the mode argument of __vfscanf_internal and
10172 __vfwscanf_internal.
10173 * stdio-common/vfscanf-internal.c
10174 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
10175 (__strtof128_internal): Define to __wcstof128_internal.
10176 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
10177 __strtof128_internal or __wcstof128_internal when the format of
10178 long double is the same as _Float128.
10179
10180 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
10181
10182 * include/unistd.h (__confstr): Add prototype and hidden prototype.
10183 * posix/confstr.c (confstr): Rename to __confstr.
10184 (__confstr): Add hidden def.
10185 (confstr): Add weak alias for __confstr.
10186 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
10187 confstr.
10188
10189 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
10190
10191 * NEWS: Mention getcpu.
10192 * include/sched.h (__getcpu): New libc_hidden_proto.
10193 * manual/resource.texi: Document getcpu.
10194 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
10195 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
10196 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
10197 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10198 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10199 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10200 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10201 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10202 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10203 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10204 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10205 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10206 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
10207 Likewise.
10208 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10209 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10210 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10212 Likewise.
10213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10214 Likewise.
10215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10216 Likewise.
10217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
10218 Likewise.
10219 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10220 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10221 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10222 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10223 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10224 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10225 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10226 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10227 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
10228 * sysdeps/unix/sysv/linux/getcpu.c: New file.
10229 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
10230 Also check getcpu.
10231
10232 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
10233
10234 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
10235 functions.
10236 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
10237
10238 2018-12-07 Florian Weimer <fweimer@redhat.com>
10239
10240 [BZ #17405]
10241 * posix/Makefile (routines): Add spawn_faction_addfchdir.
10242 * posix/Versions (GLIBC_2.29): Export
10243 posix_spawn_file_actions_addfchdir_np.
10244 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
10245 * posix/spawn_faction_destroy.c
10246 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
10247 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
10248 and the field action.fchdir_action.
10249 * posix/tst-spawn-chdir.c (add_chdir): New function.
10250 (do_test): Add do_fchdir loop. Call add_chdir.
10251 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
10252 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
10253 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
10254 posix_spawn_file_actions_addfchdir_np.
10255 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
10256 Likewise.
10257 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
10258 Likewise.
10259 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
10260 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
10261 Likewise.
10262 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
10263 Likewise.
10264 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
10265 Likewise.
10266 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
10267 Likewise.
10268 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
10269 Likewise.
10270 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
10271 Likewise.
10272 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
10273 (GLIBC_2.29): Likewise.
10274 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
10275 (GLIBC_2.29): Likewise.
10276 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
10277 (GLIBC_2.29): Likewise.
10278 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
10279 (GLIBC_2.29): Likewise.
10280 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
10281 Likewise.
10282 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
10283 (GLIBC_2.29): Likewise.
10284 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
10285 (GLIBC_2.29): Likewise.
10286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
10287 (GLIBC_2.29): Likewise.
10288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
10289 (GLIBC_2.29): Likewise.
10290 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
10291 Likewise.
10292 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
10293 Likewise.
10294 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10295 Likewise.
10296 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10297 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10298 Likewise.
10299 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10300 Likewise.
10301 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10302 Likewise.
10303 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10304 Likewise.
10305
10306 2018-12-06 Joseph Myers <joseph@codesourcery.com>
10307
10308 * manual/texinfo.tex: Update to version 2018-09-21.20 with
10309 trailing whitespace removed.
10310 * scripts/config.guess: Update to version 2018-11-28.
10311 * scripts/config.sub: Update to version 2018-11-28.
10312 * scripts/install-sh: Update to version 2018-03-11.20.
10313 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
10314 * scripts/move-if-change: Update to version 2018-03-07 03:47.
10315
10316 2018-12-07 Florian Weimer <fweimer@redhat.com>
10317
10318 [BZ #23927]
10319 CVE-2018-19591
10320 * inet/tst-if_index-long.c: New file.
10321 * inet/Makefile (tests): Add tst-if_index-long.
10322
10323 2018-12-07 Florian Weimer <fweimer@redhat.com>
10324
10325 * support/check.h (support_record_failure_is_failed): Declare.
10326 * support/descriptors.h: New file.
10327 * support/support_descriptors.c: Likewise.
10328 * support/tst-support_descriptors.c: Likewise.
10329 * support/support_record_failure.c
10330 (support_record_failure_is_failed): New function.
10331 * support/Makefile (libsupport-routines): Add support_descriptors.
10332 (tests): Add tst-support_descriptors.
10333
10334 2018-12-05 Zack Weinberg <zackw@panix.com>
10335 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10336
10337 * stdio-common/vfprintf-internal.c
10338 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
10339 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
10340 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
10341 and __no_long_double.
10342 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
10343 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
10344 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
10345 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
10346 and __nldbl_*syslog* functions.
10347 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
10348 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
10349 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
10350 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
10351 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
10352 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
10353 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
10354 (__nldbl_vwprintf, __nldbl_wprintf):
10355 Directly call the appropriate __v*printf_internal routine, passing
10356 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
10357 variable names.
10358 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
10359 (__nldbl___printf_chk, __nldbl___snprintf_chk)
10360 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
10361 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
10362 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
10363 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10364 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
10365 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
10366 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
10367 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
10368 Likewise, and also pass PRINTF_FORTIFY when appropriate.
10369 (__nldbl_syslog, __nldbl_vsyslog):
10370 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
10371 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10372 appropriate.
10373 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10374 appropriate.
10375
10376 2018-12-05 Zack Weinberg <zackw@panix.com>
10377 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10378
10379 [BZ #11319]
10380 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
10381 Moved here from debug/vsprintf_chk.c.
10382 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
10383 and completion logic for the strfile to match exactly what
10384 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
10385 _IO_str_init_static_internal instead of maxlen-1.
10386 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10387 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
10388 __vsprintf_internal.
10389
10390 * debug/vsprintf_chk.c (__vsprintf_chk)
10391 * debug/sprintf_chk.c (__sprintf_chk):
10392 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
10393 'flags' argument is positive, and slen as maxlen. No need to lock
10394 the FILE and/or construct a temporary FILE. Minimize and normalize
10395 header inclusions and variable names. Do not libc_hidden_def anything.
10396
10397 * debug/asprintf_chk.c (__asprintf_chk)
10398 * debug/dprintf_chk.c (__dprintf_chk)
10399 * debug/fprintf_chk.c (__fprintf_chk)
10400 * debug/fwprintf_chk.c (__fwprintf_chk)
10401 * debug/printf_chk.c (__printf_chk)
10402 * debug/snprintf_chk.c (__snprintf_chk)
10403 * debug/swprintf_chk.c (__swprintf_chk)
10404 * debug/vasprintf_chk.c (__vasprintf_chk)
10405 * debug/vdprintf_chk.c (__vdprintf_chk)
10406 * debug/vfprintf_chk.c (__vfprintf_chk)
10407 * debug/vfwprintf_chk.c (__vfwprintf_chk)
10408 * debug/vprintf_chk.c (__vprintf_chk)
10409 * debug/vsnprintf_chk.c (__vsnprintf_chk)
10410 * debug/vswprintf_chk.c (__vswprintf_chk)
10411 * debug/vwprintf_chk.c (__vwprintf_chk)
10412 * debug/wprintf_chk.c (__wprintf_chk):
10413 Directly call the corresponding vxxprintf_internal function, passing
10414 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
10415 the FILE and/or construct a temporary FILE. Minimize and normalize
10416 header inclusions and variable names. Do not libc_hidden_def anything.
10417
10418 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
10419 __obstack_vprintf_internal.
10420 (__obstack_vprintf_chk): Convert into a wrapper that calls
10421 __obstack_vprintf_internal (these two functions already had the
10422 same code) and move to new file...
10423 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
10424 file.
10425 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
10426 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
10427 * debug/Makefile (routines): Add vobprintf_chk.
10428
10429 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10430 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10431 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
10432 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10433 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
10434 (__nldbl___obstack_vfprintf_chk):
10435 Directly call the corresponding vxxprintf_internal function,
10436 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
10437 duplicate comparison of slen with 0 or maxlen from the corresponding
10438 non-__nldbl function.
10439
10440 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
10441 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
10442 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
10443 Remove libc_hidden_proto.
10444
10445 * stdio-common/vfprintf-internal.c
10446 (__vfprintf_internal, __vfwprintf_internal):
10447 Do not check _IO_FLAGS2_FORTIFY.
10448 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
10449 * libio/libioP.h: Update prototype of __vsprintf_internal and add
10450 a comment explaining why it has the maxlen argument.
10451 (_IO_acquire_lock_clear_flags2_fct): Remove.
10452 (_IO_acquire_lock_clear_flags2): Remove.
10453 (_IO_release_lock): Remove conditional statement which will
10454 now never execute.
10455 (_IO_acquire_lock): Remove variable which is now unused.
10456 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10457 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10458
10459 * stdio-common/Makefile (tests): Add tst-bz11319 and
10460 tst-bz11319-fortify2.
10461 (CFLAGS-tst-bz11319-fortify2.c): New macro.
10462 * stdio-common/tst-bz11319-fortify2.c: New file.
10463 * stdio-common/tst-bz11319.c: Likewise.
10464
10465 2018-12-05 Zack Weinberg <zackw@panix.com>
10466 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10467
10468 * misc/syslog.c: Include libioP.h, not iolibio.h.
10469 (__vsyslog_internal): New function with the former body of
10470 __vsyslog_chk; takes mode_flags argument same as
10471 __v*printf_internal. Call __vfprintf_internal directly.
10472
10473 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
10474 Remove libc_hidden_def.
10475 (__syslog, __syslog_chk): Use __vsyslog_internal.
10476 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
10477
10478 * include/sys/syslog.h: Add multiple inclusion guard.
10479 Add prototype for __vsyslog_internal.
10480 Remove declaration and libc_hidden_proto for __vsyslog_chk.
10481
10482 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
10483 Use __vsyslog_internal.
10484
10485 2018-12-05 Zack Weinberg <zackw@panix.com>
10486 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10487
10488 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
10489 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
10490 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
10491 New functions.
10492 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
10493 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
10494
10495 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
10496 Include wctype.h here if COMPILE_WPRINTF is defined.
10497 Define __vfprintf_internal or __vfwprintf_internal, depending
10498 on COMPILE_WPRINTF.
10499 Temporarily, on entry to this function, update mode_flags
10500 according to the environmental settings corresponding to
10501 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
10502 Throughout, check mode_flags instead of __ldbl_is_dbl and
10503 _IO_FLAGS2_FORTIFY on the destination FILE.
10504 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
10505 Include vfprintf-internal.c. Don't include wctype.h.
10506 * stdio-common/vfprintf.c: New file. Just define __vfprintf
10507 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
10508 and vfprintf.
10509 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
10510 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
10511 and vfwprintf.
10512 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
10513
10514 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
10515 and add mode_flags argument; use __vfprintf_internal.
10516 (__vdprintf): New function. Alias vdprintf to this.
10517 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
10518 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
10519 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
10520 (__obstack_printf): Use __obstack_printf_internal.
10521 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
10522 public aliases __vsnprintf and vsnprintf.
10523 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
10524 called internally.
10525 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
10526 public aliases _IO_vsprintf and vsprintf.
10527 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
10528 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
10529 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
10530 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
10531 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
10532
10533 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
10534 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
10535 * stdio-common/fprintf.c, stdio-common/fxprintf.c
10536 * stdio-common/printf.c: Use __vfprintf_internal.
10537
10538 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
10539 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
10540 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
10541
10542 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
10543 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
10544 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
10545 __vfwprintf_internal.
10546
10547 * libio/libio.h: Remove libc_hidden_proto and declaration for
10548 _IO_vfprintf.
10549 Remove declaration of _IO_vfwprintf.
10550 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
10551 _IO_vsprintf.
10552 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
10553 _IO_obstack_printf.
10554 * include/stdio.h: Add prototype for __vasprintf.
10555 (__vsnprintf): Remove declaration, because there are no more
10556 internal calls.
10557 * include/wchar.h (__vfwprintf, __vswprintf): Remove
10558 declaration, because there are no more internal calls.
10559
10560 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
10561 __vsnprintf_internal, instead of _IO_vsnprintf.
10562 * argp/argp-help.c (__argp_error, __argp_failure): Use
10563 __vasprintf_internal, instead of _IO_vasprintf.
10564 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
10565 redefine, because there are no more internal calls.
10566
10567 2018-12-05 Zack Weinberg <zackw@panix.com>
10568 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10569
10570 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
10571 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
10572 Include libio/strfile.h instead of libioP.h.
10573 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
10574 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
10575 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
10576 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
10577 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
10578 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
10579 necessary. Do not set __no_long_double. Normalize variable names.
10580 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
10581 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
10582 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
10583 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
10584 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
10585 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
10586 Call __vfscanf_internal / __vfwscanf_internal directly, passing
10587 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
10588 Do not set __no_long_double. Normalize variable names.
10589
10590 2018-12-05 Zack Weinberg <zackw@panix.com>
10591 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10592
10593 * stdio-common/isoc99_scanf.c
10594 * stdio-common/isoc99_fscanf.c
10595 * stdio-common/isoc99_sscanf.c
10596 * stdio-common/isoc99_vscanf.c
10597 * stdio-common/isoc99_vfscanf.c
10598 * stdio-common/isoc99_vsscanf.c
10599 * wcsmbs/isoc99_wscanf.c
10600 * wcsmbs/isoc99_fwscanf.c
10601 * wcsmbs/isoc99_swscanf.c
10602 * wcsmbs/isoc99_vwscanf.c
10603 * wcsmbs/isoc99_vfwscanf.c
10604 * wcsmbs/isoc99_vswscanf.c:
10605 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
10606 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
10607 No need to lock and unlock the FILE passed to that function.
10608
10609 * stdio-common/vfscanf-internal.c
10610 (__vfscanf_internal, __vfwscanf_internal):
10611 Don't look at _IO_FLAGS2_SCANF_STD.
10612 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
10613 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
10614 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10615
10616 2018-12-05 Zack Weinberg <zackw@panix.com>
10617 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10618
10619 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10620 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10621 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10622 * libio/strfile.h: Add multiple inclusion guard.
10623 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10624
10625 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10626 consistency with the other version of this file.
10627 (ldbl_compat_symbol): New macro.
10628 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10629 New macro.
10630
10631 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10632 Define __vfscanf_internal or __vfwscanf_internal, depending on
10633 COMPILE_WSCANF; don't define any other public symbols.
10634 Remove errval and code to set errp.
10635 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10636 as the mode_flags argument.
10637 (encode_error, conv_error, input_error): Don't set errval.
10638 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10639 Include vfscanf-internal.c.
10640 * stdio-common/vfscanf.c: New file defining the public entry
10641 point vfscanf, which calls __vfscanf_internal.
10642 * stdio-common/vfwscanf.c: New file defining the public entry
10643 point vfwscanf, which calls __vfwscanf_internal.
10644
10645 * stdio-common/iovfscanf.c: New file.
10646 * stdio-common/iovfwscanf.c: Likewise.
10647
10648 * stdio-common/Makefile (routines): Add vfscanf-internal,
10649 vfwscanf-internal, iovfscanf, iovfwscanf.
10650 * stdio-common/Versions: Mention GLIBC_2.29, so that
10651 it can be used in SHLIB_COMPAT expressions.
10652 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10653 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10654 Call __vfscanf_internal, instead of _IO_vfscanf.
10655 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10656 _IO_vfscanf.
10657 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10658 _IO_vfwscanf.
10659
10660 * libio/iovsscanf.c: Clean up includes, when possible. Use
10661 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10662 __vfscanf_internal or __vfwscanf_internal directly.
10663 * libio/iovswscanf.c: Likewise.
10664 * libio/swscanf.c: Likewise.
10665 * libio/vscanf.c: Likewise.
10666 * libio/vwscanf.c: Likewise.
10667 * libio/wscanf.c: Likewise.
10668 * stdio-common/isoc99_fscanf.c: Likewise.
10669 * stdio-common/isoc99_scanf.c: Likewise.
10670 * stdio-common/isoc99_sscanf.c: Likewise.
10671 * stdio-common/isoc99_vfscanf.c: Likewise.
10672 * stdio-common/isoc99_vscanf.c: Likewise.
10673 * stdio-common/isoc99_vsscanf.c: Likewise.
10674 * stdio-common/scanf.c: Likewise.
10675 * stdio-common/sscanf.c: Likewise.
10676 * wcsmbs/isoc99_fwscanf.c: Likewise.
10677 * wcsmbs/isoc99_swscanf.c: Likewise.
10678 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10679 * wcsmbs/isoc99_vswscanf.c: Likewise.
10680 * wcsmbs/isoc99_vwscanf.c: Likewise.
10681 * wcsmbs/isoc99_wscanf.c: Likewise.
10682
10683 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10684
10685 * include/time.h
10686 (__tz_compute): Replace time_t with __time64_t.
10687 (__tz_convert): Replace time_t* with __time64_t.
10688 (__offtime): Replace time_t* with __time64_t.
10689 * time/gmtime.c
10690 (__gmtime_r): Adjust call to __tz_convert.
10691 (gmtime): Likewise.
10692 * time/localtime.c
10693 (__localtime_r): Likewise.
10694 (localtime): Likewise.
10695 * time/offtime.c: Replace time_t with __time64_t.
10696 * time/tzset.c: Likewise.
10697
10698 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10699
10700 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10701 dynamic linker unless [$(run-built-tests) = yes].
10702
10703 2018-12-03 DJ Delorie <dj@delorie.com>
10704
10705 * support/test-container.c (check_for_unshare_hints): New.
10706 (main): Call it if unshare fails. Add support for "su" scriptlet
10707 command.
10708
10709 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10710
10711 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10712 'START' to indicate that start text should be output.
10713 (gen_test): Likewise.
10714 (main): Generate 'START' for first symbol or '--' line, or at end
10715 of input if not previously generated.
10716
10717 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10718
10719 [BZ #19767]
10720 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10721 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10722 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10723 ALWAYS_USE_VSYSCALL.
10724
10725 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10726
10727 [BZ #23913]
10728 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10729 new_argv by one.
10730
10731 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10732
10733 [BZ #23923]
10734 * locale/programs/localedef.c: Declare boolean hard_links default true.
10735 (options): Add --no-hard-links option.
10736 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10737 * locale/programs/localedef.h: Declare prototype for hard_links.
10738 * locale/programs/locfile.c (write_locale_data): Don't use hard
10739 links if hard_links is false.
10740
10741 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10742
10743 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10744 cpu_features_basic.
10745 (__cache_sysconf): Likewise.
10746 (init_cacheinfo): Likewise.
10747 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10748 populate COMMON_CPUID_INDEX_80000007 and
10749 COMMON_CPUID_INDEX_80000008.
10750 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10751 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10752 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10753 (init_cpu_features): Use _Static_assert on
10754 index_arch_Fast_Unaligned_Load.
10755 __get_cpuid_registers and __get_arch_feature. Updated for
10756 cpu_features_basic. Set stepping in cpu_features.
10757 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10758 (FEATURE_INDEX_2): New.
10759 (FEATURE_INDEX_MAX): Changed to enum.
10760 (COMMON_CPUID_INDEX_D_ECX_1): New.
10761 (COMMON_CPUID_INDEX_80000007): Likewise.
10762 (COMMON_CPUID_INDEX_80000008): Likewise.
10763 (cpuid_registers): Likewise.
10764 (cpu_features_basic): Likewise.
10765 (CPU_FEATURE_USABLE): Likewise.
10766 (bit_arch_XXX_Usable): Likewise.
10767 (cpu_features): Use cpuid_registers and cpu_features_basic.
10768 (bit_arch_XXX): Reweritten.
10769 (bit_cpu_XXX): Likewise.
10770 (index_cpu_XXX): Likewise.
10771 (reg_XXX): Likewise.
10772 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10773 <support/check.h>.
10774 (CHECK_CPU_FEATURE): New.
10775 (CHECK_CPU_FEATURE_USABLE): Likewise.
10776 (cpu_kinds): Likewise.
10777 (do_test): Print vendor, family, model and stepping. Check
10778 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10779 (TEST_FUNCTION): Removed.
10780 Include <support/test-driver.c> instead of
10781 "../../test-skeleton.c".
10782 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10783 Check POPCNT instead of POPCOUNT.
10784 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10785
10786 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10787
10788 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10789 there is no element in `consts'.
10790
10791 2018-12-01 Florian Weimer <fweimer@redhat.com>
10792
10793 * support/support_capture_subprocess.c
10794 (support_capture_subprocess): Check that pipe descriptors have
10795 expected values. Close original pipe descriptors in subprocess.
10796
10797 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10798
10799 [BZ #23032]
10800 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10801 attr with __pthread_default_barrierattr.
10802 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10803 attr with __pthread_default_condattr.
10804 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10805 attr with __pthread_default_mutexattr.
10806 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10807 attr with __pthread_default_rwlockattr.
10808
10809 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10810
10811 * manual/tunables.texi (POSIX Thread Tunables): New node.
10812 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10813 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10814 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10815 __pthread_tunables_init.
10816 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10817 (max_adaptive_count): Define.
10818 * nptl/pthread_mutex_conf.c: New file.
10819 * nptl/pthread_mutex_conf.h: New file.
10820 * sysdeps/generic/adaptive_spin_count.h: New file.
10821 * sysdeps/nptl/dl-tunables.list: New file.
10822 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10823 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10824 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10825 Likewise.
10826
10827 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10828
10829 [BZ #20544]
10830 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10831 * stdlib/on_exit.c (__on_exit): Likewise.
10832 * stdlib/Makefile (tests): Add tst-bz20544.
10833 * stdlib/tst-bz20544.c: New test.
10834
10835 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10836
10837 [BZ #19767]
10838 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10839 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10840 New.
10841
10842 2018-11-30 Florian Weimer <fweimer@redhat.com>
10843
10844 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10845 Extend error logging.
10846 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10847 symbol.
10848
10849 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10850
10851 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10852 __sigismember instead of sigismember.
10853 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10854 cancel_handler): New definitions.
10855 (do_system): Use posix_spawn instead of fork and execl and remove
10856 reentracy code.
10857 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10858 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10859 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10860 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10861 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10862 * sysdeps/unix/sysv/linux/system.c: Likewise.
10863
10864 [BZ #22834]
10865 [BZ #17490]
10866 * NEWS: Add new semantic for atfork with popen and system.
10867 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10868 fork and execl.
10869
10870 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10871
10872 [BZ #23690]
10873 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10874 modification order when accessing reloc_result->addr.
10875 * include/link.h (reloc_result): Add field init.
10876 * nptl/Makefile (tests): Add tst-audit-threads.
10877 (modules-names): Add tst-audit-threads-mod1 and
10878 tst-audit-threads-mod2.
10879 Add rules to build tst-audit-threads.
10880 * nptl/tst-audit-threads-mod1.c: New file.
10881 * nptl/tst-audit-threads-mod2.c: Likewise.
10882 * nptl/tst-audit-threads.c: Likewise.
10883 * nptl/tst-audit-threads.h: Likewise.
10884
10885 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10886
10887 * scripts/gen-as-const.py: New file.
10888 * scripts/gen-as-const.awk: Remove.
10889 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10890 gen-as-const.py.
10891 ($(objpfx)test-as-const-%.c): Likewise.
10892
10893 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10894
10895 * elf/dl-exception.c: Include <_itoa.h>.
10896
10897 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10898
10899 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10900 returned by __f_setlk.
10901
10902 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10903 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10904
10905 * elf/Makefile (tests-internal): Add tst-create_format1.
10906 * elf/dl-exception.c (_dl_exception_create_format): Support
10907 %x, %lx and %zx.
10908 * elf/tst-create_format1.c: New file.
10909
10910 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10911
10912 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10913 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10914 gnulib.)
10915 * argp/argp-help.c (__argp_failure): Likewise.
10916
10917 2018-11-29 Mao Han <han_mao@c-sky.com>
10918
10919 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10920 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10921 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10922 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10923 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10924 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10925 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10926 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10927 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10928 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10929 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10930 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10931 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10932 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10933 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10934 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10935 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10936 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10937 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10938 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10939 (R_CKCORE_TLS_TPOFF32): New defines.
10940
10941 2018-11-29 Florian Weimer <fweimer@redhat.com>
10942
10943 * posix/Makefile (before-compile): Remove testcases.h and
10944 ptestcases.h.
10945 (generated): Add testcases.h and ptestcases.h.
10946 (testcases.h, ptestcases.h): Move to $(objpfx).
10947 (runtests.o): Add dependency on testcases.h.
10948 (runptests.o): Add dependency on ptestcases.h.
10949 * posix/testcases.h, posix/ptestcases.h: Remove files.
10950 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10951 not touch posix/testcases.h and posix/ptestcases.h.
10952
10953 2018-11-28 Florian Weimer <fweimer@redhat.com>
10954
10955 support: Add signal support to support_capture_subprocess_check.
10956 * support/capture_subprocess.h (support_capture_subprocess_check):
10957 Adjust comment and rename parameter.
10958 * support/support_capture_subprocess_check.c
10959 (print_actual_status): New function.
10960 (support_capture_subprocess_check): Support negative
10961 status_or_signal. Call print_actual_status.
10962 * support/tst-support_capture_subprocess.c (do_test): Call
10963 support_capture_subprocess_check.
10964 * libio/tst-vtables-common.c (termination_status)
10965 (init_termination_status): Remove.
10966 (check_for_termination): Adjust support_capture_subprocess_check
10967 call.
10968 (do_test): Remove call to init_termination_status.
10969
10970 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10971
10972 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10973 source directory instead of a copy.
10974 (CommandList.create_copy_dir): Remove.
10975
10976 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10977
10978 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10979
10980 2018-11-28 Florian Weimer <fweimer@redhat.com>
10981
10982 * support/support.h (support_quote_string): Do not use str
10983 parameter name.
10984
10985 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10986
10987 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10988 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10989
10990 2018-11-27 Florian Weimer <fweimer@redhat.com>
10991
10992 * support/support.h (support_quote_string): Declare.
10993 * support/support_quote_string.c: New file.
10994 * support/tst-support_quote_string.c: Likewise.
10995 * support/Makefile (libsupport-routines): Add
10996 support_quote_string.
10997 (tests): Add tst-support_quote_string.
10998
10999 2018-11-27 Florian Weimer <fweimer@redhat.com>
11000
11001 [BZ #23927]
11002 CVE-2018-19591
11003 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
11004 descriptor leak in case of ENODEV error.
11005
11006 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
11007
11008 [BZ #19767]
11009 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
11010 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
11011 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
11012
11013 2018-11-26 Carlos O'Donell <carlos@redhat.com>
11014
11015 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
11016 Error for unknown lines.
11017
11018 2018-11-26 Joseph Myers <joseph@codesourcery.com>
11019
11020 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
11021 Touch additional files.
11022
11023 2018-11-26 Florian Weimer <fweimer@redhat.com>
11024
11025 [BZ #23907]
11026 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
11027 double-frees.
11028
11029 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
11030
11031 [BZ #19767]
11032 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
11033 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
11034 SHARED. Include sysdep.h.
11035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
11036 ALWAYS_USE_VSYSCALL.
11037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
11038 ALWAYS_USE_VSYSCALL.
11039
11040 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
11041
11042 [BZ #19767]
11043 * nptl/Makefile (tests-static): Add tst-cond11-static.
11044 (tests): Likewise.
11045 * nptl/tst-cond11-static.c: New File.
11046 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
11047 tst-affinity-static.
11048 (tests): Likewise.
11049 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
11050 instead of SHARED.
11051 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
11052 (USE_VSYSCALL): Likewise.
11053 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
11054 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
11055 instead of SHARED.
11056 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
11057 SHARED.
11058 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
11059 New.
11060
11061 2018-11-23 Joseph Myers <joseph@codesourcery.com>
11062
11063 [BZ #23915]
11064 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11065 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
11066 Undefine.
11067
11068 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
11069
11070 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
11071 (tst-cet-legacy-1a-ARGS): New.
11072 ($(objpfx)tst-cet-legacy-1a): New target.
11073 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
11074
11075 2018-11-22 Joseph Myers <joseph@codesourcery.com>
11076
11077 * conform/conformtest.py (CompileSubTest.__init__): Set
11078 self.run_early to False.
11079 (ExecuteSubTest.__init__): Likewise.
11080 (HeaderTests.run): Try running all non-optional, non-XFAILed
11081 compilation tests in a single execution of the compiler.
11082
11083 * conform/conformtest.py (CompileSubTest): New class.
11084 (ExecuteSubTest): Likewise.
11085 (ElementTest.run): Rename to gen_subtests. Append tests to
11086 self.subtests instead of running them.
11087 (ConstantTest.run): Likewise.
11088 (SymbolTest.run): Likewise.
11089 (TypeTest.run): Likewise.
11090 (TagTest.run): Likewise.
11091 (FunctionTest.run): Likewise.
11092 (VariableTest.run): Likewise.
11093 (MacroFunctionTest.run): Likewise.
11094 (MacroStrTest.run): Likewise.
11095 (HeaderTests.handle_test_line): Generate subtests for tests.
11096 (HeaderTests.run): Run subtests for tests.
11097
11098 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11099
11100 * math/Versions (GLIBC_2.29): Add pow.
11101 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
11102 symbol.
11103 * math/w_pow.c: New file.
11104 * sysdeps/i386/fpu/w_pow.c: New file.
11105 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
11106 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
11107 and add necessary aliases.
11108 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
11109 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
11110 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11111 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11112 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11113 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11114 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11115 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11116 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11117 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11118 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11119 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11120 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11121 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11122 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11127 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11128 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11129 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11130 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11131 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11132 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11133 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11134 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
11135 __pow.
11136 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
11137 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
11138 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
11139
11140 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11141
11142 * math/Versions (GLIBC_2.29): Add log2.
11143 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
11144 symbol.
11145 * math/w_log2.c: New file.
11146 * sysdeps/i386/fpu/w_log2.c: New file.
11147 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
11148 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
11149 and add necessary aliases.
11150 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
11151 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
11152 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11153 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11154 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11155 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11156 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11157 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11158 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11159 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11160 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11161 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11162 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11163 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11164 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11166 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11169 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11170 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11171 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11172 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11173 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11174 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11175 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11176
11177 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11178
11179 * math/Versions (GLIBC_2.29): Add log.
11180 * math/w_log_compat.c (__log_compat): Change to versioned compat
11181 symbol.
11182 * math/w_log.c: New file.
11183 * sysdeps/i386/fpu/w_log.c: New file.
11184 * sysdeps/ia64/fpu/e_log.S: Update.
11185 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
11186 and add necessary aliases.
11187 * sysdeps/ieee754/dbl-64/w_log.c: New file.
11188 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
11189 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11190 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11191 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11192 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11193 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11194 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11195 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11196 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11197 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11198 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11199 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11200 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11201 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11202 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11204 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11206 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11207 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11208 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11209 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11210 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11211 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11212 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11213 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
11214 __log.
11215 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
11216 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
11217 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
11218 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
11219
11220 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
11221
11222 * math/Versions (GLIBC_2.29): Add exp and exp2.
11223 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
11224 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
11225 * math/w_exp_compat.c (__exp_compat): Likewise.
11226 * math/w_exp.c: New file.
11227 * math/w_exp2.c: New file.
11228 * sysdeps/i386/fpu/w_exp.c: New file.
11229 * sysdeps/i386/fpu/w_exp2.c: New file.
11230 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
11231 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
11232 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
11233 and add necessary aliases.
11234 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
11235 and add necessary aliases.
11236 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
11237 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
11238 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
11239 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
11240 * sysdeps/mach/hurd/i386/libm.abilist: Update.
11241 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
11242 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
11243 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
11244 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
11245 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
11246 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
11247 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
11248 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
11249 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
11250 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
11251 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
11252 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
11253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
11254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
11255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
11256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
11257 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
11258 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
11259 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
11260 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
11261 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
11262 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
11263 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
11264 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
11265 (__ieee754_exp): Rename to __exp.
11266 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
11267 (__ieee754_exp): Rename to __exp.
11268 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
11269 (__ieee754_exp): Rename to __exp.
11270 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
11271 __exp.
11272 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
11273
11274 2018-11-20 DJ Delorie <dj@redhat.com>
11275
11276 * malloc/malloc.c (tcache_entry): Add key field.
11277 (tcache_put): Set it.
11278 (tcache_get): Likewise.
11279 (_int_free): Check for double free in tcache.
11280 * malloc/tst-tcfree1.c: New.
11281 * malloc/tst-tcfree2.c: New.
11282 * malloc/Makefile: Run the new tests.
11283 * manual/probes.texi: Document memory_tcache_double_free probe.
11284
11285 * dlfcn/dlerror.c (check_free): Prevent double frees.
11286
11287 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
11288
11289 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
11290
11291 2018-11-20 Joseph Myers <joseph@codesourcery.com>
11292
11293 * conform/conformtest.py (ElementTest.run): Use unique identifiers
11294 in tests. Use names for format arguments.
11295 (ConstantTest.run): Likewise.
11296 (SymbolTest.run): Likewise.
11297 (TypeTest.run): Likewise.
11298 (TagTest.run): Likewise.
11299 (FunctionTest.run): Likewise.
11300 (VariableTest.run): Likewise.
11301 (MacroFunctionTest.run): Likewise.
11302 (MacroStrTest.run): Likewise.
11303 (HeaderTests.__init__): Set self.num_tests.
11304 (HeaderTests.handle_test_line): Set test.num. Increment
11305 self.num_tests.
11306
11307 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
11308
11309 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
11310 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
11311 SEEK_SET.
11312
11313 2018-11-19 Mao Han <han_mao@c-sky.com>
11314
11315 * scripts/config.guess: Update to version 2018-08-29.
11316 * scripts/config.sub: Update to version 2018-08-29.
11317
11318 2018-11-19 Florian Weimer <fweimer@redhat.com>
11319
11320 support: Print timestamps in timeout handler.
11321 * support/support_test_main.c (print_timestamp): New function.
11322 (signal_handler): Use it to print the termination time and the
11323 time of the last write to standard output.
11324
11325 2018-11-16 Zack Weinberg <zackw@panix.com>
11326 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11327
11328 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
11329 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
11330 argument.
11331 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
11332 and add flags argument. Check flags instead of __ldbl_is_dbl when
11333 deciding whether to set is_long_double.
11334 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
11335 passing zero for flags argument.
11336 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
11337
11338 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
11339 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
11340 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
11341 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
11342 variable names. Remove libc_hidden_def/libc_hidden_proto from
11343 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
11344 longer called from within the library.
11345 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
11346 for __nldbl___vstrfmon_l, declare it explicitly.
11347
11348 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
11349
11350 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11351
11352 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
11353 macros
11354 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
11355 F_SETLK64, F_SETLKW64, respectively.
11356 * sysdeps/mach/hurd/f_setlk.c: New file.
11357 * sysdeps/mach/hurd/f_setlk.h: New file.
11358 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
11359 f_setlk.
11360 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
11361 (__libc_fcntl): Move non-flock operations to...
11362 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
11363 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
11364
11365 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
11366
11367 mktime: DEBUG_MKTIME cleanup
11368 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
11369 And it’s no longer needed now that glibc and Gnulib both have
11370 their own testing mechanisms for mktime.
11371 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
11372
11373 mktime: fix non-EOVERFLOW errno handling
11374 [BZ#23789]
11375 mktime was not properly reporting failures when the underlying
11376 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
11377 them like EOVERFLOW failures, and set errno to EOVERFLOW.
11378 The problem could happen on non-glibc platforms, with Gnulib.
11379 * time/mktime.c (guess_time_tm): Remove, replacing with ...
11380 (tm_diff): ... this simpler function, which does not change errno.
11381 All callers changed to deal with errno themselves.
11382 (ranged_convert, __mktime_internal): Return failure immediately if
11383 the underlying function reports any failure other than EOVERFLOW.
11384 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
11385 gap code fails.
11386
11387 mktime: fix bug with Y2038 DST transition
11388 [BZ#23789]
11389 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
11390 mishandle a DST transition that jumps over the Y2038 boundary.
11391 No such DST transitions are known so this is only a theoretical
11392 bug, but we might as well do things right.
11393
11394 mktime: make more room for overflow
11395 [BZ#23789]
11396 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
11397 This is so that we can add tm_diff results to a previous guess,
11398 which will be useful in a later patch.
11399
11400 mktime: simplify offset guess
11401 [BZ#23789]
11402 * time/mktime.c (__mktime_internal): Omit excess precision.
11403
11404 mktime: new test for mktime failure
11405 [BZ#23789]
11406 Based on a test suggested by Albert Aribaud in:
11407 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
11408 * time/Makefile (tests): Add bug-mktime4.
11409 * time/bug-mktime4.c: New file.
11410
11411 mktime: fix EOVERFLOW bug
11412 [BZ#23789]
11413 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
11414 Include libc-config.h, not config.h, for __set_errno.
11415 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
11416
11417 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11418
11419 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
11420 __attribute_copy__ to copy attributes from name. Drop static qualifier
11421 to avoid warnings about leaf attribute not having effect on static
11422 functions.
11423
11424 2018-11-13 Florian Weimer <fweimer@redhat.com>
11425
11426 * malloc/malloc.c (fastbin_push_entry): New function.
11427 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
11428 (REMOVE_FB): Remove macro.
11429 (_int_malloc): Use fastbin_pop_entry and reindent.
11430 (_int_free): Use fastbin_push_entry.
11431 (malloc_consolidate): Use atomic_exchange_acquire.
11432
11433 2018-11-13 Joseph Myers <joseph@codesourcery.com>
11434
11435 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
11436 alias attribute, not with strong_alias.
11437
11438 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
11439 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
11440 with additional parameter thread.
11441 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
11442 in terms of __hidden_ver2.
11443 (hidden_tls_def): New macro.
11444 (libc_hidden_tls_def): Likewise.
11445 (rtld_hidden_tls_def): Likewise.
11446 (libm_hidden_tls_def): Likewise.
11447 (libmvec_hidden_tls_def): Likewise.
11448 (libresolv_hidden_tls_def): Likewise.
11449 (librt_hidden_tls_def): Likewise.
11450 (libdl_hidden_tls_def): Likewise.
11451 (libnss_files_hidden_tls_def): Likewise.
11452 (libnsl_hidden_tls_def): Likewise.
11453 (libnss_nisplus_hidden_tls_def): Likewise.
11454 (libutil_hidden_tls_def): Likewise.
11455 (libutil_hidden_tls_def): Likweise.
11456 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
11457 libc_hidden_tls_def.
11458 (__sim_disabled_exceptions_thread): Likewise.
11459 (__sim_round_mode_thread): Likewise.
11460
11461 * sysdeps/sparc/sparc-ifunc.h [SHARED]
11462 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
11463 copy attributes from name.
11464
11465 2018-11-12 Joseph Myers <joseph@codesourcery.com>
11466
11467 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
11468 Use __attribute_copy__ to copy attributes from name.
11469
11470 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
11471 with __hidden_ver1 call.
11472 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
11473 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
11474 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
11475 (__cosf): Do not declare here.
11476 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
11477 (__sincosf): Do not declare here.
11478 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
11479 (__sinf): Do not declare here.
11480
11481 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
11482 (__BIG_ENDIAN): Likewise.
11483 (__BYTE_ORDER): Likewise.
11484 (strong_alias): Likewise.
11485 (_strong_alias): Likewise.
11486
11487 2018-11-12 Florian Weimer <fweimer@redhat.com>
11488
11489 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
11490 function. Move after the definition of in_smallbin_range. Do not
11491 use __builtin_expect for paths that lead to a noreturn function.
11492 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
11493 because it is unclear whether this is in fact an unlikely
11494 condition.
11495 (_int_malloc, _int_free): Adjust.
11496 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
11497 variables.
11498 * malloc/arena.c (heap_trim): Likewise.
11499
11500 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
11501
11502 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
11503 it, free it if needed.
11504 (reauthenticate): Test and use ccwdir.
11505 (child_init_port): In non-resetids case, test and use ccwdir.
11506 (child_chdir): New nested function to set ccwdir.
11507 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
11508 * hurd/hurd/port.h (_hurd_port_move): New function.
11509 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
11510 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
11511 * hurd/Versions (_hurd_port_move): Export function.
11512 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
11513 symbol.
11514 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
11515 of dtablesize for allocating dtable_cloexec.
11516
11517 2018-11-09 Martin Sebor <msebor@redhat.com>
11518
11519 * include/libc-symbols.h (__attribute_copy__): Define macro unless
11520 it's already defined.
11521 (_strong_alias): Use __attribute_copy__.
11522 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
11523 * misc/sys/cdefs.h (__attribute_copy__): New macro.
11524 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
11525 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
11526 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
11527 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
11528 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
11529 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
11530 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
11531 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
11532 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
11533 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
11534 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
11535 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
11536 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
11537 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
11538 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
11539 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
11540 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
11541
11542 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11543
11544 * misc/tst-efgcvt.c: Include support/check.h and
11545 support/test-driver.c. Do not include test-skeleton.c.
11546 (error_count): Remove.
11547 (output_error): Replace increments to error_count with calls to
11548 support_record_failure.
11549 (output_r_error): Likewise.
11550 (special): Likewise.
11551 (do_test): Unconditionally return zero.
11552 (TEST_FUNCTION): Remove.
11553
11554 2018-11-09 Joseph Myers <joseph@codesourcery.com>
11555
11556 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
11557 not $(@D)/scratch.
11558 ($(linknamespace-header-tests)): Likewise.
11559
11560 * conform/conformtest.py: New file.
11561 * conform/conformtest.pl: Remove.
11562 * conform/GlibcConform.pm: Likewise.
11563 * conform/glibcconform.py (KEYWORDS_C90): New constant.
11564 (KEYWORDS_C99): Likewise.
11565 (KEYWORDS): Likewise.
11566 * conform/Makefile ($(conformtest-header-tests)): Use
11567 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
11568 option. Use --header instead of --headers.
11569 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
11570 function entries.
11571 * conform/data/spawn.h-data: Likewise.
11572 * conform/data/fcntl.h-data (openat): Add space after function
11573 name.
11574 * conform/data/wchar.h-data (wcscasecmp): Likewise.
11575 (wcscasecmp_l): Likewise.
11576 * conform/data/termios.h-data (c_cc): Add space after element
11577 name.
11578
11579 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11580
11581 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
11582 instead of manually comparing and reporting mismatching strings.
11583 * misc/tst-ldbl-error.c (do_one_test): Likewise.
11584 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
11585
11586 2018-11-08 Joseph Myers <joseph@codesourcery.com>
11587
11588 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
11589 __ASSUME_SOCKETCALL.
11590 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11591 (__ASSUME_SOCKETCALL): Remove.
11592 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11593 (__ASSUME_SOCKETCALL): Likewise.
11594 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11595 (__ASSUME_SOCKETCALL): Likewise.
11596 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11597 (__ASSUME_SOCKETCALL): Likewise.
11598 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11599 (__ASSUME_SOCKETCALL): Likewise.
11600 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11601 (__ASSUME_SOCKETCALL): Likewise.
11602 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11603 (__ASSUME_SOCKETCALL): Likewise.
11604
11605 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
11606
11607 [BZ #23509]
11608 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
11609 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
11610 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
11611 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
11612 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
11613 lc_unknown.
11614
11615 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
11616
11617 [BZ #17630]
11618 * resolv/tst-resolv-network.c: Add test for getnetbyname.
11619
11620 2018-11-07 Joseph Myers <joseph@codesourcery.com>
11621
11622 [BZ #23867]
11623 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11624 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11625 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11626 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11627
11628 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11629
11630 * support/support_test_compare_string.c
11631 (support_test_compare_string): Fix printf format.
11632
11633 2018-11-07 Florian Weimer <fweimer@redhat.com>
11634
11635 Implement TEST_COMPARE_STRING.
11636 * support/check.h (TEST_COMPARE_STRING): Define.
11637 (support_test_compare_string): Declare.
11638 * support/Makefile (libsupport-routines): Add
11639 support_test_compare_string.
11640 (tests): Add tst-test_compare_string.
11641 * support/support_test_compare_string.c: New file.
11642 * support/tst-test_compare_string.c: Likewise.
11643
11644 2018-11-07 Andreas Schwab <schwab@suse.de>
11645
11646 [BZ #23864]
11647 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11648 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11649 Undef.
11650
11651 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11652
11653 [BZ #23862]
11654 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11655 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11656 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11657 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11658 Likewise.
11659
11660 2018-11-06 Florian Weimer <fweimer@redhat.com>
11661
11662 [BZ #17405]
11663 * posix/Makefile (routines): Add spawn_faction_addchdir.
11664 (tests): Add tst-spawn-chdir.
11665 * posix/Versions (GLIBC_2.29): Add
11666 posix_spawn_file_actions_addchdir_np.
11667 * posix/spawn_faction_addchdir.c: New file.
11668 * posix/spawn_faction_destroy.c
11669 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11670 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11671 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11672 chdir_action.
11673 * posix/tst-spawn-chdir.c: New file.
11674 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11675 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11676 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11677 posix_spawn_file_actions_addchdir_np.
11678 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11679 Likewise.
11680 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11681 Likewise.
11682 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11683 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11684 Likewise.
11685 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11686 Likewise.
11687 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11688 Likewise.
11689 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11690 Likewise.
11691 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11692 Likewise.
11693 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11694 Likewise.
11695 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11696 (GLIBC_2.29): Likewise.
11697 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11698 (GLIBC_2.29): Likewise.
11699 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11700 (GLIBC_2.29): Likewise.
11701 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11702 (GLIBC_2.29): Likewise.
11703 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11704 Likewise.
11705 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11706 (GLIBC_2.29): Likewise.
11707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11708 (GLIBC_2.29): Likewise.
11709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11710 (GLIBC_2.29): Likewise.
11711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11712 (GLIBC_2.29): Likewise.
11713 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11714 Likewise.
11715 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11716 Likewise.
11717 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11718 Likewise.
11719 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11720 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11721 Likewise.
11722 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11723 Likewise.
11724 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11725 Likewise.
11726 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11727 Likewise.
11728
11729 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11730
11731 * misc/Makefile (tests): Add tst-ldbl-error.
11732 * misc/tst-ldbl-error.c: New file.
11733
11734 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11735
11736 * misc/Makefile (tests): Add tst-ldbl-warn.
11737 * misc/tst-ldbl-warn.c: New file.
11738
11739 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11740
11741 * argp/Makefile (tests): Add tst-ldbl-argp.
11742 * argp/tst-ldbl-argp.c: New file.
11743
11744 2018-11-05 Arjun Shankar <arjun@redhat.com>
11745
11746 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11747 __gconv_path_elem and call __gconv_get_path unconditionally.
11748
11749 2018-11-05 Andreas Schwab <schwab@suse.de>
11750
11751 [BZ #22927]
11752 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11753 creating the first helper thread failed.
11754
11755 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11756
11757 * sysdeps/mach/hurd/msync.c: New file.
11758
11759 2018-11-02 Florian Weimer <fweimer@redhat.com>
11760
11761 * support/shell-container.c (copy_func): Call
11762 support_copy_file_range instead of copy_file_range to support
11763 cross-device copies.
11764
11765 2018-11-02 Florian Weimer <fweimer@redhat.com>
11766
11767 * support/test-container.c: Include <libc-pointer-arith.h> for
11768 ALIGN_UP.
11769
11770 2018-11-01 Zong Li <zong@andestech.com>
11771
11772 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11773 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11774 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11775 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11776
11777 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11778 variable to avoid overlap arguments.
11779
11780 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11781
11782 * posix/bug-regex22.c (main): Use puts with distinct error
11783 messages for unexpected success of re_compile_pattern, not printf
11784 with NULL argument to %s.
11785
11786 * stdio-common/bug22.c: Include <libc-diag.h>.
11787 (do_test): Disable -Wformat-overflow= warnings around fprintf
11788 calls outputting more than INT_MAX characters.
11789 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11790 around printf call with NULL %s argument.
11791
11792 [BZ #23848]
11793 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11794 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11795 Undefine.
11796 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11797 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11798 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11799 (__ASSUME_SENDTO_SYSCALL): Likewise.
11800 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11801 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11802 [!__arch64__].
11803 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11804 (__ASSUME_CONNECT_SYSCALL): Likewise.
11805 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11806 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11807 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11808 Define.
11809 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11810 Likewise.
11811 [__LINUX_KERNEL_VERSION >= 0x040400]
11812 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11813 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11814 Remove.
11815 (listen): Likewise.
11816 (setsockopt): Likewise.
11817
11818 2018-11-01 Fredrik Noring <noring@nocrew.org>
11819
11820 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11821 with the ISA override.
11822
11823 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11824
11825 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11826 #endif.
11827
11828 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11829
11830 * manual/errno.texi (EIEIO): Document how translators should
11831 translate the error message.
11832 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11833 printing trailing whitespaces refused by git.
11834 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11835 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11836 * hurd/Makefile (user-interfaces): Add pci.
11837
11838 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11839
11840 * conform/linknamespace.py: New file.
11841 * conform/linknamespace.pl: Remove file.
11842 * conform/Makefile ($(linknamespace-header-tests)): Use
11843 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11844 option.
11845
11846 2018-10-30 Florian Weimer <fweimer@redhat.com>
11847
11848 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11849 memory leaks.
11850
11851 2018-10-30 Florian Weimer <fweimer@redhat.com>
11852
11853 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11854
11855 2018-10-30 Florian Weimer <fweimer@redhat.com>
11856
11857 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11858 support_blob_repeat.
11859
11860 2018-10-30 Florian Weimer <fweimer@redhat.com>
11861
11862 Avoid spurious test failures in stdlib/test-bz22786.
11863 * support/Makefile (libsupport-routines): Add blob_repeat.
11864 (tests): Add tst-support_blob_repeat.
11865 * support/blob_repeat.h: New file.
11866 * support/blob_repeat.c: Likewise.
11867 * support/tst-support_blob_repeat.c: Likewise.
11868 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11869 support_blob_repeat_allocate.
11870
11871 2018-10-30 Andreas Schwab <schwab@suse.de>
11872
11873 [BZ #23125]
11874 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11875 Don't use tail call.
11876 * elf/tst-unwind-main.c: New file.
11877 * elf/Makefile (tests): Add tst-unwind-main.
11878 (CFLAGS-tst-unwind-main.c): Define.
11879
11880 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11881
11882 [BZ #23791]
11883 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11884 n_cs_precedes to 0.
11885 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11886
11887 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11888
11889 * conform/glibcconform.py: Do not import shutil.
11890 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11891 of mkdtemp.
11892
11893 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11894 critic_missing for versions before 3.4.
11895 * configure: Regenerated.
11896 * manual/install.texi (Tools for Compilation): Document
11897 requirement for Python to build glibc.
11898 * INSTALL: Regenerated.
11899 * Rules [PYTHON]: Make code unconditional.
11900 * benchtests/Makefile [PYTHON]: Likewise.
11901 * conform/Makefile [PYTHON]: Likewise.
11902 * manual/Makefile [PYTHON]: Likewise.
11903 * math/Makefile [PYTHON]: Likewise.
11904
11905 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11906
11907 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11908 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11909 answer to interrupt_operation, return EIEIO instead of EINTR.
11910 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11911 _hurd_intr_rpc_msg_about_to global point to start of controlled
11912 assembly snippet. Make it check canceled flag.
11913 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11914 the _hurd_intr_rpc_msg_about_to point.
11915 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11916 issue, remove cancel flag check.
11917
11918 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11919
11920 * scripts/build-many-glibcs.py: Remove compatibility for missing
11921 os.cpu_count and re.fullmatch.
11922
11923 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11924
11925 [BZ #23822]
11926 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11927 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11928 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11929
11930 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11931
11932 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11933 macro.
11934
11935 2018-10-25 Florian Weimer <fweimer@redhat.com>
11936
11937 [BZ #23562]
11938 [BZ #23821]
11939 XFAIL siginfo_t si_band conform test on sparc64.
11940 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11941 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11942 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11943 (conformtest-xfail-conds): Add sparc64-linux.
11944 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11945 sparc64.
11946 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11947
11948 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11949
11950 * elf/elf.h (NT_MIPS_DSP): New macro.
11951 (NT_MIPS_FP_MODE): Likewise.
11952
11953 2018-10-25 Zong Li <zong@andestech.com>
11954
11955 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11956 name by adding the file extension (.so).
11957
11958 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11959
11960 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11961 (test-xfail-ISO11/threads.h/linknamespace,
11962 test-xfail-ISO11/threads.h/conform): Add.
11963
11964 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11965
11966 * math/gen-libm-test.py: Import os.
11967 (ALL_FLOATS_MANUAL): New constant.
11968 (ALL_FLOATS_SUFFIX): Likewise.
11969 (Ulps.all_functions): New function.
11970 (real_all_ulps): Likewise.
11971 (generate_err_table_sub): Likewise.
11972 (generate_err_table): Likewise.
11973 (main): Handle -s and -m options.
11974 * manual/libm-err-tab.pl: Remove.
11975 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11976 instead of libm-err-tab.pl.
11977 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11978 != no].
11979 * manual/install.texi (Tools for Compilation): Document
11980 requirement for Python to build manual.
11981 * INSTALL: Regenerated.
11982
11983 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11984
11985 * bits/time64.h: New file.
11986 * include/time.h: Replace internal_time_t with __time64_t.
11987 * posix/bits/types (__time64_t): Add.
11988 * stdlib/Makefile: Add bits/time64.h to includes.
11989 * time/tzfile.c: Replace internal_time_t with __time64_t.
11990
11991 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11992
11993 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11994 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11995 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11996 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11997 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11998 prototype.
11999 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
12000 * posix/spawn_faction_addclose.c
12001 (__posix_spawn_file_actions_addclose): Add hidden definition.
12002 * posix/spawn_faction_adddup2.c
12003 (__posix_spawn_file_actions_adddup2): Likewise.
12004 * posix/spawn_faction_destroy.c
12005 (__posix_spawn_file_actions_destroy): Likewise.
12006 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
12007 Likewise.
12008 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
12009 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
12010 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
12011 Likewise.
12012 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
12013 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
12014 Likewise.
12015
12016 2018-10-24 Andreas Schwab <schwab@suse.de>
12017
12018 [BZ #18093]
12019 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
12020 format cache.
12021 * elf/cache.c (print_cache): Likewise.
12022
12023 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
12024
12025 * bits/timesize.h: New file.
12026 * stdlib/Makefile (headers): Add bits/timesize.h.
12027 * sysdeps/unix/sysv/linux/bits/msq-pad.h
12028 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
12029 * sysdeps/unix/sysv/linux/bits/sem-pad.h
12030 (__SEM_PAD_AFTER_TIME): Likewise.
12031 * sysdeps/unix/sysv/linux/bits/shm-pad.h
12032 (__SHM_PAD_AFTER_TIME): Likewise.
12033 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
12034 (__MSQ_PAD_BEFORE_TIME): Likewise.
12035 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
12036 (__SEM_PAD_BEFORE_TIME): Likewise.
12037 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
12038 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
12039 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
12040 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
12041 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
12042 (__MSQ_PAD_BEFORE_TIME): Likewise.
12043 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
12044 (__SEM_PAD_BEFORE_TIME): Likewise.
12045 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
12046 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
12047 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
12048 (__MSQ_PAD_BEFORE_TIME): Likewise.
12049 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
12050 (__SEM_PAD_BEFORE_TIME): Likewise.
12051 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
12052 (__SHM_PAD_BEFORE_TIME): Likewise.
12053 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
12054 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
12055 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
12056
12057 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
12058
12059 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
12060 USE_RDTSCP is defined.
12061 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
12062 USE_RDTSCP is defined.
12063
12064 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12065
12066 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
12067 defined.
12068
12069 [BZ #23709]
12070 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
12071 independently of other flags.
12072
12073 2018-10-23 Florian Weimer <fweimer@redhat.com>
12074
12075 * time/tst-mktime2.c (N_STRINGS): Remove.
12076 (set_timezone): New function.
12077 (spring_forward_gap): Call it. Use FAIL_EXIT1.
12078 (mktime_test1): Report localtime failure and check errno value.
12079 Use TEST_COMPARE.
12080 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
12081 (do_test): Remove alarm call. Use set_timezone and array_length.
12082
12083 2018-10-23 Andreas Schwab <schwab@suse.de>
12084
12085 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
12086 (__start_context): Use END instead of PSEUDO_END.
12087
12088 2018-10-22 Joseph Myers <joseph@codesourcery.com>
12089
12090 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12091 version to 4.19.
12092
12093 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12094 version to 4.19.
12095
12096 [BZ #23793]
12097 * wcsmbs/c32rtomb.c: New file.
12098 * wcsmbs/mbrtoc32.c: Likewise.
12099 * wcsmbs/tst-c32-state.c: Likewise.
12100 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
12101 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
12102 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
12103 (tests): Add tst-c32-state.
12104 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
12105 $(gen-locales).
12106
12107 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
12108
12109 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
12110 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
12111
12112 2018-10-19 Joseph Myers <joseph@codesourcery.com>
12113
12114 [BZ #23794]
12115 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
12116 pair and return 0 in that case, and use saved character to
12117 interpret following character.
12118 * wcsmbs/tst-c16-surrogate.c: New file.
12119 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
12120 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
12121 Depend on $(gen-locales)
12122
12123 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
12124
12125 [BZ #23562]
12126 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
12127 (struct siginfo_t): Use correct type for si_band.
12128
12129 2018-10-19 Florian Weimer <fweimer@redhat.com>
12130
12131 [BZ #23689]
12132 * resource/bits/types/struct_rusage.h (struct rusage): Update
12133 comment on struct. Remove extraneous field comment.
12134
12135 2018-10-18 David S. Miller <davem@davemloft.net>
12136
12137 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
12138 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
12139 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
12140 sysdep_routines in subdir elf.
12141 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
12142 version for __vdso_clock_gettime.
12143 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
12144 Define.
12145 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
12146 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
12147
12148 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
12149
12150 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
12151
12152 * sysdeps/i386/init-arch.h: Removed.
12153 * sysdeps/i386/i586/init-arch.h: Likewise.
12154 * sysdeps/i386/i686/init-arch.h: Likewise.
12155 * sysdeps/i386/i686/hp-timing.h: Likewise.
12156 * sysdeps/x86_64/hp-timing.h: Likewise.
12157 * sysdeps/i386/isa.h: New file.
12158 * sysdeps/i386/i586/isa.h: Likewise.
12159 * sysdeps/i386/i686/isa.h: Likewise.
12160 * sysdeps/x86_64/isa.h: Likewise.
12161 * sysdeps/x86/hp-timing.h: New file.
12162 * sysdeps/x86/init-arch.h: Include <isa.h>.
12163
12164 2018-10-17 Joseph Myers <joseph@codesourcery.com>
12165
12166 * math/libm-test-pow.inc (pow_test_data): Do not allow
12167 divide-by-zero exception for pow(+/- 0, -Inf).
12168
12169 2018-10-17 Zack Weinberg <zackw@panix.com>
12170
12171 * manual/job.texi (Job Control is Optional): Remove node, as
12172 job control has not been optional in quite some time.
12173 (Job Control): Mention briefly that systems older than
12174 POSIX.1-2001 might not support job control.
12175 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
12176 defined on systems conforming to POSIX.1-2001.
12177
12178 2018-10-17 Arjun Shankar <arjun@redhat.com>
12179
12180 [BZ #22062]
12181 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
12182 indentation.
12183 * (__gconv_read_conf): Mark function static.
12184 * (once): New static variable.
12185 * (__gconv_load_conf): New function.
12186 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
12187 * iconv/gconv_db.c (once): Remove static variable.
12188 * (__gconv_compare_alias): Use __gconv_load_conf instead of
12189 __gconv_read_conf.
12190 * (__gconv_find_transform): Likewise.
12191 * iconv/tst-iconv-mt.c: New test.
12192 * iconv/Makefile: Add tst-iconv_mt.
12193
12194 2018-10-17 Joseph Myers <joseph@codesourcery.com>
12195
12196 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12197 bits/shm-pad.h.
12198 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
12199 (shmatt_t): Define as __syscall_ulong_t.
12200 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
12201 and [__SHM_PAD_AFTER_TIME].
12202 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
12203 Define shm_segsz and associated padding based on
12204 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
12205 Use __syscall_ulong_t instead of unsigned long int.
12206 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
12207 unsigned long int.
12208 [__USE_MISC] (struct shm_info): Likewise.
12209 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
12210 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
12211 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
12212 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
12213 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
12214 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
12215 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
12216 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
12217 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12218 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12219 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
12220
12221 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12222 bits/shmlba.h.
12223 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
12224 (SHMLBA): Remove macro.
12225 (__getpagesize): Remove function declaration.
12226 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
12227 <bits/shmlba.h>.
12228 (SHMLBA): Remove macro.
12229 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
12230 <bits/shmlba.h>.
12231 (SHMLBA): Remove macro.
12232 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
12233 <bits/shmlba.h>.
12234 (SHMLBA): Remove macro.
12235 (__getpagesize): Remove function declaration.
12236 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
12237 <bits/shmlba.h>.
12238 (SHMLBA): Remove macro.
12239 (__getshmlba): Remove function declaration.
12240 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
12241 (SHMLBA): Remove macro.
12242 (__getpagesize): Remove function declaration.
12243 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
12244 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
12245 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
12246 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
12247 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
12248 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
12249 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
12250 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
12251 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
12252 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
12253
12254 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
12255
12256 [BZ #23275]
12257 * nptl/tst-mutex10.c: New File.
12258 * nptl/Makefile (tests): Add tst-mutex10.
12259 (tst-mutex10-ENV): New variable.
12260 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
12261 Ensure that elision path is used if elision is available.
12262 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
12263 Likewise.
12264 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
12265 Likewise.
12266 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
12267 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
12268 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
12269 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
12270 Likewise.
12271 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
12272 (__pthread_mutex_cond_lock_adjust): Likewise.
12273 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
12274 Likewise.
12275 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
12276 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
12277 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
12278 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
12279 Add comments.
12280 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
12281 Use atomic_load_relaxed and atomic_store_relaxed.
12282 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
12283 Use atomic_store_relaxed.
12284
12285 2018-10-17 Andreas Schwab <schwab@suse.de>
12286
12287 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
12288 * crypt/badsalttest.c (TIMEOUT): Likewise.
12289 * crypt/sha256c-test.c (TIMEOUT): Likewise.
12290 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
12291 * io/test-lfs.c (TIMEOUT): Likewise.
12292 * libio/tst-atime.c (TIMEOUT): Likewise.
12293 * localedata/tst-leaks.c (TIMEOUT): Likewise.
12294 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
12295 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
12296 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
12297 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
12298 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
12299 * nptl/tst-cond11.c (TIMEOUT): Likewise.
12300 * nptl/tst-cond14.c (TIMEOUT): Likewise.
12301 * nptl/tst-cond15.c (TIMEOUT): Likewise.
12302 * nptl/tst-cond24.c (TIMEOUT): Likewise.
12303 * nptl/tst-cond25.c (TIMEOUT): Likewise.
12304 * nptl/tst-kill2.c (TIMEOUT): Likewise.
12305 * nptl/tst-kill3.c (TIMEOUT): Likewise.
12306 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
12307 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
12308 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
12309 * nptl/tst-once2.c (TIMEOUT): Likewise.
12310 * nptl/tst-once3.c (TIMEOUT): Likewise.
12311 * nptl/tst-once4.c (TIMEOUT): Likewise.
12312 * nptl/tst-robust8.c (TIMEOUT): Likewise.
12313 * nptl/tst-robust9.c (TIMEOUT): Likewise.
12314 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
12315 * nptl/tst-sem14.c (TIMEOUT): Likewise.
12316 * nptl/tst-sem6.c (TIMEOUT): Likewise.
12317 * nptl/tst-signal3.c (TIMEOUT): Likewise.
12318 * nptl/tst-spin4.c (TIMEOUT): Likewise.
12319 * nptl/tst-tls3.c (TIMEOUT): Likewise.
12320 * nptl/tst-tls4.c (TIMEOUT): Likewise.
12321 * posix/tst-chmod.c (TIMEOUT): Likewise.
12322 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
12323 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
12324 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
12325 * posix/tst-regex2.c (TIMEOUT): Likewise.
12326 * posix/tst-waitid.c (TIMEOUT): Likewise.
12327 * rt/tst-aio.c (TIMEOUT): Likewise.
12328 * rt/tst-aio10.c (TIMEOUT): Likewise.
12329 * rt/tst-aio4.c (TIMEOUT): Likewise.
12330 * rt/tst-aio5.c (TIMEOUT): Likewise.
12331 * rt/tst-aio6.c (TIMEOUT): Likewise.
12332 * rt/tst-aio64.c (TIMEOUT): Likewise.
12333 * rt/tst-aio7.c (TIMEOUT): Likewise.
12334 * rt/tst-aio9.c (TIMEOUT): Likewise.
12335 * rt/tst-clock.c (TIMEOUT): Likewise.
12336 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
12337 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
12338 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
12339 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
12340 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
12341 * rt/tst-timer4.c (TIMEOUT): Likewise.
12342 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
12343 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
12344 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
12345 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
12346 * time/tst-ftime.c (TIMEOUT): Likewise.
12347 * timezone/tst-tzset.c (TIMEOUT): Likewise.
12348
12349 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
12350
12351 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
12352 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
12353 for thunderX2.
12354
12355 2018-10-15 Joseph Myers <joseph@codesourcery.com>
12356
12357 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12358 bits/sem-pad.h.
12359 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
12360 instead of <bits/wordsize.h>.
12361 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
12362 and [__SEM_PAD_AFTER_TIME].
12363 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
12364 __syscall_ulong_t instead of unsigned long int.
12365 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
12366 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
12367 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
12368 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
12369 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
12370 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
12371 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
12372 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
12373 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
12374 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
12375 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
12376
12377 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
12378
12379 regex: simplify by using intprops.h
12380 [BZ#23744]
12381 * posix/regex_internal.h [_LIBC]: Include intprops.h.
12382 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
12383 intprops.h defines them.
12384
12385 regex: __builtin_expect → __glibc_unlikely
12386 [BZ#23744]
12387 This refactoring was prompted by a problem when the regex code is
12388 used as part of Gnulib and when the builder’s compiler does not grok
12389 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
12390 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
12391 Although this refactoring does not fix the problem directly,
12392 we might as well have Gawk use the now-preferred glibc style for when
12393 __builtin_expect is unavailable.
12394 * posix/regex_internal.h (BE): Remove.
12395 All uses replaced by __glibc_unlikely or __glibc_likely.
12396
12397 2018-10-11 Joseph Myers <joseph@codesourcery.com>
12398
12399 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12400 bits/msq-pad.h.
12401 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
12402 instead of <bits/wordsize.h>.
12403 (msgqnum_t): Define as __syscall_ulong_t.
12404 (msglen_t): Likewise.
12405 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
12406 and [__MSQ_PAD_AFTER_TIME].
12407 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
12408 __syscall_ulong_t instead of unsigned long int.
12409 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
12410 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
12411 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
12412 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
12413 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
12414 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
12415 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
12416 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
12417 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
12418 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
12419 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
12420
12421 2018-10-10 Joseph Myers <joseph@codesourcery.com>
12422
12423 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
12424 (struct shmid_ds): Condition padding after time fields on
12425 [__WORDSIZE == 32].
12426 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
12427 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
12428 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12429
12430 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
12431 (struct semid_ds): Condition padding after time fields on
12432 [__WORDSIZE == 32].
12433 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
12434 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
12435 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
12436 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
12437
12438 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
12439 (struct msqid_ds): Condition padding after time fields on
12440 [__WORDSIZE == 32].
12441 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
12442 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
12443 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
12444 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
12445
12446 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12447
12448 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
12449
12450 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12451
12452 * libio/tst-readline.c (TIMEOUT): Define.
12453
12454 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
12455
12456 mktime fix for Gnulib + coreutils
12457 [BZ#23745]
12458 This fix affects only Gnulib. Problem discovered when
12459 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
12460 * time/mktime.c:
12461 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
12462 Do not define since it is not used. Defining an unused static
12463 function prompts a warning from GCC when Coreutils is configured
12464 with --enable-gcc-warnings.
12465
12466 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12467
12468 * benchtests/scripts/compare_bench.py (main): set float type on
12469 threshold argument.
12470
12471 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
12472
12473 [BZ #23740]
12474 * localedata/locales/kl_GL (mon): Update, the relative case.
12475 (alt_mon): Add, fill with month names in the nominative case.
12476 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
12477 (d_fmt): Set to "%b %d %Y".
12478
12479 2018-10-04 Joseph Myers <joseph@codesourcery.com>
12480
12481 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
12482 <bits/mman-linux.h>.
12483 (PROT_READ): Don't define here.
12484 (PROT_WRITE): Likewise.
12485 (PROT_EXEC): Likewise.
12486 (PROT_NONE): Likewise.
12487 (PROT_GROWSDOWN): Likewise.
12488 (PROT_GROWSUP): Likewise.
12489 (MAP_SHARED): Likewise.
12490 (MAP_PRIVATE): Likewise.
12491 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
12492 [__USE_MISC] (MAP_FILE): Likewise.
12493 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
12494 [__USE_MISC] (MAP_ANON): Likewise.
12495 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
12496 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
12497 (MCL_CURRENT): Likewise.
12498 (MCL_FUTURE): Likewise.
12499 (MCL_ONFAULT): Likewise.
12500 [__USE_MISC] (MADV_NORMAL): Likewise.
12501 [__USE_MISC] (MADV_RANDOM): Likewise.
12502 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
12503 [__USE_MISC] (MADV_WILLNEED): Likewise.
12504 [__USE_MISC] (MADV_DONTNEED): Likewise.
12505 [__USE_MISC] (MADV_FREE): Likewise.
12506 [__USE_MISC] (MADV_REMOVE): Likewise.
12507 [__USE_MISC] (MADV_DONTFORK): Likewise.
12508 [__USE_MISC] (MADV_DOFORK): Likewise.
12509 [__USE_MISC] (MADV_HWPOISON): Likewise.
12510 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
12511 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
12512 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
12513 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
12514 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
12515 (__MAP_ANONYMOUS): New macro.
12516 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
12517 <bits/mman-linux.h> inclusion.
12518 (MAP_FIXED): Likewise.
12519 (MS_SYNC): Likewise.
12520 (MS_ASYNC): Likewise.
12521 (MS_INVALIDATE): Likewise.
12522 [__USE_MISC] (MADV_MERGEABLE): Likewise.
12523 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
12524 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
12525 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
12526 [__USE_MISC] (MADV_DONTDUMP): Likewise.
12527 [__USE_MISC] (MADV_DODUMP): Likewise.
12528 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
12529 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
12530
12531 [BZ #23735]
12532 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
12533 Define.
12534 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
12535 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
12536 Add test-nldbl-redirect.
12537 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
12538 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
12539 $(objpfx)libnldbl_nonshared.a.
12540
12541 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
12542
12543 * support/support.h (support_objdir_elf_ldso): New variable.
12544 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
12545 * support/Makefile (CFLAGS-support_paths.c): Add definition
12546 for OBJDIR_ELF_LDSO_PATH.
12547 * support/test-container.c (main): Search for the ld.so
12548 which is also used by the testsuite.
12549
12550 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
12551
12552 [BZ #20209]
12553 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
12554 should be "sap" rather than "sab".
12555 (day): Fix spelling of Sunday, should be "sapaat" rather than
12556 "sabaat".
12557
12558 2018-10-02 Joseph Myers <joseph@codesourcery.com>
12559
12560 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12561
12562 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
12563
12564 [BZ #19444]
12565 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
12566 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
12567 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
12568
12569 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12570
12571 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
12572
12573 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
12574
12575 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
12576 Add -mrtm.
12577 (CFLAGS-elision-unlock.c): Likewise.
12578 (CFLAGS-elision-timed.c): Likewise.
12579 (CFLAGS-elision-trylock.c): Likewise.
12580 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
12581
12582 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12583
12584 [BZ #21037]
12585 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
12586 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
12587 new fd_to_filename interface.
12588 * libio/freopen64.c (freopen64): Likewise.
12589 * libio/tst-memstream.h: New file.
12590 * libio/tst-memstream4.c: Likewise.
12591 * libio/tst-wmemstream4.c: Likewise.
12592 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
12593 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
12594 and remove internal dynamic allocation.
12595
12596 2018-10-01 Joseph Myers <joseph@codesourcery.com>
12597
12598 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
12599 (MREMAP_MAYMOVE): Do not define here.
12600 [__USE_GNU] (MREMAP_FIXED): Likewise.
12601 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
12602 (MREMAP_MAYMOVE): Define here instead.
12603 [__USE_GNU] (MREMAP_FIXED): Likewise.
12604 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
12605 (MREMAP_MAYMOVE): Remove.
12606 [__USE_GNU] (MREMAP_FIXED): Likewise.
12607
12608 2018-09-28 Joseph Myers <joseph@codesourcery.com>
12609
12610 * math/fromfp.h: Do not include <math_private.h>.
12611 * math/s_cacosh_template.c: Likewise.
12612 * math/s_casin_template.c: Likewise.
12613 * math/s_casinh_template.c: Likewise.
12614 * math/s_ccos_template.c: Likewise.
12615 * math/s_cproj_template.c: Likewise.
12616 * math/s_fdim_template.c: Likewise.
12617 * math/s_fmaxmag_template.c: Likewise.
12618 * math/s_fminmag_template.c: Likewise.
12619 * math/s_iseqsig_template.c: Likewise.
12620 * math/s_ldexp_template.c: Likewise.
12621 * math/s_nextdown_template.c: Likewise.
12622 * math/w_log1p_template.c: Likewise.
12623 * math/w_scalbln_template.c: Likewise.
12624 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12625 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12626 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12627 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12628 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12629 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12630 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12631 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12632 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12633 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12634 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12635 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12636 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12637 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12638 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12639 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12640 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12641 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12642 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12643 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12644 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12645 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12646 * sysdeps/ieee754/k_standardf.c: Likewise.
12647 * sysdeps/ieee754/k_standardl.c: Likewise.
12648 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12649 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12650 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12651 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12652 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12653 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12654 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12655 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12656 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12657 * sysdeps/ieee754/s_signgam.c: Likewise.
12658 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12659 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12660 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12661 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12662 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12663 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12664 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12665 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12666 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12667 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12668 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12669 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12670 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12671 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12672 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12673 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12674 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12675 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12676 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12677 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12678 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12679 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12680 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12681 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12682 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12683 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12684 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12685 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12686 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12687 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12688 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12689 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12690 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12691 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12692 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12693 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12694 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12695 <math_private.h>.
12696 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12697
12698 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12699
12700 [BZ #23716]
12701 * sysdeps/i386/dl-cet.c: Removed.
12702 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12703 prototype.
12704 (_dl_runtime_profile_shstk): Likewise.
12705 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12706 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12707
12708 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12709
12710 [BZ #23579]
12711 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12712 do_test_with_invalid_iov): New tests.
12713 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12714 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12715 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12716 errno is ENOSYS.
12717 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12718 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12719 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12720
12721 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12722
12723 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12724 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12725 (MATH_REDIRECT_BINARY_ARGS): New macro.
12726 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12727 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12728 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12729 header inclusion.
12730 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12731 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12732 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12733 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12734 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12735 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12736 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12737 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12738 Likewise.
12739 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12740 Likewise.
12741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12743 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12744 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12746 Likewise.
12747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12748 Likewise.
12749 * sysdeps/generic/math_private_calls.h
12750 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12751 Do not declare and define as an inline function.
12752 * math/divtc3.c (__divtc3): Use copysign functions instead of
12753 __copysign variants.
12754 * math/multc3.c (__multc3): Likewise.
12755 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12756 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12757 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12758 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12759 Likewise.
12760 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12761 (__ieee754_yn): Likewise.
12762 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12763 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12764 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12765 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12766 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12767 (__sin): Likewise.
12768 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12769 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12770 Likewise.
12771 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12772 Likewise.
12773 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12774 Likewise.
12775 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12776 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12777 Likewise.
12778 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12779 (__ieee754_ynf): Likewise.
12780 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12781 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12782 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12783 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12784 Likewise.
12785 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12786 (__ieee754_ynl): Likewise.
12787 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12788 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12789 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12790 Likewise.
12791 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12792 (__ieee754_ynl): Likewise.
12793 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12794 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12795 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12796 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12797 Likewise.
12798 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12799 (__ieee754_ynl)
12800 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12801 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12802 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12803 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12804 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12805
12806 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12807 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12808 using MATH_REDIRECT.
12809 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12810 header inclusion.
12811 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12812 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12813 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12814 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12815 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12816 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12817 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12818 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12822 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12823 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12824 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12825 (round): Redirect to __round.
12826 (__roundl): Call round instead of __round.
12827 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12828 Remove macro.
12829 [_ARCH_PWR5X] (__roundf): Likewise.
12830 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12831 functions instead of __round variants.
12832 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12833 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12834 Likewise.
12835 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12836 Likewise.
12837 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12838 Likewise.
12839 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12840 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12841 __lroundl.
12842 (__ieee754_expl): Call roundl instead of __roundl.
12843
12844 2018-09-27 Andreas Schwab <schwab@suse.de>
12845
12846 [BZ #23717]
12847 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12848 (do_test): Make st1 static.
12849
12850 2018-09-26 Andreas Schwab <schwab@suse.de>
12851
12852 [BZ #23707]
12853 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12854 * elf/Makefile (tests): Add tst-unwind-ctor.
12855 (modules-names): Add tst-unwind-ctor-lib.
12856 ($(objpfx)tst-unwind-ctor): Depend on
12857 $(objpfx)tst-unwind-ctor-lib.so.
12858
12859 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12860
12861 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12862 file. Most contents moved from ....
12863 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12864 and include <bits/mman-map-flags-generic.h>.
12865 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12866 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12867 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12868 <bits/mman-map-flags-generic.h>.
12869 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12870 macros defined in <bits/mman-map-flags-generic.h>.
12871 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12872 <bits/mman-map-flags-generic.h>.
12873 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12874 defined in <bits/mman-map-flags-generic.h>.
12875
12876 2018-09-26 Andreas Schwab <schwab@suse.de>
12877
12878 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12879 output.
12880
12881 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12882 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12883 Fangrui Song <maskray@google.com>
12884
12885 [BZ #20480]
12886 * config.make.in (have-textrel_ifunc): New define.
12887 * configure.ac: Add check if linker supports textrel relocation with
12888 ifunc.
12889 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12890 tst-ifunc-textrel.
12891 (CFLAGS-tst-ifunc-textrel.c): New rule.
12892 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12893 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12894 * elf/tst-ifunc-textrel.c: New file.
12895
12896 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12897
12898 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12899 <bits/procfs-prregset.h>.
12900 (prgregset_t): Define using __prgregset_t.
12901 (prfpregset_t): Define using __prfpregset_t.
12902 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12903 (sysdep_headers): Add bits/procfs-prregset.h.
12904 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12905 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12906 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12907 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12908
12909 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12910 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12911 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12912 pr_uid and pr_gid.
12913 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12914 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12915 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12916 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12917 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12918 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12919 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12920 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12921 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12922 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12923 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12924 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12925 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12926 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12927 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12928 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12929 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12930 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12931 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12932 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12933 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12934 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12935 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12936 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12937
12938 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12939 AArch64 version. Include <bits/procfs.h>.
12940 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12941 (sysdep_headers): Add bits/procfs.h.
12942 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12943 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12944 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12945 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12946 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12947 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12948 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12949 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12950 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12951 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12952 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12953 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12954 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12955 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12956 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12957 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12958 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12959
12960 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12961
12962 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12963 Use libsupport.
12964
12965 2018-09-25 Arjun Shankar <arjun@redhat.com>
12966
12967 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12968 (__gconv_max_path_elem_len): Likewise.
12969 (__gconv_nmodules): Likewise.
12970 (__gconv_get_path): Likewise.
12971 (path_elem): Move to ...
12972 * iconv/gconv_conf.c: ... here.
12973 (__gconv_get_path): Mark function static.
12974 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12975 * iconv/gconv_open.c: ... here.
12976
12977 2018-09-24 Andreas Schwab <schwab@suse.de>
12978
12979 * scripts/haveversions.awk: New file.
12980 * Makerules ($(common-objpfx)Versions.def)
12981 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12982 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12983 Move rules ...
12984 * Makeconfig ($(common-objpfx)Versions.def)
12985 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12986 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12987 ... here.
12988 ($(common-objpfx)Versions.mk): New rule. Include it.
12989 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12990 Emit error if build-obsolete-nsl = yes.
12991 * manual/install.texi (Configuring and compiling): Describe
12992 --enable-obsolete-nsl as unavaiable after version 2.28.
12993 * INSTALL: Regenerate.
12994
12995 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12996
12997 * NEWS: Add note about new TLE support on powerpc64le.
12998 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12999 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
13000 __ununsed1.
13001 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
13002 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
13003 * sysdeps/powerpc/powerpc32/sysdep.h,
13004 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
13005 ABORT_TRANSACTION): Remove macros.
13006 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
13007 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
13008 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
13009 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
13010 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
13011 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
13012 usage.
13013 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
13014
13015 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
13016
13017 [BZ #10425]
13018 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
13019 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
13020 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
13021 which is the same as in it_IT.
13022 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
13023 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
13024
13025 2018-09-20 Joseph Myers <joseph@codesourcery.com>
13026
13027 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13028 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
13029 using MATH_REDIRECT.
13030 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
13031 header inclusion.
13032 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
13033 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13034 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
13035 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
13036 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13037 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13038 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
13039 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
13040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
13041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
13042 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13043 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13044 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13045 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13046 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
13047 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
13048 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
13049 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13050 (ceil): Redirect to __ceil.
13051 (floor): Redirect to __floor.
13052 (trunc): Redirect to __trunc.
13053 (__truncl): Call trunc instead of __trunc.
13054 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
13055 Remove macro.
13056 [_ARCH_PWR5X] (__truncf): Likewise.
13057 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
13058 trunc functions instead of __trunc variants.
13059 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13060 Likewise.
13061 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13062 Likewise.
13063 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13064 Likewise.
13065 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13066 Likewise.
13067
13068 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
13069 [__i586__ || __pentium__].
13070 [__i486__]: Handle explicitly.
13071 (HAS_CPUID): Define to 1 if above macros are undefined.
13072 (HAS_I586): Likewise.
13073 (HAS_I686): Likewise.
13074
13075 2018-09-20 Florian Weimer <fweimer@redhat.com>
13076
13077 * misc/tst-gethostid.c: New file.
13078 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
13079 (tst-gethostid): Link with -ldl.
13080
13081 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
13082
13083 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
13084 value from gethostbyname_r.
13085
13086 2018-09-19 Carlos O'Donell <carlos@redhat.com>
13087
13088 * stdlib/tst-setcontext9.c (f1): Rename to...
13089 (f1a): ... this.
13090 (f1b): New function implementing lower half of f1 in alternate stack.
13091
13092 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
13093
13094 Fix mktime localtime offset confusion
13095 [BZ #23603]
13096 * include/time.h (__mktime_internal): The localtime offset is now
13097 of type long int instead of time_t. This is the longstanding type
13098 in glibc, and it is more than enough to represent difference
13099 between localtime and gmtime even if it is 32 bits and time_t is
13100 64. Changing it now will let us avoid an unnecessary change when
13101 time_t is widened to 64 bits on 32-bit platforms.
13102 * time/mktime-internal.h (mktime_offset_t): Now long int.
13103
13104 Merge mktime, timegm from upstream Gnulib
13105 [BZ #23603][BZ #16346]
13106 This fixes some obscure problems with integer overflow.
13107 Although it looks scary, it is almost all a byte-for-byte copy
13108 from Gnulib, and the Gnulib code has been tested reasonably well.
13109 * include/intprops.h: New file, copied from Gnulib.
13110 * include/verify.h, time/mktime-internal.h:
13111 New tiny files, simplified from Gnulib.
13112 * time/mktime.c: Copy from Gnulib. This has the following changes:
13113 Do not include config.h if DEBUG_MKTIME is nonzero.
13114 Include stdbool.h, intprops.h, verify.h.
13115 Include string.h only if needed.
13116 Include stdlib.h on MS-Windows.
13117 Include mktime-internal.h.
13118 (DEBUG_MKTIME): Default to 0, and simplify later uses.
13119 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
13120 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
13121 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
13122 simplify later conditionals; default the others to zero. Use
13123 these conditionals to express only the code needed on the current
13124 platform. In uses of these conditionals, explicitly spell out how
13125 _LIBC affects things, so it’s easier to review from a glibc
13126 viewpoint.
13127 (WRAPV): Remove; no longer needed now that we have
13128 systematic overflow checking.
13129 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
13130 compartmentalize tzset issues. Move system-dependent tzsettish
13131 code here from mktime.
13132 (verify): Remove; now done by verify.h. All uses changed.
13133 (long_int): Use a more-conservative definition, to avoid
13134 integer overflow.
13135 (SHR): Remove, replacing with ...
13136 (shr): New function, which means we needn’t worry about side
13137 effects in args, and conversion analysis is simpler.
13138 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
13139 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
13140 (time_t_avg, time_t_add_ok): Remove.
13141 (mktime_min, mktime_max): New constants.
13142 (leapyear, isdst_differ): Use bool for booleans.
13143 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
13144 Use long_int, not time_t, for mktime differences.
13145 (long_int_avg): New function, replacing time_t_avg.
13146 INT_ADD_WRAPV replaces time_t_add_ok.
13147 (guess_time_tm): 6th arg is now long_int, not time_t const *.
13148 All uses changed.
13149 (convert_time): New function.
13150 (ranged_convert): Use it.
13151 (__mktime_internal): Last arg now points to mktime_offset_t, not
13152 time_t. All uses changed. This is a no-op on glibc, where
13153 mktime_offset_t is always time_t. Use int, not time_t, for UTC
13154 offset guess. Directly check for integer overflow instead of
13155 using a heuristic that works only 99.9...% of the time.
13156 Access *OFFSET only once, to avoid an unlikely race if the
13157 compiler delays a load and if this cascades into a signed integer
13158 overflow.
13159 (mktime): Move tzsettish code to my_tzset, and move
13160 localtime_offset to within mktime so that it doesn’t
13161 need a separate ifdef.
13162 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
13163 instead of localtime.
13164 * time/timegm.c: Copy from Gnulib. This has the following changes:
13165 Include mktime-internal.h.
13166 [!_LIBC]: Include config.h and time.h. Do not include
13167 timegm.h or time_r.h. Make __mktime_internal a macro,
13168 and include mktime-internal.h to get its declaration.
13169 (timegm): Temporary is now mktime_offset_t, not time_t.
13170 This affects only Gnulib.
13171
13172 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13173
13174 [BZ #23637]
13175 * string/test-strstr.c (pr23637): New function.
13176 (test_main): Add tests with longer needles.
13177 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
13178 * string/strstr.c (AVAILABLE): Likewise.
13179
13180 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
13181
13182 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
13183
13184 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
13185
13186 * NEWS: Mention pow improvements.
13187 * math/Makefile (type-double-routines): Add e_pow_log_data.
13188 * sysdeps/generic/math_private.h (__exp1): Remove.
13189 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
13190 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
13191 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
13192 contraction.
13193 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
13194 (exp_inline): Remove.
13195 (__ieee754_exp): Only single double input is handled.
13196 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
13197 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
13198 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
13199 (__pow_log_data): Define.
13200 * sysdeps/ieee754/dbl-64/upow.h: Remove.
13201 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
13202 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
13203 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
13204 contraction.
13205 (CFLAGS-e_pow-fma4.c): Likewise.
13206
13207 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
13208
13209 Simplify tzfile fstat failure code
13210 [BZ #21716]
13211 * time/tzfile.c (__tzfile_read): Simplify slightly.
13212
13213 Fix tzfile low-memory assertion failure
13214 [BZ #21716]
13215 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
13216 when registering time zone abbreviations.
13217
13218 2018-09-18 Joseph Myers <joseph@codesourcery.com>
13219
13220 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
13221 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
13222 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
13223 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
13224 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
13225 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
13226 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
13227 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
13228 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
13229
13230 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
13231 __ceil.
13232 (__ceill): Call ceil instead of __ceil.
13233 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
13234 __floor.
13235 (__floorl): Call floor instead of __floor.
13236
13237 2018-09-17 Joseph Myers <joseph@codesourcery.com>
13238
13239 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13240 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
13241 using MATH_REDIRECT.
13242 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
13243 header inclusion.
13244 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
13245 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13246 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13247 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
13248 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13249 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13250 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13251 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
13252 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
13253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
13254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
13255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
13256 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13257 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13258 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13259 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13260 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
13261 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
13262 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
13263 Remove macro.
13264 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
13265 functions instead of __ceil variants.
13266 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13267 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
13268 Likewise.
13269 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
13270 Likewise.
13271 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
13272 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
13273 Likewise.
13274 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
13275 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
13276
13277 [BZ #21286]
13278 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
13279 constant.
13280 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
13281 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
13282 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
13283 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
13284 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
13285 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
13286 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
13287 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
13288 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
13289 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
13290 (ILL_BADIADDR): Remove constant.
13291 (TRAP_BRANCH): Likewise.
13292 (TRAP_HWBKPT): Likewise.
13293
13294 2018-09-14 Joseph Myers <joseph@codesourcery.com>
13295
13296 [BZ #23656]
13297 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
13298 Remove [_MIPS_SIM = _ABIN32] conditional case.
13299 (struct elf_prpsinfo): Likewise.
13300
13301 [BZ #23649]
13302 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
13303 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
13304 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
13305 Likewise.
13306 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
13307 elf_prpsinfo): Likewise.
13308 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
13309 elf_prpsinfo): Likewise.
13310 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
13311 Likewise.
13312
13313 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13314 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
13315 using MATH_REDIRECT.
13316 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
13317 header inclusion.
13318 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
13319 * sysdeps/alpha/fpu/s_rint.c: Likewise.
13320 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
13321 * sysdeps/i386/fpu/s_rintl.c: Likewise.
13322 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13323 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13324 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
13325 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13326 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13327 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13328 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
13329 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
13330 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
13331 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
13332 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
13333 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13334 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13335 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
13336 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
13337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
13338 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
13339 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
13340 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
13341 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
13342 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
13343 * sysdeps/x86_64/fpu/math_private.h: Remove file.
13344 * math/e_scalb.c (invalid_fn): Use rint functions instead of
13345 __rint variants.
13346 * math/e_scalbf.c (invalid_fn): Likewise.
13347 * math/e_scalbl.c (invalid_fn): Likewise.
13348 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
13349 Likewise.
13350 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13351 Likewise.
13352 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
13353 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
13354 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13355 Likewise.
13356 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13357 Likewise.
13358 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13359 Likewise.
13360 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
13361 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
13362
13363 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13364 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
13365 New macro.
13366 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13367 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
13368 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13369 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
13370 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13371 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
13372 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13373 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
13374 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13375 && !NO_MATH_REDIRECT] (floor): Likewise.
13376 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
13377 header inclusion.
13378 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
13379 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13380 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13381 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
13382 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13383 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13384 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13385 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
13386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
13387 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
13388 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
13389 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
13390 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13391 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13392 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13393 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13394 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
13395 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
13396 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
13397 Remove macro.
13398 [_ARCH_PWR5X] (__floorf): Likewise.
13399 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
13400 inline function.
13401 [__SSE4_1__] (__floorf): Likewise.
13402 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
13403 instead of __floor variants.
13404 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
13405 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
13406 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
13407 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
13408 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
13409 * math/w_tgamma_compat.c (__tgamma): Likewise.
13410 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
13411 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
13412 * math/w_tgammal_compat.c (__tgammal): Likewise.
13413 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
13414 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
13415 Likewise.
13416 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
13417 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
13418 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
13419 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
13420 Likewise.
13421 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13422 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
13423 Likewise.
13424 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
13425 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
13426 Likewise.
13427 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13428 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
13429 Likewise.
13430 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13431 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
13432 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
13433 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
13434 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
13435 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
13436
13437 2018-09-12 Joseph Myers <joseph@codesourcery.com>
13438
13439 * elf/Makefile (modules-names-tests): New variable.
13440
13441 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13442
13443 * NEWS: Mention log2 improvements.
13444 * math/Makefile (type-double-routines): Add e_log2_data.
13445 * sysdeps/i386/fpu/e_log2_data.c: New file.
13446 * sysdeps/ia64/fpu/e_log2_data.c: New file.
13447 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
13448 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
13449 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
13450 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
13451 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
13452
13453 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13454
13455 * NEWS: Mention log improvement.
13456 * math/Makefile (type-double-routines): Add e_log_data.
13457 * sysdeps/i386/fpu/e_log_data.c: New file.
13458 * sysdeps/ia64/fpu/e_log_data.c: New file.
13459 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
13460 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
13461 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
13462 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
13463 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
13464 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
13465
13466 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
13467 Xuepeng Guo <xuepeng.guo@intel.com>
13468
13469 [BZ #23606]
13470 * sysdeps/i386/start.S: Include <sysdep.h>
13471 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
13472 enabled. Add cfi_undefined (eip).
13473
13474 2018-09-11 Joseph Myers <joseph@codesourcery.com>
13475
13476 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
13477 (MOVQ): Likewise.
13478 (EXTRACT_WORDS64): Likewise.
13479 (INSERT_WORDS64): Likewise.
13480 (GET_FLOAT_WORD): Likewise.
13481 (SET_FLOAT_WORD): Likewise.
13482
13483 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
13484 argument.
13485 (Config.build_gcc): Use --disable-libsanitizer for first GCC
13486 build, but not for second build if --full-gcc. Use
13487 --enable-languages=all for second build if --full-gcc.
13488 (get_parser): Add --full-gcc option.
13489 (main): Update call to Context.
13490
13491 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
13492
13493 [BZ #10797]
13494 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
13495 Single Quotation Mark).
13496 (thousands_sep): Likewise.
13497 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
13498 * localedata/locales/it_IT (thousands_sep): Use ".".
13499 (grouping): Use "3;3".
13500
13501 2018-09-10 Joseph Myers <joseph@codesourcery.com>
13502
13503 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13504 x86_64 and i686 configs using --enable-obsolete-rpc
13505 --enable-obsolete-nsl.
13506
13507 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
13508
13509 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13510
13511 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
13512
13513 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
13514 Increment size of new_argv by one.
13515
13516 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
13517
13518 [BZ #17426]
13519 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
13520 * localedata/locales/ar_IN (d_fmt): Likewise.
13521 * localedata/locales/bhb_IN (d_fmt): Likewise.
13522 * localedata/locales/bho_IN (d_fmt): Likewise.
13523 * localedata/locales/bn_BD (d_fmt): Likewise.
13524 * localedata/locales/bn_IN (d_fmt): Likewise.
13525 * localedata/locales/doi_IN (d_fmt): Likewise.
13526 * localedata/locales/gu_IN (d_fmt): Likewise.
13527 * localedata/locales/hi_IN (d_fmt): Likewise.
13528 * localedata/locales/hne_IN (d_fmt): Likewise.
13529 * localedata/locales/kn_IN (d_fmt): Likewise.
13530 * localedata/locales/mag_IN (d_fmt): Likewise.
13531 * localedata/locales/mai_IN (d_fmt): Likewise.
13532 * localedata/locales/mjw_IN (d_fmt): Likewise.
13533 * localedata/locales/ml_IN (d_fmt): Likewise.
13534 * localedata/locales/mni_IN (d_fmt): Likewise.
13535 * localedata/locales/mr_IN (d_fmt): Likewise.
13536 * localedata/locales/pa_IN (d_fmt): Likewise.
13537 * localedata/locales/raj_IN (d_fmt): Likewise.
13538 * localedata/locales/sat_IN (d_fmt): Likewise.
13539 * localedata/locales/sd_IN (d_fmt): Likewise.
13540 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
13541 * localedata/locales/ta_IN (d_fmt): Likewise.
13542 * localedata/locales/ta_LK (d_fmt): Likewise.
13543 * localedata/locales/tcy_IN (d_fmt): Likewise.
13544 * localedata/locales/ur_IN (d_fmt): Likewise.
13545
13546 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
13547 * localedata/locales/ks_IN (d_fmt): Likewise.
13548 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
13549
13550 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
13551 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
13552 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
13553 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
13554
13555 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
13556
13557 * NEWS: Mention exp and exp2 improvements.
13558 * math/Makefile (libm-support): Remove t_exp.
13559 (type-double-routines): Add math_err and e_exp_data.
13560 * sysdeps/aarch64/libm-test-ulps: Update.
13561 * sysdeps/arm/libm-test-ulps: Update.
13562 * sysdeps/i386/fpu/e_exp_data.c: New file.
13563 * sysdeps/i386/fpu/math_err.c: New file.
13564 * sysdeps/i386/fpu/t_exp.c: Remove.
13565 * sysdeps/ia64/fpu/e_exp_data.c: New file.
13566 * sysdeps/ia64/fpu/math_err.c: New file.
13567 * sysdeps/ia64/fpu/t_exp.c: Remove.
13568 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
13569 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
13570 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
13571 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
13572 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
13573 * sysdeps/ieee754/dbl-64/math_config.h: New file.
13574 * sysdeps/ieee754/dbl-64/math_err.c: New file.
13575 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
13576 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
13577 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
13578 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
13579 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
13580 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
13581 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
13582 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13583 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13584
13585 2018-09-05 Joseph Myers <joseph@codesourcery.com>
13586
13587 * sysdeps/alpha/fpu/math_private.h: Remove.
13588
13589 * sysdeps/generic/math_private.h
13590 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
13591 Move this inline function ....
13592 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
13593 * include/math.h [!_ISOMAC]: To here....
13594
13595 2018-09-04 Joseph Myers <joseph@codesourcery.com>
13596
13597 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
13598 code ....
13599 [!FE_HAVE_ROUNDING_MODES]: And this code ....
13600 * include/fenv.h [!_ISOMAC]: ... to here.
13601 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
13602 (feraiseexcept): Likewise.
13603 * math/fromfp.h: Do not include <fenv_private.h>.
13604 * math/s_cexp_template.c: Likewise.
13605 * math/s_csin_template.c: Likewise.
13606 * math/s_csinh_template.c: Likewise.
13607 * math/s_ctan_template.c: Likewise.
13608 * math/s_ctanh_template.c: Likewise.
13609 * math/s_iseqsig_template.c: Likewise.
13610 * math/w_acos_compat.c: Likewise.
13611 * math/w_acosf_compat.c: Likewise.
13612 * math/w_acosl_compat.c: Likewise.
13613 * math/w_asin_compat.c: Likewise.
13614 * math/w_asinf_compat.c: Likewise.
13615 * math/w_asinl_compat.c: Likewise.
13616 * math/w_j0_compat.c: Likewise.
13617 * math/w_j0f_compat.c: Likewise.
13618 * math/w_j0l_compat.c: Likewise.
13619 * math/w_j1_compat.c: Likewise.
13620 * math/w_j1f_compat.c: Likewise.
13621 * math/w_j1l_compat.c: Likewise.
13622 * math/w_jn_compat.c: Likewise.
13623 * math/w_jnf_compat.c: Likewise.
13624 * math/w_log10_compat.c: Likewise.
13625 * math/w_log10f_compat.c: Likewise.
13626 * math/w_log10l_compat.c: Likewise.
13627 * math/w_log2_compat.c: Likewise.
13628 * math/w_log2f_compat.c: Likewise.
13629 * math/w_log2l_compat.c: Likewise.
13630 * math/w_log_compat.c: Likewise.
13631 * math/w_logf_compat.c: Likewise.
13632 * math/w_logl_compat.c: Likewise.
13633 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13634 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13635 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13636 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13637 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13638 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13639 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13640 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13641 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13642 * sysdeps/ieee754/k_standardl.c: Likewise.
13643 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13644 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13645 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13646 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13647 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13648 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13649 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13650 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13651 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13652 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13653 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13654 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13655 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13656 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13657 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13658 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13659 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13660 * math/w_ilogb_template.c: Include <fenv.h> instead of
13661 <fenv_private.h>.
13662 * math/w_llogb_template.c: Likewise.
13663 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13664 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13665
13666 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13667
13668 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13669 * math/fromfp.h: Include <fenv_private.h>.
13670 * math/math-narrow.h: Likewise.
13671 * math/s_cexp_template.c: Likewise.
13672 * math/s_csin_template.c: Likewise.
13673 * math/s_csinh_template.c: Likewise.
13674 * math/s_ctan_template.c: Likewise.
13675 * math/s_ctanh_template.c: Likewise.
13676 * math/s_iseqsig_template.c: Likewise.
13677 * math/w_acos_compat.c: Likewise.
13678 * math/w_acosf_compat.c: Likewise.
13679 * math/w_acosl_compat.c: Likewise.
13680 * math/w_asin_compat.c: Likewise.
13681 * math/w_asinf_compat.c: Likewise.
13682 * math/w_asinl_compat.c: Likewise.
13683 * math/w_ilogb_template.c: Likewise.
13684 * math/w_j0_compat.c: Likewise.
13685 * math/w_j0f_compat.c: Likewise.
13686 * math/w_j0l_compat.c: Likewise.
13687 * math/w_j1_compat.c: Likewise.
13688 * math/w_j1f_compat.c: Likewise.
13689 * math/w_j1l_compat.c: Likewise.
13690 * math/w_jn_compat.c: Likewise.
13691 * math/w_jnf_compat.c: Likewise.
13692 * math/w_llogb_template.c: Likewise.
13693 * math/w_log10_compat.c: Likewise.
13694 * math/w_log10f_compat.c: Likewise.
13695 * math/w_log10l_compat.c: Likewise.
13696 * math/w_log2_compat.c: Likewise.
13697 * math/w_log2f_compat.c: Likewise.
13698 * math/w_log2l_compat.c: Likewise.
13699 * math/w_log_compat.c: Likewise.
13700 * math/w_logf_compat.c: Likewise.
13701 * math/w_logl_compat.c: Likewise.
13702 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13703 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13704 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13705 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13706 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13707 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13708 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13709 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13710 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13711 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13712 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13713 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13714 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13715 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13716 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13717 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13718 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13719 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13720 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13721 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13722 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13723 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13724 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13725 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13726 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13727 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13728 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13729 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13730 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13731 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13732 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13733 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13734 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13735 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13736 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13737 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13738 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13739 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13740 * sysdeps/ieee754/k_standardl.c: Likewise.
13741 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13742 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13743 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13744 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13745 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13746 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13747 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13748 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13749 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13750 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13751 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13752 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13753 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13754 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13755 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13756 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13757 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13758 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13759 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13760 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13761 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13762 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13763 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13764 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13765 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13766 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13767 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13768 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13769 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13770 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13771 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13772 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13773 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13774 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13775 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13776 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13777 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13778 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13779 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13780 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13781 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13782 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13783 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13784 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13785 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13786 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13787 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13788 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13789 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13790 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13791 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13792 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13793 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13794 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13795 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13796 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13797 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13798 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13799 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13800 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13801 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13802 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13803 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13804 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13805 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13806 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13807 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13808 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13809 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13810 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13811 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13812
13813 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13814
13815 [BZ #20271]
13816 * include/stdio.h (__libc_fatal): Mention newline in comment.
13817 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13818 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13819 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13820 * nss/nsswitch.c (__nss_next2): Likewise.
13821 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13822 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13823 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13824 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13825 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13826 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13827 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13828 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13829 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13830 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13831 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13832 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13833 (__netlink_assert_response): Likewise.
13834
13835 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13836
13837 * conform/glibcconform.py: New file.
13838 * conform/list-header-symbols.py: Likewise.
13839 * conform/list-header-symbols.pl: Remove.
13840 * conform/Makefile (tests-special): Only add linknamespace tests
13841 if [PYTHON].
13842 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13843
13844 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13845
13846 [BZ #23597]
13847 * support/Makefile (libsupport-routines): Add
13848 support_copy_file_range and xcopy_file_range.
13849 * support/support.h: Include <sys/types.h>.
13850 (support_copy_file_range): New prototype.
13851 * support/support_copy_file_range.c: New file. Copied and
13852 modified from io/copy_file_range-compat.c.
13853 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13854 instead of copy_file_range.
13855 * support/xcopy_file_range.c: New file.
13856 * support/xunistd.h (xcopy_file_range): New prototype.
13857
13858 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13859
13860 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13861 xpthread_create and xpthread_join.
13862
13863 2018-08-30 Florian Weimer <fweimer@redhat.com>
13864
13865 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13866
13867 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13868
13869 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13870 if malloc fails.
13871
13872 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13873
13874 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13875 and minus_oflow as non-finite.
13876
13877 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13878
13879 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13880 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13881 moved to fenv_private.h except for ...
13882 (TOINT_INTRINSICS): Kept in math_private.h.
13883 (roundtoint): Likewise.
13884 (converttoint): Likewise.
13885 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13886 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13887 * sysdeps/arm/math_private.h: Remove.
13888 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13889 ....
13890 * sysdeps/generic/math_private.h: ... this file. Include
13891 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13892 Include <fenv_private.h>. Remove functions and macros moved to
13893 fenv_private.h.
13894 * sysdeps/i386/fpu/math_private.h: Remove.
13895 * sysdeps/mips/math_private.h: Move to ....
13896 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13897 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13898 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13899 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13900 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13901 * sysdeps/powerpc/fpu/math_private.h: Do not include
13902 <fenv_private.h>.
13903 * sysdeps/riscv/rvf/math_private.h: Move to ....
13904 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13905 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13906 <fenv_private.h>.
13907 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13908 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13909 * sysdeps/sparc/fpu/math_private.h: Remove.
13910 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13911 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13912 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13913 <fenv_private.h>.
13914 * sysdeps/x86_64/fpu/math_private.h: Do not include
13915 <sysdeps/i386/fpu/fenv_private.h>.
13916
13917 2018-08-28 Florian Weimer <fweimer@redhat.com>
13918
13919 [BZ #23578]
13920 * posix/tst-regcomp-truncated.c: New file.
13921 * posix/Makefile (tests): Add it.
13922 (tst-regcomp-truncated.out): Depend on generated locales.
13923
13924 2018-08-28 Florian Weimer <fweimer@redhat.com>
13925
13926 * support/test-container.c (main): Treat unshare failure with
13927 EPERM as an unsupported test.
13928
13929 2018-08-28 Florian Weimer <fweimer@redhat.com>
13930
13931 [BZ #23520]
13932 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13933 * nscd/netgroupcache.c
13934 (addgetnetgrentX): Add tofreep parameter. Do not free
13935 heap-allocated buffer.
13936 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13937 (addgetnetgrentX_ignore): New function.
13938 (addgetnetgrent): Call it.
13939 (readdgetnetgrent): Likewise.
13940
13941 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13942
13943 * string/memmem.c: Use memcmp for first match.
13944
13945 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13946
13947 [BZ #17426]
13948 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13949
13950 2018-08-27 DJ Delorie <dj@redhat.com>
13951
13952 * support/Makefile (others): Don't list programs explicitly as a
13953 dependency of "others".
13954
13955 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13956
13957 * sysdeps/generic/math-tests-trap-force.h: New file.
13958 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13959 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13960 * sysdeps/powerpc/math-tests.h: Remove file.
13961 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13962
13963 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13964 Torvald Riegel <triegel@redhat.com>
13965
13966 [BZ #23538]
13967 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13968 Update r to include the set wake-request flag if waiters are
13969 remaining after spinning.
13970
13971 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13972
13973 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13974
13975 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13976
13977 [BZ #23578]
13978 regex: fix uninitialized memory access
13979 I introduced this bug into gnulib in commit
13980 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13981 eventually it was merged into glibc. The bug was found by
13982 project-repo <bugs@feusi.co> and reported here:
13983 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13984 Diagnosis and draft fix reported by Assaf Gordon here:
13985 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13986 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13987 * posix/regex_internal.c (build_wcs_upper_buffer):
13988 Fix bug when mbrtowc returns 0.
13989
13990 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13991
13992 * po/be.po: Update translation.
13993
13994 2018-08-24 DJ Delorie <dj@delorie.com>
13995
13996 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13997 $(libunwind).
13998
13999 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
14000
14001 [BZ #23400]
14002 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
14003 create temporary files in source tree.
14004
14005 2018-08-24 Joseph Myers <joseph@codesourcery.com>
14006
14007 * sysdeps/generic/math-tests-trap.h: New file.
14008 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
14009 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
14010 * sysdeps/aarch64/math-tests.h: Remove file.
14011 * sysdeps/arm/math-tests.h: Likewise.
14012 * sysdeps/riscv/math-tests.h: Likewise.
14013 * sysdeps/aarch64/math-tests-trap.h: New file.
14014 * sysdeps/arm/math-tests-trap.h: Likewise.
14015 * sysdeps/riscv/math-tests-trap.h: Likewise.
14016
14017 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
14018
14019 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
14020 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
14021 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
14022 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
14023 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
14024 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
14025 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
14026 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
14027 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
14028 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14029 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14030 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14031 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14032 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
14033 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
14034 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
14035 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
14036 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
14037
14038 2018-08-23 Joseph Myers <joseph@codesourcery.com>
14039
14040 * sysdeps/generic/math-tests-exceptions.h: New file.
14041 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
14042 (EXCEPTION_TESTS_float): Do not define here.
14043 (EXCEPTION_TESTS_double): Likewise.
14044 (EXCEPTION_TESTS_long_double): Likewise.
14045 (EXCEPTION_TESTS_float128): Likewise.
14046 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
14047 Likewise.
14048 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
14049 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
14050 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
14051 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
14052 * sysdeps/mips/math-tests.h: Likewise.
14053 * sysdeps/nios2/math-tests.h: Likewise.
14054 * sysdeps/riscv/math-tests.h [!__riscv_flen]
14055 (EXCEPTION_TESTS_float): Do not define here.
14056 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
14057 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
14058 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
14059
14060 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14061
14062 * NEWS: Move optimized sinf entry to 2.29.
14063
14064 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14065
14066 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
14067
14068 2018-08-22 DJ Delorie <dj@redhat.com>
14069
14070 * Makefile (testroot.pristine): New rules to initialize the
14071 test-in-container "testroot".
14072 * Makerules (all-testsuite): Add tests-container.
14073 * Rules (tests-expected): Add tests-container.
14074 (binaries-all-tests): Likewise.
14075 (tests-container): New, run these tests in the testroot container.
14076 * support/Makefile (others): Add *-container, support_paths.c,
14077 xmkdirp, and links-dso-program.
14078 * support/links-dso-program-c.c: New.
14079 * support/links-dso-program.cc: New.
14080 * support/test-container.c: New.
14081 * support/shell-container.c: New.
14082 * support/echo-container.c: New.
14083 * support/true-container.c: New.
14084 * support/xmkdirp.c: New.
14085 * support/xsymlink.c: New.
14086 * support/support_paths.c: New.
14087 * support/support.h: Add support paths prototypes.
14088 * support/xunistd.h: Add xmkdirp () and xsymlink ().
14089
14090 * nss/tst-nss-test3.c: Convert to test-in-container.
14091 * nss/tst-nss-test3.root/: New.
14092
14093 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
14094
14095 regex: port Gnulib code to z/OS POSIX environment
14096 Problem reported by Arnold Robbins in:
14097 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
14098 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
14099 Undef.
14100
14101 2018-08-22 Joseph Myers <joseph@codesourcery.com>
14102
14103 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
14104 (ROUNDING_TESTS_double): Remove.
14105 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
14106 (ROUNDING_TESTS_double): Remove.
14107 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
14108 (ROUNDING_TESTS_double): Remove.
14109 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
14110 (ROUNDING_TESTS_float): Remove.
14111 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
14112 (ROUNDING_TESTS_float): Remove.
14113 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
14114 (ROUNDING_TESTS_float): Remove.
14115 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
14116 !TEST_MATHVEC here.
14117 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
14118 (IF_ROUND_INIT_FE_UPWARD): Likewise.
14119
14120 * sysdeps/generic/math-tests-rounding.h: New file.
14121 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
14122 (ROUNDING_TESTS_float): Do not define here.
14123 (ROUNDING_TESTS_double): Likewise.
14124 (ROUNDING_TESTS_long_double): Likewise.
14125 (ROUNDING_TESTS_float128): Likewise.
14126 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
14127 (ROUNDING_TESTS_double): Undefine before defining.
14128 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
14129 (ROUNDING_TESTS_double): Undefine before defining.
14130 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
14131 (ROUNDING_TESTS_double): Undefine before defining.
14132 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
14133 (ROUNDING_TESTS_float): Undefine before defining.
14134 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
14135 (ROUNDING_TESTS_float): Undefine before defining.
14136 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
14137 (ROUNDING_TESTS_float): Undefine before defining.
14138 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
14139 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
14140 not define here.
14141 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
14142 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
14143 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
14144 * sysdeps/riscv/math-tests.h [!__riscv_flen]
14145 (ROUNDING_TESTS_float): Do not define here.
14146 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
14147 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
14148 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
14149 (ROUNDING_TESTS_float): Likewise.
14150 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
14151 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
14152 * sysdeps/mips/math-tests.h [__mips_soft_float]
14153 (ROUNDING_TESTS_float): Likewise.
14154 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
14155 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
14156 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
14157 (ROUNDING_TESTS_double): Likewise.
14158 (ROUNDING_TESTS_long_double): Likewise.
14159
14160 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
14161
14162 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
14163 (PF_XDP): New macro.
14164 (AF_XDP): New macro.
14165 (SOL_XDP): New macro.
14166
14167 2018-08-21 Joseph Myers <joseph@codesourcery.com>
14168
14169 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
14170 (TCP_INQ): Likewise.
14171 (TCP_CM_INQ): Likewise.
14172 (TCP_REPAIR_ON): Likewise.
14173 (TCP_REPAIR_OFF): Likewise.
14174 (TCP_REPAIR_OFF_NO_WP): Likewise.
14175 (struct tcp_zerocopy_receive): New type.
14176
14177 2018-08-21 Florian Weimer <fweimer@redhat.com>
14178
14179 * support/support.h (support_descriptor_supports_holes): Declare.
14180 * support/Makefile (libsupport-routines): Add
14181 support_descriptor_supports_holes.
14182 * support/support_descriptor_supports_holes.c: New file.
14183 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
14184 and stop testing if holes are not supported.
14185 * io/test-lfs.c (do_prepare): Likewise.
14186 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
14187 Likewise.
14188 * timezone/tst-tzset.c (create_tz_file): Likewise.
14189 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
14190 variable.
14191 (do_prepare): Set it.
14192 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
14193
14194 2018-08-21 Florian Weimer <fweimer@redhat.com>
14195
14196 [BZ #17248]
14197 * Makeconfig (+cflags): Do not sort (and deduplicate).
14198
14199 2018-08-21 Florian Weimer <fweimer@redhat.com>
14200
14201 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
14202 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
14203
14204 2018-08-20 Florian Weimer <fweimer@redhat.com>
14205
14206 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
14207 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
14208
14209 2018-08-20 Joseph Myers <joseph@codesourcery.com>
14210
14211 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
14212 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
14213 and ssi_arch members.
14214
14215 * elf/elf.c (NT_VMCOREDD): New macro.
14216 (AT_MINSIGSTKSZ): Likewise.
14217
14218 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14219
14220 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
14221 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
14222 s_cosf-ppc64 and s_cosf-power8.
14223 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
14224 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
14225 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
14226 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
14227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
14228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
14229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
14230 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
14231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
14232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
14233 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
14234 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
14235
14236 2018-08-17 Florian Weimer <fweimer@redhat.com>
14237
14238 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
14239
14240 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
14241
14242 * malloc/malloc.c (_int_malloc): Additional binning code checks.
14243
14244 2018-08-16 Florian Weimer <fweimer@redhat.com>
14245
14246 * configure.ac: Add --with-nonshared-cflags option.
14247 * config.make.in (extra-nonshared-cflags): Set variable.
14248 * Makeconfig (CFLAGS-.oS): Use it.
14249 * manual/install.texi (Configuring and compiling): Document
14250 --with-nonshared-cflags.
14251 * configure: Regenerate.
14252 * INSTALL: Likewise.
14253
14254 2018-08-16 Florian Weimer <fweimer@redhat.com>
14255
14256 * Makeconfig (ASFLAGS): Always append required assembler flags.
14257
14258 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
14259
14260 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
14261 (malloc_consolidate): Likewise.
14262
14263 2018-08-16 Pochang Chen <johnchen902@gmail.com>
14264
14265 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
14266
14267 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
14268
14269 * benchtests/bench-strlen.c (do_test): Allocate buffers before
14270 every strlen call.
14271
14272 * benchtests/bench-strlen.c: Print performance numbers in json.
14273
14274 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14275
14276 * sysdeps/powerpc/powerpc64/multiarch/Makefile
14277 (sysdep_routines): Build strcmp-power9 and strncmp-power9
14278 only for little endian.
14279 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
14280 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
14281 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
14282 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
14283 Add check for little endian.
14284 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
14285 (__strcmp_power9): Add check for little endian.
14286 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
14287 Add check for little endian.
14288 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
14289 (__strncmp_power9): Add check for little endian.
14290 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
14291 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
14292 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
14293 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
14294 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
14295
14296 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14297
14298 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
14299 [!STRLEN](STRLEN): Set to __strlen.
14300 * sysdeps/aarch64/multiarch/strlen.c: New file.
14301 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
14302 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
14303 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14304 (__libc_ifunc_impl_list): Add strlen.
14305 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
14306 strlen_generic and strlen_asimd.
14307
14308 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
14309
14310 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
14311 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
14312 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
14313
14314 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
14315
14316 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
14317
14318 2018-08-14 Florian Weimer <fweimer@redhat.com>
14319
14320 [BZ #23519]
14321 * include/stdio.h (__vfxprintf): Declare.
14322 * stdio-common/fxprintf.c (__vfxprintf): New function.
14323 (__fxprintf): Call it.
14324 * misc/err.c (convert_and_print): Remove function.
14325 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
14326 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
14327 * misc/Makefile (tests): Add tst-warn-wide.
14328 * misc/tst-warn-wide.c: New file.
14329
14330 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
14331 Szabolcs Nagy <szabolcs.nagy@arm.com>
14332
14333 * NEWS: Mention sinf, cosf, sincosf.
14334 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
14335 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
14336 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
14337 constants rather than including generic sincosf.h.
14338 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
14339 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
14340 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
14341 (reduced_cos): Remove.
14342 (sinf_poly): New function.
14343 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
14344
14345 2018-08-14 Florian Weimer <fweimer@redhat.com>
14346
14347 [BZ #23521]
14348 [BZ #23522]
14349 * nss/nss_files/files-alias.c (get_next_alias): During :include:
14350 processing, bail out if no room, and close the stream before
14351 returning ERANGE.
14352 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
14353 (tst-nss-files-alias-leak): Link with libdl.
14354 (tst-nss-files-alias-leak.out): Depend on nss_files.
14355
14356 * nss/tst-nss-files-alias-leak.c: New file.
14357
14358 2018-08-14 Florian Weimer <fweimer@redhat.com>
14359
14360 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
14361 server_user, stat_user.
14362
14363 2018-08-13 Joseph Myers <joseph@codesourcery.com>
14364
14365 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14366 version to 4.18.
14367 (io_pgetevents): New syscall.
14368 (rseq): Likewise.
14369
14370 * manual/install.texi (Configuring and compiling): Do not list
14371 tools used for testing pretty printers here.
14372 (Tools for Compilation): List Python, PExpect and GDB here.
14373 Update descriptions of uses of Perl and Python.
14374 * INSTALL: Regenerate.
14375
14376 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14377 version to 4.18.
14378
14379 2018-08-13 Florian Weimer <fweimer@redhat.com>
14380
14381 * misc/error.c (error): Add missing va_end call.
14382 (error_at_line): Likewise.
14383
14384 2018-08-13 Florian Weimer <fweimer@redhat.com>
14385
14386 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
14387
14388 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14389
14390 * benchtests/scripts/benchout.schema.json (properties): Add
14391 new properties.
14392
14393 * benchtests/bench-skeleton.c (main): Add duration and
14394 iterations attributes.
14395
14396 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
14397
14398 regex: Gnulib unibyte RRI uses bytes not chars
14399 Adjust the non-glibc code to agree with what Gawk needs for
14400 rational range interpretation (RRI) for regular expression ranges.
14401 In unibyte locales, Gawk wants ranges to use the underlying byte
14402 rather than the character code point. This change does not affect
14403 glibc proper.
14404 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
14405 In unibyte locales, use the byte value rather than
14406 running it through btowc.
14407
14408 2018-08-10 Joseph Myers <joseph@codesourcery.com>
14409
14410 * sysdeps/generic/math-tests-snan.h: New file.
14411 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
14412 (SNAN_TESTS_float): Do not define here.
14413 (SNAN_TESTS_double): Likewise.
14414 (SNAN_TESTS_long_double): Likewise.
14415 (SNAN_TESTS_float128): Likewise.
14416 * sysdeps/i386/fpu/math-tests-snan.h: New file.
14417 * sysdeps/i386/fpu/math-tests.h: Remove file.
14418 * sysdeps/ia64/math-tests-snan.h: New file.
14419 * sysdeps/ia64/math-tests.h: Remove file.
14420 * sysdeps/x86/math-tests.h: Likewise.
14421 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
14422
14423 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
14424 Szabolcs Nagy <szabolcs.nagy@arm.com>
14425
14426 * math/Makefile: Add s_sincosf_data.c.
14427 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
14428 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
14429 (sincosf_poly): Likewise.
14430 (reduce_small): Likewise.
14431 (reduce_large): Likewise.
14432 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
14433 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
14434 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
14435 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
14436
14437 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
14438 Szabolcs Nagy <szabolcs.nagy@arm.com>
14439
14440 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
14441 (converttoint): Use lround.
14442 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
14443 document the semantics when TOINT_INTRINSICS is set.
14444 (converttoint): Likewise.
14445 (TOINT_RINT): Remove.
14446 (TOINT_SHIFT): Remove.
14447 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
14448 path.
14449
14450 2018-08-10 Florian Weimer <fweimer@redhat.com>
14451
14452 [BZ #23497]
14453 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
14454 function.
14455 (__old_getdents64): Use getdents64. Convert entries without
14456 moving them.
14457 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
14458 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
14459 tst-readdir64-compat.
14460
14461 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14462
14463 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
14464 Fix unwind.
14465
14466 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14467
14468 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
14469 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
14470 code to s390x-mcount.h and #include it.
14471 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
14472 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
14473 (__fentry__): Add.
14474
14475 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14476
14477 * stdlib/Versions: Remove __fentry__.
14478 * sysdeps/i386/Versions: Add __fentry__.
14479 * sysdeps/x86_64/Versions: Add __fentry__.
14480
14481 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14482
14483 * sysdeps/s390/Makefile: Register the new tests.
14484 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
14485 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
14486 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
14487 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
14488 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
14489 * sysdeps/s390/tst-dl-runtime.c: New file.
14490
14491 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14492
14493 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14494 Do not clobber R0.
14495
14496 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14497
14498 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14499 Do not clobber R0.
14500
14501 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14502
14503 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14504 Do not clobber R0.
14505
14506 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14507
14508 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14509 Do not clobber R0.
14510
14511 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14512
14513 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14514 Use symbolic offsets for stack variables.
14515
14516 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14517
14518 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14519 Use symbolic offsets for stack variables.
14520
14521 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14522
14523 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14524 Use symbolic offsets for stack variables.
14525
14526 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14527
14528 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14529 Use symbolic offsets for stack variables.
14530
14531 2018-08-09 Joseph Myers <joseph@codesourcery.com>
14532
14533 * math/gen-libm-test.py: New file.
14534 * math/gen-libm-test.pl: Remove.
14535 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
14536 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
14537 gen-libm-test.pl.
14538 ($(libm-test-c-noauto-obj)): Likewise.
14539 ($(libm-test-c-auto-obj)): Likewise.
14540 ($(libm-test-c-narrow-obj)): Likewise.
14541 (regen-ulps): Likewise.
14542 * math/README.libm-test: Update references to gen-libm-test.pl.
14543 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
14544 referencing gen-libm-test.pl.
14545 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
14546 * math/libm-test-support.c: Likewise.
14547 * math/libm-test-support.h: Likewise.
14548 * sysdeps/generic/libm-test-ulps: Likewise.
14549
14550 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
14551
14552 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
14553 Fix value.
14554
14555 2018-08-08 Joseph Myers <joseph@codesourcery.com>
14556
14557 * math/libm-test-nextdown.inc (do_test): Move comment to ....
14558 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
14559
14560 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14561
14562 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
14563 symbols.
14564 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
14565 __pthread_setspecific): Add hidden proto.
14566 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
14567 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
14568
14569 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14570
14571 * benchtests/bench-string.h (buf1_size, buf2_size): New
14572 variables.
14573 (init_sizes): New function.
14574 (test_init): Use it.
14575 (alloc_buf, exit_error): New functions.
14576 (alloc_bufs): Use ALLOC_BUF.
14577 (realloc_bufs): Remove.
14578 * benchtests/bench-memcmp.c (do_test): Adjust.
14579 * benchtests/bench-memset-large.c (do_test): Likewise.
14580 * benchtests/bench-memset-walk.c (do_test): Likewise.
14581 * benchtests/bench-memset.c (do_test): Likewise.
14582 * benchtests/bench-strncmp.c (do_test): Likewise.
14583
14584 2018-08-06 Andreas Schwab <schwab@suse.de>
14585
14586 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
14587 of CONST_THREAD_AREA.
14588
14589 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
14590
14591 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
14592 (STATE_SAVE_MASK): Likewise.
14593 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
14594 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
14595 (STATE_SAVE_MASK): Likewise.
14596 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
14597 instead of <cpu-features.h>.
14598
14599 2018-08-03 DJ Delorie <dj@redhat.com>
14600
14601 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
14602 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
14603
14604 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
14605
14606 2018-08-03 Joseph Myers <joseph@codesourcery.com>
14607
14608 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
14609 after TEST_* calls.
14610 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
14611 * math/libm-test-logb.inc (logb_test_data): Likewise.
14612
14613 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
14614
14615 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14616 * string/strstr.c (AVAILABLE): Likewise.
14617
14618 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14619
14620 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14621 <init-arch.h>.
14622 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14623 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14624 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14625
14626 2018-08-03 Carlos O'Donell <carlos@redhat.com>
14627
14628 * po/be.po: Update translation.
14629
14630 * po/be.po: Update translation.
14631
14632 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14633
14634 * sysdeps/x86/cpu-features-offsets.sym
14635 (rtld_global_ro_offsetof): Removed.
14636 (CPU_FEATURES_SIZE): Likewise.
14637 (CPUID_OFFSET): Likewise.
14638 (CPUID_SIZE): Likewise.
14639 (CPUID_EAX_OFFSET): Likewise.
14640 (CPUID_EBX_OFFSET): Likewise.
14641 (CPUID_ECX_OFFSET): Likewise.
14642 (CPUID_EDX_OFFSET): Likewise.
14643 (FAMILY_OFFSET): Likewise.
14644 (MODEL_OFFSET): Likewise.
14645 (FEATURE_OFFSET): Likewise.
14646 (FEATURE_SIZ): Likewise.
14647 (COMMON_CPUID_INDEX_1): Likewise.
14648 (COMMON_CPUID_INDEX_7): Likewise.
14649 (FEATURE_INDEX_1): Likewise.
14650 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14651
14652 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14653
14654 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14655 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14656 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14657 (install-locales): Depend on install-locale-archive.
14658 (install-locale-archive): Define.
14659 (install-locale-files): Define.
14660 (build-one-locale): Define macro.
14661 * manual/install.texi (Running make install): Document.
14662 * manual/INSTALL: Regenerate.
14663
14664 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14665
14666 * benchtests/scripts/compare_strings.py: Import traceback.
14667 (parse_file): Pretty-print error.
14668
14669 * NEWS: Mention the change.
14670 * elf/dl-tunables.list: Rename tune namespace to cpu.
14671 * sysdeps/powerpc/dl-tunables.list: Likewise.
14672 * sysdeps/x86/dl-tunables.list: Likewise.
14673 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14674 cpu.name.
14675 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14676 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14677 * manual/README.tunables: Likewise.
14678 * manual/tunables.texi: Likewise.
14679 * sysdeps/powerpc/cpu-features.c: Likewise.
14680 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14681 (init_cpu_features): Likewise.
14682 * sysdeps/x86/cpu-features.c: Likewise.
14683 * sysdeps/x86/cpu-features.h: Likewise.
14684 * sysdeps/x86/cpu-tunables.c: Likewise.
14685 * sysdeps/x86_64/Makefile: Likewise.
14686 * sysdeps/x86/dl-cet.c: Likewise.
14687
14688 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14689
14690 [BZ #23479]
14691 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14692 [__mips_hard_float].
14693 (FE_UNDERFLOW): Likewise.
14694 (FE_OVERFLOW): Likewise.
14695 (FE_DIVBYZERO): Likewise.
14696 (FE_INVALID): Likewise.
14697 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14698 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14699 (FE_UPWARD): Likewise.
14700 (FE_DOWNWARD): Likewise.
14701 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14702 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14703 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14704 [__mips_hard_float].
14705 (FP_ROUNDMODE): Likewise.
14706 (FP_RND_NEAREST): Likewise.
14707 (FP_RND_ZERO): Likewise.
14708 (FP_RND_PINF): Likewise.
14709 (FP_RND_MINF): Likewise.
14710 (FP_EX_INVALID): Likewise.
14711 (FP_EX_OVERFLOW): Likewise.
14712 (FP_EX_UNDERFLOW): Likewise.
14713 (FP_EX_DIVZERO): Likewise.
14714 (FP_EX_INEXACT): Likewise.
14715 (FP_INIT_ROUNDMODE): Likewise.
14716 * sysdeps/mips/nofpu/fesetenv.c: New file.
14717 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14718
14719 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14720
14721 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14722 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14723 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14724 conditional on [FE_UPWARD].
14725
14726 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14727
14728 regex: fix memory leak in Gnulib
14729 Problem and fix reported by Assaf Gordon in:
14730 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14731 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14732 range_ends members too, as they are defined in 'struct
14733 re_charset_t' even if not _LIBC. This affects only Gnulib.
14734
14735 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14736
14737 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14738 ...
14739 (get_common_indices): This.
14740 (init_cpu_features): Updated.
14741
14742 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14743
14744 * sysdeps/generic/math-tests-snan-payload.h: New file.
14745 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14746 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14747 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14748 * sysdeps/generic/math-tests.h: Include
14749 <math-tests-snan-payload.h>.
14750 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14751 * sysdeps/hppa/math-tests.h: Remove file.
14752 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14753 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14754 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14755 Likewise.
14756
14757 * sysdeps/generic/math-tests-snan-cast.h: New file.
14758 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14759 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14760 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14761 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14762
14763 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14764
14765 * version.h (RELEASE): Set to "development".
14766 (VERSION): Set to "2.28.9000".
14767 * NEWS (2.29): New section.
14768
14769 * version.h (RELEASE): Set to "stable".
14770 (VERSION): Set to "2.28".
14771 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14772 * NEWS: Add the list of bugs fixed in 2.28.
14773
14774 * po/ca.po: Update to latest version.
14775 * po/cs.po: Likewise
14776 * po/da.po: Likewise
14777 * po/el.po: Likewise
14778 * po/eo.po: Likewise
14779 * po/es.po: Likewise
14780 * po/fi.po: Likewise
14781 * po/fr.po: Likewise
14782 * po/gl.po: Likewise
14783 * po/hu.po: Likewise
14784 * po/ia.po: Likewise
14785 * po/id.po: Likewise
14786 * po/it.po: Likewise
14787 * po/ja.po: Likewise
14788 * po/ko.po: Likewise
14789 * po/lt.po: Likewise
14790 * po/nb.po: Likewise
14791 * po/nl.po: Likewise
14792 * po/pt_BR.po: Likewise
14793 * po/ru.po: Likewise
14794 * po/rw.po: Likewise
14795 * po/sk.po: Likewise
14796 * po/sl.po: Likewise
14797 * po/tr.po: Likewise
14798 * po/zh_CN.po: Likewise
14799 * po/zh_TW.po: Likewise
14800
14801 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14802
14803 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14804 initialization...
14805 (init): ... before initializing libpthread.
14806
14807 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14808 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14809 (__mach_setup_tls): ... new function.
14810 (mach_setup_tls): New alias.
14811 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14812 __mach_setup_thread.
14813 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14814 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14815 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14816 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14817
14818 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14819
14820 * manual/install.texi: Update versions.
14821 * INSTALL: Regenerate.
14822
14823 * manual/contrib.texi (Contributors): Update contributions.
14824
14825 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14826
14827 * po/be.po: Update translations.
14828
14829 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14830
14831 * sysdeps/sh/libm-test-ulps: Update.
14832
14833 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14834
14835 * po/bg.po: Update translations.
14836 * po/de.po: Likewise.
14837 * po/hr.po: Likewise.
14838 * po/pt_BR.po: Likewise.
14839 * po/sv.po: Likewise.
14840 * po/vi.po: Likewise.
14841
14842 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14843
14844 [BZ #23467]
14845 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14846 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14847 (CFLAGS-tst-cet-property-1.o): New.
14848 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14849 ($(objpfx)tst-cet-property-2): Likewise.
14850 ($(objpfx)tst-cet-property-2.out): Likewise.
14851 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14852 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14853 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14854 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14855 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14856
14857 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14858
14859 [BZ #23458]
14860 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14861
14862 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14863
14864 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14865 __sbrk): Do not set attribute_hidden.
14866 * sysdeps/mach/hurd/not-errno.h: New file.
14867 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14868 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14869
14870 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14871
14872 * po/uk.po: Update translations.
14873 * po/cs.po: Likewise.
14874 * po/pl.po: Likewise.
14875
14876 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14877
14878 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14879 parse beyond the note end.
14880
14881 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14882
14883 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14884 kernel does not support OFD locks.
14885 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14886
14887 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14888
14889 * sysdeps/mach/hurd/Versions (libc): Make __access and
14890 __access_noerrno external so they can override the ld symbols.
14891 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14892 __writev, __open64, __access_noerrno extern so they can be overrided.
14893 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14894 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14895
14896 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14897
14898 * po/libc.pot: Regenerate.
14899
14900 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14901
14902 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14903
14904 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14905
14906 [BZ #23459]
14907 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14908 function.
14909 (init_cpu_features): Call get_extended_indices for both Intel
14910 and AMD CPUs.
14911 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14912 Remove "for AMD" comment.
14913
14914 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14915
14916 [BZ # 23456]
14917 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14918 COMMON_CPUID_INDEX_80000001.
14919
14920 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14921
14922 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14923 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14924
14925 2018-07-26 Florian Weimer <fweimer@redhat.com>
14926
14927 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14928 aliases for symbols not in the implementation namespace.
14929
14930 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14931
14932 [BZ #23393]
14933 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14934 lowercase in LATIN script.
14935 * localedata/Makefile (test-input): Add en_US.UTF-8.
14936 * localedata/en_US.UTF-8.in: New file.
14937 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14938 and restore old tests.
14939 * posix/tst-regexloc.c (do_test): Add back range expression test.
14940
14941 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14942
14943 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14944
14945 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14946
14947 * nptl/threads.h: Move to ...
14948 * sysdeps/nptl/threads.h: ... here.
14949 * sysdeps/hurd/stdc-predef.h: New file.
14950
14951 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14952
14953 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14954 tst-cet-setcontext-1 if CET is enabled.
14955 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14956 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14957
14958 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14959
14960 * include/threads.h: Move to ...
14961 * sysdeps/nptl/threads.h: ... here.
14962 * sysdeps/htl/threads.h: New file.
14963 * conform/Makefile (linknamespace-libs-ISO11): Use
14964 static-thread-library instead of linking libpthread.
14965 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14966
14967 2018-07-25 Florian Weimer <fweimer@redhat.com>
14968
14969 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14970 nanoseconds into seconds.
14971 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14972 (do_test): Likewise.
14973 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14974 (do_test): Likewise. Avoid nanosecond overflow and spurious
14975 timeouts due to system load.
14976 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14977 (child_wait): Increment it.
14978 (do_test): Wait as long as necessary until all expected threads
14979 have arrived.
14980
14981 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14982 H.J. Lu <hongjiu.lu@intel.com>
14983
14984 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14985 __ssp.
14986 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14987 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14988 (__push___start_context): New.
14989 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14990 <asm/prctl.h>.
14991 (__getcontext): Record the current shadow stack base. Save the
14992 caller's shadow stack pointer and base.
14993 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14994 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14995 (__push___start_context): New prototype.
14996 (__makecontext): Call __push___start_context to allocate a new
14997 shadow stack, push __start_context onto the new stack as well
14998 as the new shadow stack.
14999 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
15000 <asm/prctl.h>.
15001 (__setcontext): Restore the target shadow stack.
15002 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
15003 <asm/prctl.h>.
15004 (__swapcontext): Record the current shadow stack base. Save
15005 the caller's shadow stack pointer and base. Restore the target
15006 shadow stack.
15007 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
15008 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
15009 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
15010
15011 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15012
15013 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
15014 tst-setcontext8 and tst-setcontext9.
15015 * stdlib/tst-setcontext6.c: New file.
15016 * stdlib/tst-setcontext7.c: Likewise.
15017 * stdlib/tst-setcontext8.c: Likewise.
15018 * stdlib/tst-setcontext9.c: Likewise.
15019
15020 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15021
15022 * stdlib/Makefile ((tests): Add tst-setcontext5.
15023 * stdlib/tst-setcontext5.c: New file.
15024
15025 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15026
15027 * stdlib/Makefile (tests): Add tst-setcontext4.
15028 * stdlib/tst-setcontext4.c: New file.
15029
15030 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15031
15032 * stdlib/Makefile (tests): Add tst-swapcontext1.
15033 * stdlib/tst-swapcontext1.c: New test.
15034
15035 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15036
15037 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
15038 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
15039 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
15040 and tst-cet-legacy-4c.
15041 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
15042 and tst-cet-legacy-mod-4.
15043 (CFLAGS-tst-cet-legacy-2.c): New.
15044 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
15045 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
15046 (CFLAGS-tst-cet-legacy-3.c): Likewise.
15047 (CFLAGS-tst-cet-legacy-4.c): Likewise.
15048 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
15049 ($(objpfx)tst-cet-legacy-1): Likewise.
15050 ($(objpfx)tst-cet-legacy-2): Likewise.
15051 ($(objpfx)tst-cet-legacy-2.out): Likewise.
15052 ($(objpfx)tst-cet-legacy-2a): Likewise.
15053 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
15054 ($(objpfx)tst-cet-legacy-4): Likewise.
15055 ($(objpfx)tst-cet-legacy-4.out): Likewise.
15056 ($(objpfx)tst-cet-legacy-4a): Likewise.
15057 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
15058 (tst-cet-legacy-4a-ENV): Likewise.
15059 ($(objpfx)tst-cet-legacy-4b): Likewise.
15060 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
15061 (tst-cet-legacy-4b-ENV): Likewise.
15062 ($(objpfx)tst-cet-legacy-4c): Likewise.
15063 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
15064 (tst-cet-legacy-4c-ENV): Likewise.
15065 * sysdeps/x86/tst-cet-legacy-1.c: New file.
15066 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
15067 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
15068 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
15069 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
15070 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
15071 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
15072 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
15073 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
15074 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
15075 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
15076
15077 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
15078
15079 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
15080 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
15081 with ssp_base.
15082 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
15083 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
15084 with ssp_base.
15085
15086 2018-07-25 Andreas Schwab <schwab@suse.de>
15087
15088 [BZ #23442]
15089 * locale/weightwc.h (findidx): Handle the case where usrc is a
15090 prefix of cp but one character too short.
15091
15092 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15093
15094 * NEWS: Add ISO C threads addition.
15095
15096 2018-07-24 Florian Weimer <fweimer@redhat.com>
15097
15098 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15099 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
15100 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
15101 4.13.
15102
15103 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15104
15105 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
15106 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
15107 <sys/prctl.h> and <asm/prctl.h>.
15108 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
15109 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
15110 and <asm/prctl.h>.
15111 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
15112 ARCH_CET_LEGACY_BITMAP.
15113 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
15114 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
15115 * sysdeps/x86/libc-start.c: Include <startup.h>.
15116
15117 2018-07-24 Florian Weimer <fweimer@redhat.com>
15118
15119 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
15120 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
15121
15122 2018-07-24 Rical Jasan <rj@2c3t.io>
15123 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15124 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
15125
15126 [BZ #14092]
15127 * manual/debug.texi: Update adjacent chapter name.
15128 * manual/probes.texi: Likewise.
15129 * manual/threads.texi (ISO C Threads): New section.
15130 (POSIX Threads): Convert to a section.
15131
15132 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15133 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
15134
15135 [BZ# 14092]
15136 * nptl/Makefile (tests): Add new test files.
15137 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
15138 * nptl/tst-cnd-basic.c: Likewise.
15139 * nptl/tst-cnd-broadcast.c: Likewise.
15140 * nptl/tst-cnd-timedwait.c: Likewise.
15141 * nptl/tst-mtx-basic.c: Likewise.
15142 * nptl/tst-mtx-recursive.c: Likewise.
15143 * nptl/tst-mtx-timedlock.c: Likewise.
15144 * nptl/tst-mtx-trylock.c: Likewise.
15145 * nptl/tst-thrd-basic.c: Likewise.
15146 * nptl/tst-thrd-detach.c: Likewise.
15147 * nptl/tst-thrd-sleep.c: Likewise.
15148 * nptl/tst-tss-basic.c: Likewise.
15149
15150 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15151
15152 [BZ #14092]
15153 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15154 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
15155 symbols.
15156 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15157 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15158 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15159 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15160 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15161 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15162 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15163 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15164 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15165 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15166 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15167 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15169 Likewise.
15170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15171 Likewise.
15172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15173 Likewise.
15174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15175 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15176 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15177 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15178 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15179 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15180 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15181 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15182 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15183 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
15184 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
15185 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
15186 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
15187 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
15188 Likewise.
15189 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
15190 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
15191 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
15192 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
15193 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
15194 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
15195 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
15196 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
15197 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
15198 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
15199 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
15200 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
15201 ikewise.
15202 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
15203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
15204 Likewise.
15205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
15206 Likewise.
15207 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15208 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15209 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15210 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15211 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15212 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15213 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15214 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15215
15216 [BZ #14092]
15217 * conform/data/threads.h-data (thread_local): New macro.
15218 (TSS_DTOR_ITERATIONS): Likewise.
15219 (tss_t): New type.
15220 (tss_dtor_t): Likewise.
15221 (tss_create): New function.
15222 (tss_get): Likewise.
15223 (tss_set): Likewise.
15224 (tss_delete): Likewise.
15225 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
15226 tss_get, and tss_set objects.
15227 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
15228 * nptl/tss_create.c: New file.
15229 * nptl/tss_delete.c: Likewise.
15230 * nptl/tss_get.c: Likewise.
15231 * nptl/tss_set.c: Likewise.
15232 * sysdeps/nptl/threads.h (thread_local): New define.
15233 (TSS_DTOR_ITERATIONS): Likewise.
15234 (tss_t): New typedef.
15235 (tss_dtor_t): Likewise.
15236 (tss_create): New prototype.
15237 (tss_get): Likewise.
15238 (tss_set): Likewise.
15239 (tss_delete): Likewise.
15240
15241 [BZ #14092]
15242 * conform/data/threads.h-data (cnd_t): New type.
15243 (cnd_init): New function.
15244 (cnd_signal): Likewise.
15245 (cnd_broadcast): Likewise.
15246 (cnd_wait): Likewise.
15247 (cnd_timedwait): Likewise.
15248 (cnd_destroy): Likewise.
15249 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
15250 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
15251 object.
15252 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
15253 * nptl/cnd_broadcast.c: New file.
15254 * nptl/cnd_destroy.c: Likewise.
15255 * nptl/cnd_init.c: Likewise.
15256 * nptl/cnd_signal.c: Likewise.
15257 * nptl/cnd_timedwait.c: Likewise.
15258 * nptl/cnd_wait.c: Likewise.
15259 * sysdeps/nptl/threads.h (cnd_t): New type.
15260 (cnd_init): New prototype.
15261 (cnd_signa): Likewise.
15262 (cnd_broadcast): Likewise.
15263 (cnd_wait): Likewise.
15264 (cnd_timedwait): Likewise.
15265 (cnd_destroy): Likewise.
15266
15267 [BZ #14092]
15268 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
15269 (once_flag): New type.
15270 (call_once): New function.
15271 * nptl/Makefile (libpthread-routines): Add call_once object.
15272 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
15273 * nptl/call_once.c: New file.
15274 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
15275 (once_flag): New type.
15276 (call_once): New prototype.
15277
15278 [BZ #14092]
15279 * conform/data/threads.h-data (mtx_plain): New constant.
15280 (mtx_recursive): Likewise.
15281 (mtx_timed): Likewise.
15282 (mtx_t): New type.
15283 (mtx_init): New function.
15284 (mtx_lock): Likewise.
15285 (mtx_timedlock): Likewise.
15286 (mtx_trylock): Likewise.
15287 (mtx_unlock): Likewise.
15288 (mtx_destroy): Likewise.
15289 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
15290 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
15291 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
15292 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
15293 * nptl/mtx_destroy.c: New file.
15294 * nptl/mtx_init.c: Likewise.
15295 * nptl/mtx_lock.c: Likewise.
15296 * nptl/mtx_timedlock.c: Likewise.
15297 * nptl/mtx_trylock.c: Likewise.
15298 * nptl/mtx_unlock.c: Likewise.
15299 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
15300 (mtx_recursive): Likewise.
15301 (mtx_timed): Likewise.
15302 (mtx_t): New type.
15303 (mtx_init): New prototype.
15304 (mtx_lock): Likewise.
15305 (mtx_timedlock): Likewise.
15306 (mtx_trylock): Likewise.
15307 (mtx_unlock): Likewise.
15308 (mtx_destroy): Likewise.
15309
15310 [BZ #14092]
15311 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
15312 (linknamespace-libs-ISO11): Add libpthread.a.
15313 * conform/data/threads.h-data: New file: add C11 thrd_* types and
15314 functions.
15315 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
15316 * nptl/Makefile (headers): Add threads.h.
15317 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
15318 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
15319 thrd_yield.
15320 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
15321 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
15322 thrd_join, thrd_sleep, and thrd_yield symbols.
15323 * nptl/descr.h (struct pthread): Add c11 field.
15324 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
15325 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
15326 routine with expected function prototype.
15327 (__pthread_create_2_1): Add C11 threads check based on attribute
15328 value.
15329 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
15330 * nptl/thrd_create.c: New file.
15331 * nptl/thrd_current.c: Likewise.
15332 * nptl/thrd_detach.c: Likewise.
15333 * nptl/thrd_equal.c: Likewise.
15334 * nptl/thrd_exit.c: Likewise.
15335 * nptl/thrd_join.c: Likewise.
15336 * nptl/thrd_priv.h: Likewise.
15337 * nptl/thrd_sleep.c: Likewise.
15338 * nptl/thrd_yield.c: Likewise.
15339 * include/threads.h: Likewise.
15340
15341 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15342
15343 * bits/indirect-return.h: New file.
15344 * misc/sys/cdefs.h (__glibc_has_attribute): New.
15345 * sysdeps/x86/bits/indirect-return.h: Likewise.
15346 * stdlib/Makefile (headers): Add bits/indirect-return.h.
15347 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
15348 (swapcontext): Add __INDIRECT_RETURN.
15349 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
15350 (prepare_test_buffer): Use it.
15351
15352 2018-07-24 Andreas Schwab <schwab@suse.de>
15353
15354 [BZ #23448]
15355 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
15356 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
15357
15358 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15359
15360 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
15361 Redefine if shadow stack is enabled.
15362 (SYSCALL_ERROR_LABEL): Likewise.
15363 (__vfork): Pop shadow stack and jump back to to caller directly
15364 when shadow stack is in use.
15365 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
15366 Redefine if shadow stack is enabled.
15367 (SYSCALL_ERROR_LABEL): Likewise.
15368 (__vfork): Pop shadow stack and jump back to to caller directly
15369 when shadow stack is in use.
15370
15371 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15372
15373 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
15374 enabled.
15375 (foo): Likewise.
15376 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
15377 (foo): Likewise.
15378
15379 2018-07-20 Joseph Myers <joseph@codesourcery.com>
15380
15381 * scripts/build-many-glibcs.py (Context.checkout): Default
15382 binutils version to 2.31 branch.
15383
15384 2018-07-20 Zong Li <zong@andestech.com>
15385
15386 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
15387 URL of gcc's tarball.
15388
15389 2018-07-20 Florian Weimer <fweimer@redhat.com>
15390
15391 [BZ #23396]
15392 * posix/regcomp.c (build_equiv_class): When comparing weights, do
15393 not compare an extra byte after the end of the weights.
15394
15395 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15396
15397 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
15398 to 1.
15399 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
15400 hidden prototypes.
15401 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
15402 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
15403 * scripts/check-execstack.awk: Consider `xfail' variable containing a
15404 list of libraries whose stack executability is expected.
15405 * elf/Makefile ($(objpfx)check-execstack.out): Pass
15406 $(check-execstack-xfail) to check-execstack.awk through `xfail'
15407 variable.
15408 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
15409 libc.so libpthread.so.
15410
15411 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
15412
15413 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
15414 SOCK_NONBLOCK.
15415 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
15416 and SOCK_NONBLOCK.
15417 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
15418 implement __pipe2.
15419 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
15420
15421 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15422
15423 * benchtests/scripts/compare_bench.py (__main__): use the argparse
15424 library to improve command line parsing.
15425 (__main__): make schema file as optional parameter (--schema),
15426 defaulting to benchtests/scripts/benchout.schema.json.
15427 (main): move out of the parsing stuff to __main_  and leave it
15428 only as caller of main comparison functions.
15429
15430 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
15431
15432 * NEWS: Add a note for Intel CET status.
15433 * manual/install.texi: Likewise.
15434 * INSTALL: Regenerated.
15435
15436 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
15437
15438 [BZ #23140]
15439 * localedata/locales/oc_FR (mon): Rename to...
15440 (alt_mon): This, then update October (typo fix).
15441 (mon): New content (genitive case, month names preceded by
15442 "de" or "d’").
15443
15444 [BZ #23422]
15445 * localedata/locales/oc_FR (abday): Update all items.
15446 (day): Update Wednesday and Saturday (typo fixes).
15447 (abmon): Update all items, except May.
15448 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
15449 (LC_IDENTIFICATION): Bump the revision number and date.
15450 Keep the "category" entries in alphabetic order.
15451 (LC_ADDRESS): Remove no longer needed comment.
15452 (LC_COLLATE): Use “copy "ca_ES"”.
15453 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
15454 "name_mrs".
15455
15456 2018-07-18 Joseph Myers <joseph@codesourcery.com>
15457
15458 * grp/tst_fgetgrent.c: Include <unistd.h>.
15459 (main): Use mkstemp instead of tmpnam.
15460 * io/test-utime.c (main): Likewise.
15461 * posix/annexc.c (macrofile): Change to modifiable array.
15462 (main): Remove macrofile here.
15463 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
15464 macrofile here.
15465 (check_header): Do not remove macrofile here.
15466 * posix/bug-getopt1.c: Include <stdlib.h>.
15467 (do_test): Use mkstemp instead of tmpnam.
15468 * posix/bug-getopt2.c: Include <stdlib.h>.
15469 (do_test): Use mkstemp instead of tmpnam.
15470 * posix/bug-getopt3.c: Include <stdlib.h>.
15471 (do_test): Use mkstemp instead of tmpnam.
15472 * posix/bug-getopt4.c: Include <stdlib.h>.
15473 (do_test): Use mkstemp instead of tmpnam.
15474 * posix/bug-getopt5.c: Include <stdlib.h>.
15475 (do_test): Use mkstemp instead of tmpnam.
15476 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
15477 (main): Use mkstemp instead of tmpnam.
15478 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
15479 (main): Use mkstemp instead of tmpnam.
15480 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
15481 (main): use mkstemp instead of tmpnam.
15482 * stdlib/isomac.c (macrofile): Change to modifiable array.
15483 (main): Remove macrofile here.
15484 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
15485 macrofile here.
15486 (check_header): Do not remove macrofile here.
15487
15488 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15489
15490 * manual/tunables.texi: Document glibc.tune.x86_ibt and
15491 glibc.tune.x86_shstk.
15492
15493 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15494
15495 * NEWS: Mention --enable-cet.
15496 * manual/install.texi: Document --enable-cet.
15497 * INSTALL: Regenerated.
15498
15499 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15500
15501 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
15502 Add _CET_NOTRACK before indirect jump to jump table.
15503
15504 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15505
15506 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
15507 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15508 to jump table.
15509
15510 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15511
15512 * sysdeps/i386/i686/multiarch/strcat-sse2.S
15513 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15514 to jump table.
15515
15516 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15517
15518 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
15519 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15520 to jump table.
15521
15522 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15523
15524 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
15525 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15526 to jump table.
15527
15528 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15529
15530 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
15531 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15532 to jump table.
15533 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
15534
15535 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15536
15537 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
15538 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15539 to jump table.
15540
15541 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15542
15543 * sysdeps/i386/i686/multiarch/memset-sse2.S
15544 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15545 to jump table.
15546
15547 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15548
15549 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
15550 indirect jump to jump table.
15551
15552 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15553
15554 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
15555 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15556 to jump table.
15557 (MEMCPY): Likewise.
15558
15559 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15560
15561 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
15562 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15563 to jump table.
15564 (MEMCPY): Likewise.
15565
15566 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15567
15568 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15569 _CET_NOTRACK before indirect jump to jump table.
15570
15571 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15572
15573 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
15574 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15575 to jump table.
15576
15577 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15578
15579 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
15580 indirect jump to jump table.
15581
15582 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
15583
15584 [BZ #22241]
15585 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
15586 (LOCALES): Likewise.
15587 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
15588 * localedata/locales/sah_RU: New file.
15589 * localedata/sah_RU.UTF-8.in: New file.
15590
15591 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15592
15593 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
15594 "sysdep.h".
15595 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15596 _CET_ENDBR to indirect jump targets and adjust jump destination
15597 for _CET_ENDBR.
15598 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
15599 "sysdep.h".
15600 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15601 _CET_ENDBR to indirect jump targets and adjust jump destination
15602 for _CET_ENDBR.
15603 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
15604 "sysdep.h".
15605 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
15606 _CET_ENDBR to indirect jump targets and adjust jump destination
15607 for _CET_ENDBR.
15608
15609 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15610
15611 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15612 _CET_ENDBR.
15613
15614 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15615
15616 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15617 _CET_ENDBR.
15618 (_dl_tlsdesc_undefweak): Likewise.
15619 (_dl_tlsdesc_dynamic): Likewise.
15620 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15621 (_dl_tlsdesc_resolve_rel): Likewise.
15622 (_dl_tlsdesc_resolve_rela): Likewise.
15623 (_dl_tlsdesc_resolve_hold): Likewise.
15624 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15625 (_dl_tlsdesc_undefweak): Likewise.
15626 (_dl_tlsdesc_dynamic): Likewise.
15627 (_dl_tlsdesc_resolve_rela): Likewise.
15628 (_dl_tlsdesc_resolve_hold): Likewise.
15629
15630 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15631
15632 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15633 (_fini): Likewise.
15634 * sysdeps/x86_64/crti.S (_init): Likewise.
15635 (_fini): Likewise.
15636
15637 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
15638
15639 [BZ #23140]
15640 * localedata/locales/os_RU (mon): Rename to...
15641 (alt_mon): This.
15642 (mon): Import from CLDR (genitive case).
15643
15644 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15645
15646 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15647 cet-tunables.h> when CET is enabled.
15648
15649 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15650
15651 [BZ #21598]
15652 * configure.ac: Add --enable-cet.
15653 * configure: Regenerated.
15654 * elf/Makefille (all-built-dso): Add a comment.
15655 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15656 Include <dl-prop.h>.
15657 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15658 segment.
15659 * elf/dl-open.c: Include <dl-prop.h>.
15660 (dl_open_worker): Call _dl_open_check.
15661 * elf/rtld.c: Include <dl-prop.h>.
15662 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15663 _rtld_main_check.
15664 * sysdeps/generic/dl-prop.h: New file.
15665 * sysdeps/i386/dl-cet.c: Likewise.
15666 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15667 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15668 * sysdeps/x86/cet-tunables.h: Likewise.
15669 * sysdeps/x86/check-cet.awk: Likewise.
15670 * sysdeps/x86/configure: Likewise.
15671 * sysdeps/x86/configure.ac: Likewise.
15672 * sysdeps/x86/dl-cet.c: Likewise.
15673 * sysdeps/x86/dl-procruntime.c: Likewise.
15674 * sysdeps/x86/dl-prop.h: Likewise.
15675 * sysdeps/x86/libc-start.h: Likewise.
15676 * sysdeps/x86/link_map.h: Likewise.
15677 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15678 _CET_ENDBR.
15679 (_dl_runtime_profile): Likewise.
15680 (_dl_runtime_resolve_shstk): New.
15681 (_dl_runtime_profile_shstk): Likewise.
15682 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15683 if CET is enabled.
15684 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15685 (CFLAGS-.os): Likewise.
15686 (CFLAGS-.op): Likewise.
15687 (CFLAGS-.oS): Likewise.
15688 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15689 is enabled.
15690 (tests-special): Add $(objpfx)check-cet.out.
15691 (cet-built-dso): New.
15692 (+$(cet-built-dso:=.note)): Likewise.
15693 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15694 ($(objpfx)check-cet.out): New.
15695 (generated): Add check-cet.out.
15696 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15697 <cet-tunables.h>.
15698 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15699 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15700 (init_cpu_features): Call get_cet_status to check CET status
15701 and update dl_x86_feature_1 with CET status. Call
15702 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15703 (set_x86_shstk). Disable and lock CET in libc.a.
15704 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15705 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15706 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15707 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15708 (_CET_ENDBR): Define if not defined.
15709 (ENTRY): Add _CET_ENDBR.
15710 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15711 x86_shstk.
15712 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15713 _CET_ENDBR.
15714 (_dl_runtime_profile): Likewise.
15715
15716 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15717
15718 [BZ #21895]
15719 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15720 restore r2 on longjmp.
15721 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15722 test list.
15723 Added rules to build test tst-setjmp-bug21895-static.
15724 Added module setjmp-bug21895 and rules to build a shared object from it.
15725 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15726 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15727
15728 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15729
15730 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15731 * benchtests/bench-strstr.c: Likewise.
15732 * string/memmem.c (FASTSEARCH): Define.
15733 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15734 Add support for FASTSEARCH.
15735 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15736 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15737 (FASTSEARCH): Define.
15738 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15739 * string/test-strstr.c: Likewise.
15740
15741 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15742
15743 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15744 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15745
15746 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15747 H.J. Lu <hongjiu.lu@intel.com>
15748
15749 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15750 (__longjmp): Restore shadow stack pointer if shadow stack is
15751 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15752 isn't defined for __longjmp_cancel.
15753 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15754 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15755 and SHADOW_STACK_POINTER_OFFSET is defined.
15756 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15757 (setjmp): Save shadow stack pointer if shadow stack is enabled
15758 and SHADOW_STACK_POINTER_OFFSET is defined.
15759 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15760 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15761 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15762 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15763 <jmp_buf-ssp.h>.
15764 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15765 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15766 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15767 Remove jmp_buf-ssp.sym.
15768 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15769 <jmp_buf-ssp.h>.
15770 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15771 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15772 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15773 jmp_buf-ssp.sym.
15774 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15775 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15776 (__longjmp): Restore shadow stack pointer if shadow stack is
15777 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15778 isn't defined for __longjmp_cancel.
15779 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15780 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15781 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15782
15783 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15784
15785 [BZ #22563]
15786 * nptl/pthread_create.c: Include <tls-setup.h>.
15787 (__pthread_create_2_1): Call tls_setup_tcbhead.
15788 * sysdeps/generic/tls-setup.h: New file.
15789 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15790 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15791 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15792 Likewise.
15793 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15794 to feature_1.
15795 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15796 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15797 (X86_FEATURE_1_SHSTK): Likewise.
15798 (CET_ENABLED): Likewise.
15799 (IBT_ENABLED): Likewise.
15800 (SHSTK_ENABLED): Likewise.
15801
15802 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15803
15804 [BZ #23208]
15805 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15806 (LOCALES): Likewise.
15807 * localedata/dsb_DE.UTF-8.in: New file.
15808 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15809
15810 2018-07-12 Florian Weimer <fweimer@redhat.com>
15811
15812 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15813 __mprotect, not mprotect.
15814
15815 2018-07-11 Florian Weimer <fweimer@redhat.com>
15816
15817 * io/Makefile (headers): Add bits/statx.h.
15818
15819 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15820
15821 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15822 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15823 and headers.
15824 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15825 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15826 for utf8_gen.py
15827
15828 2018-07-10 Florian Weimer <fweimer@redhat.com>
15829
15830 * io/Makefile (routines): Add statx.
15831 (tests-internal): Add tst-statx.
15832 * io/Versions (GLIBC_2.28): Export statx.
15833 * io/bits/statx.h: New file.
15834 * io/sys/stat.h [__USE_GNU]: Include it.
15835 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15836 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15837 Define.
15838 * io/statx.c: New file.
15839 * io/statx_generic.: Likewise.
15840 * io/tst-statx.: Likewise.
15841 * include/bits/statx.h: Likewise.
15842 * sysdeps/unix/sysv/linux/kernel-features.h
15843 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15844 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15845 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15846 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15847 Undefine.
15848 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15849 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15850 * sysdeps/unix/sysv/linux/statx.c: New file.
15851 * manual/filesys.texi: Note that statx is undocumented.
15852 * sysdeps/**/libc*.abilist: Update.
15853
15854 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15855
15856 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15857 a kernel issue which lead to test failure in some cases.
15858
15859 2018-07-10 Florian Weimer <fweimer@redhat.com>
15860
15861 [BZ #23036]
15862 * posix/regexec.c (check_node_accept_bytes): When comparing
15863 weights, do not compare an extra byte after the end of the
15864 weights.
15865
15866 2018-07-10 Florian Weimer <fweimer@redhat.com>
15867
15868 * libio/readline.c: Fix copyright year.
15869 * libio/tst-readline.c Likewise.
15870 * nss/tst-nss-files-hosts-getent.c: Likewise.
15871
15872 2018-07-06 Florian Weimer <fweimer@redhat.com>
15873
15874 [BZ #18991]
15875 * nss/nss_files/files-XXX.c (internal_getent): Use
15876 __libc_readline_unlocked. Seek back to the start of the line if
15877 parsing failes with ERANGE.
15878 (get_contents_ret, get_contents): Remove.
15879 * nss/tst-nss-files-hosts-getent.c: New file.
15880 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15881 (tst-nss-files-hosts-getent): Link with -ldl.
15882
15883 2018-07-06 Florian Weimer <fweimer@redhat.com>
15884
15885 * include/stdio.h (__libc_readline_unlocked): Declare.
15886 (__ftello64, __fseeko64): Declare aliases.
15887 * libio/readline.c: New file.
15888 * libio/tst-readline.c: Likewise.
15889 (routines): Add readline.
15890 (tests-internal): Add tst-readlime.
15891 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15892 __libc_readline_unlocked.
15893 * libio/fseeko.c (__fseeko): Rename from fseeko.
15894 (fseeko): Add alias.
15895 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15896 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15897 (fseeko64): Add alias.
15898 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15899 * libio/ftello64.c (__ftello64): Rename from ftello64.
15900 (ftello64): Add alias.
15901
15902 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15903
15904 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15905 HWCAP_ATOMICS.
15906
15907 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15908
15909 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15910 Use dl_hwcap without masking.
15911 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15912 Remove HWCAP_CPUID.
15913
15914 2018-07-06 Florian Weimer <fweimer@redhat.com>
15915
15916 * conform/conformtest.pl (checknamespace): Escape literal braces
15917 in regular expressions.
15918
15919 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15920
15921 * sysdeps/x86/cpu-features.c (get_common_indeces):
15922 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15923 * sysdeps/x86/cpu-features.c (init_cpu_features):
15924 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15925
15926 2018-07-05 Florian Weimer <fweimer@redhat.com>
15927
15928 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15929 protector.
15930 (CFLAGS-elf-init.oS): Likewise.
15931
15932 2018-07-05 Florian Weimer <fweimer@redhat.com>
15933 Carlos O'Donell <carlos@redhat.com>
15934
15935 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15936 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15937 with stack protector enabled because there is no risk of infinite
15938 recursion.
15939
15940 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15941
15942 [BZ #19818]
15943 [BZ #23307]
15944 * libc-abis (ABSOLUTE): New ABI.
15945 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15946 * NEWS: Mention the new ABI.
15947
15948 2018-07-05 Florian Weimer <fweimer@redhat.com>
15949
15950 [BZ # 17662]
15951 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15952 (RENAME_WHITEOUT): Define.
15953 [__USE_GNU] (renameat2): Declare.
15954 * stdio-common/Makefile (routines): Add renameat2.
15955 (tests): Add tst-renameat2.
15956 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15957 * stdio-common/renameat2.c: New file.
15958 * stdio-common/tst-renameat2.c: Likewise.
15959 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15960 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15961 undocumented.
15962 * sysdeps/unix/sysv/linux/kernel-features.h
15963 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15964 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15965 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15966 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15967 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15968 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15969 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15970 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15971 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15972 * include/stdio.h (__renameat): Add alias for renameat.
15973 * stdio-common/renameat.c (__renameat): Rename from renameat.
15974 Add hidden definition and alias.
15975 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15976 * sysdeps/mach/hurd/renameat.c: Likewise.
15977 * sysdeps/**/libc*.abilist: Add renameat2.
15978
15979 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15980
15981 * posix/bug-regex33.c: Fix build after regex sync.
15982
15983 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15984
15985 [BZ #23164]
15986 * localedata/tst-langinfo-setlocale.c: New file.
15987 * localedata/tst-langinfo-setlocale-static.c: New file.
15988 * localedata/tst-langinfo-newlocale.c: New file.
15989 * localedata/tst-langinfo-newlocale-static.c: New file.
15990 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15991 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15992 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15993 (tests-static): Remove tst-langinfo-static. Add
15994 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15995 (tests-special): Remove $(objpfx)tst-langinfo.out,
15996 $(objpfx)tst-langinfo-static.out. Add
15997 $(objpfx)tst-langinfo-setlocale.out,
15998 $(objpfx)tst-langinfo-newlocale.out,
15999 $(objpfx)tst-langinfo-setlocale-static.out,
16000 $(objpfx)tst-langinfo-newlocale-static.out.
16001 ($(objpfx)tst-langinfo.out): Remove.
16002 ($(objpfx)tst-langinfo-static.out): Remove.
16003 ($(objpfx)tst-langinfo-newlocale.out): New target.
16004 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
16005 (test-xfail-tst-langinfo-newlocale-static): Add.
16006 ($(objpfx)tst-langinfo-setlocale.out): New target.
16007 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
16008 * localedata/tst-langinfo.c: Call test_locale.
16009 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
16010 data.
16011
16012 2018-07-04 Florian Weimer <fweimer@redhat.com>
16013
16014 testrun.sh: Implement --tool=strace, --tool=valgrind
16015 * Makefile (testrun-script): Define variable.
16016 (testrun.sh): Use variable.
16017 * manual/install.texi (Tools for Compilation): make 4.0 or later
16018 is required.
16019 * configure.ac: Check for make 4.0 or later.
16020 * INSTALL: Regenerate.
16021 * configure: Likewise.
16022
16023 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16024
16025 [BZ #23233]
16026 [BZ #21163]
16027 [BZ #18986]
16028 [BZ #13762]
16029 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
16030 * posix/PCRE.tests: Remove invalid test.
16031 * posix/bug-regex28.c: Fix expected values for used syntax.
16032 * posix/bug-regex37.c: New file.
16033 * posix/bug-regex38.c: Likewise.
16034 * posix/regcomp.c: Sync with gnulib.
16035 * posix/regex.c: Likewise.
16036 * posix/regex.h: Likewise.
16037 * posix/regex_internal.c: Likewise.
16038 * posix/regex_internal.h: Likewise.
16039 * posix/regexec.c: Likewise.
16040
16041 2018-06-26 Mike FABIAN <mfabian@redhat.com>
16042
16043 [BZ #23308]
16044 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
16045 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
16046 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
16047 * localedata/unicode-gen/PropList.txt: likewise.
16048 * localedata/unicode-gen/UnicodeData.txt: likewise.
16049 * localedata/charmaps/UTF-8: Regenerate.
16050 * localedata/locales/i18n_ctype: likewise.
16051 * localedata/locales/tr_TR: likewise.
16052 * localedata/locales/translit_circle: likewise.
16053 * localedata/locales/translit_cjk_compat: likewise.
16054 * localedata/locales/translit_combining: likewise.
16055 * localedata/locales/translit_compat: likewise.
16056 * localedata/locales/translit_font: likewise.
16057 * localedata/locales/translit_fraction: likewise.
16058
16059 2018-07-03 Florian Weimer <fweimer@redhat.com>
16060
16061 [BZ #23363]
16062 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
16063 * stdio-common/tst-printf.sh: Adjust expected output.
16064 * LICENSES: Update.
16065
16066 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16067
16068 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
16069 symbol.
16070
16071 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16072
16073 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
16074 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
16075 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
16076 * stdio-common/tst-printfsz-islongdouble.c: New file.
16077 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
16078 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
16079 [subdir == stdio-common] (routines): Add ieee128-printf_size.
16080 [subdir == stdio-common] (tests-internal): Add
16081 test-printf-size-ieee128, and test-printf-size-ibm128.
16082 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
16083 (CFLAGS-test-printf-size-ibm128.c): New variables.
16084 [subdir == stdio-common] (tests-special): Add
16085 $(objpfx)test-printf-size-ieee128.out and
16086 $(objpfx)test-printf-size-ibm128.out.
16087 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
16088 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
16089 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
16090 __printf_sizeieee128.
16091 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
16092 New file.
16093 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
16094 Likewise.
16095 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
16096 Likewise.
16097
16098 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
16099
16100 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
16101 (exp2f_inline): Likewise.
16102 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
16103 (__math_uflowf): Likewise.
16104 (__math_may_uflowf): Likewise.
16105 (__math_divzerof): Likewise.
16106 (__math_invalidf): Likewise.
16107 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
16108 (__math_oflowf): Likewise.
16109 (__math_uflowf): Likewise.
16110 (__math_may_uflowf): Likewise.
16111 (__math_divzerof): Likewise.
16112 (__math_invalidf): Likewise.
16113
16114 2018-06-29 DJ Delorie <dj@redhat.com>
16115 Carlos O'Donell <carlos@redhat.com>
16116
16117 [BZ #23329]
16118 * include/libc-symbols.h: Comment the freeres framework.
16119 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
16120 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
16121 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
16122 * dlfcn/dlerror.c: Include libc-symbols.h
16123 (__dlerror_main_freeres): New function.
16124 * dlfcn/dlfreeres.c: New file.
16125 * dlfcn/sdlfreeres.c: New file.
16126 * include/dlfcn.h: Declare __dlerror_main_freeres.
16127 * malloc/set-freeres.c: Declare __libdl_freeres, and
16128 __libpthread_freeres.
16129 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
16130 the releavant libraries are loaded.
16131 * malloc/thread-freeres.c: Add comments.
16132 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
16133 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
16134 * nptl/allocatestack.c (__nptl_free_stacks): New function.
16135 (__free_stacks): Rename to...
16136 (free_stacks): ...this. Mark static.
16137 (queue_stack): Call free_stacks.
16138 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
16139 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
16140 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
16141 ptr_freeres element from struct.
16142 (pthread_functions): Remove .ptr_freeres from struct initializer.
16143 [SHARED] (nptl_freeres): Remove.
16144 * nptl/nptlfreeres.c: New file.
16145 * nptl/pthreadP.h
16146 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
16147 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
16148 attribute_hidden.
16149 (__free_stacks): Rename to...
16150 (__nptl_stacks_freeres): ...this.
16151 (__shm_directory_freeres): Declare.
16152 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
16153 (__nptl_unwind_freeres): ...this.
16154 * resolv/res-close.c: Add comment.
16155 * resolv/resolv_conf.c: Include libc-symbols.h.
16156 * string/strerror_l.c: Include libc-symbols.h.
16157 * sunrpc/rpc_thread.c: Include libc-symbols.h.
16158 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
16159 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
16160 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
16161
16162 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16163
16164 * stdlib/tst-strfmon_l.c: Add tests for long double.
16165
16166 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
16167
16168 [BZ #23208]
16169 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
16170 * localedata/locales/dsb_DE: New file.
16171
16172 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
16173
16174 [BZ #23140]
16175 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
16176 genitive case).
16177 (alt_mon): New entry, import from CLDR (nominative case).
16178
16179 2018-06-29 Sylvain Lesage <severo@rednegra.net>
16180
16181 [BZ #22996]
16182 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
16183
16184 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
16185
16186 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
16187 Use vector registers.
16188
16189 * sysdeps/aarch64/multiarch/memmove_falkor.S
16190 (__memcpy_falkor): Use vector registers.
16191
16192 2018-06-29 Martin Sebor <msebor@redhat.com>
16193
16194 * manual/stdio.texi (Customizing Printf): Mention interaction
16195 with GCC built-ins.
16196
16197 2018-06-29 Maciej W. Rozycki <macro@mips.com>
16198
16199 [BZ #23307]
16200 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
16201 `st_value' is 0 if `st_shndx' is SHN_ABS.
16202 * elf/tst-absolute-zero.c: New file.
16203 * elf/tst-absolute-zero-lib.c: New file.
16204 * elf/tst-absolute-zero-lib.lds: New file.
16205 * elf/Makefile (tests): Add `tst-absolute-zero'.
16206 (modules-names): Add `tst-absolute-zero-lib'.
16207 (LDLIBS-tst-absolute-zero-lib.so): New variable.
16208 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
16209 ($(objpfx)tst-absolute-zero: New dependency.
16210
16211 2018-06-29 Zack Weinberg <zackw@panix.com>
16212
16213 * configure.ac: New command-line option --disable-crypt.
16214 Force --disable-nss-crypt when --disable-crypt is given, with a
16215 warning if it was explicitly enabled.
16216 * configure: Regenerate.
16217 * config.make.in: New boolean substitution variable $(build-crypt).
16218 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
16219 when $(build-crypt).
16220 * manual/install.texi: Document --disable-crypt.
16221 * INSTALL: Regenerate.
16222
16223 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
16224 which is never set.
16225 * conform/Makefile: Only include libcrypt.a in
16226 linknamespace-libs-xsi and linknamespace-libs-XPG4
16227 when $(build-crypt).
16228 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
16229 USE_CRYPT to 1 when $(build-crypt).
16230 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
16231 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
16232 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
16233
16234 2018-06-29 Zack Weinberg <zackw@panix.com>
16235
16236 * crypt/crypt.h, posix/unistd.h: Update comments and
16237 prototypes for crypt and crypt_r.
16238
16239 * manual/crypt.texi (Cryptographic Functions): New initial
16240 exposition.
16241 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
16242 (Unpredictable Bytes): Improve initial exposition. Clarify error
16243 behavior of getentropy and getrandom.
16244 * manual/examples/genpass.c: Generate a salt using getentropy
16245 instead of the current time. Use hash $5$ (SHA-2-256).
16246 * manual/examples/testpass.c: Demonstrate validation against
16247 hashes generated with three different one-way functions.
16248
16249 * manual/intro.texi: crypt.texi does not need an overview
16250 anymore.
16251
16252 * manual/nss.texi, manual/memory.texi, manual/socket.texi
16253 * manual/terminal.texi: Consistently refer to "passphrases"
16254 * instead of "passwords", and to the "user database" instead
16255 * of the "password database".
16256 * manual/users.texi: Similarly. Add notes about how actual
16257 passphrase hashes are now stored in the shadow database.
16258 Remove 20-year-old junk todo note.
16259
16260 2018-06-29 Zack Weinberg <zackw@panix.com>
16261
16262 * manual/crypt.texi: Use a normal top-level @node declaration.
16263 Move most of the introductory text to the 'crypt' section.
16264 Move the example programs below the @deftypefun for 'crypt_r'.
16265 Move the 'getpass' section...
16266 * manual/terminal.texi: ...here.
16267
16268 2018-06-29 Zack Weinberg <zackw@panix.com>
16269 Florian Weimer <fweimer@redhat.com>
16270
16271 * posix/unistd.h: Do not declare encrypt.
16272 (_XOPEN_CRYPT): Remove macro definition.
16273 (crypt): Declare only for _USE_MISC.
16274 * stdlib/stdlib.h: Do not declare setkey.
16275 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
16276 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
16277
16278 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
16279 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
16280 into compat symbols. Don't define initial_perm if it's not
16281 going to be used.
16282 * crypt/cert.c: Link explicitly with the expected versions for
16283 setkey and encrypt. If they are not available at all, mark
16284 the test as unsupported.
16285
16286 * sunrpc/des_crypt.c: Unconditionally block linkage with
16287 cbc_crypt and ecb_crypt for new binaries.
16288 * sunrpc/des_soft.c: Unconditionally block linkage with
16289 des_setparity for new binaries.
16290
16291 * manual/crypt.texi: Remove the entire "DES Encryption"
16292 section. Also remove the paragraph talking about FIPS 140-2
16293 from the introduction.
16294 * manual/string.texi (strfry, memfrob): Revise. Recommend use
16295 of libgcrypt for "real" encryption, not DES.
16296 * manual/conf.texi (Constants for Sysconf): Mention that
16297 _XOPEN_CRYPT is no longer impelemented.
16298
16299 * conform/data/unistd.h-data: Remove crypt function declaration.
16300
16301 2018-06-29 Florian Weimer <fweimer@redhat.com>
16302
16303 [BZ #23351]
16304 * malloc/hooks.c: Update comments on restoring of dumped heaps.
16305 (disallow_malloc_check): Remove variable.
16306 (__malloc_check_init): Adjust.
16307 (malloc_set_state): Update comment.
16308 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
16309 declarations.
16310
16311 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
16312
16313 [BZ #23140]
16314 * localedata/locales/ast_ES (mon): Rename to...
16315 (alt_mon): This.
16316 (mon): Import from CLDR (genitive case).
16317
16318 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
16319 Jakub Sitnicki <jkbs@redhat.com>
16320
16321 [BZ #21812]
16322 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
16323 on NLM_F_DUMP_INTR.
16324
16325 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
16326
16327 * manual/llio.texi: Remove spurious space.
16328
16329 2018-06-28 Florian Weimer <fweimer@redhat.com>
16330
16331 [BZ #23349]
16332 * time/bits/types/struct_timespec.h: Change header inclusion guard to
16333 _STRUCT_TIMESPEC.
16334
16335 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16336
16337 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
16338 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
16339 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
16340 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
16341 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
16342 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
16343 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
16344
16345 2018-06-27 Maciej W. Rozycki <macro@mips.com>
16346
16347 [BZ #23266]
16348 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
16349 Copy and null-terminate entries that are not terminated, in
16350 addition to empty ones.
16351
16352 2018-06-27 Florian Weimer <fweimer@redhat.com>
16353
16354 [BZ #18023]
16355 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
16356 (extend_alloca_account): Remove.
16357 * manual/stdio.texi (Variable Arguments Output): Update comment.
16358
16359 2018-06-27 Joseph Myers <joseph@codesourcery.com>
16360
16361 * nptl/sockperf.c: Remove file.
16362
16363 2018-06-27 Florian Weimer <fweimer@redhat.com>
16364
16365 [BZ #18023]
16366 * elf/dl-deps.c (_dl_map_object_deps): Use struct
16367 scratch_buffer instead of extend_alloca.
16368
16369 2018-06-27 Florian Weimer <fweimer@redhat.com>
16370
16371 [BZ #18023]
16372 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
16373 scratch_buffer instead of extend_alloca. Update comments.
16374
16375 2018-06-27 Florian Weimer <fweimer@redhat.com>
16376
16377 [BZ #18023]
16378 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
16379 instead of extend_alloca.
16380
16381 2018-06-26 Joseph Myers <joseph@codesourcery.com>
16382
16383 [BZ #13888]
16384 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
16385 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
16386 /tmp.
16387 * scripts/test-installation.pl: Put temporary files in build
16388 directory, not /tmp.
16389 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
16390 (CFLAGS-bug4.c): Likewise.
16391 (CFLAGS-bug5.c): Likewise.
16392 (CFLAGS-test-fseek.c): Likewise.
16393 (CFLAGS-test-popen.c): Likewise.
16394 (CFLAGS-test_rdwr.c): Likewise.
16395 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
16396 /tmp.
16397 * stdio-common/bug4.c (main): Likewise.
16398 * stdio-common/bug5.c (main): Likewise.
16399 * stdio-common/test-fseek.c (TESTFILE): Likewise.
16400 * stdio-common/test-popen.c (do_test): Likewise.
16401 * stdio-common/test_rdwr.c (main): Likewise.
16402
16403 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
16404
16405 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
16406 (sem_open): Set sem.newsem.pad to zero for valgrind.
16407
16408 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16409
16410 [BZ #20251]
16411 * NEWS: Mention fcntl64 addition.
16412 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
16413 * login/utmp_file.c: Likewise.
16414 * sysdeps/posix/fdopendir.c: Likewise.
16415 * sysdeps/posix/opendir.c: Likewise.
16416 * sysdeps/unix/pt-fcntl.c: Likewise.
16417 * include/fcntl.h (__libc_fcntl64, __fcntl64,
16418 __fcntl64_nocancel_adjusted): New prototype.
16419 (__fcntl_nocancel_adjusted): Remove prototype.
16420 * io/Makefile (routines): Add fcntl64.
16421 (CFLAGS-fcntl64.c): New rule.
16422 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
16423 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
16424 * io/fcntl.h (fcntl64): Add prototype and redirect if
16425 __USE_FILE_OFFSET64 is defined.
16426 * io/fcntl64.c: New file.
16427 * manual/llio.text: Add a note for which commands fcntl acts a
16428 cancellation point.
16429 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
16430 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
16431 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
16432 New symbols.
16433 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
16434 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
16435 non-LFS case.
16436 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
16437 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
16438 to __fcntl64_nocancel.
16439 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
16440 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
16441 to __fcntl64_nocancel.
16442 * sysdeps/generic/not-cancel.h: Likewise.
16443 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
16444 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
16445 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
16446 (fcntl64): New symbol.
16447 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16448 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16449 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
16451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
16452 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16453 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16454 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16455 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16456 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16457 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
16458 fcntl64): Likewise.
16459 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16460 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
16461 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16462 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16463 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16464 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16465 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
16466 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16467 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16468 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16469 Likewise.
16470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16471 Likewise.
16472 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16473 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16474 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16475
16476 2018-06-26 Florian Weimer <fweimer@redhat.com>
16477
16478 Run thread shutdown functions in an explicit order.
16479 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
16480 definition.
16481 (__libc_thread_freeres): Call thread shutdown functions
16482 explicitly.
16483 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
16484 * include/string.h (__strerror_thread_freeres): Declare.
16485 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
16486 arena_thread_freeres. No longer static. Remove thread shutdown
16487 hook registration.
16488 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
16489 Declare.
16490 * resolv/res-close.c (__res_thread_freeres): Renamed from
16491 res_thread_freeres. No longer static. Remove thread shutdown
16492 hook registration.
16493 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
16494 * resolv/resolv_conf.c (freeres): Remove incorrect section
16495 attribute and use libc_freeres_fn.
16496 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
16497 strerror_thread_freeres. No longer static. Remove thread
16498 shutdown hook registration.
16499 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
16500 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
16501 shutdown hook registration.
16502 * Makerules (shlib.lds): Do not provide section boundary symbols
16503 for __libc_thread_subfreeres.
16504 * manual/memory.texi (Basic Allocation): Update comment.
16505
16506 2018-06-26 Florian Weimer <fweimer@redhat.com>
16507
16508 Remove always-defined _RPC_THREAD_SAFE_ macro.
16509 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
16510 Do not define _RPC_THREAD_SAFE_.
16511 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
16512 conditional.
16513 * sunrpc/clnt_perr.c: Likewise.
16514 * sunrpc/clnt_raw.c: Likewise.
16515 * sunrpc/clnt_simp.c: Likewise.
16516 * sunrpc/key_call.c: Likewise.
16517 * sunrpc/rpc_common.c: Likewise.
16518 * sunrpc/rpc_main.c: Likewise.
16519 * sunrpc/rpc_thread.c: Likewise.
16520 * sunrpc/svc.c: Likewise.
16521 * sunrpc/svc_raw.c: Likewise.
16522 * sunrpc/svc_simple.c: Likewise.
16523 * sumrpc/svcauth_des.c: Likewise.
16524
16525 2018-06-26 Florian Weimer <fweimer@redhat.com>
16526
16527 * libio/Makefile (tests-internal): Add tst-vtables,
16528 tst-vtables-interposed.
16529 * libio/tst-vtables.c: New file.
16530 * libio/tst-vtables-common.c: Likewise.
16531 * libio/tst-vtables-interposed.c: Likewise.
16532
16533 2018-06-26 Florian Weimer <fweimer@redhat.com>
16534
16535 * support/support_test_main.c (support_test_main): Only call
16536 setvbuf if not disables.
16537 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
16538 * support/test-driver.h (struct test_config): Add no_setvbuf member.
16539
16540 2018-06-26 Florian Weimer <fweimer@redhat.com>
16541
16542 [BZ #23313]
16543 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
16544
16545 2018-06-25 Florian Weimer <fweimer@redhat.com>
16546
16547 [BZ #18023]
16548 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16549 Use struct scratch_buffer instead of extend_alloca.
16550
16551 2018-06-25 Florian Weimer <fweimer@redhat.com>
16552
16553 [BZ #18023]
16554 * nss/getent.c (initgroups_keys): Use dynarray instead of
16555 extend_alloca.
16556
16557 2018-06-25 Florian Weimer <fweimer@redhat.com>
16558
16559 [BZ #18023]
16560 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
16561 Use struct scratch_buffer instead of extend_alloca.
16562
16563 2018-06-25 Florian Weimer <fweimer@redhat.com>
16564
16565 [BZ #18023]
16566 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
16567 back to malloc directly, without stack allocations.
16568
16569 2018-06-25 Florian Weimer <fweimer@redhat.com>
16570
16571 [BZ #18023]
16572 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
16573 of extend_alloca.
16574
16575 2018-06-25 Florian Weimer <fweimer@redhat.com>
16576
16577 [BZ #18023]
16578 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
16579 of extend_alloca.
16580 * nscd/hstcache.c (addhstbyX): Likewise.
16581 * nscd/pwdcache.c (addpwbyX): Likewise.
16582 * nscd/servicescache.c (addservbyX): Likewise.
16583
16584 2018-06-25 Florian Weimer <fweimer@redhat.com>
16585
16586 [BZ #18023]
16587 * nscd/connections.c (read_cmdline): New function.
16588 (restart): Use it. Update comment.
16589
16590 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
16591
16592 [BZ #23140]
16593 * localedata/locales/csb_PL (mon): Rename to...
16594 (alt_mon): This.
16595 (abmon): Rename to...
16596 (ab_alt_mon): This.
16597 (mon): Add with proper genitive forms, copy from Wikipedia.
16598 (abmon): Likewise.
16599
16600 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
16601
16602 [BZ #19485]
16603 * localedata/locales/csb_PL (mon): Fix typos:
16604 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
16605 (yesstr): Add, value is "jo".
16606 (nostr): Add, value is "nié".
16607
16608 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16609
16610 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
16611 all log1p and significand functions on m680x0.
16612 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
16613 of s_significand.c..
16614 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16615 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16616 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16617 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16618 s_log1p.c and include it..
16619
16620 2018-06-21 Vincent Chen <vincentc@andestech.com>
16621
16622 * elf/elf.h (R_NDS32_NONE): New define.
16623 (R_NDS32_32_RELA): Likewise.
16624 (R_NDS32_COPY): Likewise.
16625 (R_NDS32_GLOB_DAT): Likewise.
16626 (R_NDS32_JUMP_SLOT): Likewise.
16627 (R_NDS32_RELATIVE): Likewise.
16628 (R_NDS32_TLS_TPOFF): Likewise.
16629 (R_NDS32_TLS_DESC): Likewise.
16630
16631 2018-06-21 Mark Wielaard <mark@klomp.org>
16632
16633 * elf/elf.h (R_BPF_MAP_FD): Removed.
16634 (R_BPF_64_64, R_BPF_64_32): New.
16635
16636 2018-06-21 Florian Weimer <fweimer@redhat.com>
16637
16638 [BZ #23253]
16639 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16640 Renamed from libc_feholdsetround_ctx.
16641 (default_libc_feresetround_ctx): Renamed from
16642 libc_feresetround_ctx.
16643 (default_libc_feholdsetround_noex_ctx): Renamed from
16644 libc_feholdsetround_noex_ctx.
16645 (default_libc_feresetround_noex_ctx): Renamed from
16646 libc_feresetround_noex_ctx.
16647 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16648 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16649 forwardning to the old implementations under the new names.
16650 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16651 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16652 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16653 (libc_feresetround_ctx): Forward to default implements for i386
16654 and MATH_SET_BOTH_ROUNDING_MODES.
16655 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16656 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16657
16658 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16659
16660 * string/tst-cmp.c: Include <libc-diag.h>.
16661 (strncmp_max): Disable -Wstringop-overflow= around call to
16662 strncmp.
16663 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16664 strncasecmp.
16665
16666 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16667 (main): Disable -Wunused-value around call to strpbrk.
16668 * string/bug-strspn1.c: Include <libc-diag.h>.
16669 (main): Disable -Wunused-value around call to strspn.
16670
16671 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16672 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16673
16674 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16675 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16676
16677 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16678
16679 * math/Makefile (libm-calls): Move s_significandF to...
16680 (gen-libm-calls): ... here.
16681 * math/s_significand_template.c: New file.
16682 * math/s_significand.c: Removed.
16683 * math/s_significandf.c: Removed.
16684 * math/s_significandl.c: Removed.
16685 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16686 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16687
16688 * math/e_exp2_template.c (declare_mgen_finite_alias,
16689 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16690 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16691 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16692
16693 2018-06-20 Florian Weimer <fweimer@redhat.com>
16694
16695 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16696
16697 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16698
16699 [BZ #23280]
16700 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16701 floating-point number to strtod functions rather than possibly
16702 negating result of those functions.
16703 * stdio-common/tst-scanf-round.c: New file.
16704 * stdio-common/Makefile (tests): Add tst-scanf-round.
16705 ($(objpfx)tst-scanf-round): Depend on $(libm).
16706
16707 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16708
16709 * sysdeps/mach/hurd/localplt.data: Move to...
16710 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16711 R_386_GLOB_DAT like on Linux i386.
16712
16713 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16714
16715 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16716 (SHM_STAT_ANY): New macro.
16717 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16718 (SHM_STAT_ANY): Likewise.
16719 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16720 (SHM_STAT_ANY): Likewise.
16721 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16722 (SHM_STAT_ANY): Likewise.
16723 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16724 (SHM_STAT_ANY): Likewise.
16725 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16726 (SHM_STAT_ANY): Likewise.
16727 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16728 (SHM_STAT_ANY): Likewise.
16729 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16730 (SHM_STAT_ANY): Likewise.
16731 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16732 (SHM_STAT_ANY): Likewise.
16733 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16734 (SHM_STAT_ANY): Likewise.
16735 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16736 (SHM_STAT_ANY): Likewise.
16737 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16738 (SHM_STAT_ANY): Likewise.
16739
16740 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16741 (SEM_STAT_ANY): New macro.
16742 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16743 (SEM_STAT_ANY): Likewise.
16744 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16745 (SEM_STAT_ANY): Likewise.
16746 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16747 (SEM_STAT_ANY): Likewise.
16748 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16749 (SEM_STAT_ANY): Likewise.
16750 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16751 (SEM_STAT_ANY): Likewise.
16752 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16753 (SEM_STAT_ANY): Likewise.
16754 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16755 (SEM_STAT_ANY): Likewise.
16756 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16757 (SEM_STAT_ANY): Likewise.
16758 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16759 (SEM_STAT_ANY): Likewise.
16760
16761 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16762 (MSG_STAT_ANY): New macro.
16763 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16764 (MSG_STAT_ANY): Likewise.
16765 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16766 (MSG_STAT_ANY): Likewise.
16767 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16768 (MSG_STAT_ANY): Likewise.
16769 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16770 (MSG_STAT_ANY): Likewise.
16771 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16772 (MSG_STAT_ANY): Likewise.
16773 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16774 (MSG_STAT_ANY): Likewise.
16775 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16776 (MSG_STAT_ANY): Likewise.
16777 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16778 (MSG_STAT_ANY): Likewise.
16779 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16780 (MSG_STAT_ANY): Likewise.
16781
16782 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16783 (MAP_TYPE): Change value to 0x2b.
16784
16785 2018-06-18 Florian Weimer <fweimer@redhat.com>
16786
16787 [BZ #15722]
16788 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16789 socket with SOCK_CLOEXEC.
16790
16791 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16792
16793 [BZ #23303]
16794 * sysdeps/powerpc/powerpc64/le/Makefile
16795 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16796 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16797 (gnulib-tests): Also add $(f128-loader-link) for
16798 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16799
16800 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16801
16802 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16803 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16804 of sendfile.
16805 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16806 (sendfile64): New strong alias.
16807 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16808 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16809 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16810 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16811 attribute.
16812 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16813 ___pthread_get_cleanup_stack.
16814 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16815 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16816 * mach/shortcut.awk: Make syscall stubs include
16817 <mach-shortcuts-hidden.h> and add hidden definition.
16818 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16819 (__mach_msg): Add hidden prototype.
16820 * mach/msg.c: Include <mach.h>.
16821 (__mach_msg): Add hidden definition.
16822 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16823 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16824 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16825 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16826 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16827 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16828 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16829 prototype and definition.
16830 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16831 hidden target for _hurd_self_sigstate.
16832
16833 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16834
16835 [BZ #23007]
16836 * stdlib/tst-strtod-nan-sign-main.c: New file.
16837 * stdlib/tst-strtod-nan-sign.c: Likewise.
16838 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16839 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16840 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16841 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16842 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16843
16844 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16845
16846 [BZ #23007]
16847 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16848 appropriate sign.
16849
16850 2018-06-14 Florian Weimer <fweimer@redhat.com>
16851
16852 [BZ #23290]
16853 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16854 that the result stays within the ISO-8859-1 range.
16855 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16856 characters are defined in IBM273.
16857
16858 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16859
16860 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16861 __mach_task_self): Remove attribute_hidden.
16862
16863 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16864
16865 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16866 ignore -Wrestrict for one test.
16867
16868 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16869 Szabolcs Nagy <szabolcs.nagy@arm.com>
16870
16871 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16872
16873 2018-06-14 Florian Weimer <fweimer@redhat.com>
16874
16875 * scripts/update-abilist.sh: Accept empty list of files to patch.
16876
16877 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16878
16879 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16880 test-xfail-check-abi-libmachuser): Add.
16881 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16882 __libc_read and __libc_write to __read and __write.
16883 * sysdeps/hurd/include/hurd/port.h: New file.
16884 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16885 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16886 __thread_switch, __evc_wait): Move declarations to...
16887 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16888 attribute_hidden.
16889 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16890 use PLT to call _hurd_self_sigstate.
16891
16892 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16893
16894 [BZ #23279]
16895 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16896 MAX_EXP as overflowing.
16897 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16898 overflow flag.
16899 (round_str): Output also whether result overflows in each rounding
16900 mode.
16901 * stdlib/tst-strtod-round-data: Add more tests.
16902 * stdlib/tst-strtod-round-data.h: Regenerated.
16903 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16904 (TEST): Handle extra arguments for overflow flags.
16905 (struct test_overflow): New type.
16906 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16907 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16908 (test_in_one_mode): Take argument with overflow information.
16909 (do_test): Update calls to test_in_one_mode.
16910
16911 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16912
16913 * elf/dl-load (_dl_dst_substitute): Correct comment.
16914 (_dl_dst_count): Likewise.
16915
16916 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16917 lll_futex_timed_wait.
16918
16919 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16920
16921 [BZ #23277]
16922 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16923 attribute.
16924 * math/test-nan-const.c: New file.
16925 * math/Makefile (tests): Add test-nan-const.
16926 (CFLAGS-test-nan-const.c): New variable.
16927
16928 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16929
16930 * benchtests/scripts/compare_strings.py (process_results): Add
16931 funcs argument. Compare only functions which are selected.
16932 (main): Check if base function is among selected functions.
16933 Pass selected functions to process_results.
16934 (__main__): Add -f/--functions argument.
16935
16936 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16937 Hongbo Zhang <hongbo.zhang@linaro.org>
16938
16939 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16940 __memcpy_falkor for phecda core.
16941 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16942 __memmove_falkor for phecda core.
16943 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16944 __memset_falkor for phecda core.
16945 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16946 for phecda core.
16947 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16948 macro to identify phecda core.
16949
16950 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16951 Andreas Schwab <schwab@suse.de>
16952 Dmitry V. Levin <ldv@altlinux.org>
16953 Florian Weimer <fweimer@redhat.com>
16954
16955 [BZ #23102]
16956 [BZ #21942]
16957 [BZ #18018]
16958 [BZ #23259]
16959 CVE-2011-0536
16960 * elf/dl-dst.h: Remove DL_DST_COUNT.
16961 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16962 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16963 (is_dst): Comment. Support ELF gABI.
16964 (_dl_dst_count): Comment. Simplify and count DSTs.
16965 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16966 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16967 locals.
16968
16969 2018-06-12 Zack Weinberg <zackw@panix.com>
16970
16971 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16972 * sysdeps/unix/sysv/linux/dl-sysdep.c
16973 Include not-cancel.h. Use __close_nocancel instead of __close,
16974 __open64_nocancel instead of __open, __read_nocancel instead of
16975 __libc_read, and __write_nocancel instead of __libc_write.
16976
16977 * csu/check_fds.c (check_one_fd)
16978 * sysdeps/posix/fdopendir.c (__fdopendir)
16979 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16980 instead of __fcntl and/or __libc_fcntl.
16981
16982 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16983 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16984 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16985 Use __open64_nocancel instead of __open_nocancel.
16986
16987 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16988 hidden_proto declarations to the end and issue them if either
16989 IS_IN(libc) or IS_IN(rtld).
16990 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16991 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16992 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16993 read_nocancel, waitpid_nocancel, write_nocancel.
16994
16995 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16996 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16997 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16998
16999 * nptl/pt-fcntl.c: New file.
17000 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
17001 (libpthread-routines): Add pt-fcntl.
17002 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
17003 (__libc_fcntl): Remove attribute_hidden.
17004 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
17005 __fcntl_nocancel_adjusted, not fcntl_common.
17006 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
17007 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
17008 to fcntl_nocancel.c.
17009 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
17010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
17011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17012 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
17013
17014 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
17015 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
17016 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
17017 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
17018 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
17019 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
17020 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
17021 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
17022 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
17023 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
17024 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
17025 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
17026 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
17027 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
17028 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
17029 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
17030 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
17031 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
17032 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
17033 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
17034
17035 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
17036 libpthread-routines.
17037 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
17038 defines nothing.
17039
17040 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
17041 __libc_read, and __write instead of __libc_write. Define
17042 __open64 in addition to __open.
17043
17044 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
17045
17046 [BZ #23250]
17047 [BZ #10686]
17048 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
17049 to _private_tm[3] and add __glibc_reserved2.
17050 Add _Static_assert of offset of __private_ss == 0x30.
17051 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
17052 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
17053
17054 2018-06-12 Florian Weimer <fweimer@redhat.com>
17055
17056 x86: Make strncmp usable from rtld.
17057 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
17058 __strncmp_ia32 if in libc (and not in rtld).
17059 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
17060 strncmp if not in libc (and not to __strncmp_sse2).
17061
17062 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
17063
17064 [BZ #23140]
17065 * localedata/locales/gd_GB (mon): Rename to...
17066 (alt_mon): This.
17067 (mon): Import from CLDR (genitive case).
17068 * localedata/locales/hsb_DE (mon): Rename to...
17069 (alt_mon): This.
17070 (mon): Import from CLDR (genitive case).
17071 * localedata/locales/wa_BE (mon): Rename to...
17072 (alt_mon): This.
17073 (mon): Add, fill with the proper genitive forms, but CLDR data
17074 is incomplete; completed according to the comments in this file.
17075 (d_t_fmt): Do not use "di" before the month name, no longer needed.
17076
17077 * localedata/locales/wa_BE (country_name): Reword
17078 "Beljike" -> "Beldjike".
17079
17080 2018-06-11 Joseph Myers <joseph@codesourcery.com>
17081
17082 [BZ #23272]
17083 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
17084 cases of non-finite arguments.
17085 * math/libm-test-fma.inc (fma_test_data): Add more tests.
17086
17087 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
17088
17089 [BZ #23174]
17090 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
17091
17092 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17093
17094 [BZ #23264]
17095 * include/unistd.h (__execvpex): New prototype.
17096 * posix/Makefile (tests): Add tst-spawn4.
17097 (tests-internal): Add tst-spawn4-compat.
17098 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
17099 * posix/tst-spawn4-compat.c: New file.
17100 * posix/tst-spawn4.c: Likewise.
17101 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
17102 binaries as shell scripts.
17103 * sysdeps/posix/spawni.c (__spawni): Likewise.
17104
17105 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
17106
17107 [BZ #23145]
17108 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
17109 ($(all-built-dso:=.dynsym): New target.
17110 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
17111 ($(objpfx)check-initfini.out): New target.
17112 (generated): Add check-initfini.out.
17113 * scripts/check-initfini.awk: New file.
17114 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
17115 (_fini): Likewise.
17116 * sysdeps/alpha/crti.S (_init): Mark as hidden.
17117 (_fini): Likewise.
17118 * sysdeps/arm/crti.S (_init): Mark as hidden.
17119 (_fini): Likewise.
17120 * sysdeps/hppa/crti.S (_init): Mark as hidden.
17121 (_fini): Likewise.
17122 * sysdeps/i386/crti.S (_init): Mark as hidden.
17123 (_fini): Likewise.
17124 * sysdeps/ia64/crti.S (_init): Mark as hidden.
17125 (_fini): Likewise.
17126 * sysdeps/m68k/crti.S (_init): Mark as hidden.
17127 (_fini): Likewise.
17128 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
17129 (_fini): Likewise.
17130 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
17131 (_fini): Likewise.
17132 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
17133 (_fini): Likewise.
17134 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
17135 (_fini): Likewise.
17136 * sysdeps/nios2/crti.S (_init): Mark as hidden.
17137 (_fini): Likewise.
17138 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
17139 (_fini): Likewise.
17140 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
17141 (_fini): Likewise.
17142 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
17143 (_fini): Likewise.
17144 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
17145 (_fini): Likewise.
17146 * sysdeps/sh/crti.S (_init): Mark as hidden.
17147 (_fini): Likewise.
17148 * sysdeps/sparc/crti.S (_init): Mark as hidden.
17149 (_fini): Likewise.
17150 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
17151 (_fini): Likewise.
17152
17153 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17154
17155 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
17156 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
17157 and TF redirection to KFtype and KF only when the default
17158 long double type is not the IEEE 128-bit floating point type.
17159
17160 2018-06-05 Joseph Myers <joseph@codesourcery.com>
17161
17162 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
17163 macro.
17164 (HWCAP_USCAT): Likewise.
17165 (HWCAP_ILRCPC): Likewise.
17166 (HWCAP_FLAGM): Likewise.
17167 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
17168 Increase to 28.
17169 (_dl_aarch64_cap_flags): Add new flag names.
17170
17171 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
17172 (MAP_FIXED_NOREPLACE): New macro.
17173 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
17174 (MAP_FIXED_NOREPLACE): Likewise.
17175 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
17176 (MAP_FIXED_NOREPLACE): Likewise.
17177 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
17178 (MAP_FIXED_NOREPLACE): Likewise.
17179 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
17180 (MAP_FIXED_NOREPLACE): Likewise.
17181 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
17182 (MAP_FIXED_NOREPLACE): Likewise.
17183 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
17184 (MAP_FIXED_NOREPLACE): Likewise.
17185 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
17186 (MAP_FIXED_NOREPLACE): Likewise.
17187 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
17188 (MAP_FIXED_NOREPLACE): Likewise.
17189 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
17190 (MAP_FIXED_NOREPLACE): Likewise.
17191 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
17192 (MAP_FIXED_NOREPLACE): Likewise.
17193 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
17194 (MAP_FIXED_NOREPLACE): Likewise.
17195 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
17196 (MAP_FIXED_NOREPLACE): Likewise.
17197 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
17198 (MAP_FIXED_NOREPLACE): Likewise.
17199 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
17200 (MAP_FIXED_NOREPLACE): Likewise.
17201
17202 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
17203 version to 4.17.
17204
17205 2018-06-04 Joseph Myers <joseph@codesourcery.com>
17206
17207 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17208 version to 4.17
17209
17210 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
17211
17212 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
17213 int.
17214 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
17215
17216 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17217
17218 * benchtests/scripts/compare_string.py: (process_results) Catch
17219 exception in non-existent base_func and catch exception in
17220 non-existent attribute.
17221 (parse_file) Catch exception if input file does not exist.
17222
17223 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17224
17225 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
17226 options to avoid diff calculation and omit header, respectively.
17227 (main): process --no-diff and --no-header
17228
17229 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17230 H.J. Lu <hongjiu.lu@intel.com>
17231
17232 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17233 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
17234 wcsncmp-sse2.
17235 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17236 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
17237 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
17238 and __wcsncmp_sse2.
17239 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
17240 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
17241 AVX unaligned load is fast and vzeroupper is preferred.
17242 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
17243 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
17244 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
17245 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
17246 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
17247 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
17248 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
17249 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
17250 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
17251 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
17252 is undefined.
17253
17254 2018-06-01 Florian Weimer <fweimer@redhat.com>
17255
17256 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
17257 configuring with --disable-multi-arch, building with
17258 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
17259 Haswell-era CPU.
17260
17261 2018-06-01 Florian Weimer <fweimer@redhat.com>
17262
17263 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
17264 results from building with “-march=x86-64 -mtune=generic
17265 -mfpmath=sse” and running on a Haswell-era CPU.
17266
17267 2018-06-01 Joseph Myers <joseph@codesourcery.com>
17268
17269 [BZ #18473]
17270 * soft-fp/sqrttf2.c: Remove file.
17271 * soft-fp/sqrtdf2.c: Move to ....
17272 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
17273 <shlib-compat.h>.
17274 (__sqrtdf2): Make conditional on
17275 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
17276 symbol.
17277 * soft-fp/sqrtsf2.c: Move to ....
17278 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
17279 <shlib-compat.h>.
17280 (__sqrtsf2): Make conditional on
17281 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
17282 symbol.
17283 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
17284 (gcc-double-routines): Remove sqrtdf2.
17285 (gcc-quad-routines): Remove sqrttf2.
17286 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17287 Do not filter out sqrtsf2 and sqrtdf2.
17288 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
17289 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
17290
17291 2018-06-01 Florian Weimer <fweimer@redhat.com>
17292
17293 * sysdeps/generic/libcidn.abilist: Remove file.
17294
17295 2018-06-01 Florian Weimer <fweimer@redhat.com>
17296
17297 [BZ #23236]
17298 * libio/strfile.h (struct _IO_str_fields): Rename members to
17299 discourage their use and add comment.
17300 (_IO_STR_DYNAMIC): Remove unused macro.
17301 * libio/strops.c (_IO_str_init_static_internal): Do not use
17302 callback pointers. Call malloc and free.
17303 (_IO_str_overflow): Do not use callback pointers. Call malloc
17304 and free.
17305 (enlarge_userbuf): Likewise.
17306 (_IO_str_finish): Call free.
17307 * libio/wstrops.c (_IO_wstr_init_static): Initialize
17308 _allocate_buffer_unused.
17309 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
17310 and free.
17311 (enlarge_userbuf): Likewise.
17312 (_IO_wstr_finish): Call free.
17313 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
17314 _allocate_buffer_unused, _free_buffer_unused.
17315 * libio/memstream.c (__open_memstream): Likewise.
17316 * libio/vasprintf.c (_IO_vasprintf): Likewise.
17317 * libio/wmemstream.c (open_wmemstream): Likewise.
17318
17319 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
17320
17321 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
17322 AMD Ryzen 7 1800X.
17323
17324 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17325
17326 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
17327 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
17328 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
17329 New file.
17330 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
17331 Likewise.
17332 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
17333
17334 2018-05-29 Florian Weimer <fweimer@redhat.com>
17335
17336 * support/Makefile (libsupport-routines): Add
17337 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
17338 xpthread_barrierattr_setpshared.
17339 * support/xpthread_barrierattr_destroy.c: New file.
17340 * support/xpthread_barrierattr_init.c: Likewise.
17341 * support/xpthread_barrierattr_setpshared.c: Likewise.
17342
17343 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
17344
17345 [BZ #23206]
17346 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
17347 _r_debug and update DT_DEBUG for debugger.
17348
17349 2018-05-29 Florian Weimer <fweimer@redhat.com>
17350
17351 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
17352 (tst-strtod5i.out): Likewise.
17353
17354 2018-05-25 Joseph Myers <joseph@codesourcery.com>
17355
17356 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
17357 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
17358 (sparc64-quad-routines): New variable. Moved from ....
17359 [$(subdir) = soft-fp] (sysdep_routines): Add
17360 $(sparc64-quad-routines). Moved from ....
17361 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
17362 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
17363 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
17364 moved from ....
17365 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
17366 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
17367 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
17368 * sysdeps/sparc/sparc64/qp_add.c: ... here.
17369 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
17370 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
17371 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
17372 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
17373 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
17374 * sysdeps/sparc/sparc64/qp_div.c: ... here.
17375 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
17376 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
17377 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
17378 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
17379 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
17380 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
17381 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
17382 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
17383 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
17384 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
17385 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
17386 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
17387 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
17388 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
17389 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
17390 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
17391 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
17392 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
17393 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
17394 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
17395 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
17396 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
17397 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
17398 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
17399 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
17400 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
17401 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
17402 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
17403 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
17404 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
17405 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
17406 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
17407 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
17408 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
17409 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
17410 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
17411 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
17412 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
17413 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
17414 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
17415 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
17416 * sysdeps/sparc/sparc64/qp_util.c: ... here.
17417 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
17418 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
17419 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
17420 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
17421 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
17422 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
17423
17424 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
17425 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
17426 (sparc32-quad-routines): New variable. Moved from ....
17427 [$(subdir) = soft-fp] (sysdep_routines): Add
17428 $(sparc32-quad-routines). Moved from ....
17429 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
17430 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
17431 moved from ....
17432 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
17433 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
17434 * sysdeps/sparc/sparc32/q_add.c: ... here.
17435 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
17436 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
17437 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
17438 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
17439 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
17440 * sysdeps/sparc/sparc32/q_div.c: ... here.
17441 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
17442 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
17443 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
17444 * sysdeps/sparc/sparc32/q_feq.c: ... here.
17445 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
17446 * sysdeps/sparc/sparc32/q_fge.c: ... here.
17447 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
17448 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
17449 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
17450 * sysdeps/sparc/sparc32/q_fle.c: ... here.
17451 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
17452 * sysdeps/sparc/sparc32/q_flt.c: ... here.
17453 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
17454 * sysdeps/sparc/sparc32/q_fne.c: ... here.
17455 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
17456 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
17457 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
17458 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
17459 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
17460 * sysdeps/sparc/sparc32/q_mul.c: ... here.
17461 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
17462 * sysdeps/sparc/sparc32/q_neg.c: ... here.
17463 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
17464 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
17465 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
17466 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
17467 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
17468 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
17469 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
17470 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
17471 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
17472 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
17473 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
17474 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
17475 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
17476 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
17477 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
17478 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
17479 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
17480 * sysdeps/sparc/sparc32/q_sub.c: ... here.
17481 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
17482 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
17483 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
17484 * sysdeps/sparc/sparc32/q_util.c: ... here.
17485 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
17486 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
17487 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
17488 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
17489
17490 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17491 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17492
17493 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
17494 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
17495 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
17496 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
17497
17498 2018-05-24 Joseph Myers <joseph@codesourcery.com>
17499
17500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
17501 powerpc/soft-fp.
17502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
17503 Likewise.
17504 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
17505 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
17506
17507 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17508
17509 [BZ #23171]
17510 * math/math.h [C++] (iseqsig): Fix parameter type for the long
17511 double version.
17512
17513 2018-05-23 Joseph Myers <joseph@codesourcery.com>
17514
17515 * sysdeps/sh/Implies: Remove sh/soft-fp.
17516 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
17517 * sysdeps/sh/sfp-machine.h: ... here.
17518
17519 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17520
17521 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17522 (__mempcpy_erms): Skip zero length.
17523 (__memmove_erms): Likewise.
17524 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17525 (__memset_erms): Likewise.
17526
17527 2018-05-23 Joseph Myers <joseph@codesourcery.com>
17528
17529 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
17530 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17531 Add functions moved from ....
17532 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
17533 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
17534 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
17535 from ....
17536 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
17537 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
17538 * sysdeps/alpha/e_sqrtl.c: ... here.
17539 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
17540 * sysdeps/alpha/local-soft-fp.h: ... here.
17541 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
17542 * sysdeps/alpha/ots_add.c: ... here.
17543 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
17544 * sysdeps/alpha/ots_cmp.c: ... here.
17545 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
17546 * sysdeps/alpha/ots_cmpe.c: ... here.
17547 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
17548 * sysdeps/alpha/ots_cvtqux.c: ... here.
17549 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
17550 * sysdeps/alpha/ots_cvtqx.c: ... here.
17551 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
17552 * sysdeps/alpha/ots_cvttx.c: ... here.
17553 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
17554 * sysdeps/alpha/ots_cvtxq.c: ... here.
17555 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
17556 * sysdeps/alpha/ots_cvtxt.c: ... here.
17557 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
17558 * sysdeps/alpha/ots_div.c: ... here.
17559 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
17560 * sysdeps/alpha/ots_mul.c: ... here.
17561 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
17562 * sysdeps/alpha/ots_nintxq.c: ... here.
17563 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
17564 * sysdeps/alpha/ots_sub.c: ... here.
17565 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
17566 * sysdeps/alpha/sfp-machine.h: ... here.
17567
17568 2018-05-23 Florian Weimer <fweimer@redhat.com>
17569
17570 [BZ #19728]
17571 [BZ #19729]
17572 [BZ #22247]
17573 CVE-2016-6261
17574 CVE-2016-6263
17575 CVE-2017-14062
17576 Switch to extern IDNA implementation (libidn2).
17577 * libidn: Remove subdirectory.
17578 * LICENSES: Do not mention licensing conditions for the removed
17579 libidn code.
17580 * config.h.in (HAVE_LIBIDN): Remove.
17581 * include/dlfcn.h (__libc_dlopen): Update comment.
17582 * include/idna.h: Remove file.
17583 * inet/Makefile (routines): Add idna.
17584 (tests-static, tests-internal): Add tst-idna_name_classify.
17585 (LOCALES): Generate locales for tests.
17586 (tst-idna_name_classify.out): Depend on generated locales.
17587 * inet/idna_name_classify.c: New file.
17588 * inet/tst-idna_name_classify.c: Likewise.
17589 * inet/net-internal.h (__idna_to_dns_encoding)
17590 (__idna_from_dns_encoding): Declare.
17591 * inet/net-internal.h (enum idna_name_classification): Define.
17592 (__idna_name_classify): Declare.
17593 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
17594 __idna_from_dns_encoding.
17595 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
17596 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
17597 name as a fallback in case of encoding errors.
17598 (getnameinfo): Use DEPRECATED_NI_IDN.
17599 * inet/idna.c: New file.
17600 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
17601 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
17602 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
17603 (modules-names): Add tst-no-libidn2.
17604 (extra-test-objs): Add tst-no-libidn2.os.
17605 (LDFLAGS-tst-no-libidn2.so): Set soname.
17606 (LOCALES): Set, and generate locales.
17607 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
17608 (tst-resolv-ai_idn-latin1): Likewise.
17609 (tst-resolv-ai_idn-nolibidn2): Likewise.
17610 (tst-resolv-ai_idn.out): Depend on locales.
17611 (tst-resolv-ai_idn-latin1.out): Depend on locales.
17612 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
17613 tst-no-libidn2.so.
17614 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17615 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17616 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17617 * resolv/tst-resolv-ai_idn.c: New file.
17618 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17619 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17620 * resolv/tst-no-libidn2.c: Likewise.
17621 * support/support_format_addrinfo.c (format_ai_flags): Do not
17622 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17623 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17624 (gaih_inet): Call __idna_to_dns_encoding and
17625 __idna_from_dns_encoding, and use the original (punycode) name if
17626 __idna_from_dns_encoding fails due to an encoding error.
17627 (getaddrinfo): Use DEPRECATED_AI_IDN.
17628 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17629 * sysdeps/unix/inet/configure: Remove file.
17630 * sysdeps/unix/inet/configure.ac: Likewise.
17631
17632 2018-05-23 Florian Weimer <fweimer@redhat.com>
17633
17634 Implement allocate_once.
17635 * include/allocate_once.h: New file.
17636 * misc/allocate_once.c: Likewise.
17637 * misc/tst-allocate_once.c: Likewise.
17638 * misc/Makefile (routines): Add allocate_once.
17639 (tests-internal): Add tst-allocate_once.
17640 (generated): Add tst-allocate_once.mtrace,
17641 tst-allocate_once-mem.out.
17642 (tests-special): Add tst-allocate_once-mem.out.
17643 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17644 (tst-allocate_once-mem.out): Call mtrace.
17645 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17646
17647 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17648
17649 [BZ #23196]
17650 * string/test-memcpy.c (do_test1): New function.
17651 (test_main): Call it.
17652
17653 2018-05-23 Andreas Schwab <schwab@suse.de>
17654
17655 [BZ #23196]
17656 CVE-2018-11237
17657 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17658 (L(preloop_large)): Save initial destination pointer in %r11 and
17659 use it instead of %rax after the loop.
17660 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17661
17662 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17663
17664 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17665 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17666 -I../soft-fp. Moved from ....
17667 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17668 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17669 * sysdeps/aarch64/e_sqrtl.c: ... here.
17670 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17671 * sysdeps/aarch64/sfp-machine.h: ... here.
17672
17673 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17674 -Wmaybe-uninitialized around access to fq[0].
17675 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17676 Likewise.
17677
17678 [BZ #18471]
17679 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17680 aliases for non-libc case of versioned symbols.
17681 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17682 (llseek): Define as compat symbol if
17683 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17684 with link warning.
17685 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17686 Make into a compat symbol, disabled for minimum symbol version
17687 GLIBC_2.28 and later.
17688 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17689
17690 2018-05-22 Florian Weimer <fweimer@redhat.com>
17691
17692 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17693 not add -mpreferred-stack-boundary=4.
17694 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17695 (stack-align-test-flags): Likewise.
17696 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17697 Likewise.
17698 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17699 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17700 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17701 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17702 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17703 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17704 (CFLAGS-tst-align2.c): Likewise.
17705
17706 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17707
17708 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17709 (index_arch_Prefer_FSRM): Likewise.
17710 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17711 Also check Prefer_FSRM.
17712 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17713 Also return OPTIMIZE (erms) for Prefer_FSRM.
17714
17715 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17716
17717 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17718 (index_cpu_FSRM): Likewise.
17719 (reg_FSRM): Likewise.
17720
17721 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17722
17723 * math/gen-tgmath-tests.py: Import sys.
17724 (Tests.__init__): Initialize macros_seen.
17725 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17726 if requested to do so for this macro.
17727 (Tests.add_all_tests): Take argument for macro for which to
17728 generate tests.
17729 (Tests.check_macro_list): New function.
17730 (main): Handle check-list argument and argument specifying macro
17731 for which to generate tests.
17732 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17733 [PYTHON] (tgmath3-macro-tests): Likewise.
17734 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17735 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17736 not test-tgmath3.c.
17737 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17738 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17739 to CFLAGS.
17740 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17741 [PYTHON] ($(foreach
17742 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17743 rule.
17744 [PYTHON] (tests-special): Add
17745 $(objpfx)test-tgmath3-macro-list.out.
17746 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17747
17748 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17749 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17750 later.
17751
17752 [BZ #22639]
17753 * time/tzset.c (SECSPERDAY): Cast to time_t.
17754 * time/tst-y2039.c: New file.
17755 * time/Makefile (tests): Add tst-y2039.
17756
17757 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17758
17759 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17760 (PREFETCH_ONE_SET): Remove duplicate line.
17761
17762 2018-05-17 Florian Weimer <fweimer@redhat.com>
17763
17764 * sysdeps/generic/math-type-macros-double.h: Include
17765 <math-nan-payload-double.h> after <libm-alias-double.h>.
17766 * sysdeps/generic/math-type-macros-float.h: Include
17767 <math-nan-payload-float.h> after <libm-alias-float.h>.
17768 * sysdeps/generic/math-type-macros-float128.h: Include
17769 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17770 * sysdeps/generic/math-type-macros-ldouble.h: Include
17771 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17772
17773 2018-05-17 Andreas Schwab <schwab@suse.de>
17774
17775 * resolv/res_send.c (__res_context_send): Don't set errno when
17776 returing error after malloc failure.
17777
17778 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17779
17780 * nptl/allocatestack.c (allocate_stack): Remove the
17781 !__ASSUME_PRIVATE_FUTEX paths.
17782 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17783 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17784 Likewise.
17785 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17786 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17787 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17788 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17789 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17790 !__ASSUME_PRIVATE_FUTEX path.
17791 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17792 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17793 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17794 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17795 !__ASSUME_PRIVATE_FUTEX macros.
17796 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17797 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17798 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17799 * sysdeps/unix/sysv/linux/kernel-features.h
17800 (__ASSUME_PRIVATE_FUTEX): Removed.
17801
17802 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17803
17804 * math/Makefile (libm-narrow-fns): Add div.
17805 (libm-test-funcs-narrow): Likewise.
17806 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17807 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17808 * math/gen-auto-libm-tests.c (test_functions): Add div.
17809 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17810 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17811 (NARROW_DIV_TRIVIAL): Likewise.
17812 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17813 macro.
17814 (__ddivl): Likewise.
17815 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17816 ddiv.
17817 (CFLAGS-nldbl-ddiv.c): New variable.
17818 (CFLAGS-nldbl-fdiv.c): Likewise.
17819 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17820 __nldbl_ddivl.
17821 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17822 prototype.
17823 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17824 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17825 * math/auto-libm-test-in: Add tests of div.
17826 * math/auto-libm-test-out-narrow-div: New generated file.
17827 * math/libm-test-narrow-div.inc: New file.
17828 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17829 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17830 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17831 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17832 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17833 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17834 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17835 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17836 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17837 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17838 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17839 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17840 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17841 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17842 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17843 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17844 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17845 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17846 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17847 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17849 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17850 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17851 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17852 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17853 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17872
17873 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17874
17875 [BZ #23178]
17876 * nscd/nscd-client.h (sendfileall): Remove prototype.
17877 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17878 (handle_request): Use writeall instead of sendfileall.
17879 * nscd/aicache.c (addhstaiX): Likewise.
17880 * nscd/grpcache.c (cache_addgr): Likewise.
17881 * nscd/hstcache.c (cache_addhst): Likewise.
17882 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17883 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17884 * nscd/pwdcache.c (cache_addpw): Likewise.
17885 * nscd/servicescache.c (cache_addserv): Likewise.
17886 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17887 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17888 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17889 Remove define.
17890
17891 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17892
17893 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17894 Include <string/strncat.c>.
17895 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17896 alias.
17897 (__GI___strncat): New hidden alias.
17898
17899 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17900
17901 * sysdeps/mips/mips32/libm-test-ulps: Update.
17902 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17903
17904 2018-05-16 Florian Weimer <fweimer@redhat.com>
17905
17906 * support/Makefile (libsupport-routines): Add support_quote_blob,
17907 support_test_compare_blob.
17908 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17909 * support/check.h (TEST_COMPARE_BLOB): Define.
17910 (support_test_compare_blob): Declare.
17911 * support/support.h (support_quote_blob): Declare.
17912 * support/support_quote_blob.c: New file.
17913 * support/support_test_compare_blob.c: Likewise.
17914 * support/tst-support_quote_blob.c: Likewise.
17915 * support/tst-test_compare_blob.c: Likewise.
17916
17917 2018-05-16 Florian Weimer <fweimer@redhat.com>
17918
17919 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17920 of <strtod_nan_double.h>.
17921 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17922 instead of SET_MANTISSA.
17923 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17924 of include <strtod_nan_float.h>.
17925 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17926 instead of <strtod_nan_ldouble.h>.
17927 * stdlib/strtod_nan_double.h: Move to ...
17928 * sysdeps/generic/math-nan-payload-double.h: ... here.
17929 (FLOAT): Remove definition.
17930 (SET_MANTISSA): Rename to ...
17931 (SET_NAN_PAYLOAD): ... this.
17932 * stdlib/strtod_nan_float.h: Move to ...
17933 * sysdeps/generic/math-nan-payload-float.h: ... here.
17934 (FLOAT): Remove definition.
17935 (SET_MANTISSA): Rename to ...
17936 (SET_NAN_PAYLOAD): ... this.
17937 * sysdeps/generic/math-type-macros-double.h: Include
17938 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17939 instead of <math-svid-compat.h>.
17940 * sysdeps/generic/math-type-macros-float.h: Include
17941 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17942 instead of <math-svid-compat.h>.
17943 * sysdeps/generic/math-type-macros-float128.h: Include
17944 <math-nan-payload-float128.h>.
17945 * sysdeps/generic/math-type-macros-ldouble.h: Include
17946 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17947 instead of <math-svid-compat.h>.
17948 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17949 check for definition.
17950 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17951 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17952 Include <ieee754_float128.h>.
17953 (FLOAT): Remove definition.
17954 (SET_MANTISSA): Rename to ...
17955 (SET_NAN_PAYLOAD): ... this.
17956 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17957 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17958 Do not include <float128_private.h>.
17959 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17960 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17961 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17962 (FLOAT): Remove definition.
17963 (SET_MANTISSA): Rename to ...
17964 (SET_NAN_PAYLOAD): ... this.
17965 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17966 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17967 (FLOAT): Remove definition.
17968 (SET_MANTISSA): Rename to ...
17969 (SET_NAN_PAYLOAD): ... this.
17970 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17971 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17972 (FLOAT): Remove definition.
17973 (SET_MANTISSA): Rename to ...
17974 (SET_NAN_PAYLOAD): ... this.
17975 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17976 of "../stdlib/strtod_nan_double.h".
17977 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17978 of "../stdlib/strtod_nan_float.h".
17979 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17980 instead of "../stdlib/strtod_nan_ldouble.h".
17981 * manual/arith.texi (Parsing of Floats): Adjust comment.
17982
17983 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17984
17985 * math/Makefile (libm-narrow-fns): Add mul.
17986 (libm-test-funcs-narrow): Likewise.
17987 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17988 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17989 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17990 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17991 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17992 (NARROW_MUL_TRIVIAL): Likewise.
17993 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17994 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17995 macro.
17996 (__dmull): Likewise.
17997 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17998 dmul.
17999 (CFLAGS-nldbl-dmul.c): New variable.
18000 (CFLAGS-nldbl-fmul.c): Likewise.
18001 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18002 __nldbl_dmull.
18003 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
18004 prototype.
18005 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
18006 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
18007 * math/auto-libm-test-in: Add tests of mul.
18008 * math/auto-libm-test-out-narrow-mul: New generated file.
18009 * math/libm-test-narrow-mul.inc: New file.
18010 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
18011 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
18012 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
18013 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
18014 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
18015 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
18016 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
18017 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
18018 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
18019 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
18020 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
18021 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
18022 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
18023 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
18024 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
18025 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
18026 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
18027 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
18028 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18029 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18030 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18033 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18034 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18036 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18037 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18040 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18041 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18046 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18047 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18048 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18049 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18050 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18051 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18052 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18053 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18054
18055 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
18056
18057 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18058 with *%eax in call.
18059
18060 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
18061
18062 * sysdeps/i386/ldsodefs.h: Removed.
18063 * sysdeps/x86_64/ldsodefs.h: Moved to ...
18064 * sysdeps/x86/ldsodefs.h: This.
18065 (La_i86_regs): New.
18066 (La_i86_retval): Likewise.
18067 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
18068 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
18069
18070 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
18071
18072 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
18073 unnecessary testl.
18074
18075 2018-05-13 Alan Modra <amodra@gmail.com>
18076
18077 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
18078 R_PARISC_TLS_DTPOFF32 reloc addend.
18079
18080 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18081
18082 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
18083 * math/math.h: Restrict the prototype definition for the functions
18084 issignaling(_Float128) and iszero(_Float128); and template
18085 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
18086 __HAVE_FLOAT128_UNLIKE_LDBL.
18087 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
18088 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18089 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
18090 __f128() constants; define the type _Float128 as long double;
18091 and reuse long double in __CFLOAT128.
18092
18093 2018-05-11 Joseph Myers <joseph@codesourcery.com>
18094
18095 * sysdeps/generic/math_private.h: Do not include
18096 <math-barriers.h>.
18097 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
18098 <math_private.h>.
18099 * math/fromfp.h: Include <math-barriers.h>.
18100 * math/math-narrow.h: Likewise.
18101 * math/s_nextafter.c: Likewise.
18102 * math/s_nexttowardf.c: Likewise.
18103 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
18104 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
18105 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
18106 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
18107 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
18108 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
18109 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
18110 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
18111 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18112 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
18113 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18114 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
18115 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
18116 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18117 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
18118 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
18119 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18120 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
18121 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
18122 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18123 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
18124 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18125 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18126 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
18127 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
18128 * sysdeps/ieee754/k_standardl.c: Likewise.
18129 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18130 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
18131 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
18132 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
18133 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
18134 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
18135 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
18136 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
18137 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18138 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
18139 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
18140 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
18141 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
18142 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
18143 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18144 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
18145 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
18146 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
18147 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
18148 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
18149 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
18150 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
18151
18152 2018-05-11 Florian Weimer <fweimer@redhat.com>
18153
18154 Use 64-bit epoch values in the time zone file parser.
18155 * include/time.h (internal_time_t): Define.
18156 (__tzfile_compute): Use it.
18157 * time/tzfile.c (struct leap): Use internal_time_t for epoch
18158 member.
18159 (transitions): Switch to internal_time_t.
18160 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
18161 types.
18162 (__tzfile_compute): Use internal_time_t for timer argument. Check
18163 for truncation before calling __offtime.
18164
18165 2018-05-11 Florian Weimer <fweimer@redhat.com>
18166
18167 [BZ #23166]
18168 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
18169 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
18170 Likewise.
18171 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
18172 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
18173 export without --enable-obsolete-rpc.
18174 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
18175 symbol. This should not have been exported, ever.
18176
18177 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
18178
18179 [BZ #23152]
18180 * localedata/locales/gd_GB (abmon): Fix typo in May:
18181 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
18182
18183 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
18184
18185 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
18186 Use multiple registers to copy data in loop tail.
18187
18188 * sysdeps/aarch64/multiarch/memmove_falkor.S
18189 (__memmove_falkor): Use multiple registers to move data in
18190 loop tail.
18191
18192 2018-05-10 Joseph Myers <joseph@codesourcery.com>
18193
18194 * math/math-underflow.h: New file.
18195 * sysdeps/generic/math_private.h: Do not include <float.h>.
18196 (fabs_tg): Remove macro. Moved to math-underflow.h.
18197 (min_of_type_f): Likewise.
18198 (min_of_type_): Likewise.
18199 (min_of_type_l): Likewise.
18200 (min_of_type_f128): Likewise.
18201 (min_of_type): Likewise.
18202 (math_check_force_underflow): Likewise.
18203 (math_check_force_underflow_nonneg): Likewise.
18204 (math_check_force_underflow_complex): Likewise.
18205 * math/e_exp2_template.c: Include <math-underflow.h>.
18206 * math/k_casinh_template.c: Likewise.
18207 * math/s_catan_template.c: Likewise.
18208 * math/s_catanh_template.c: Likewise.
18209 * math/s_ccosh_template.c: Likewise.
18210 * math/s_cexp_template.c: Likewise.
18211 * math/s_clog10_template.c: Likewise.
18212 * math/s_clog_template.c: Likewise.
18213 * math/s_csin_template.c: Likewise.
18214 * math/s_csinh_template.c: Likewise.
18215 * math/s_csqrt_template.c: Likewise.
18216 * math/s_ctan_template.c: Likewise.
18217 * math/s_ctanh_template.c: Likewise.
18218 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
18219 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18220 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
18221 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18222 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
18223 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18224 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18225 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
18226 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18227 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
18228 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
18229 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18230 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
18231 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
18232 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
18233 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
18234 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
18235 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
18236 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
18237 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18238 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18239 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18240 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18241 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18242 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
18243 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
18244 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
18245 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
18246 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18247 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
18248 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
18249 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
18250 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
18251 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
18252 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
18253 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
18254 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
18255 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
18256 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18257 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
18258 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
18259 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
18260 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
18261 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
18262 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
18263 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
18264 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
18265 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
18266 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
18267 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
18268 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
18269 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
18270 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
18271 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
18272 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18273 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
18274 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
18275 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
18276 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
18277 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
18278 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
18279 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
18280 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
18281 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
18282 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
18283 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
18284 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
18285 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
18286 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
18287 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
18288 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18289 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
18290 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
18291 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
18292 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
18293 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18294 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18295 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18296 * sysdeps/x86/fpu/powl_helper.c: Likewise.
18297 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
18298 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
18299 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
18300 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
18301 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
18302
18303 2018-05-09 Joseph Myers <joseph@codesourcery.com>
18304
18305 * sysdeps/generic/math-barriers.h: New file.
18306 * sysdeps/generic/math_private.h [!math_opt_barrier]
18307 (math_opt_barrier): Move to math-barriers.h.
18308 [!math_opt_barrier] (math_force_eval): Likewise.
18309 * sysdeps/aarch64/fpu/math-barriers.h: New file.
18310 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
18311 math-barriers.h.
18312 (math_force_eval): Likewise.
18313 * sysdeps/alpha/fpu/math-barriers.h: New file.
18314 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
18315 math-barriers.h.
18316 (math_force_eval): Likewise.
18317 * sysdeps/x86/fpu/math-barriers.h: New file.
18318 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
18319 math-barriers.h.
18320 (math_force_eval): Likewise.
18321 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
18322 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
18323 multiple-include guard for rename.
18324 * sysdeps/powerpc/fpu/math-barriers.h: New file.
18325 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
18326 math-barriers.h.
18327 (math_force_eval): Likewise.
18328
18329 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
18330
18331 [BZ #22786]
18332 CVE-2018-11236
18333 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
18334 computation.
18335 * stdlib/Makefile (test-bz22786): New test.
18336 * stdlib/test-bz22786.c: New test.
18337
18338 2018-05-09 Joseph Myers <joseph@codesourcery.com>
18339
18340 * include/math-narrow-eval.h: New file. Contents moved from ....
18341 * sysdeps/generic/math_private.h: ... here.
18342 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
18343 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
18344 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
18345 * stdlib/strtod_l.c: Likewise.
18346 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18347 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
18348 * sysdeps/i386/fpu/s_fdim.c: Likewise.
18349 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18350 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18351 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18352 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18353 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18354 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18355 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18356 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18357 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
18358 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18359 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18360 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18361 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18362 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
18363 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
18364 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18365 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18366 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18367 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18368 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18369 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18370 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18371 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18372 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18373 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18374 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18375
18376 2018-05-08 Andreas Schwab <schwab@suse.de>
18377
18378 * sysdeps/nptl/internaltypes.h: Fix comment.
18379
18380 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
18381
18382 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
18383 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
18384 hidden.
18385
18386 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
18387
18388 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
18389 of I into loop header.
18390 * benchtests/bench-memmove-walk.c
18391 (test_main): Likewise.
18392
18393 2018-05-07 Alexandre Oliva <oliva@gnu.org>
18394
18395 Revert:
18396 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18397 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18398
18399 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
18400
18401 [BZ #20419]
18402 * elf/dl-load.c (open_verify): Fix stack overflow.
18403 * elf/Makefile (tst-big-note): New test.
18404 * elf/tst-big-note-lib.S: New.
18405 * elf/tst-big-note.c: New.
18406
18407 2018-05-04 Joseph Myers <joseph@codesourcery.com>
18408
18409 * scripts/abilist.awk: Ignore absolute symbols.
18410 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
18411 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
18412 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
18413 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
18414 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
18415 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
18416 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18417 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
18418 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
18419 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
18420 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
18421 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
18422 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
18423 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
18424 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
18425 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
18426 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
18427 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
18428 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18429 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
18430 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
18431 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
18432 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
18433 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
18434 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
18435 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
18436 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
18437 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
18438 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18439 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
18440 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
18441 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18442 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
18443 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
18444 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
18445 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
18446 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
18447 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
18448 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
18449 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
18450 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
18451 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18452 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
18453 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
18454 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18455 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
18456 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
18457 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
18458 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
18459 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
18460 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
18461 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
18462 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
18463 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
18464 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18465 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
18466 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
18467 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18468 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
18469 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
18470 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
18471 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
18472 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
18473 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
18474 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
18475 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
18476 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
18477 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18478 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
18479 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
18480 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18481 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
18482 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
18483 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
18484 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
18485 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
18486 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
18487 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
18488 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
18489 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
18490 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18491 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
18492 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
18493 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18494 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
18495 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
18496 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
18497 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
18498 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
18499 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
18500 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
18501 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
18502 Likewise.
18503 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
18504 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18505 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
18506 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
18507 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18508 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
18509 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
18510 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
18511 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
18512 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
18513 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
18514 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
18515 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
18516 Likewise.
18517 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
18518 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18519 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
18520 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
18521 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18522 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
18523 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
18524 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
18525 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
18526 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
18527 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
18528 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
18529 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
18530 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
18531 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18532 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
18533 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
18534 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18535 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
18536 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
18537 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
18538 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
18539 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
18540 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
18541 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18542 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
18543 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
18544 Likewise.
18545 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
18546 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
18547 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
18548 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
18549 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18550 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
18551 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
18552 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
18553 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
18554 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
18555 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
18556 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
18557 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
18558 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
18559 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
18560 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
18561 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
18562 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
18563 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
18564 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
18565 Likewise.
18566 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
18567 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
18568 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
18569 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18570 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
18571 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
18572 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
18573 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
18574 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
18575 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
18576 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18577 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
18578 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
18579 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18580 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
18581 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
18582 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
18583 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
18584 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18585 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
18586 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
18587 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18588 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
18589 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
18590 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
18591 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
18592 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
18593 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
18594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
18595 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
18597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
18598 Likewise.
18599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
18600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
18601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
18602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
18603 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
18604 Likewise.
18605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
18606 Likewise.
18607 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
18608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
18609 Likewise.
18610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
18611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18612 Likewise.
18613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18614 Likewise.
18615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18618 Likewise.
18619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18620 Likewise.
18621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18622 Likewise.
18623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18627 Likewise.
18628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18634 Likewise.
18635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18637 Likewise.
18638 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18639 Likewise.
18640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18641 Likewise.
18642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18643 Likewise.
18644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18645 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18647 Likewise.
18648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18649 Likewise.
18650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18651 Likewise.
18652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18653 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18654 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18655 Likewise.
18656 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18657 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18658 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18659 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18660 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18661 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18662 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18663 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18664 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18665 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18666 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18667 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18668 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18669 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18670 Likewise.
18671 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18672 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18673 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18674 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18675 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18676 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18677 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18678 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18679 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18680 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18681 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18682 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18683 Likewise.
18684 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18685 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18686 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18687 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18688 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18689 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18690 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18691 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18692 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18693 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18694 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18695 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18696 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18697 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18698 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18699 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18700 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18701 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18702 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18703 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18704 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18705 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18706 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18707 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18708 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18709 Likewise.
18710 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18711 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18712 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18713 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18714 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18715 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18716 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18717 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18718 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18719 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18720 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18721 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18722 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18723 Likewise.
18724 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18725 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18726 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18727 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18728 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18729 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18730 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18731 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18732 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18733 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18734 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18735 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18736 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18737 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18738 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18739 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18740 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18741 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18742 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18743 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18744 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18745 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18746 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18747 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18748 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18749 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18750 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18751 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18752 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18753 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18754 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18755 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18756 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18757 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18758 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18759 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18760 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18761 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18762
18763 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18764
18765 [BZ #23137]
18766 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18767 Use atomic_load_acquire to load __tid.
18768
18769 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18770
18771 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18772 Restore the pointer into %rdx, after syscall and use %rdx,
18773 instead of %rsi, to restore context.
18774
18775 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18776
18777 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18778 Pop the pointer into %rdx after syscall and use %rdx, instead
18779 of %rsi, to restore context.
18780
18781 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18782
18783 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18784 handlers after setjmp.
18785 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18786 defined.
18787 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18788 <libc-pointer-arith.h>.
18789 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18790 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18791 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18792 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18793 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18794 * sysdeps/x86/__longjmp_cancel.S: New file.
18795 * sysdeps/x86/longjmp.c: Likewise.
18796 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18797
18798 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18799
18800 * NEWS: Add ustat.h deprecation entry.
18801 * bits/ustat.h: Remove file.
18802 * misc/sys/ustat.h: Likewise.
18803 * misc/ustat.h: Likewise.
18804 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18805 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18806 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18807 compatibility mode.
18808 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18809 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18810 generic Linux implementation.
18811
18812 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18813
18814 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18815 * math/w_expl_compat.c: Likewise.
18816 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18817
18818 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18819
18820 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18821
18822 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18823
18824 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18825 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18826 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18827 Remove.
18828 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18830 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18831 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18832 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18833 and SYSCALL_LL64.
18834
18835 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18836
18837 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18838
18839 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18840 * math/w_asin_template.c: Likewise.
18841 * math/w_atanh_template.c: Likewise.
18842
18843 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18844
18845 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18846 to powerpc/powerpc64/be for big-endian.
18847 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18848 little-endian.
18849
18850 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18851 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18852 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18853 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18854 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18855 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18856 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18857 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18858 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18859 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18860 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18861 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18862 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18863 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18864 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18865 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18866 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18867 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18868 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18869 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18870 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18871 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18872 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18873 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18874 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18875 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18876 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18877 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18878 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18879 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18880 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18881 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18882
18883 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18884 adjusted to imply powerpc64 and older processors on powerpc64/be.
18885 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18886 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18887 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18888 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18889 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18890 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18891 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18892 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18893 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18894 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18895 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18896 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18897 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18898 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18899 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18900 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18901 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18902 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18903 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18904 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18905 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18906 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18907 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18908 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18909 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18910 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18911 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18912 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18913 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18914 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18915 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18916
18917 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18918 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18919 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18920 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18921
18922 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18923 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18924 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18925 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18926
18927 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18928 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18929 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18930 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18931 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18932 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18933 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18934 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18935 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18936 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18937 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18938
18939 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18940 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18941 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18942 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18943 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18944 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18945 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18946 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18947 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18948 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18949 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18950
18951 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18952 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18953 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18954 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18955 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18956 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18957 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18958 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18959 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18960 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18961 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18962 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18963
18964 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18965 and adjusted to imply olders processors.
18966 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18967 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18968 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18969 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18970 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18971 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18972 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18973 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18974 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18975 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18976 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18977
18978 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18979 powerpc64/le.
18980 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18981 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18982
18983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18984 powerpc64le.
18985 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18987
18988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18989 powerpc64/be.
18990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18993
18994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18995 powerpc64 and adjusted.
18996 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18999 Likewise.
19000
19001 2018-04-27 Joseph Myers <joseph@codesourcery.com>
19002
19003 * sysdeps/tile: Remove.
19004 * sysdeps/unix/sysv/linux/tile: Likewise.
19005 * README (tilegx-*-linux-gnu): Remove from list of supported
19006 configurations.
19007 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
19008 contribution of support for generic Linux kernel syscall
19009 interface.
19010 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
19011 tilegx configurations.
19012 (Config.install_linux_headers): Do not handle tile.
19013 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
19014 in comment.
19015 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
19016 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
19017 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
19018 conditional undefine and redefine.
19019 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
19020 in comment.
19021 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
19022 conditional undefine and redefine.
19023
19024 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
19025
19026 * signal/tst-sigaction.c: New file to test BZ #23069.
19027 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
19028
19029 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
19030
19031 [BZ #22766]
19032 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
19033 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
19034 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
19035 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
19036
19037 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19038
19039 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
19040 _DIRENT_MATCHES_DIRENT64 is not defined.
19041 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
19042 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
19043 is defined.
19044 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
19045 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
19046
19047 2018-04-25 Joseph Myers <joseph@codesourcery.com>
19048
19049 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
19050 version to GCC 8 branch.
19051
19052 2018-04-24 Joseph Myers <joseph@codesourcery.com>
19053
19054 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
19055 (check_no_hidden): Use type of original function when declaring
19056 alias.
19057
19058 * sysdeps/unix/sysv/linux/sys/ptrace.h
19059 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
19060 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
19061 (struct __ptrace_seccomp_metadata): New type.
19062 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19063 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19064 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
19065 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19066 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
19067 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19068 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19069 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19070 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
19071 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19072 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
19073 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19074 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
19075 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19076 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
19077 (PTRACE_SECCOMP_GET_METADATA): Likewise.
19078
19079 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19080
19081 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
19082 defined.
19083 * dirent/versionsort.c (versionsort): Likewise.
19084 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
19085 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
19086 * dirent/versionsort64.c (versionsort64): Likewise.
19087 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
19088 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
19089 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
19090 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
19091 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
19092 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
19093 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
19094 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
19095 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
19096 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
19097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
19098 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
19099 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
19100 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
19101
19102 2018-04-23 Joseph Myers <joseph@codesourcery.com>
19103
19104 * elf/elf.h (NT_PPC_PKEY): New macro.
19105
19106 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
19107
19108 [BZ #23094]
19109 * localedata/locales/hr_HR: fix thousands_sep and
19110 mon_thousands_sep
19111
19112 2018-04-20 Joseph Myers <joseph@codesourcery.com>
19113
19114 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
19115 (XTABS): Define to TAB3.
19116
19117 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19118
19119 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19120
19121 * dirent/scandir-tail-common.c: New file.
19122 * dirent/scandir-tail.c: Use scandir-tail-common.c.
19123 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
19124 * dirent/scandir.c: Use scandir-tail-common.c.
19125 * dirent/scandirat.c: Likewise.
19126 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
19127 * dirent/scandir64.c (scandir64): Always build and alias to scandir
19128 if _DIRENT_MATCHES_DIRENT64 is defined.
19129 * dirent/scandirat64.c (scandirat64): Likewise.
19130 * include/dirent.h (__scandir_tail): Only define iff
19131 _DIRENT_MATCHES_DIRENT64 is not defined.
19132 (__scandir64_tail): Define regardless.
19133 (__scandirat, scandirat64): Remove libc_hidden_proto.
19134 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
19135 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
19136 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
19137 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
19138 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
19139 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
19140 * sysdeps/unix/sysv/linux/scandir64.c: New file.
19141
19142 2018-04-20 Joseph Myers <joseph@codesourcery.com>
19143
19144 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
19145 New macro.
19146 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
19147 Increase to 24.
19148 (_dl_aarch64_cap_flags): Add asimdfhm.
19149
19150 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
19151
19152 * sysdeps/nios2/libm-test-ulps: Update.
19153
19154 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19155
19156 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
19157 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
19158
19159 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
19160 requirements.
19161 (_DIRENT_MATCHES_DIRENT64): Undef
19162 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
19163 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
19164 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
19165 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
19166 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
19167 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
19168 use getdents64 syscalls as base.
19169 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
19170 symbol if required.
19171 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
19172 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
19173 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
19174 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
19175 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
19176 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
19177 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
19178 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
19179 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
19180 (__get_clockfreq_via_proc_openprom): Use __getdents64.
19181 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
19182
19183 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
19184
19185 * scripts/test_printers_common.py (init_test): Disable lock elision.
19186
19187 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
19188
19189 * math/test-tgmath.c (count_double, count_float,
19190 count_ldouble, count_cdouble, count_cfloat,
19191 count_cldouble): Use volatile int.
19192
19193 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19194
19195 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
19196 (conformtest-xfail-conds): Add i386-gnu.
19197 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
19198 i386-gnu.
19199 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
19200 ipc_perm.cuid, ipc_perm.cgid): Likewise.
19201 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
19202 msqid_ds.msg_lrpid): Likewise.
19203 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
19204 Likewise.
19205 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
19206 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
19207 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
19208 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
19209 unsigned int.
19210 (struct statvfs64): Likewise.
19211 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
19212 Likewise.
19213 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
19214 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
19215 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
19216 instead of wait_queue.
19217 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
19218 instead of vm_area_struct.
19219 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
19220 struct sched_param definition to it.
19221 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
19222 * bits/types/struct_sched_param.h: New file.
19223 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
19224 <bits/types/struct_sched_param.h> instead of <sched.h>.
19225 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
19226 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
19227 generic version but include <bits/pthreadtypes.h> to make struct
19228 sigevent's sigev_notify_attributes field a pthread_attr_t*.
19229 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
19230 non-compliant.
19231 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
19232 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
19233 [__USE_XOPEN] (OFDEL): New macro.
19234 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
19235 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
19236 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
19237 prototypes.
19238 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
19239 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
19240 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
19241 non-compliant.
19242 * sysdeps/i386/sys/ucontext.h: Likewise.
19243 * sysdeps/m68k/sys/ucontext.h: Likewise.
19244 * sysdeps/mips/sys/ucontext.h: Likewise.
19245 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
19246 * sysdeps/mach/hurd/i386/Makefile
19247 (test-xfail-POSIX/fcntl.h/conform): Add.
19248 (test-xfail-POSIX/signal.h/conform): Add.
19249 (test-xfail-POSIX/semaphore.h/conform): Add.
19250 (test-xfail-POSIX/regex.h/conform): Add.
19251 (test-xfail-POSIX/aio.h/conform): Add.
19252 (test-xfail-POSIX/mqueue.h/conform): Add.
19253 (test-xfail-POSIX/sys/types.h/conform): Add.
19254 (test-xfail-UNIX98/fcntl.h/conform): Add.
19255 (test-xfail-UNIX98/netdb.h/conform): Add.
19256 (test-xfail-UNIX98/signal.h/conform): Add.
19257 (test-xfail-UNIX98/semaphore.h/conform): Add.
19258 (test-xfail-UNIX98/regex.h/conform): Add.
19259 (test-xfail-UNIX98/aio.h/conform): Add.
19260 (test-xfail-UNIX98/ftw.h/conform): Add.
19261 (test-xfail-UNIX98/mqueue.h/conform): Add.
19262 (test-xfail-UNIX98/netinet/in.h/conform): Add.
19263 (test-xfail-UNIX98/sys/wait.h/conform): Add.
19264 (test-xfail-UNIX98/sys/sem.h/conform): Add.
19265 (test-xfail-UNIX98/sys/uio.h/conform): Add.
19266 (test-xfail-UNIX98/sys/socket.h/conform): Add.
19267 (test-xfail-UNIX98/sys/types.h/conform): Add.
19268 (test-xfail-UNIX98/stdlib.h/conform): Add.
19269 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
19270 (test-xfail-POSIX2008/fcntl.h/conform): Add.
19271 (test-xfail-POSIX2008/netdb.h/conform): Add.
19272 (test-xfail-POSIX2008/signal.h/conform): Add.
19273 (test-xfail-POSIX2008/semaphore.h/conform): Add.
19274 (test-xfail-POSIX2008/regex.h/conform): Add.
19275 (test-xfail-POSIX2008/aio.h/conform): Add.
19276 (test-xfail-POSIX2008/mqueue.h/conform): Add.
19277 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
19278 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
19279 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
19280 (test-xfail-POSIX2008/sys/types.h/conform): Add.
19281 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
19282 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
19283 (test-xfail-XOPEN2K/netdb.h/conform): Add.
19284 (test-xfail-XOPEN2K/signal.h/conform): Add.
19285 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
19286 (test-xfail-XOPEN2K/regex.h/conform): Add.
19287 (test-xfail-XOPEN2K/aio.h/conform): Add.
19288 (test-xfail-XOPEN2K/ftw.h/conform): Add.
19289 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
19290 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
19291 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
19292 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
19293 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
19294 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
19295 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
19296 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
19297 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
19298 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
19299 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
19300 (test-xfail-XOPEN2K8/signal.h/conform): Add.
19301 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
19302 (test-xfail-XOPEN2K8/regex.h/conform): Add.
19303 (test-xfail-XOPEN2K8/aio.h/conform): Add.
19304 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
19305 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
19306 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
19307 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
19308 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
19309 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
19310 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
19311 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
19312 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
19313 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
19314 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
19315 i386-gnu.
19316 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
19317 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
19318
19319 2018-04-18 Joseph Myers <joseph@codesourcery.com>
19320
19321 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19322 --enable-obsolete for powerpc-linux-gnuspe.
19323
19324 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19325
19326 * conform/data/sys/un.h-data: Allow sun_ prefix.
19327 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
19328 prototypes.
19329 * sysdeps/mach/include/mach.h: Likewise.
19330 * sysdeps/mach/include/mach/mig_support.h: Likewise.
19331 * sysdeps/mach/include/mach_error.h: Likewise.
19332
19333 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19334
19335 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
19336 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
19337 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
19338 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
19339
19340 2018-04-16 Andreas Schwab <schwab@suse.de>
19341
19342 [BZ #19527]
19343 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
19344
19345 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19346
19347 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
19348 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
19349
19350 2018-04-12 DJ Delorie <dj@redhat.com>
19351
19352 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19353 version to 4.16.
19354
19355 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
19356
19357 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
19358 (struct kernel_sigaction): Use the same definition on 31bit as is used
19359 on 64bit.
19360
19361 2018-04-09 Florian Weimer <fweimer@redhat.com>
19362
19363 [BZ #23037]
19364 * resolv/res_send.c (send_dg): Use designated initializers instead
19365 of assignment to zero-initialize other fields of struct mmsghdr.
19366
19367 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19368
19369 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
19370 __READDIR_ALIAS): Undefine after usage.
19371 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
19372 __READDIR_R_ALIAS): Likewise.
19373 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
19374 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
19375 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
19376 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
19377 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
19378 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
19379 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
19380 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
19381 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
19382 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
19383 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
19384 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
19385 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
19386 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
19387 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
19388 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
19389 * sysdeps/unix/sysv/linux/readdir.c: New file.
19390 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
19391 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
19392 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
19393
19394 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
19395
19396 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
19397
19398 * manual/charset.texi (Converting a Character): Fix typo.
19399
19400 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19401
19402 * sysdeps/sparc/fpu/libm-test-ulps: Update.
19403
19404 * sysdeps/arm/libm-test-ulps: Update.
19405
19406 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
19407 as base implementation.
19408 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
19409 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
19410 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19411 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19412 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
19413 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
19414 remove unrequired definitions and update comments.
19415 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
19416 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
19417 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
19418 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
19419 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
19420 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
19421 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
19422 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
19423 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
19424 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
19425 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
19426 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
19427 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
19428 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
19429 and RESET_SA_RESTORER hooks.
19430
19431 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
19432
19433 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19434
19435 2018-04-05 Florian Weimer <fweimer@redhat.com>
19436
19437 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
19438 integer overflow, memory leak on error, and indeterminate errno
19439 value. Add a null wide character to terminate the result string.
19440 * manual/charset.texi (Converting a Character): Mention embedded
19441 null bytes in the mbrtowc input string. Explain what happens in
19442 the -2 result case. Do not claim that mbrtowc is simple or
19443 obvious to use. Adjust the description of the code example. Use
19444 @code, not @var, for concrete variables.
19445
19446 2018-04-05 Florian Weimer <fweimer@redhat.com>
19447
19448 * manual/examples/mbstouwcs.c: New file.
19449 * manual/charset.texi (Converting a Character): Include it.
19450
19451 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19452
19453 * include/dirent.h (dirfd): Add hidden proto.
19454 * dirent/dirfd.c (dirfd): Add hidden def.
19455 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
19456 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
19457
19458 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
19459
19460 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
19461 sin, cos and sincos to 1 ULP.
19462
19463 2018-04-04 Maciej W. Rozycki <macro@mips.com>
19464
19465 [BZ #19818]
19466 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
19467 symbols.
19468 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
19469 * elf/tst-absolute-sym.c: New file.
19470 * elf/tst-absolute-sym-lib.c: New file.
19471 * elf/tst-absolute-sym-lib.lds: New file.
19472 * elf/Makefile (tests): Add `tst-absolute-sym'.
19473 (modules-names): Add `tst-absolute-sym-lib'.
19474 (LDLIBS-tst-absolute-sym-lib.so): New variable.
19475 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
19476 ($(objpfx)tst-absolute-sym): New dependency.
19477
19478 [BZ #19818]
19479 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
19480 parameter.
19481 (SYMBOL_ADDRESS): New macro.
19482 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
19483 SYMBOL_ADDRESS for symbol address calculation.
19484 * elf/dl-runtime.c (_dl_fixup): Likewise.
19485 (_dl_profile_fixup): Likewise.
19486 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
19487 * elf/rtld.c (dl_main): Likewise.
19488 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
19489 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
19490 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
19491 (elf_machine_rela): Likewise.
19492 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
19493 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
19494 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
19495 (elf_machine_rela): Likewise.
19496 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
19497 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
19498 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
19499 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
19500 Likewise.
19501 (elf_machine_reloc): Likewise.
19502 (elf_machine_got_rel): Likewise.
19503 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
19504 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
19505 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
19506 Likewise.
19507 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19508 Likewise.
19509 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
19510 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
19511 Likewise.
19512 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
19513 Likewise.
19514 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
19515 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
19516 Likewise.
19517 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
19518 Likewise.
19519 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
19520 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
19521
19522 2018-04-04 Zack Weinberg <zackw@panix.com>
19523
19524 * sysdeps/generic/internal-signals.h: Include signal.h,
19525 sigsetops.h, and stdbool.h.
19526 (__libc_signal_block_all): Actually block all signals.
19527 (__libc_signal_block_app): Likewise.
19528 (__libc_signal_restore_set): Actually restore the signal mask.
19529
19530 2018-04-04 Florian Weimer <fweimer@redhat.com>
19531
19532 inet: Actually build and run tst-deadline.
19533 * inet/Makefile (tests-internal): Add tst-deadline and do not
19534 overwrite the variable.
19535 (tests-static-internal): Remove variable.
19536
19537 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
19538
19539 [BZ #22947]
19540 * bits/uio-ext.h (RWF_APPEND): New.
19541 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
19542 * manual/llio.texi: Document RWF_APPEND.
19543 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
19544 (RWF_SUPPORTED): Add RWF_APPEND.
19545
19546 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19547
19548 [BZ #22391]
19549 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
19550 check for internal nptl signals.
19551 * nptl/sigaction.c (__sigaction): Likewise.
19552 * signal/sigaddset.c (sigaddset): Likewise.
19553 * signal/sigdelset.c (sigdelset): Likewise.
19554 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
19555 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
19556 value.
19557 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
19558 to filter out internal nptl signals.
19559 * signal/tst-sigset.c (do_test): Check ech signal indidually and
19560 also check realtime signals using standard macros.
19561 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
19562 __is_internal_signal, __libc_signal_block_all,
19563 __libc_signal_block_app, __libc_signal_restore_set): New functions.
19564 * sysdeps/nptl/sigfillset.c: Remove file.
19565 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
19566 Change return to bool.
19567 (__clear_internal_signals): Remove SIGTIMER clean since it is
19568 equal to SIGCANEL on Linux.
19569 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
19570 signal set was constructed using standard functions.
19571
19572 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19573
19574 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
19575 ifname is too long.
19576 * hurd/hurdsig.c (interrupted_reply_port_location): Use
19577 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
19578 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
19579 hidden def.
19580 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
19581 * signal/sigaddset.c: Include <sigsetopts.h>.
19582 * signal/sigdelset.c: Likewise.
19583
19584 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19585
19586 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
19587 (__cos): Likewise.
19588 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
19589 logic as sin and cos.
19590
19591 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19592
19593 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
19594 inputs. Return correct sign.
19595 (do_sincos): Remove small input check before do_sin, let do_sin set
19596 the sign.
19597 (__sin): Likewise.
19598 (__cos): Likewise.
19599
19600 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19601
19602 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
19603 (do_cos_slow): Likewise.
19604 (do_sin_slow): Likewise.
19605 (reduce_and_compute): Likewise.
19606 (slow): Likewise.
19607 (slow1): Likewise.
19608 (slow2): Likewise.
19609 (sloww): Likewise.
19610 (sloww1): Likewise.
19611 (sloww2): Likewise.
19612 (bslow): Likewise.
19613 (bslow1): Likewise.
19614 (bslow2): Likewise.
19615 (cslow2): Likewise.
19616
19617 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19618
19619 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19620 (do_cos): Remove corp parameter and calculations.
19621 (do_sin): Likewise.
19622 (do_sincos): Remove cor variable.
19623 (__sin): Use do_sincos for huge inputs.
19624 (__cos): Likewise.
19625 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19626 (reduce_and_compute_sincos): Remove unused function.
19627
19628 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19629
19630 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19631 reduce_sincos, improve accuracy to 136 bits.
19632 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19633 (__sin): Use improved reduction and simplified do_sincos calculation.
19634 (__cos): Likewise.
19635 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19636
19637 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19638
19639 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19640 (do_sincos_2): Likewise.
19641 (__sin): Remove middle range reduction case.
19642 (__cos): Likewise.
19643 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19644 reduction case.
19645
19646 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19647
19648 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19649 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19650 inputs.
19651 (__cos): Likewise.
19652 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19653
19654 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19655
19656 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19657 version to 4.16
19658
19659 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19660
19661 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19662 Remove definitions.
19663 (opendir_oflags): Use O_DIRECTORY regardless.
19664 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19665 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19666
19667 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19668
19669 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19670 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19671 macros.
19672 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19673 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19674 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19675 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19676 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19677 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19678
19679 * htl/Makefile: Bump licence to LGPL 2.1+.
19680 * htl/alloca_cutoff.c: Likewise.
19681 * htl/cthreads-compat.c: Likewise.
19682 * htl/lockfile.c: Likewise.
19683 * htl/pt-alloc.c: Likewise.
19684 * htl/pt-cancel.c: Likewise.
19685 * htl/pt-cleanup.c: Likewise.
19686 * htl/pt-create.c: Likewise.
19687 * htl/pt-dealloc.c: Likewise.
19688 * htl/pt-detach.c: Likewise.
19689 * htl/pt-exit.c: Likewise.
19690 * htl/pt-getattr.c: Likewise.
19691 * htl/pt-initialize.c: Likewise.
19692 * htl/pt-internal.h: Likewise.
19693 * htl/pt-join.c: Likewise.
19694 * htl/pt-self.c: Likewise.
19695 * htl/pt-setcancelstate.c: Likewise.
19696 * htl/pt-setcanceltype.c: Likewise.
19697 * htl/pt-sigmask.c: Likewise.
19698 * htl/pt-spin-inlines.c: Likewise.
19699 * htl/pt-testcancel.c: Likewise.
19700 * htl/pt-yield.c: Likewise.
19701 * htl/tests/test-1.c: Likewise.
19702 * htl/tests/test-10.c: Likewise.
19703 * htl/tests/test-11.c: Likewise.
19704 * htl/tests/test-12.c: Likewise.
19705 * htl/tests/test-13.c: Likewise.
19706 * htl/tests/test-14.c: Likewise.
19707 * htl/tests/test-15.c: Likewise.
19708 * htl/tests/test-16.c: Likewise.
19709 * htl/tests/test-17.c: Likewise.
19710 * htl/tests/test-2.c: Likewise.
19711 * htl/tests/test-3.c: Likewise.
19712 * htl/tests/test-4.c: Likewise.
19713 * htl/tests/test-5.c: Likewise.
19714 * htl/tests/test-6.c: Likewise.
19715 * htl/tests/test-7.c: Likewise.
19716 * htl/tests/test-8.c: Likewise.
19717 * htl/tests/test-9.c: Likewise.
19718 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19719 * sysdeps/htl/bits/cancelation.h: Likewise.
19720 * sysdeps/htl/bits/pthread-np.h: Likewise.
19721 * sysdeps/htl/bits/pthread.h: Likewise.
19722 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19723 * sysdeps/htl/bits/semaphore.h: Likewise.
19724 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19725 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19726 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19727 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19728 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19729 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19730 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19731 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19732 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19733 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19734 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19735 * sysdeps/htl/old_pt-atfork.c: Likewise.
19736 * sysdeps/htl/pt-atfork.c: Likewise.
19737 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19738 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19739 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19740 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19741 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19742 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19743 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19744 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19745 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19746 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19747 * sysdeps/htl/pt-attr-init.c: Likewise.
19748 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19749 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19750 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19751 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19752 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19753 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19754 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19755 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19756 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19757 * sysdeps/htl/pt-attr.c: Likewise.
19758 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19759 * sysdeps/htl/pt-barrier-init.c: Likewise.
19760 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19761 * sysdeps/htl/pt-barrier.c: Likewise.
19762 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19763 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19764 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19765 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19766 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19767 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19768 * sysdeps/htl/pt-cond-init.c: Likewise.
19769 * sysdeps/htl/pt-cond-signal.c: Likewise.
19770 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19771 * sysdeps/htl/pt-cond-wait.c: Likewise.
19772 * sysdeps/htl/pt-cond.c: Likewise.
19773 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19774 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19775 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19776 * sysdeps/htl/pt-condattr-init.c: Likewise.
19777 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19778 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19779 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19780 * sysdeps/htl/pt-equal.c: Likewise.
19781 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19782 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19783 * sysdeps/htl/pt-getschedparam.c: Likewise.
19784 * sysdeps/htl/pt-getspecific.c: Likewise.
19785 * sysdeps/htl/pt-init-specific.c: Likewise.
19786 * sysdeps/htl/pt-key-create.c: Likewise.
19787 * sysdeps/htl/pt-key-delete.c: Likewise.
19788 * sysdeps/htl/pt-key.h: Likewise.
19789 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19790 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19791 * sysdeps/htl/pt-mutex-init.c: Likewise.
19792 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19793 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19794 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19795 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19796 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19797 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19798 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19799 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19800 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19801 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19802 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19803 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19804 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19805 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19806 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19807 * sysdeps/htl/pt-mutexattr.c: Likewise.
19808 * sysdeps/htl/pt-once.c: Likewise.
19809 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19810 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19811 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19812 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19813 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19814 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19815 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19816 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19817 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19818 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19819 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19820 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19821 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19822 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19823 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19824 * sysdeps/htl/pt-setschedparam.c: Likewise.
19825 * sysdeps/htl/pt-setschedprio.c: Likewise.
19826 * sysdeps/htl/pt-setspecific.c: Likewise.
19827 * sysdeps/htl/pt-spin.c: Likewise.
19828 * sysdeps/htl/pt-startup.c: Likewise.
19829 * sysdeps/htl/pthread.h: Likewise.
19830 * sysdeps/htl/sem-close.c: Likewise.
19831 * sysdeps/htl/sem-destroy.c: Likewise.
19832 * sysdeps/htl/sem-getvalue.c: Likewise.
19833 * sysdeps/htl/sem-init.c: Likewise.
19834 * sysdeps/htl/sem-open.c: Likewise.
19835 * sysdeps/htl/sem-post.c: Likewise.
19836 * sysdeps/htl/sem-timedwait.c: Likewise.
19837 * sysdeps/htl/sem-trywait.c: Likewise.
19838 * sysdeps/htl/sem-unlink.c: Likewise.
19839 * sysdeps/htl/sem-wait.c: Likewise.
19840 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19841 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19842 * sysdeps/mach/htl/pt-block.c: Likewise.
19843 * sysdeps/mach/htl/pt-spin.c: Likewise.
19844 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19845 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19846 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19847 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19848 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19849 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19850 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19851 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19852 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19853 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19854 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19855 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19856 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19857 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19858 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19859 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19860 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19861 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19862 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19863 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19864 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19865 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19866 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19867 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19868 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19869 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19870 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19871 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19872 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19873 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19874 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19875 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19876 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19877 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19878 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19879 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19880 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19881 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19882 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19883 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19884 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19885 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19886 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19887
19888 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19889 * README: Remove the mention of out-of-tree patches needed for
19890 GNU/Hurd.
19891
19892 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19893 (UTIME_NOW, UTIME_OMIT): Define macros.
19894
19895 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19896 instead of pthread_detach.
19897 (__cthread_fork): Call __pthread_create instead of pthread_create.
19898 (__cthread_keycreate): Call __pthread_key_create instead of
19899 pthread_key_create.
19900 (__cthread_getspecific): Call __pthread_getspecific instead of
19901 pthread_getspecific.
19902 (__cthread_setspecific): Call __pthread_setspecific instead of
19903 pthread_setspecific.
19904 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19905 __pthread_mutex_unlock instead of pthread_mutex_lock and
19906 pthread_mutex_unlock.
19907 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19908 ___pthread_get_cleanup_stack.
19909 (__pthread_get_cleanup_stack): New strong alias.
19910 * htl/pt-create.c: Include <pthreadP.h>.
19911 (entry_point): Call __pthread_exit instead of pthread_exit.
19912 (pthread_create): Rename to __pthread_create.
19913 (pthread_create): New strong alias.
19914 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19915 (pthread_detach): New strong alias.
19916 (__pthread_detach): Call __pthread_cond_broadcast instead of
19917 pthread_cond_broadcast.
19918 * htl/pt-exit.c: Include <pthreadP.h>.
19919 (__pthread_exit): Call __pthread_setcancelstate and
19920 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19921 __pthread_get_cleanup_stack.
19922 * htl/pt-testcancel.c: Include <pthreadP.h>.
19923 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19924 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19925 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19926 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19927 pthread_attr_getstacksize.
19928 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19929 Rename to __pthread_attr_getstackaddr.
19930 (pthread_attr_getstackaddr): New strong alias.
19931 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19932 Rename to __pthread_attr_getstacksize.
19933 (pthread_attr_getstacksize): New strong alias.
19934 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19935 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19936 (pthread_attr_setstack): New strong alias.
19937 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19938 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19939 pthread_attr_getstacksize, pthread_attr_setstacksize and
19940 pthread_attr_setstackaddr.
19941 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19942 Rename to __pthread_attr_setstackaddr.
19943 (pthread_attr_setstackaddr): New strong alias.
19944 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19945 Rename to __pthread_attr_setstacksize.
19946 (pthread_attr_setstacksize): New strong alias.
19947 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19948 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19949 pthread_exit.
19950 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19951 (__pthread_key_create): New hidden def.
19952 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19953 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19954 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19955 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19956 __pthread_setspecific, __pthread_setcancelstate,
19957 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19958 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19959 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19960 declarations.
19961 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19962 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19963 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19964 (pthread_attr_setstackaddr): New strong alias.
19965 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19966 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19967 (pthread_attr_setstacksize): New strong alias.
19968 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19969 (call_exit): Call __pthread_exit instead of pthread_exit.
19970 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19971 (_pthread_mutex_init): New hidden definition.
19972 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19973 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19974 instead of pthread_attr_init and pthread_attr_setstack.
19975
19976 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19977 __vm_deallocate instead of vm_allocate and vm_deallocate.
19978 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19979 setenv.
19980 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19981 of geteuid.
19982 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19983 strdup.
19984 * hurd/siginfo.c: Include <libioP.h>.
19985 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19986 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19987 munmap.
19988 * mach/devstream.c: Include <libioP.h>.
19989 (dealloc_ref): Call __mach_port_deallocate instead of
19990 mach_port_deallocate.
19991 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19992 Call __mach_port_deallocate instead of mach_port_deallocate.
19993 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19994 pathconf.
19995 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19996 munmap.
19997 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19998 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19999 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
20000 of munmap.
20001 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
20002 of close.
20003 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
20004 instead of sysconf.
20005 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
20006 __clock_gettime instead of clock_gettime.
20007 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
20008 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
20009 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
20010 * sysdeps/unix/bsd/stty.c (stty): Likewise.
20011 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
20012 tcgetattr.
20013 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
20014 __clock_gettime and __nanosleep instead of clock_gettime and
20015 nanosleep.
20016 * hurd/catch-signal.c (hurd_catch_signal): Rename to
20017 __hurd_catch_signal.
20018 (hurd_catch_signal): New strong alias.
20019 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
20020 __hurd_catch_signal instead of hurd_catch_signal.
20021 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
20022 * hurd/hurdexec.c (_hurd_init): Add hidden def.
20023 * hurd/hurdinit.c (_hurd_init): Add hidden def.
20024 * hurd/hurdsig.c: Include <mach/mig_support.h>.
20025 (_hurd_thread_sigstate): Add hidden def.
20026 (_hurd_internal_post_signal): Use __mutex_unlock instead of
20027 mutex_unlock.
20028 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
20029 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
20030 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
20031 __hurd_file_name_path_lookup.
20032 (hurd_file_name_path_lookup): New strong alias.
20033 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
20034 hurd_file_name_path_lookup.
20035 * mach/errstring.c (mach_error_type): Add hidden def.
20036 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
20037 * mach/mutex-init.c (__mutex_init): Add hidden def.
20038 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
20039 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
20040 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
20041 * sysdeps/mach/hurd/getcwd.c
20042 (_hurd_canonicalize_directory_name_internal): Rename to
20043 __hurd_canonicalize_directory_name_internal.
20044 (_hurd_canonicalize_directory_name_internal): New strong alias.
20045 (__canonicalize_directory_name_internal, __getcwd): Call
20046 __hurd_canonicalize_directory_name_internal instead of
20047 _hurd_canonicalize_directory_name_internal.
20048 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
20049 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
20050 hidden defs.
20051 * sysdeps/hurd/include/hurd.h: New file.
20052 * sysdeps/hurd/include/hurd/fd.h: New file.
20053 * sysdeps/hurd/include/hurd/signal.h: New file.
20054 * sysdeps/mach/include/lock-intern.h: New file.
20055 * sysdeps/mach/include/mach.h: New file.
20056 * sysdeps/mach/include/mach/mig_support.h: New file.
20057 * sysdeps/mach/include/mach_error.h: New file.
20058 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
20059 prototype.
20060 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
20061 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
20062 _HEADER_H_HIDDEN_DEF macro.
20063 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
20064 _hurd_fd_error_signal): Add hidden prototype.
20065 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
20066 hidden def.
20067 * libio/iolibio.h (_IO_puts): New hidden prototype.
20068 * libio/ioputs.c (_IO_puts): New hidden def.
20069 * sysdeps/mach/hurd/localplt.data: New file.
20070
20071 2018-04-02 Agustina Arzille <avarzille@riseup.net>
20072 Amos Jeffries <squid3@treenet.co.nz>
20073 David Michael <fedora.dm0@gmail.com>
20074 Marco Gerards <marco@gnu.org>
20075 Marcus Brinkmann <marcus@gnu.org>
20076 Neal H. Walfield <neal@gnu.org>
20077 Pino Toscano <toscano.pino@tiscali.it>
20078 Richard Braun <rbraun@sceen.net>
20079 Roland McGrath <roland@gnu.org>
20080 Samuel Thibault <samuel.thibault@ens-lyon.org>
20081 Thomas DiModica <ricinwich@yahoo.com>
20082 Thomas Schwinge <tschwinge@gnu.org>
20083
20084 * htl: New directory.
20085 * sysdeps/htl: New directory.
20086 * sysdeps/hurd/htl: New directory.
20087 * sysdeps/i386/htl: New directory.
20088 * sysdeps/mach/htl: New directory.
20089 * sysdeps/mach/hurd/htl: New directory.
20090 * sysdeps/mach/hurd/i386/htl: New directory.
20091 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
20092 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
20093 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
20094
20095 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20096
20097 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
20098 signals in thread created for runing timers.
20099
20100 2018-04-01 Florian Weimer <fweimer@redhat.com>
20101
20102 * support/support_format_addrinfo.c (support_format_addrinfo):
20103 Include unknown error number in formatted result.
20104
20105 2018-03-29 Florian Weimer <fweimer@redhat.com>
20106
20107 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
20108 capture SIGBUS.
20109
20110 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20111
20112 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
20113 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
20114 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
20115 (__ASSUME_CLONE_BACKWARDS): Define.
20116
20117 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
20118
20119 [BZ #23024]
20120 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
20121 early when linux sentinel value is set.
20122
20123 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20124
20125 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
20126
20127 2018-03-27 Andreas Schwab <schwab@suse.de>
20128
20129 [BZ #23005]
20130 * resolv/res_send.c (__res_context_send): Return ENOMEM if
20131 allocation of private copy of nsaddr_list fails.
20132
20133 2018-03-26 Joseph Myers <joseph@codesourcery.com>
20134
20135 [BZ #16552]
20136 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
20137 * sysdeps/unix/sysv/linux/umount.c: ... here.
20138 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
20139 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
20140 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
20141 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
20142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
20143 * sysdeps/unix/sysv/linux/umount.S: Likewise.
20144 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
20145
20146 2018-03-26 Andreas Schwab <schwab@suse.de>
20147
20148 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
20149 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
20150 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
20151 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
20152 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
20153 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
20154 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
20155 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
20156 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
20157 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
20158 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
20159 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
20160 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
20161 (R_RISCV_NUM): Define.
20162
20163 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
20164
20165 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
20166 TLS declaration of errno.
20167 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
20168 __libc_setup_tls.
20169 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
20170 (ARCH_SETUP_TLS): Likewise.
20171 * sysdeps/mach/hurd/libc-start.h: New file copied from
20172 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
20173 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
20174 instead of __libc_setup_tls.
20175 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
20176 __libc_setup_tls before initializing libpthread and running _hurd_init
20177 which starts the signal thread.
20178 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
20179 Declare function.
20180 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
20181
20182 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
20183
20184 [BZ #22998]
20185 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
20186 after it is defined.
20187
20188 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
20189 Max Horn <max@quendi.de>
20190
20191 [BZ #22644]
20192 CVE-2017-18269
20193 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
20194 branch conditions.
20195 * string/test-memmove.c (do_test2): New testcase.
20196
20197 2018-03-22 Joseph Myers <joseph@codesourcery.com>
20198
20199 * sysdeps/generic/frame.h: Remove file.
20200 * sysdeps/arm/frame.h: Likewise.
20201 * sysdeps/hppa/frame.h: Likewise.
20202 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
20203 macro.
20204 (GET_FRAME): Likewise.
20205 (GET_STACK): Likewise.
20206 (CALL_SIGHANDLER): Likewise.
20207 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
20208 Likewise.
20209 (GET_FRAME): Likewise.
20210 (GET_STACK): Likewise.
20211 (CALL_SIGHANDLER): Likewise.
20212 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
20213 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20214 (GET_FRAME): Likewise.
20215 (GET_STACK): Likewise.
20216 (CALL_SIGHANDLER): Likewise.
20217 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
20218 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20219 (GET_FRAME): Likewise.
20220 (GET_STACK): Likewise.
20221 (ADVANCE_STACK_FRAME): Likewise.
20222 (CALL_SIGHANDLER): Likewise.
20223 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
20224 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20225 (GET_FRAME): Likewise.
20226 (GET_STACK): Likewise.
20227 (CALL_SIGHANDLER): Likewise.
20228 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
20229 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20230 (GET_FRAME): Likewise.
20231 (GET_STACK): Likewise.
20232 (CALL_SIGHANDLER): Likewise.
20233 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
20234 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20235 (GET_FRAME): Likewise.
20236 (GET_STACK): Likewise.
20237 (CALL_SIGHANDLER): Likewise.
20238 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
20239 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20240 (GET_FRAME): Likewise.
20241 (GET_STACK): Likewise.
20242 (CALL_SIGHANDLER): Likewise.
20243 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
20244 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20245 (GET_FRAME): Likewise.
20246 (GET_STACK): Likewise.
20247 (CALL_SIGHANDLER): Likewise.
20248 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
20249 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20250 (GET_FRAME): Likewise.
20251 (GET_STACK): Likewise.
20252 (CALL_SIGHANDLER): Likewise.
20253 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
20254 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20255 (GET_FRAME): Likewise.
20256 (GET_STACK): Likewise.
20257 (CALL_SIGHANDLER): Likewise.
20258 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
20259 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20260 (GET_FRAME): Likewise.
20261 (GET_STACK): Likewise.
20262 (CALL_SIGHANDLER): Likewise.
20263 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
20264 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20265 (GET_FRAME): Likewise.
20266 (GET_STACK): Likewise.
20267 (CALL_SIGHANDLER): Likewise.
20268 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
20269 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20270 (FIRST_FRAME_POINTER): Likewise.
20271 (ADVANCE_STACK_FRAME): Likewise.
20272 (GET_STACK): Likewise.
20273 (GET_FRAME): Likewise.
20274 (CALL_SIGHANDLER): Likewise.
20275 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
20276 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20277 (ADVANCE_STACK_FRAME): Likewise.
20278 (GET_STACK): Likewise.
20279 (GET_FRAME): Likewise.
20280 (CALL_SIGHANDLER): Likewise.
20281 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
20282 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20283 (GET_FRAME): Likewise.
20284 (GET_STACK): Likewise.
20285 (CALL_SIGHANDLER): Likewise.
20286 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
20287 (SIGCONTEXT_EXTRA_ARGS): Likewise.
20288 (GET_FRAME): Likewise.
20289 (GET_STACK): Likewise.
20290 (CALL_SIGHANDLER): Likewise.
20291
20292 2018-03-21 Joseph Myers <joseph@codesourcery.com>
20293
20294 * sysdeps/x86_64/backtrace.c: Move to ....
20295 * debug/backtrace.c: ... here.
20296 * sysdeps/aarch64/backtrace.c: Remove file.
20297 * sysdeps/alpha/backtrace.c: Likewise.
20298 * sysdeps/hppa/backtrace.c: Likewise.
20299 * sysdeps/ia64/backtrace.c: Likewise.
20300 * sysdeps/mips/backtrace.c: Likewise.
20301 * sysdeps/nios2/backtrace.c: Likewise.
20302 * sysdeps/riscv/backtrace.c: Likewise.
20303 * sysdeps/sh/backtrace.c: Likewise.
20304 * sysdeps/tile/backtrace.c: Likewise.
20305
20306 2018-03-20 Joseph Myers <joseph@codesourcery.com>
20307
20308 [BZ #22987]
20309 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
20310 function.
20311 (fdimf): Likewise.
20312 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
20313
20314 [BZ #17343]
20315 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
20316 possibly overflowing computations.
20317
20318 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
20319
20320 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
20321 values from Linux-specific section now that it is in the GNU section.
20322 * sysdeps/gnu/errlist.c: Regenerate.
20323
20324 2018-03-20 Joseph Myers <joseph@codesourcery.com>
20325
20326 * math/Makefile (libm-narrow-fns): Add sub.
20327 (libm-test-funcs-narrow): Likewise.
20328 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
20329 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
20330 * math/gen-auto-libm-tests.c (test_functions): Add sub.
20331 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
20332 (NARROW_SUB_ROUND_TO_ODD): Likewise.
20333 (NARROW_SUB_TRIVIAL): Likewise.
20334 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
20335 macro.
20336 (__dsubl): Likewise.
20337 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
20338 dsub.
20339 (CFLAGS-nldbl-dsub.c): New variable.
20340 (CFLAGS-nldbl-fsub.c): Likewise.
20341 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
20342 __nldbl_dsubl.
20343 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
20344 prototype.
20345 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
20346 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
20347 * math/auto-libm-test-in: Add tests of sub.
20348 * math/auto-libm-test-out-narrow-sub: New generated file.
20349 * math/libm-test-narrow-sub.inc: New file.
20350 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
20351 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
20352 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
20353 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
20354 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
20355 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
20356 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
20357 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
20358 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
20359 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
20360 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
20361 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
20362 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
20363 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
20364 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
20365 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
20366 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
20367 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
20368 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20369 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
20370 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20371 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20372 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20373 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20374 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20375 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20376 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20377 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20378 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20379 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20380 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20381 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20382 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
20383 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
20384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
20385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
20386 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
20387 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20388 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20389 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20390 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20391 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20392 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
20393 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
20394 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20395 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20396
20397 2018-03-19 Joseph Myers <joseph@codesourcery.com>
20398
20399 [BZ #20079]
20400 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
20401
20402 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
20403
20404 * benchtests/bench-timing.h (attribute_hidden): Undefine.
20405
20406 2018-03-18 Richard Braun <rbraun@sceen.net>
20407
20408 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
20409 thread reference.
20410
20411 2018-03-18 Agustina Arzille <avarzille@riseup.net>
20412
20413 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
20414 (__libc_cleanup_fct): Define function.
20415 (__libc_cleanup_region_start, __libc_cleanup_region_end,
20416 __libc_cleanup_end): Rewrite implementation using
20417 __attribute__ ((__cleanup__)).
20418 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
20419 * hurd/Makefile (routines): Add hurdlock.
20420 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
20421 interface.
20422 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
20423 * hurd/hurdpid.c: Include <lowlevellock.h>
20424 (_S_msg_proc_newids): Use lll_wait to synchronize.
20425 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
20426 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
20427 * mach/Makefile (lock-headers): Remove machine-lock.h.
20428 * mach/lock-intern.h: Include <lowlevellock.h> instead of
20429 <machine-lock.h>.
20430 (__spin_lock_t): New type.
20431 (__SPIN_LOCK_INITIALIZER): New macro.
20432 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
20433 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
20434 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
20435 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
20436 (__mutex_init): Initialize with lll.
20437 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
20438 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
20439 needing lll.
20440 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
20441 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
20442 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
20443 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
20444 (__setpgid): Use lll for synchronization.
20445 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
20446 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
20447 instead of <cthreads.h>.
20448 (_IO_lock_inexpensive): New macro
20449 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
20450 (__libc_lock_self0): New declaration.
20451 (__libc_lock_owner_self): New macro.
20452 (__libc_key_t): Remove type.
20453 (_LIBC_LOCK_INITIALIZER): New macro.
20454 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
20455 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
20456 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
20457 __libc_lock_define_initialized_recursive,
20458 __rtld_lock_define_initialized_recursive,
20459 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
20460 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
20461 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
20462 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
20463 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
20464 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
20465 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
20466 New macros.
20467 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
20468 * hurd/hurdlock.c: New file.
20469 * hurd/hurdlock.h: New file.
20470 * mach/lowlevellock.h: New file
20471
20472 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
20473
20474 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
20475 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
20476 when opening a symlink with O_NOFOLLOW.
20477 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
20478 path when flags contains O_NOFOLLOW.
20479 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
20480 if flags contains O_DIRECTORY and the result is a directory.
20481 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
20482 oneself when the pointer given in D is nul (as set by ext2fs).
20483 * sysdeps/mach/hurd/mlockall.c: New file.
20484 * sysdeps/mach/hurd/munlockall.c: New file.
20485
20486 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20487
20488 * hurd/hurdsig.c: Include <pthread.h>.
20489 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
20490 get the signal thread stack layout.
20491 * hurd/Makefile (headers): Remove threadvar.h.
20492 (inline-headers): Remove threadvar.h.
20493 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
20494 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
20495 __hurd_threadvar_max, __hurd_errno_location.
20496 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
20497 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
20498 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
20499 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
20500 unless TLS is not initialized yet, in which case we do not need a
20501 critical section yet anyway.
20502 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
20503 <machine-sp.h>.
20504 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
20505 declarations.
20506 (__hurd_threadvar_index): Remove enum.
20507 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
20508 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
20509 inlines.
20510 (__hurd_reply_port0): New variable declaration.
20511 (__hurd_local_reply_port): New macro.
20512 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
20513 (interrupted_reply_port_location): Add thread_t parameter. Use it
20514 with THREAD_TCB to access thread-local variables.
20515 (_hurdsig_abort_rpcs): Pass ss->thread to
20516 interrupted_reply_port_location.
20517 (_hurd_internal_post_signal): Likewise.
20518 (_hurdsig_init): Use presence of cthread_fork instead of
20519 __hurd_threadvar_stack_mask to start signal thread by hand.
20520 Remove signal thread threadvar initialization.
20521 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
20522 * hurd/sigunwind.c: Include <hurd/threadvar.h>
20523 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
20524 of threadvar.
20525 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
20526 __libc_lock_self0.
20527 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
20528 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
20529 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
20530 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
20531 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
20532 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
20533 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
20534 define variables.
20535 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
20536 <hurd/threadvar.h>.
20537 [IS_IN(rtld)] (rtld_errno): New variable.
20538 [IS_IN(rtld)] (__errno_location): New weak function.
20539 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
20540 * sysdeps/mach/hurd/errno.c: Remove file.
20541 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
20542 (__fork): Remove THREADVAR_SPACE macro and its use.
20543 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
20544 variable.
20545 (init): Do not initialize threadvar.
20546 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
20547 symbol.
20548 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
20549 __hurd_local_reply_port instead of threadvar.
20550 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
20551 _hurd_sigstate fields.
20552 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
20553 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
20554 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
20555 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
20556 instead of threadvar.
20557 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
20558 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
20559 (use_threadvar, global_reply_port): Remove variables.
20560 (__hurd_reply_port0): New variable.
20561 (__mig_get_reply_port): Use __hurd_local_reply_port and
20562 __hurd_reply_port0 instead of threadvar.
20563 (__mig_dealloc_reply_port): Likewise.
20564 (__mig_init): Do not initialize threadvar.
20565 * sysdeps/mach/hurd/profil.c: Fix comment.
20566 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
20567 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
20568 cthread_keycreate, cthread_getspecific, cthread_setspecific to
20569 __cthread_fork, __cthread_detach, __pthread_getattr_np,
20570 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
20571 __cthread_setspecific.
20572 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
20573 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
20574 __cthread_t instead of cthread_fork, cthread_detach,
20575 pthread_getattr_np, pthread_attr_getstack.
20576 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
20577 __cthread_keycreate.
20578 (cthread_getspecific): Rename to __cthread_getspecific.
20579 (cthread_setspecific): Rename to __cthread_setspecific.
20580 (__libc_getspecific): Use __cthread_getspecific instead of
20581 cthread_getspecific.
20582 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
20583 __cthread_keycreate instead of cthread_keycreate.
20584 (__libc_setspecific): Use __cthread_setspecific instead of
20585 cthread_setspecific.
20586 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
20587 Likewise.
20588 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
20589 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
20590 testing whether it is defined.
20591
20592 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
20593
20594 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
20595 Define macro.
20596 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
20597 * sysdeps/mach/i386/thread_state.h
20598 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
20599 i386_THREAD_STATE.
20600 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
20601 i386_THREAD_STATE.
20602 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
20603
20604 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
20605 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
20606
20607 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
20608 macros.
20609 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
20610 descriptor instead of creating a new one.
20611 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
20612
20613 * mach/setup-thread.c: Include <ldsodefs.h>.
20614 (__mach_setup_thread): Call _dl_allocate_tls, pass
20615 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20616 MACHINE_THREAD_STATE_FLAVOR, before getting
20617 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20618 MACHINE_THREAD_STATE_FLAVOR with the result.
20619 * hurd/hurdfault.c (_hurdsig_fault_init): Call
20620 MACHINE_THREAD_STATE_FIX_NEW.
20621 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20622 too. Add original thread parameter.
20623
20624 2018-03-16 Joseph Myers <joseph@codesourcery.com>
20625
20626 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20627 Remove inline function.
20628
20629 * sysdeps/i386/fpu/libm-test-ulps: Update.
20630 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20631
20632 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20633
20634 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20635 commit.
20636
20637 2018-03-15 Joseph Myers <joseph@codesourcery.com>
20638
20639 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20640 (__sincos_code): Remove define and undefine.
20641 [__FAST_MATH__] (__sincos): Remove inline function.
20642 [__FAST_MATH__] (__sincosf): Remove inline function.
20643 [__FAST_MATH__] (__sincosl): Remove inline function.
20644 (__atan2l): Remove inline functions.
20645 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20646 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20647 function.
20648 (floor): Remove inline function.
20649 (ceil): Likewise.
20650 [__FAST_MATH__] (__ldexp_code): Remove macro.
20651 [__FAST_MATH__] (ldexp): Remove inline function.
20652 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20653 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20654 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20655 [__USE_ISOC99] (__lrint_code): Remove macro.
20656 [__USE_ISOC99] (__llrint_code): Likewise.
20657 [__USE_ISOC99] (lrintf): Remove inline function.
20658 [__USE_ISOC99] (lrint): Likewise.
20659 [__USE_ISOC99] (lrintl): Likewise.
20660 [__USE_ISOC99] (llrint): Likewise.
20661 [__USE_ISOC99] (llrintf): Likewise.
20662 [__USE_ISOC99] (llrintl): Likewise.
20663
20664 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20665
20666 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20667 (__ieee754_sqrtf): Remove.
20668 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20669 (__ieee754_sqrtf): Remove.
20670 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20671 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20672 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20673 (__ieee754_sqrtf): Remove.
20674 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20675 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20676 (sqrtf): Remove.
20677 (sqrtl): Remove.
20678 (__ieee754_sqrt): Remove.
20679 (__ieee754_sqrtf): Remove.
20680 (__ieee754_sqrtl): Remove.
20681 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20682 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20683 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20684 (__ieee754_sqrtf): Remove.
20685 (__ieee754_sqrtl): Remove.
20686
20687 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20688
20689 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20690 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20691 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20692 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20693 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20694 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20695 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20696 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20697 Likewise.
20698 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20699 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20700 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20701 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20702 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20703 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20704 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20705 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20706 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20707 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20708 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20709 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20710 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20711 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20712 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20713 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20714 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20715 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20716 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20717 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20718 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20719 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20720 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20721 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20722 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20723 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20724 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20725 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20726 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20727 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20728 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20729 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20730 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20731 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20732 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20733 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20734 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20735 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20736 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20737 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20738
20739 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20740
20741 * include/math.h (sqrt): Declare with asm redirect.
20742 (sqrtf): Likewise.
20743 (sqrtl): Likewise.
20744 (sqrtf128): Likewise.
20745 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20746 nonlib and libnldbl with -fmath-errno.
20747 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20748 * math/w_sqrt_template.c: Likewise.
20749 * math/w_sqrtf_compat.c: Likewise.
20750 * math/w_sqrtl_compat.c: Likewise.
20751 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20752 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20753 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20754 complex.h.
20755
20756 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20757
20758 * benchtests/Makefile: Define _ISOMAC.
20759 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20760 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20761 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20762 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20763 * benchtests/bench-timing.h: Define attribute_hidden.
20764
20765 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20766
20767 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20768 mov + lsr.
20769
20770 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20771
20772 [BZ #22963]
20773 * localedata/locales/cs_CZ (mon): Rename to...
20774 (alt_mon): This.
20775 (mon): Import from CLDR (genitive case).
20776
20777 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20778
20779 [BZ #22937]
20780 * localedata/locales/el_CY (abmon): Rename to...
20781 (ab_alt_mon): This.
20782 (abmon): Import from CLDR (abbreviated genitive case).
20783 * localedata/locales/el_GR (abmon): Rename to...
20784 (ab_alt_mon): This.
20785 (abmon): Import from CLDR (abbreviated genitive case).
20786
20787 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20788
20789 [BZ #22932]
20790 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20791
20792 2018-03-15 Robert Buj <robert.buj@gmail.com>
20793
20794 [BZ #22848]
20795 * localedata/locales/ca_ES (abmon): Rename to...
20796 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20797 (mon): Rename to...
20798 (alt_mon): This.
20799 (abmon): Import from CLDR (genitive case, month names preceded by
20800 "de" or "d’").
20801 (mon): Likewise.
20802 (abday): Synchronize with CLDR.
20803 (d_t_fmt): Likewise.
20804 (d_fmt): Likewise.
20805 (am_pm): Likewise.
20806
20807 (LC_TIME): Improve indentation.
20808 (LC_TELEPHONE): Likewise.
20809 (LC_NAME): Likewise.
20810 (LC_ADDRESS): Likewise.
20811
20812 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20813
20814 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20815 (lrintf): Remove definitions used only with old GCC.
20816 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20817 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20818 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20819 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20820 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20821 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20822 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20823 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20824 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20825 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20826 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20827 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20828 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20829 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20830 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20831 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20832 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20833 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20834 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20835 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20836 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20837 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20838 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20839 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20840 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20841 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20842 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20843 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20844
20845 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20846
20847 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20848 instruction to unbreak builds with binutils 2.26 and older.
20849
20850 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20851
20852 * sysdeps/aarch64/strncmp.S (count): New macro.
20853 (strncmp): Store misaligned length in SRC1 in COUNT.
20854 (mutual_align): Adjust.
20855 (misaligned8): Load dword at a time when it is safe.
20856
20857 2018-03-12 Zack Weinberg <zackw@panix.com>
20858
20859 [BZ #1190]
20860 [BZ #19476]
20861 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20862 if the _IO_EOF_SEEN bit is already set; update commentary.
20863 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20864 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20865
20866 * support/support_openpty.c, support/tty.h: New files.
20867 * support/Makefile (libsupport-routines): Add support_openpty.
20868
20869 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20870 New test cases.
20871 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20872 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20873
20874 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20875
20876 * po/pt_BR.po: Update translations.
20877
20878 2018-03-12 David Michael <fedora.dm0@gmail.com>
20879
20880 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20881 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20882 get a port to the startup server.
20883
20884 2018-03-11 Zack Weinberg <zackw@panix.com>
20885
20886 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20887 before nldbl-compat.h.
20888
20889 2018-03-10 Zack Weinberg <zackw@panix.com>
20890
20891 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20892 math.h or math_private.h.
20893
20894 * sysdeps/alpha/fpu/s_isnan.c
20895 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20896 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20897 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20898 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20899 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20900 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20901 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20902 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20903 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20904 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20905 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20906 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20907 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20908 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20909 Include math_private.h.
20910
20911 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20912 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20913 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20914 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20915 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20916 * sysdeps/powerpc/power7/fpu/s_logb.c:
20917 Include math.h and math_private.h.
20918
20919 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20920 uses of $at in .set noat / .set at.
20921
20922 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20923
20924 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20925 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20926 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20927 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20928 Likewise.
20929
20930 2018-03-09 Florian Weimer <fweimer@redhat.com>
20931
20932 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20933 in comment.
20934
20935 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20936
20937 [BZ #22919]
20938 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20939 Add nop before __startcontext, add explaining comments.
20940
20941 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20942
20943 [BZ #22926]
20944 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20945 empty for __SPE__.
20946 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20947 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20948 Do not build hardware transactional code for __SPE__.
20949 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20950 (__lll_trylock_elision): Likewise.
20951 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20952 (__lll_unlock_elision): Likewise.
20953
20954 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20955 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20956 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20957 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20958 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20959 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20960 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20961 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20962 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20963 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20964 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20965 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20966 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20967 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20968 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20969 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20970 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20971 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20972 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20973 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20974 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20975 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20976 (__ASSUME_CLONE_BACKWARDS): Define.
20977 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20978 __clone2 if __NR_clone2 is defined.
20979 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20980 (__ASSUME_CLONE_BACKWARDS): Likewise.
20981 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20982 (__ASSUME_CLONE_BACKWARDS): Likewise.
20983 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20984 (__ASSUME_CLONE2): Likewise.
20985 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20986 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20987 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20988 variants and the define architecture can use.
20989 (__ASSUME_CLONE_DEFAULT): Define as default.
20990 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20991 (__ASSUME_CLONE_BACKWARDS): Likewise.
20992 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20993 (__ASSUME_CLONE_BACKWARDS): Likewise.
20994 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20995 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20996
20997 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20998
20999 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
21000
21001 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
21002 time.
21003
21004 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
21005 (do_test_limit): Likewise.
21006
21007 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
21008 for every implementation.
21009 (do_test): Likewise.
21010
21011 * benchtests/bench-strncmp.c: Convert output to json.
21012
21013 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
21014
21015 * io/futimens.c: Add missing start-of-file descriptive comment.
21016 * io/utime.c: Likewise.
21017 * misc/futimesat.c: Likewise.
21018 * misc/utimes.c: Likewise.
21019 * sysdeps/mach/hurd/futimesat.c: Likewise.
21020 * sysdeps/mach/hurd/utimes.c: Likewise.
21021 * sysdeps/posix/utime.c: Likewise.
21022 * sysdeps/posix/utimes.c: Likewise.
21023 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
21024 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
21025 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
21026 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
21027
21028 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
21029
21030 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
21031 hurd_futimes.
21032 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
21033 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
21034 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
21035 (__futimens): Move implementation to...
21036 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
21037 utime_tvalue_from_tspec): ... new helper functions.
21038 (hurd_futimens): New function.
21039 * sysdeps/mach/hurd/futimesat.c: New file.
21040 * sysdeps/mach/hurd/utimensat.c: New file.
21041
21042 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
21043
21044 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
21045 UTIME_OMIT): New macros.
21046 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
21047 before reverting to converting time spec to time value and calling
21048 __file_utimes.
21049 * sysdeps/mach/hurd/utime-helper.c: New file.
21050 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
21051 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
21052 reverting to utime_tvalue_from_tval and __file_utimes.
21053 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
21054 (__lutimes): Just call hurd_futimens after lookup.
21055 * sysdeps/mach/hurd/utimes.c: Likewise.
21056
21057 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
21058
21059 * bits/sigaction.h: Add include guard.
21060 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
21061 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
21062 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
21063 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
21064 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
21065 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
21066 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
21067 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
21068 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
21069
21070 2018-03-05 Joseph Myers <joseph@codesourcery.com>
21071
21072 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
21073 -Wmaybe-uninitialized for -Os.
21074 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
21075 this disabling.
21076
21077 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21078
21079 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
21080 __INO_T_MATCHES_INO64_T is defined.
21081 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
21082 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
21083 of definition.
21084 * dirent/alphasort64.c: Likewise.
21085 * dirent/scandir.c: Likewise.
21086 * dirent/scandir64-tail.c: Likewise.
21087 * dirent/scandir64.c: Likewise.
21088 * dirent/scandirat.c: Likewise.
21089 * dirent/scandirat64.c: Likewise.
21090 * dirent/versionsort.c: Likewise.
21091 * dirent/versionsort64.c: Likewise.
21092 * include/dirent.h: Likewise.
21093
21094 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
21095 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
21096 for socketpair endpoint.
21097 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
21098 WRITE_BUFFER_SIZE as buffer size for sending socket.
21099 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
21100 issue on system where send is implemented with sendto syscall.
21101 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
21102 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
21103 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
21104 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
21105
21106 [BZ #21269]
21107 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
21108 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
21109 sa_restorer for vDSO case.
21110 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
21111
21112 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
21113
21114 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
21115 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
21116 * hurd/hurd/ioctl.h: Include <mach/port.h>
21117 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
21118 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
21119 <mach/mach_types.h> and <mach/message.h>.
21120 (headers): Move mach/param.h to bits/mach/param.h.
21121 * sysdeps/mach/i386/mach/param.h: Move file to ...
21122 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
21123 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
21124 of <mach/param.h>.
21125 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
21126 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
21127 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
21128 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
21129 trivial, for C++ conformity.
21130 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
21131 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
21132 Process mig output through $(migheadersed).
21133 * hurd/Makefile (migheadersed): Define variable.
21134 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
21135 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
21136 headers.
21137 * hurd/hurd.h: Include <bits/types/sigset_t.h>
21138 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
21139 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
21140 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
21141 <bits/types/sigset_t.h>.
21142 [!defined __USE_GNU]: Do not #error out.
21143 (struct hurd_sigstate): Use _NSIG instead of NSIG.
21144 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
21145 Include <stddef.h> and <bits/types/sigset_t.h>
21146 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
21147 instead of sighandler_t.
21148 * stdlib/errno.h (error_t): Move definition to...
21149 * bits/types/error_t.h: ... new header.
21150 * stdlib/Makefile (headers): Add bits/types/error_t.h.
21151 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
21152 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
21153 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
21154 * hurd/hurd.h: Include <bits/types/error_t.h>
21155 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
21156 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
21157 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
21158 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
21159 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
21160 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
21161 * sysdeps/mach/hurd/futimens.c: New file.
21162
21163 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
21164
21165 [BZ #22918]
21166 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
21167 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
21168 * nscd/gai.c (__nss_hosts_database): Readd definition.
21169 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
21170 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
21171 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
21172
21173 2018-03-02 Joseph Myers <joseph@codesourcery.com>
21174
21175 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
21176 (ifunc_one): Likewise.
21177
21178 2018-03-01 DJ Delorie <dj@delorie.com>
21179
21180 [BZ #22342]
21181 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
21182 key value.
21183
21184 2018-03-01 Maciej W. Rozycki <macro@mips.com>
21185
21186 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
21187 `match_pid' parameter.
21188 (td_ta_thr_iter): Update accordingly.
21189
21190 2018-03-01 Florian Weimer <fweimer@redhat.com>
21191
21192 * nptl/Makefile (install-lib-ldscripts): Remove.
21193 (install): Remove rule.
21194 ($(inst_libdir)/libpthread.so): Likewise.
21195
21196 2018-03-01 Mike FABIAN <mfabian@redhat.com>
21197
21198 [BZ #22896]
21199 * localedata/locales/an_ES: update month and day names,
21200 improve d_fmt, improve postal_fmt, add country_post,
21201 add country_isbn
21202
21203 2018-03-01 Mike FABIAN <mfabian@redhat.com>
21204
21205 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
21206 Ukrainian instead of Bulgarian.
21207
21208 2018-03-01 Florian Weimer <fweimer@redhat.com>
21209
21210 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
21211 reference.
21212
21213 2018-03-01 Florian Weimer <fweimer@redhat.com>
21214
21215 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
21216 * nptl/Makefile (routines): Add pthread_atfork.
21217 (static-only-routines): Set to pthread_atfork.
21218 (libpthread-routines): Remove pthread_atfork.
21219 (libpthread-static-only-routines): Remove.
21220 (install): Update comment.
21221 (libpthread.so): Do not install libpthread_nonshared.a.
21222 (tests): Do not link with libpthread_nonshared.a.
21223 (generated): Remove libpthread_nonshared.a.
21224 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
21225 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
21226 with libpthread_nonshared.a.
21227
21228 2018-02-28 Joseph Myers <joseph@codesourcery.com>
21229
21230 [BZ #22902]
21231 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
21232 (libc_feholdexcept_setroundf128): New macro.
21233 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
21234
21235 [BZ #15105]
21236 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
21237 libc_hidden_def.
21238 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
21239 * include/inttypes.h: New file.
21240
21241 2018-02-27 Joseph Myers <joseph@codesourcery.com>
21242
21243 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
21244 -Os in two more places.
21245
21246 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21247
21248 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
21249 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
21250 be sorted correctly at the moment because of a bug.
21251
21252 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21253
21254 [BZ #22550] - es_ES locale (and other es_* locales): collation should
21255 treat ñ as a primary different character, sync the collation
21256 for Spanish with CLDR.
21257 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
21258 * localedata/Makefile: Add new test files.
21259 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
21260 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
21261 collation order.
21262 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
21263 * localedata/am_ET.UTF-8.in: New test file.
21264 * localedata/az_AZ.UTF-8.in: Likewise.
21265 * localedata/be_BY.UTF-8.in: Likewise.
21266 * localedata/ber_DZ.UTF-8.in: Likewise.
21267 * localedata/ber_MA.UTF-8.in: Likewise.
21268 * localedata/bg_BG.UTF-8.in: Likewise.
21269 * localedata/br_FR.UTF-8.in: Likewise.
21270 * localedata/cmn_TW.UTF-8.in: Likewise.
21271 * localedata/crh_UA.UTF-8.in: Likewise.
21272 * localedata/csb_PL.UTF-8.in: Likewise.
21273 * localedata/cv_RU.UTF-8.in: Likewise.
21274 * localedata/cy_GB.UTF-8.in: Likewise.
21275 * localedata/dz_BT.UTF-8.in: Likewise.
21276 * localedata/eo.UTF-8.in: Likewise.
21277 * localedata/es_ES.UTF-8.in: Likewise.
21278 * localedata/fa_IR.UTF-8.in: Likewise.
21279 * localedata/fi_FI.UTF-8.in: Likewise.
21280 * localedata/fil_PH.UTF-8.in: Likewise.
21281 * localedata/fur_IT.UTF-8.in: Likewise.
21282 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
21283 * localedata/ha_NG.UTF-8.in: Likewise.
21284 * localedata/ig_NG.UTF-8.in: Likewise.
21285 * localedata/ik_CA.UTF-8.in: Likewise.
21286 * localedata/kk_KZ.UTF-8.in: Likewise.
21287 * localedata/ku_TR.UTF-8.in: Likewise.
21288 * localedata/ky_KG.UTF-8.in: Likewise.
21289 * localedata/ln_CD.UTF-8.in: Likewise.
21290 * localedata/mi_NZ.UTF-8.in: Likewise.
21291 * localedata/ml_IN.UTF-8.in: Likewise.
21292 * localedata/mn_MN.UTF-8.in: Likewise.
21293 * localedata/mr_IN.UTF-8.in: Likewise.
21294 * localedata/mt_MT.UTF-8.in: Likewise.
21295 * localedata/nb_NO.UTF-8.in: Likewise.
21296 * localedata/om_KE.UTF-8.in: Likewise.
21297 * localedata/os_RU.UTF-8.in: Likewise.
21298 * localedata/ps_AF.UTF-8.in: Likewise.
21299 * localedata/ro_RO.UTF-8.in: Likewise.
21300 * localedata/ru_RU.UTF-8.in: Likewise.
21301 * localedata/sc_IT.UTF-8.in: Likewise.
21302 * localedata/se_NO.UTF-8.in: Likewise.
21303 * localedata/sq_AL.UTF-8.in: Likewise.
21304 * localedata/sv_SE.UTF-8.in: Likewise.
21305 * localedata/szl_PL.UTF-8.in: Likewise.
21306 * localedata/tg_TJ.UTF-8.in: Likewise.
21307 * localedata/tk_TM.UTF-8.in: Likewise.
21308 * localedata/tt_RU.UTF-8.in: Likewise.
21309 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
21310 * localedata/ug_CN.UTF-8.in: Likewise.
21311 * localedata/uz_UZ.UTF-8.in: Likewise.
21312 * localedata/vi_VN.UTF-8.in: Likewise.
21313 * localedata/yi_US.UTF-8.in: Likewise.
21314 * localedata/yo_NG.UTF-8.in: Likewise.
21315 * localedata/zh_CN.UTF-8.in: Likewise.
21316 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
21317 file and fix bugs in the collation.
21318 * localedata/locales/az_AZ: Likewise.
21319 * localedata/locales/be_BY: Likewise.
21320 * localedata/locales/ber_DZ: Likewise.
21321 * localedata/locales/ber_MA: Likewise.
21322 * localedata/locales/bg_BG: Likewise.
21323 * localedata/locales/br_FR: Likewise.
21324 * localedata/locales/br_FR@euro: Likewise.
21325 * localedata/locales/ca_ES: Likewise.
21326 * localedata/locales/cns11643_stroke: Likewise.
21327 * localedata/locales/crh_UA: Likewise.
21328 * localedata/locales/cs_CZ: Likewise.
21329 * localedata/locales/csb_PL: Likewise.
21330 * localedata/locales/cv_RU: Likewise.
21331 * localedata/locales/cy_GB: Likewise.
21332 * localedata/locales/da_DK: Likewise.
21333 * localedata/locales/dz_BT: Likewise.
21334 * localedata/locales/en_CA: Likewise.
21335 * localedata/locales/eo: Likewise.
21336 * localedata/locales/es_CU: Likewise.
21337 * localedata/locales/es_EC: Likewise.
21338 * localedata/locales/es_ES: Likewise.
21339 * localedata/locales/es_US: Likewise.
21340 * localedata/locales/et_EE: Likewise.
21341 * localedata/locales/fa_IR: Likewise.
21342 * localedata/locales/fi_FI: Likewise.
21343 * localedata/locales/fil_PH: Likewise.
21344 * localedata/locales/fur_IT: Likewise.
21345 * localedata/locales/gez_ER@abegede: Likewise.
21346 * localedata/locales/ha_NG: Likewise.
21347 * localedata/locales/hr_HR: Likewise.
21348 * localedata/locales/hsb_DE: Likewise.
21349 * localedata/locales/hu_HU: Likewise.
21350 * localedata/locales/ig_NG: Likewise.
21351 * localedata/locales/ik_CA: Likewise.
21352 * localedata/locales/is_IS: Likewise.
21353 * localedata/locales/iso14651_t1_pinyin: Likewise.
21354 * localedata/locales/kk_KZ: Likewise.
21355 * localedata/locales/ku_TR: Likewise.
21356 * localedata/locales/ky_KG: Likewise.
21357 * localedata/locales/ln_CD: Likewise.
21358 * localedata/locales/lt_LT: Likewise.
21359 * localedata/locales/lv_LV: Likewise.
21360 * localedata/locales/mi_NZ: Likewise.
21361 * localedata/locales/ml_IN: Likewise.
21362 * localedata/locales/mn_MN: Likewise.
21363 * localedata/locales/mr_IN: Likewise.
21364 * localedata/locales/mt_MT: Likewise.
21365 * localedata/locales/nb_NO: Likewise.
21366 * localedata/locales/om_KE: Likewise.
21367 * localedata/locales/os_RU: Likewise.
21368 * localedata/locales/pl_PL: Likewise.
21369 * localedata/locales/ps_AF: Likewise.
21370 * localedata/locales/ro_RO: Likewise.
21371 * localedata/locales/ru_RU: Likewise.
21372 * localedata/locales/ru_UA: Likewise.
21373 * localedata/locales/sc_IT: Likewise.
21374 * localedata/locales/se_NO: Likewise.
21375 * localedata/locales/si_LK: Likewise.
21376 * localedata/locales/sq_AL: Likewise.
21377 * localedata/locales/sv_FI: Likewise.
21378 * localedata/locales/sv_FI@euro: Likewise.
21379 * localedata/locales/sv_SE: Likewise.
21380 * localedata/locales/szl_PL: Likewise.
21381 * localedata/locales/tg_TJ: Likewise.
21382 * localedata/locales/ti_ER: Likewise.
21383 * localedata/locales/tk_TM: Likewise.
21384 * localedata/locales/tl_PH: Likewise.
21385 * localedata/locales/tr_TR: Likewise.
21386 * localedata/locales/tt_RU: Likewise.
21387 * localedata/locales/tt_RU@iqtelif: Likewise.
21388 * localedata/locales/ug_CN: Likewise.
21389 * localedata/locales/uk_UA: Likewise.
21390 * localedata/locales/uz_UZ: Likewise.
21391 * localedata/locales/uz_UZ@cyrillic: Likewise.
21392 * localedata/locales/vi_VN: Likewise.
21393 * localedata/locales/yi_US: Likewise.
21394 * localedata/locales/yo_NG: Likewise.
21395
21396 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21397
21398 * gen-locales.mk: Make test files which contain @ modifiers in their
21399 name work.
21400 * localedata/gen-locale.sh: Likewise.
21401
21402 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21403
21404 * posix/tst-fnmatch.input: Fix results for range expressions
21405 for non C locales.
21406 * posix/tst-regexloc.c: Do not use a range expression for
21407 de_DE.ISO-8859-1 locale.
21408
21409 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21410
21411 * posix/bug-regex5.c: Fix test case because with the new
21412 iso14651_t1_common file, the da_DK locale now has 6 collating elements
21413 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
21414 file.
21415
21416 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21417
21418 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
21419 downloaded from ISO, the collation order of @-. and space has changed.
21420 Therefore, this test file needed to be adapted.
21421 * localedata/fr_CA.UTF-8.in: Likewise.
21422 * localedata/fr_FR.UTF-8.in: Likewise.
21423 * localedata/uk_UA.UTF-8.in: Likewise.
21424
21425 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21426
21427 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
21428 order of ȥ in the new iso14651_t1_common file.
21429 * localedata/pl_PL.UTF-8.in: Likewise.
21430
21431 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21432
21433 * localedata/locales/iso14651_t1_common: Add sections for various
21434 scripts to the iso14651_t1_common file.
21435
21436 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21437
21438 * localedata/locales/iso14651_t1_common: Use the code point of a
21439 character in the fourth collation level instead of IGNORE for all
21440 entries which have IGNORE on all 4 levels.
21441
21442 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21443
21444 * localedata/locales/iso14651_t1_common: Add some convenient collation
21445 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
21446 rules similar to those in CLDR.
21447
21448 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21449
21450 * localedata/locales/iso14651_t1_common: The new version of this
21451 file downloaded from ISO contained several syntax errors which
21452 are fixed by this patch.
21453
21454 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21455
21456 * localedata/locales/iso14651_t1_common: replace all <U.....>
21457 with <U000.....> because glibc understands only 4 digit or 8 digit
21458
21459 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21460
21461 * localedata/locales/iso14651_t1_common: Necessary changes
21462 to make the file downloaded from ISO usable by glibc.
21463
21464 2018-02-27 Mike FABIAN <mfabian@redhat.com>
21465
21466 [BZ #14095]
21467 * localedata/locales/iso14651_t1_common: Update file to
21468 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
21469
21470 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
21471
21472 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
21473 of <nptl/pthreadP.h>
21474 (thread_attr_compare): Move function to...
21475 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
21476 * sysdeps/nptl/timer_routines.h: ... new header.
21477 * sysdeps/mach/hurd/gai_misc.h: New file.
21478
21479 2018-02-26 Joseph Myers <joseph@codesourcery.com>
21480
21481 * string/strcoll_l.c: Include <libc-diag.h>.
21482 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
21483 declarations of seq1 and seq2.
21484
21485 [BZ #15105]
21486 * stdlib/atoi.c (atoi): Use libc_hidden_def.
21487 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
21488
21489 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
21490
21491 [BZ #22433]
21492 [BZ #22807]
21493 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
21494 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
21495 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
21496 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
21497 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
21498 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
21499
21500 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21501
21502 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
21503 macros used in __ptrace_request.
21504
21505 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
21506
21507 [BZ #22792]
21508 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
21509 to $(CC).
21510 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
21511 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
21512 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
21513 <tcb-offsets.h>.
21514
21515 2018-02-23 Joseph Myers <joseph@codesourcery.com>
21516
21517 [BZ #15105]
21518 * ctype/ctype.c (tolower): Use libc_hidden_def.
21519 (toupper): Likewise.
21520 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
21521 [!_ISOMAC] (toupper): Likewise.
21522
21523 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21524
21525 * localedata/Makefile: Remove --quiet argument when
21526 installing locales
21527
21528 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21529
21530 [BZ #17438]
21531 * localedata/locales/pt_BR (LC_TIME): use / instead of -
21532 in d_fmt.
21533 * localedata/locales/pt_PT (LC_TIME): likewise
21534
21535 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21536
21537 [BZ #22646]
21538 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
21539 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
21540 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
21541
21542 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21543
21544 * sysdeps/sparc/fpu/libm-test-ulps: Update.
21545
21546 * nptl/Makefile (routines): Remove unregister-atfork.
21547 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
21548 (fork_handler_alloc): Remove function.
21549 (fork_handlers, fork_handler_init): New variables.
21550 (__fork_lock): Rename to atfork_lock.
21551 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
21552 to use a dynamic array to add/remove atfork handlers.
21553 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21554 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
21555 Remove declaration.
21556 (fork_handler): Remove next, refcntr, and need_signal member.
21557 (__run_fork_handler_type): New enum.
21558 (__run_fork_handlers): New prototype.
21559 * nptl/register-atfork.c: Remove file.
21560 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
21561
21562 * sysdeps/nptl/nptl-signals.h: Move to ...
21563 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
21564 comments.
21565 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
21566 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
21567 unnecessary check for SIGTIMER.
21568 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
21569 remove unnecessary removal of SIGTIMER.
21570 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
21571 include-signals.h rename.
21572 * nptl/pthreadP.h: Likewise.
21573 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
21574 __is_internal_signal instead of __nptl_is_internal_signal.
21575
21576 2018-02-22 Andrew Waterman <andrew@sifive.com>
21577
21578 [BZ # 22884]
21579 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
21580 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
21581 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
21582 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
21583
21584 2018-02-22 DJ Delorie <dj@delorie.com>
21585
21586 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
21587
21588 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
21589
21590 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
21591 do_misaligned, not misaligned8.
21592
21593 2018-02-22 Steve Ellcey <sellcey@cavium.com>
21594
21595 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21596 Add memcpy_thunderx2.
21597 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
21598 Increment to 4.
21599 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
21600 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
21601 and IS_THUNDERX2PA checks.
21602 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
21603 Use macro to set name appropriately.
21604 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
21605 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
21606 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
21607 New macro.
21608 (IS_THUNDERX2): New macro.
21609
21610 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
21611
21612 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21613
21614 2018-02-21 Zack Weinberg <zackw@panix.com>
21615
21616 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21617 Define here, unconditionally.
21618 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21619 * libio/libioP.h: Remove #if 0 blocks.
21620 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21621 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21622 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21623
21624 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21625 Assume weak_alias is always defined.
21626
21627 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21628 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21629 Remove #if 0 and #ifdef TODO blocks.
21630 Assume text_set_element is always defined.
21631
21632 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21633 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21634 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21635
21636 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21637 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21638 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21639 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21640 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21641 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21642 Reformat bit flags for _flags field to make occupancy clearer.
21643 Update commentary.
21644 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21645 Keep definitions consistent with those in libio/libio.h.
21646
21647 * libio/libio.h (_IO_file_flags): Remove macro.
21648 All uses changed to _flags.
21649
21650 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21651 (__HAVE_COLUMN, _IO_BE): Don't define.
21652 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21653 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21654 * libio/libioP.h (EOF): Don't define.
21655 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21656 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21657 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21658 testing _IO_UNIFIED_JUMPTABLES.
21659
21660 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21661 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21662 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21663 (_IO_size_t): Delete; all uses changed to size_t.
21664 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21665 (_IO_off_t): Delete; all uses changed to off_t.
21666 (_IO_off64_t): Delete; all uses changed to off64_t.
21667 (_IO_pid_t): Delete; all uses changed to pid_t.
21668 (_IO_uid_t): Delete; all uses changed to uid_t.
21669 (_IO_wint_t): Delete; all uses changed to wint_t.
21670 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21671 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21672 (_IO_cookie_io_functions_t): Delete; all uses changed to
21673 cookie_io_functions_t.
21674 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21675 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21676 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21677 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21678
21679 * libio/iofopncook.c: Remove unnecessary forward declarations.
21680 * libio/iolibio.h: Correct outdated commentary.
21681 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21682 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21683 Remove unnecessary casts.
21684 * stdio-common/getline.c: Use _IO_getdelim directly.
21685 Don't redefine ssize_t.
21686 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21687 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21688 Remove outdated comments.
21689 * stdio-common/vfscanf.c: Don't redefine va_list.
21690
21691 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21692 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21693 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21694 which are always true, and __cplusplus, which is always false.
21695
21696 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21697
21698 [BZ #15105]
21699 [BZ #19463]
21700 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21701 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21702 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21703 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21704 libc_hidden_proto.
21705 [!_ISOMAC] (putc_unlocked): Likewise.
21706 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21707 define inline if [__USE_EXTERN_INLINES].
21708 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21709 putc_unlocked.
21710
21711 [BZ #15105]
21712 [BZ #19463]
21713 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21714 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21715 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21716 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21717 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21718 getc_unlocked.
21719 * time/tzfile.c (__tzfile_read): Likewise.
21720
21721 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21722
21723 [BZ #22517]
21724 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21725
21726 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21727
21728 * io/fcntl.h: Fix a typo in a comment.
21729
21730 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21731
21732 [BZ #22862]
21733 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21734 define _DEFAULT_SOURCE.
21735 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21736
21737 2018-02-21 Florian Weimer <fweimer@redhat.com>
21738
21739 [BZ #20890]
21740 * elf/cache.c (save_cache): Call fsync on temporary file before
21741 renaming it.
21742 (save_aux_cache): Call fdatasync on temporary file before renaming
21743 it.
21744
21745 2018-02-21 Florian Weimer <fweimer@redhat.com>
21746
21747 [BZ #22787]
21748 * include/caller.h: Remove file.
21749 * elf/dl-caller.c: Likewise.
21750 * elf/Makefile (dl-routines): Remove dl-caller.
21751 (shared-only-routines): Do not add dl-caller.
21752 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21753 __check_caller.
21754 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21755 member.
21756 (dl_open_worker): Do not call __check_caller.
21757 (_dl_open): Do not set caller_dl_open member.
21758 * elf/rtld.c (_rtld_global_ro): Do not initialize
21759 _dl_check_caller member.
21760 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21761 _dl_check_caller member.
21762 (_dl_check_caller): Remove declaration.
21763 * sysdeps/unix/sysv/linux/dl-execstack.c
21764 (_dl_make_stack_executable): Do not call __check_caller.
21765
21766 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21767
21768 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21769 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21770
21771 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21772
21773 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21774 description.
21775
21776 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21777
21778 [BZ #16335]
21779 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21780 of 199606L, 200112L, and 200809L.
21781 (_XOPEN_SOURCE): Document special values of 600 and 700.
21782 (_ISOC11_SOURCE): Document macro.
21783 (_ATFILE_SOURCE): Likewise.
21784 (_FORTIFY_SOURCE): Likewise.
21785
21786 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21787
21788 [BZ #15105]
21789 [BZ #19463]
21790 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21791 and define as weak alias of __ferror_unlocked. Use
21792 libc_hidden_weak.
21793 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21794 libc_hidden_proto.
21795 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21796 function if [__USE_EXTERN_INLINES].
21797 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21798 ferror_unlocked.
21799
21800 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21801
21802 [BZ #6889]
21803 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21804
21805 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21806
21807 [BZ #22818]
21808 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21809 the GLIBC_2.1 version.
21810
21811 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21812
21813 [BZ #21508]
21814 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21815 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21816 intl/tst-gettext-de.po from po/de.po by removing the
21817 POT-Creation-Date line.
21818 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21819 ../po/de.po.
21820 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21821 ../po/de.po.
21822
21823 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21824
21825 * mach/Makefile (headers): Add mach/param.h.
21826 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21827 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21828 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21829 (__ptsname_r): Move implementation to...
21830 (__ptsname_internal): ... new function. Add filling the STP
21831 structure.
21832
21833 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21834
21835 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21836 idouble to 1 ULP.
21837
21838 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21839
21840 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21841 syntax.
21842
21843 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21844
21845 * nptl/Makefile (tst-mutex8-ENV): Delete.
21846 * nptl/tst-mutex8.c (check_type):
21847 Add runtime check if mutex will be elided.
21848
21849 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21850
21851 [BZ #20980]
21852 [BZ #21234]
21853 * manual/install.texi (Configuring and compiling): Describe
21854 passing CC and CFLAGS on configure command line, not as
21855 environment variables. Use @code markup on those variables.
21856 Specify what options go in CC and what go in CFLAGS. Note the
21857 requirement to compile with optimization.
21858 * INSTALL: Regenerated.
21859
21860 [BZ #18124]
21861 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21862 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21863 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21864 __sigprocmask instead of sigprocmask.
21865 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21866 Likewise.
21867 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21868 __sigsetjmp and sigprocmask.
21869
21870 [BZ #15105]
21871 * include/argz.h (argz_next): Use libc_hidden_proto.
21872 (__argz_next): Likewise.
21873 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21874 (argz_next): Use libc_hidden_weak.
21875
21876 [BZ #15105]
21877 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21878 libc_hidden_proto.
21879 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21880 libc_hidden_def.
21881
21882 [BZ #15105]
21883 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21884 libc_hidden_proto.
21885 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21886
21887 [BZ #15105]
21888 [BZ #19463]
21889 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21890 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21891 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21892 (__feof_unlocked): New declaration, and inline function if
21893 [__USE_EXTERN_INLINES].
21894 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21895 instead of feof_unlocked.
21896 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21897 * nss/nsswitch.c (nss_parse_file): Likewise.
21898 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21899 Likewise.
21900 * time/getdate.c (__getdate_r): Likewise.
21901 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21902 Define as macro to call __feof_unlocked.
21903
21904 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21905
21906 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21907
21908 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21909
21910 * math/Makefile: Remove mpexp.c and mplog.c
21911 * sysdeps/i386/fpu/mpexp.c: Delete file.
21912 * sysdeps/i386/fpu/mplog.c: Likewise.
21913 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21914 * sysdeps/ia64/fpu/mplog.c: Likewise.
21915 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21916 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21917 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21918 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21919 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21920 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21921 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21922 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21923 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21924 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21925 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21926 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21927 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21928 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21929 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21930 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21931
21932 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21933
21934 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21935
21936 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21937
21938 * sysdeps/sh/libm-test-ulps: Update.
21939
21940 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21941
21942 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21943 idouble to 1 ULP.
21944
21945 2018-02-12 Zack Weinberg <zackw@panix.com>
21946
21947 [BZ #19239]
21948 * posix/sys/types.h: Don't include sys/sysmacros.h.
21949 * misc/sys/sysmacros.h: Remove the conditional deprecation
21950 warnings for the macros defined by this header.
21951
21952 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21953
21954 * manual/probes.texi: Remove slowexp probes.
21955 * math/Makefile: Remove slowexp.
21956 * sysdeps/generic/math_private.h (__slowexp): Remove.
21957 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21958 document error bounds.
21959 * sysdeps/i386/fpu/slowexp.c: Remove.
21960 * sysdeps/ia64/fpu/slowexp.c: Remove.
21961 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21962 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21963 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21964 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21965 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21966 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21967 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21968 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21969 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21970 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21971 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21972
21973 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21974
21975 [BZ #13932]
21976 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21977 * benchtests/pow-inputs: Update comment for slow path cases.
21978 * manual/probes.texi (slowpow_p10): Delete removed probe.
21979 (slowpow_p10): Likewise.
21980 * math/Makefile: Remove halfulp.c and slowpow.c.
21981 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21982 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21983 (__halfulp): Remove.
21984 (__slowpow): Remove.
21985 * sysdeps/i386/fpu/halfulp.c: Delete file.
21986 * sysdeps/i386/fpu/slowpow.c: Likewise.
21987 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21988 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21989 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21990 improve comments and add error analysis.
21991 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21992 (power1): Remove function:
21993 (log1): Remove error argument, add error analysis.
21994 (my_log2): Remove function.
21995 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21996 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21997 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21998 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21999 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
22000 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
22001 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
22002 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
22003 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
22004 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
22005 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
22006 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
22007 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
22008 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
22009
22010 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
22011
22012 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
22013 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
22014
22015 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
22016
22017 [BZ #22433]
22018 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
22019 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
22020 and PTRACE_SETHBPREGS.
22021
22022 2018-02-10 Zack Weinberg <zackw@panix.com>
22023
22024 [BZ #22830]
22025 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
22026 correctly.
22027 * malloc/tst-malloc-stats-cancellation.c: New test case.
22028 * malloc/Makefile: Add new test case.
22029
22030 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
22031
22032 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
22033
22034 2018-02-10 Joseph Myers <joseph@codesourcery.com>
22035
22036 * math/Makefile (libm-narrow-fns): Add add.
22037 (libm-test-funcs-narrow): Likewise.
22038 * math/Versions (GLIBC_2.28): Add narrowing add functions.
22039 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
22040 * math/gen-auto-libm-tests.c (test_functions): Add add.
22041 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
22042 (NARROW_ADD_ROUND_TO_ODD): Likewise.
22043 (NARROW_ADD_TRIVIAL): Likewise.
22044 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
22045 macro.
22046 (__daddl): Likewise.
22047 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
22048 dadd.
22049 (CFLAGS-nldbl-dadd.c): New variable.
22050 (CFLAGS-nldbl-fadd.c): Likewise.
22051 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
22052 __nldbl_daddl.
22053 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
22054 prototype.
22055 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
22056 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
22057 * math/auto-libm-test-in: Add tests of add.
22058 * math/auto-libm-test-out-narrow-add: New generated file.
22059 * math/libm-test-narrow-add.inc: New file.
22060 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
22061 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
22062 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
22063 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
22064 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
22065 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
22066 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
22067 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
22068 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
22069 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
22070 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
22071 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
22072 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
22073 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
22074 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
22075 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
22076 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
22077 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
22078 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22079 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
22080 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22081 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22082 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22083 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22084 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22085 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22086 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22087 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22088 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22089 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22090 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22091 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
22093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
22094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
22095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
22096 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22097 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22098 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22099 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22100 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22101 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22102 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
22103 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
22104 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22105 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22106
22107 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
22108 (f128-pairs): New variable.
22109 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
22110 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
22111 to CFLAGS.
22112 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
22113 Also make tests add $(f128-loader-link) to gnulib-tests.
22114
22115 2018-02-09 DJ Delorie <dj@redhat.com>
22116
22117 [BZ #22827]
22118 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
22119 64-bit ELF type for 64-bit ELF objects.
22120
22121 2018-02-09 Joseph Myers <joseph@codesourcery.com>
22122
22123 * math/libm-test-driver.c (snan_tests_arg): New variable.
22124 * math/libm-test-support.h (snan_tests_arg): New declaration.
22125 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
22126
22127 * math/Makefile (test-type-pairs): New variable.
22128 (test-type-pairs-f64xf128-yes): Likewise.
22129 (tests): Add test-narrow-macros.
22130 (libm-test-funcs-narrow): New variable.
22131 (libm-test-c-narrow): Likewise.
22132 (generated): Add $(libm-test-c-narrow).
22133 (libm-tests-base-narrow): New variable.
22134 (libm-tests-narrow): Likewise.
22135 (libm-tests): Add $(libm-tests-narrow).
22136 (libm-tests-for-type): Handle $(libm-tests-narrow).
22137 (libm-test-c-narrow-obj): New variable.
22138 ($(libm-test-c-narrow-obj)): New rule.
22139 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
22140 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
22141 $(o-iterator) to set dependencies and CFLAGS.
22142 * math/gen-auto-libm-tests.c: Document use for narrowing
22143 functions.
22144 (output_for_one_input_case): Take argument NARROW.
22145 (generate_output): Likewise. Update call to
22146 output_for_one_input_case.
22147 (main): Take --narrow option. Update call to generate_output.
22148 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
22149 (apply_lit): Update call to _apply_lit.
22150 (apply_arglit): New function.
22151 (parse_args): Handle "a" arguments.
22152 (parse_auto_input): Handle format names using ":".
22153 * math/README.libm-test: Document "a" parameter type.
22154 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
22155 (ARG_TYPE_TRUE_MIN): Likewise.
22156 (ARG_TYPE_MAX): Likwise.
22157 (ARG_MIN_EXP): Likewise.
22158 (ARG_MAX_EXP): Likewise.
22159 (ARG_MANT_DIG): Likewise.
22160 (TEST_COND_arg_ibm128): Likewise.
22161 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
22162 (TEST_COND_arg_fmt): New macro.
22163 (init_max_error): Update prototype.
22164 * math/libm-test-support.c (test_ibm128): New variable.
22165 (init_max_error): Take argument testing_ibm128 and set test_ibm128
22166 instead of using [TEST_COND_ibm128] conditional.
22167 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
22168 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
22169 [TEST_NARROW] (TEST_MSG): New definition.
22170 (arg_plus_zero): New macro.
22171 (arg_minus_zero): Likewise.
22172 (arg_plus_infty): Likewise.
22173 (arg_minus_infty): Likewise.
22174 (arg_qnan_value_pl): Likewise.
22175 (arg_qnan_value): Likewise.
22176 (arg_snan_value_pl): Likewise.
22177 (arg_snan_value): Likewise.
22178 (arg_max_value): Likewise.
22179 (arg_min_value): Likewise.
22180 (arg_min_subnorm_value): Likewise.
22181 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
22182 (RUN_TEST_LOOP_aa_f): New macro.
22183 (TEST_SUFF): New macro.
22184 (TEST_SUFF_STR): Likewise.
22185 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
22186 (TEST_COND_any_ibm128): New macro.
22187 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
22188 this_func. Update call to init_max_error.
22189 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
22190 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
22191 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
22192 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
22193 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
22194 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
22195 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
22196 * math/test-math-scalar.h (TEST_NARROW): Likewise.
22197 * math/test-math-vector.h (TEST_NARROW): Likewise.
22198 * math/test-arg-double.h: New file.
22199 * math/test-arg-float128.h: Likewise.
22200 * math/test-arg-float32x.h: Likewise.
22201 * math/test-arg-float64.h: Likewise.
22202 * math/test-arg-float64x.h: Likewise.
22203 * math/test-arg-ldouble.h: Likewise.
22204 * math/test-math-narrow.h: Likewise.
22205 * math/test-narrow-macros.c: Likewise.
22206 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
22207 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
22208 test-narrow-macros-ldbl-64.
22209 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
22210
22211 * math/bits/mathcalls-narrow.h: New file.
22212 * include/bits/mathcalls-narrow.h: Likewise.
22213 * math/math-narrow.h: Likewise.
22214 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
22215 (__MATHCALL_NARROW_ARGS_2): Likewise.
22216 (__MATHCALL_NARROW_ARGS_3): Likewise.
22217 (__MATHCALL_NARROW_NORMAL): Likewise.
22218 (__MATHCALL_NARROW_REDIR): Likewise.
22219 (__MATHCALL_NARROW): Likewise.
22220 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
22221 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
22222 defined.
22223 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22224 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
22225 (libm-narrow-fns): New variable.
22226 (libm-narrow-types-basic): Likewise.
22227 (libm-narrow-types-ldouble-yes): Likewise.
22228 (libm-narrow-types-float128-yes): Likewise.
22229 (libm-narrow-types-float128-alias-yes): Likewise.
22230 (libm-narrow-types): Likewise.
22231 (libm-routines): Add narrowing functions.
22232 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
22233 (libc_feholdexcept_setroundf128): New macro.
22234 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
22235 * sysdeps/ieee754/float128/float128_private.h: Include
22236 <math/math-narrow.h>.
22237 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
22238 Undefine and redefine.
22239 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
22240 (libm_alias_float_ldouble): Undefine and redefine.
22241 (libm_alias_double_ldouble): Likewise.
22242
22243 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
22244
22245 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
22246
22247 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
22248 FPCR/FPSR.
22249
22250 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
22251
22252 * manual/creature.texi: Convert references to gcc.info to gcc.
22253 * manual/stdio.texi: Likewise.
22254 * manual/string.texi: Likewise.
22255
22256 2018-02-07 Joseph Myers <joseph@codesourcery.com>
22257
22258 [BZ #17979]
22259 * posix/bits/types.h (__int_least8_t): New typedef.
22260 (__uint_least8_t): Likewise.
22261 (__int_least16_t): Likewise.
22262 (__uint_least16_t): Likewise.
22263 (__int_least32_t): Likewise.
22264 (__uint_least32_t): Likewise.
22265 (__int_least64_t): Likewise.
22266 (__uint_least64_t): Likewise.
22267 * sysdeps/generic/stdint.h (int_least8_t): Define using
22268 __int_least8_t.
22269 (int_least16_t): Define using __int_least16_t.
22270 (int_least32_t): Define using __int_least32_t.
22271 (int_least64_t): Define using __int_least64_t.
22272 (uint_least8_t): Define using __uint_least8_t.
22273 (uint_least16_t): Define using __uint_least16_t.
22274 (uint_least32_t): Define using __uint_least32_t.
22275 (uint_least64_t): Define using __uint_least64_t.
22276 * wcsmbs/uchar.h: Include <bits/types.h>.
22277 (char16_t): Define using __uint_least16_t conditional only on
22278 [!__USE_ISOCXX11].
22279 (char32_t): Define using __uint_least32_t conditional only on
22280 [!__USE_ISOCXX11].
22281 * wcsmbs/test-char-types.c: New file.
22282 * wcsmbs/Makefile (tests): Add test-char-types.
22283
22284 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
22285 version to 4.0.1.
22286
22287 2018-02-07 Zack Weinberg <zackw@panix.com>
22288
22289 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
22290 Delete all contents except for definitions of _G_HAVE_MMAP and
22291 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
22292 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
22293 sysdeps/unix/sysv/linux/_G_config.h. Make same content
22294 change as above.
22295
22296 * libio/libio.h: Don't include bits/_G_config.h here.
22297 Include stddef.h with __need_wchar_t defined. Include
22298 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
22299 Define _IO_iconv_t here, directly.
22300 Don't define _IO_HAVE_ST_BLKSIZE.
22301 * libio/libioP.h: Include _G_config.h here. Move include of
22302 shlib-compat.h up with rest of includes. Simplify conditionals
22303 controlling definition of _IO_JUMPS_OFFSET.
22304
22305 * csu/init.c: Remove always-true #if around entire file.
22306 Don't include stdio.h. Set _IO_stdin_used to hardwired
22307 constant 0x20001, and update commentary.
22308 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
22309 Replace all uses of _G_va_list with __gnuc_va_list.
22310 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
22311 instead of #if _IO_HAVE_ST_BLKSIZE.
22312 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
22313 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
22314 not #ifdef.
22315
22316 * libio/bits/libio.h: Move back to libio/libio.h and adjust
22317 multiple-include guard to match.
22318 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
22319 into this file.
22320 Remove preprocessor conditionals that are always true and/or
22321 redundant to other preprocessor conditionals in the same nest.
22322 Include shlib-compat.h unconditionally.
22323 Error out if _LIBC is not defined, or if _ISOMAC is defined,
22324 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
22325 defined after including stdio.h.
22326 Use __BEGIN_DECLS/__END_DECLS.
22327
22328 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
22329 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
22330 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
22331
22332 2018-02-07 Zack Weinberg <zackw@panix.com>
22333
22334 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
22335 New single-type headers split from _G_config.h.
22336 * libio/bits/types/cookie_io_functions_t.h
22337 * libio/bits/types/struct_FILE.h
22338 New single-type headers split from libio.h.
22339
22340 * libio/Makefile: Install the above new headers. Don't install
22341 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
22342 bits/libio-ldbl.h.
22343 * libio/_G_config.h, libio/libio.h: Delete file.
22344
22345 * libio/bits/libio.h: Remove improper-inclusion guard.
22346 Include stdio.h and don't repeat anything that it does.
22347 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
22348 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
22349 __io_read_fn as cookie_read_function_t,
22350 __io_write_fn as cookie_write_function_t,
22351 __io_seek_fn as cookie_seek_function_t,
22352 __io_close_fn as cookie_close_function_t,
22353 and _IO_cookie_io_functions_t as cookie_io_functions_t.
22354 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
22355 here, in the "compatibility defines" section. Remove an #if 0
22356 block. Use the "body" macros from bits/types/struct_FILE.h to
22357 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
22358 and _IO_ferror_unlocked.
22359 Move prototypes of __uflow and __overflow...
22360
22361 * libio/stdio.h: ...here. Don't include bits/libio.h.
22362 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
22363 directly from stdarg.h. Include bits/types/__fpos_t.h,
22364 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
22365 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
22366 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
22367 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
22368 cookie_io_functions_t, not _IO_cookie_io_functions_t;
22369 __ssize_t, not _IO_ssize_t. Unconditionally define
22370 BUFSIZ as 8192 and EOF as (-1).
22371
22372 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
22373 macros from bits/types/struct_FILE.h instead of _IO_* macros
22374 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
22375 instead of _IO_ssize_t.
22376 * libio/bits/stdio2.h: Similarly.
22377
22378 * libio/iolibio.h: Add multiple-include guard.
22379 Include bits/libio.h after stdio.h.
22380 * libio/libioP.h: Add multiple-include guard.
22381 Include stdio.h and bits/libio.h before iolibio.h.
22382
22383 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
22384 * include/bits/types/cookie_io_functions_t.h
22385 * include/bits/types/struct_FILE.h: New wrappers.
22386
22387 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
22388 Get definitions of _G_fpos_t and _G_fpos64_t from
22389 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
22390 respectively. Remove improper-inclusion guards.
22391
22392 * conform/data/stdio.h-data: Update expectations of va_list.
22393 * scripts/check-installed-headers.sh: Remove special case for
22394 libio.h and _G_config.h.
22395
22396 2018-02-07 Joseph Myers <joseph@codesourcery.com>
22397
22398 [BZ #15105]
22399 [BZ #19463]
22400 * include/sys/sysmacros.h [!_ISOMAC]
22401 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
22402 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
22403 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
22404 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
22405 libc_hidden_proto.
22406 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
22407 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
22408 Likewise.
22409 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
22410 Undefine and redefine to add use __gnu_dev_ prefix.
22411 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
22412 Likewise.
22413 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
22414 and define as hidden inline function.
22415 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
22416 Likewise.
22417 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
22418 Likewise.
22419 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
22420 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
22421 (gnu_dev_minor): Likewise.
22422 (gnu_dev_makedev): Likewise.
22423 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
22424 makedev.
22425 * posix/wordexp.c (exec_comm_child): Likewise.
22426 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
22427 instead of minor and __gnu_dev_major instead of major.
22428 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
22429 __gnu_dev_major instead of major.
22430 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
22431 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
22432 instead of gnu_dev_minor.
22433 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
22434 (SLAVE_P): Likewise.
22435 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
22436 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
22437 instead of major.
22438
22439 [BZ #21313]
22440 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
22441 in another place.
22442 * locale/weightwc.h (findidx): Likewise.
22443
22444 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
22445
22446 * manual/probes.texi (slowlog): Delete documentation of removed probe.
22447 (slowlog_inexact): Likewise
22448 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
22449 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
22450
22451 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
22452
22453 [BZ #22797]
22454 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
22455 missing second underscore to parameter name.
22456
22457 2018-02-06 Joseph Myers <joseph@codesourcery.com>
22458
22459 [BZ #14508]
22460 [BZ #15512]
22461 [BZ #17082]
22462 [BZ #20530]
22463 * bits/byteswap.h: Update file comment. Do not include
22464 <bits/byteswap-16.h>.
22465 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
22466 constant.
22467 (__bswap_16): Define as inline function.
22468 (__bswap_constant_32): Reformat definition.
22469 (__bswap_32): Always define as inline function, not macro, using
22470 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
22471 otherwise __bswap_constant_32.
22472 (__bswap_constant_64): Reformat definition. Do not use
22473 __extension__ here.
22474 (__bswap_64): Always define as inline function, not macro. Use
22475 __extension__ on function definition. Use __builtin_bswap64 if
22476 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
22477 * string/test-endian-file-scope.c: New file.
22478 * string/test-endian-sign-conversion.c: Likewise.
22479 * string/Makefile (headers): Remove bits/byteswap-16.h.
22480 (tests): Add test-endian-file-scope and
22481 test-endian-sign-conversion.
22482 (CFLAGS-test-endian-sign-conversion.c): New variable.
22483 * bits/byteswap-16.h: Remove file.
22484 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
22485 * sysdeps/ia64/bits/byteswap.h: Likewise.
22486 * sysdeps/m68k/bits/byteswap.h: Likewise.
22487 * sysdeps/s390/bits/byteswap-16.h: Likewise.
22488 * sysdeps/s390/bits/byteswap.h: Likewise.
22489 * sysdeps/tile/bits/byteswap.h: Likewise.
22490 * sysdeps/x86/bits/byteswap-16.h: Likewise.
22491 * sysdeps/x86/bits/byteswap.h: Likewise.
22492
22493 [BZ #17721]
22494 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
22495 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
22496 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
22497 199901L] (__restrict): Define to restrict.
22498
22499 [BZ #19667]
22500 * string/testcopy.c: Include <support/support.h>. Do not include
22501 <malloc.h>. Use <support/test-driver.c>.
22502 (main): Rename to do_test. Make static. Use xmalloc instead of
22503 malloc.
22504
22505 [BZ #13575]
22506 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
22507 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
22508 (SSIZE_MAX): Define to INT_MAX.
22509 * posix/test-ssize-max.c: New file.
22510 * posix/Makefile (tests): Add test-ssize-max.
22511
22512 [BZ #19668]
22513 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
22514 <support/support.h>. Do not include <malloc.h>.
22515 (query_auxv): Use xmalloc instead of malloc.
22516
22517 [BZ #14553]
22518 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
22519 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
22520 instead of loff_t.
22521
22522 2018-02-06 Florian Weimer <fweimer@redhat.com>
22523
22524 [BZ #18023]
22525 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22526 Use scratch_buffer instead of extend_alloca.
22527
22528 2018-02-06 Zack Weinberg <zackw@panix.com>
22529
22530 * libio/stdio.h: Don't define getc or putc as macros.
22531 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
22532 not _IO_getc and _IO_putc.
22533
22534 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
22535 * stdio-common/tstgetln.c: Don't redefine ssize_t.
22536
22537 2018-02-06 Joseph Myers <joseph@codesourcery.com>
22538
22539 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
22540 (TCP_FASTOPEN_NO_COOKIE): Likewise.
22541
22542 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
22543
22544 [BZ #14890]
22545 * elf/elf.h (NT_PRFPREG): New macro.
22546 (NT_S390_VXRS_LOW): Likewise.
22547 (NT_S390_VXRS_HIGH): Likewise.
22548 (NT_S390_GS_CB): Likewise.
22549 (NT_S390_GS_BC): Likewise.
22550 (NT_S390_RI_CB): Likewise.
22551
22552 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
22553 (MAP_SYNC): New macro.
22554 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
22555 Likewise.
22556 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
22557 (MAP_SYNC): Likewise.
22558 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
22559 (MAP_SYNC): Likewise.
22560 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
22561 (MAP_SYNC): Likewise.
22562 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
22563 (MAP_SYNC): Likewise.
22564 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
22565 (MAP_SYNC): Likewise.
22566 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
22567 (MAP_SYNC): Likewise.
22568 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
22569 Likewise.
22570 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
22571 Likewise.
22572
22573 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
22574 (MAP_SHARED_VALIDATE): New macro.
22575 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
22576 (MAP_SHARED_VALIDATE): Likewise.
22577
22578 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22579
22580 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
22581 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
22582 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
22583
22584 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22585
22586 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
22587 (DT_NUM): Updated to 35.
22588
22589 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22590
22591 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
22592 __builtin_expect with __glibc_likely and __glibc_unlikely.
22593 (elf_machine_rela): Likewise.
22594 (elf_machine_lazy_rel): Likewise.
22595
22596 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22597
22598 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
22599 __builtin_expect with __glibc_likely and __glibc_unlikely.
22600 (elf_machine_lazy_rel): Likewise.
22601
22602 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22603
22604 [BZ #22638]
22605 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
22606 SHARED.
22607 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
22608
22609 2018-02-05 Andreas Schwab <schwab@suse.de>
22610
22611 [BZ #22761]
22612 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
22613 string.
22614
22615 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
22616
22617 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22618 not check against PTHREAD_STACK_MIN.
22619
22620 2018-02-02 Sean McKean <smckean83@gmail.com>
22621
22622 [BZ #22735]
22623 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22624
22625 2018-02-02 Florian Weimer <fweimer@redhat.com>
22626
22627 [BZ #22753]
22628 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22629 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22630 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22631 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22632 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22633 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22634 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22635 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22636 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22637 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22638 * misc/tst-preadvwritev2.c (do_test): Call it.
22639 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22640
22641 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22642
22643 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22644
22645 * benchtests/bench-memcmp.c: Print json instead of plain text.
22646
22647 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22648 every test run.
22649
22650 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22651
22652 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22653 version to 4.15.
22654 (s390_sthyi): New syscall.
22655
22656 * sysdeps/generic/ldbl-classify-compat.h: New file.
22657 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22658 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22659 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22660 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22661 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22662 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22663 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22664 <ldbl-classify-compat.h>.
22665 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22666 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22667 <ldbl-classify-compat.h>.
22668 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22669 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22670 <ldbl-classify-compat.h>.
22671 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22672 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22673 <ldbl-classify-compat.h>.
22674 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22675 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22676 <ldbl-classify-compat.h>.
22677 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22678 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22679 <ldbl-classify-compat.h>.
22680 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22681 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22682 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22683 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22684 * sysdeps/microblaze/math_private.h: Likewise.
22685 * sysdeps/nios2/math_private.h: Likewise.
22686 * sysdeps/sh/math_private.h: Likewise.
22687
22688 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22689 * sysdeps/m68k/coldfire/math_private.h: ... here.
22690 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22691 * sysdeps/tile/math_private.h: Likewise.
22692 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22693 Remove macro.
22694 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22695 Likewise.
22696
22697 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22698 Remove macro.
22699 (libc_fetestexcept): Likewise.
22700 (libc_feupdateenv_test): Likewise.
22701 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22702 (libc_fetestexcept): Likewise.
22703 (libc_feupdateenv_test): Likewise.
22704 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22705 (libc_fetestexcept): Likewise.
22706 (libc_feupdateenv_test): Likewise.
22707 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22708 (libc_fetestexcept): Likewise.
22709 (libc_feupdateenv_test): Likewise.
22710
22711 * sysdeps/generic/math_private.h
22712 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22713 New inline function.
22714 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22715 Likewise.
22716
22717 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22718 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22719 * sysdeps/generic/math_private.h
22720 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22721 inline function.
22722 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22723 Likewise.
22724 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22725 Likewise.
22726 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22727 Likewise.
22728 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22729 Likewise.
22730 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22731 Likewise.
22732 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22733 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22734 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22735 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22736 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22737 (__fegetenv): Likewise.
22738 (fesetenv): Likewise.
22739 (__fesetenv): Likewise.
22740 (feupdateenv): Likewise.
22741 (__feupdateenv): Likewise.
22742 (fegetround): Likewise.
22743 (__fegetround): Likewise.
22744 (fesetround): Likewise.
22745 (__fesetround): Likewise.
22746
22747 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22748 (feraiseexcept): New macro.
22749 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22750 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22751 Remove macro.
22752 (__feraiseexcept): Likewise.
22753 (feclearexcept): Likewise.
22754 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22755 (__feraiseexcept): Likewise.
22756 (feclearexcept): Likewise.
22757 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22758 (__feraiseexcept): Likewise.
22759 (feclearexcept): Likewise.
22760 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22761 (__feraiseexcept): Likewise.
22762 (feclearexcept): Likewise.
22763 (fetestexcept): Likewise.
22764
22765 * sysdeps/m68k/coldfire/math-tests.h: New file.
22766
22767 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22768 * sysdeps/m68k/bits/fenv.h: ... here.
22769 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22770 not define.
22771 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22772 Likewise.
22773 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22774 Likewise.
22775 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22776 Likewise.
22777 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22778 Likewise.
22779 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22780 Define to 0.
22781 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22782 (__FE_UNDEFINED): New enum constant.
22783 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22784 Do not define.
22785 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22786 Likewise.
22787 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22788 Likewise.
22789 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22790 to match generic bits/fenv.h.
22791 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22792 Do not define.
22793
22794 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22795 packed on bits.
22796 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22797 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22798 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22799 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22800
22801 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22802 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22803 Joseph Myers <joseph@codesourcery.com>
22804
22805 [BZ #21314]
22806 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22807 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22808 computation using c.
22809 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22810 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22811 computation using c.
22812
22813 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22814
22815 * version.h (RELEASE): Set to "development".
22816 (VERSION): Set to "2.27.9000".
22817 * NEWS (2.28): New section.
22818
22819 * version.h (RELEASE): Set to "stable".
22820 (VERSION): Set to "2.27".
22821 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22822
22823 * NEWS: Add the list of bugs fixed in 2.27.
22824
22825 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22826
22827 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22828 against PTHREAD_STACK_MIN.
22829
22830 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22831
22832 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22833 New entries.
22834 (Rafał Lużyński, Andreas Schwab): Update.
22835
22836 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22837
22838 [BZ #10871]
22839 * NEWS: List the languages which actually use the alternative
22840 months feature in this release. Also explain that "alt_mon" and
22841 "ab_alt_mon" are optional.
22842
22843 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22844
22845 [BZ #22765]
22846 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22847
22848 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22849
22850 * manual/install.texi (Tools for Compilation): Update the newest
22851 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22852 * INSTALL: Regenerated.
22853
22854 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22855
22856 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22857 instead of __builtin_expect.
22858
22859 2018-01-30 Florian Weimer <fweimer@redhat.com>
22860
22861 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22862 data.
22863 * nss/tst-nss-getpwent.c (do_test): Likewise.
22864
22865 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22866
22867 [BZ #10871]
22868 * localedata/locales/hr_HR (mon): Rename to...
22869 (alt_mon): This.
22870 (mon): Import from CLDR (genitive case).
22871 (d_t_fmt): Update the comment.
22872
22873 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22874
22875 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22876 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22877 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22878
22879 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22880
22881 * mach/Versions: Fix version when __mach_host_self_ was added.
22882 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22883 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22884 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22885 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22886 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22887 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22888 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22889 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22890 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22891 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22892 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22893 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22894 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22895 || to respect codestyle.
22896 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22897 (do_test_bz20181): Rename accordingly.
22898 * malloc/malloc.c: Include <assert.h>.
22899 (assert): Do not define.
22900 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22901 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22902 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22903 * sysdeps/mach/hurd/hp-timing.h: New file.
22904 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22905
22906 2018-01-29 Darius Rad <darius@bluespec.com>
22907
22908 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22909
22910 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22911
22912 * sysdeps/init_array/crti.S (.section .init_array): Add
22913 PREINIT_FUNCTION when defined.
22914 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22915 * config.h.in: Regenerate.
22916 * manual/platform.texi: Add RISC-V documenation for
22917 __riscv_flush_icache.
22918 * sysdeps/riscv/__longjmp.S: New file.
22919 * sysdeps/riscv/backtrace.c: Likewise.
22920 * sysdeps/riscv/bits/endian.h: Likewise.
22921 * sysdeps/riscv/bits/setjmp.h: Likewise.
22922 * sysdeps/riscv/bits/wordsize.h: Likewise.
22923 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22924 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22925 * sysdeps/riscv/dl-trampoline.S: Likewise.
22926 * sysdeps/riscv/gccframe.h: Likewise.
22927 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22928 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22929 * sysdeps/riscv/machine-gmon.h: Likewise.
22930 * sysdeps/riscv/memusage.h: Likewise.
22931 * sysdeps/riscv/setjmp.S: Likewise.
22932 * sysdeps/riscv/sys/asm.h: Likewise.
22933 * sysdeps/riscv/tls-macros.h: Likewise.
22934 * sysdeps/riscv/dl-tls.h: New file.
22935 * sysdeps/riscv/libc-tls.c: Likewise.
22936 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22937 * sysdeps/riscv/nptl/tls.h: Likewise.
22938 * sysdeps/riscv/stackinfo.h: Likewise.
22939 * sysdeps/riscv/bits/fenv.h: New file.
22940 * sysdeps/riscv/e_sqrtl.c: Likewise.
22941 * sysdeps/riscv/fpu_control.h: Likewise.
22942 * sysdeps/riscv/math-tests.h: Likewise.
22943 * sysdeps/riscv/nofpu/Implies: Likewise.
22944 * sysdeps/riscv/sfp-machine.h: Likewise.
22945 * sysdeps/riscv/tininess.h: Likewise.
22946 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22947 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22948 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22949 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22950 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22951 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22952 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22953 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22954 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22955 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22956 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22957 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22958 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22959 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22960 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22961 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22962 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22963 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22964 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22965 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22966 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22967 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22968 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22969 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22970 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22971 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22972 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22973 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22974 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22975 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22976 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22977 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22978 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22979 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22980 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22981 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22982 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22983 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22984 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22985 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22986 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22987 * sysdeps/riscv/rvf/math_private.h: Likewise.
22988 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22989 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22990 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22991 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22992 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22993 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22994 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22995 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22996 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22997 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22998 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22999 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
23000 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
23001 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
23002 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
23003 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
23004 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
23005 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
23006 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
23007 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
23008 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
23009 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
23010 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
23011 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
23012 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
23013 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
23014 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
23015 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
23016 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
23017 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
23018 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
23019 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
23020 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
23021 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
23022 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
23023 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
23024 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
23025 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
23026 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
23027 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
23028 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
23029 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
23030 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
23031 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
23032 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
23033 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
23034 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
23035 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
23036 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
23037 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
23038 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
23039 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
23040 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
23041 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
23042 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
23043 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
23044 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
23045 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
23046 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
23047 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
23048 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
23049 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
23050 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
23051 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
23052 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
23053 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
23054 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
23055 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
23056 * sysdeps/riscv/Implies: New file.
23057 * sysdeps/riscv/Makefile: Likewise.
23058 * sysdeps/riscv/configure: Likewise.
23059 * sysdeps/riscv/configure.ac: Likewise.
23060 * sysdeps/riscv/nptl/Makefile: Likewise.
23061 * sysdeps/riscv/preconfigure: Likewise.
23062 * sysdeps/riscv/rv64/Implies-after: Likewise.
23063 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
23064 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
23065 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
23066 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
23067 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
23068 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
23069 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
23070 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
23071 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
23072 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
23073 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
23074 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
23075 (Config): Likewise.
23076
23077 2018-01-29 Florian Weimer <fweimer@redhat.com>
23078
23079 [BZ #22701]
23080 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
23081 libnsl_hidden_proto.
23082 * include/rpcsvc/yp.h (yp_xdrall): Declare with
23083 libnsl_hidden_proto.
23084 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
23085 * nis/Makefile (libnsl-routines): Add nss-default only for
23086 build-obsolete-nsl.
23087 * nis/nis_defaults.c (__nis_default_ttl): Add
23088 libnsl_hidden_nolink_def.
23089 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
23090 declaration.
23091 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
23092 * nis/ypclnt.c (yp_maplist): Likewise.
23093
23094 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
23095
23096 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23097 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
23098
23099 2018-01-29 Joseph Myers <joseph@codesourcery.com>
23100
23101 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
23102 clean -dxfq for git updates when replacing sources.
23103
23104 * scripts/build-many-glibcs.py (Config.build_gcc): Use
23105 --disable-libcilkrts unconditionally, not just for the final GCC
23106 build for Hurd.
23107
23108 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
23109 version to 4.15.
23110
23111 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
23112
23113 [BZ #10871]
23114 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
23115 case).
23116
23117 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
23118
23119 [BZ #10871]
23120 * localedata/locales/be_BY (mon): Rename to...
23121 (alt_mon): This, then synchronize with CLDR (nominative case).
23122 (abmon): Rename to...
23123 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
23124 (mon): Import from CLDR (genitive case).
23125 (abmon): Likewise.
23126 * localedata/locales/be_BY@latin (mon): Rename to...
23127 (alt_mon): This.
23128 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
23129
23130 * localedata/locales/be_BY@latin (lang_name): Reworded to
23131 "biełaruskaja mova".
23132
23133 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
23134
23135 [BZ #10871]
23136 * localedata/locales/el_CY (mon): Renamed to...
23137 (alt_mon): This.
23138 (mon): Import from CLDR (genitive case).
23139 * localedata/locales/el_GR: Likewise.
23140
23141 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
23142
23143 [BZ #10871]
23144 * localedata/locales/ru_RU (mon): Rename to...
23145 (alt_mon): This.
23146 (abmon): Rename to...
23147 (ab_alt_mon): This.
23148 (mon): Import from CLDR (genitive case).
23149 (abmon): Copy from the old content except the 5th month which is
23150 now in the genitive case, even when abbreviated.
23151 * localedata/locales/ru_UA: Likewise.
23152 * time/tst-strptime.c (day_tests): Add an actual example of
23153 a difference between %b and %Ob in Russian.
23154
23155 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
23156
23157 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
23158 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
23159 a `c' variable.
23160 * resolv/res-close.c: Include <stdlib.h>.
23161 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
23162 <sys/wait.h>, <time.h>, <sys/uio.h>.
23163 (NOT_CANCEL_H): Add inclusion guard.
23164 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
23165 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
23166 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
23167 return 0.
23168 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
23169 vm_address_t * to ElfW(Addr) * for dl_main parameter.
23170 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
23171 instead of void *.
23172 * sysdeps/pthread/timer_create.c (timer_create): Do not use
23173 timer_ptr2id to cast struct timer_node * to void *.
23174 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
23175 --disable-libcilkrts to gcc configure.
23176 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
23177 and make them the default for now.
23178 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
23179 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
23180 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
23181 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
23182 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
23183 MACH_IPC_COMPAT.
23184 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
23185 __task_terminate would ever return successfully.
23186 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
23187 to global scope.
23188 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
23189 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
23190 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
23191 critical section to make code simpler and avoid warning.
23192 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
23193 critical section to make code simpler and avoid warning.
23194 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
23195 const char * instead of char *.
23196 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
23197 __hurd_file_name_split, hurd_file_name_split,
23198 __hurd_directory_name_split, hurd_directory_name_split,
23199 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
23200 hurd_file_name_path_lookup): Make lookup function parameter take a
23201 const char *name instead of char *name.
23202 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
23203 __hurd_directory_name_split): Likewise.
23204 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
23205 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
23206 * sysdeps/mach/hurd/check_native.c: New file.
23207 * sysdeps/mach/hurd/check_pf.c: New file.
23208 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
23209 (__freeifaddrs): Define macro to freeifaddrs.
23210 * sysdeps/mach/hurd/libhurduser.abilist: New file.
23211 * sysdeps/mach/libmachuser.abilist: New file.
23212 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
23213 (do_test_bz20181): Rename accordingly.
23214 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
23215 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
23216 <sys/mount.h>.
23217 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
23218 version only if __USE_EXTERN_INLINES is defined.
23219 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
23220 __hurd_sockfail): Likewise.
23221 (_hurd_fd_get): Always declare functions, and provide inline versions
23222 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
23223 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
23224 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
23225 _hurd_port_set): Always declare functions, and provide inline versions
23226 only if __USE_EXTERN_INLINES and _LIBC are defined and
23227 IS_IN(libc).
23228 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
23229 _hurd_critical_section_unlock): Likewise.
23230 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
23231 * __hurd_threadvar_location): Likewise.
23232 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
23233 _hurd_userlink_clear): Likewise.
23234 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
23235 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
23236 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
23237 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
23238 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
23239 __spin_lock_locked): Likewise.
23240 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
23241 __spin_lock_locked): Likewise.
23242 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
23243 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
23244 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
23245 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
23246 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
23247 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
23248 _POSIX_NO_TRUNC): Define to 0.
23249 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
23250 check size against PTHREAD_STACK_MIN.
23251 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
23252 IS_IN(libpthread)]: Include <sigsetops.h>.
23253 * mach/Makefile (user-interfaces): Add mach/gnumach.
23254 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
23255 * sysdeps/mach/configure (mach_interface_list): Regenerate.
23256 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
23257 instead of invalid -1.
23258 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
23259 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
23260 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
23261 <net/ppp_defs.h>.
23262
23263 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
23264
23265 * hurd/fcntl-internal.h: New file.
23266
23267 2018-01-27 James Clarke <jrtc27@jrtc27.com>
23268
23269 * sysdeps/hppa/fpu/libm-test-ulps: Update.
23270
23271 * sysdeps/alpha/fpu/libm-test-ulps: Update.
23272
23273 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
23274
23275 [BZ #22701]
23276 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
23277 Build only shared objects.
23278
23279 2018-01-26 Carlos O'Donell <carlos@redhat.com>
23280
23281 * README: Update for hppa.
23282
23283 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23284
23285 * sysdeps/sparc/fpu/libm-test-ulps: Update
23286 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
23287
23288 2018-01-26 Carlos O'Donell <carlos@redhat.com>
23289
23290 Revert:
23291
23292 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23293
23294 [BZ #22563]
23295 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23296 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23297 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23298 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23299 to feature_1.
23300
23301 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23302
23303 [BZ #22563]
23304 * bits/types/__cancel_jmp_buf_tag.h: New file.
23305 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23306 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23307 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23308 * nptl/Makefile (headers): Add
23309 bits/types/__cancel_jmp_buf_tag.h.
23310 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23311 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23312 * sysdeps/nptl/pthread.h: Include
23313 <bits/types/__cancel_jmp_buf_tag.h>.
23314 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23315 __cancel_jmp_buf.
23316 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23317
23318 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
23319
23320 [BZ #10871]
23321 * localedata/locales/uk_UA (mon): Renamed to...
23322 (alt_mon): This.
23323 (alt_digits): "0" removed and then renamed to...
23324 (mon): This.
23325 (date_fmt): Definition changed not to use the alternative
23326 digits hack.
23327
23328 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
23329
23330 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
23331 FLAG_RISCV_FLOAT_ABI_DOUBLE.
23332 * elf/elf.h (EF_RISCV_RVC): New define.
23333 (EF_RISCV_FLOAT_ABI): Likewise.
23334 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
23335 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
23336 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23337 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
23338 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
23339 define.
23340 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23341
23342 2018-01-25 Andreas Schwab <schwab@suse.de>
23343
23344 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
23345 single quotes.
23346 * sysdeps/gnu/configure: Regenerate.
23347 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
23348 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
23349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
23350 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
23351 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
23352 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
23353 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
23354 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
23355
23356 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
23357
23358 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
23359 URL, and run autoconf, make it the default for now.
23360
23361 2018-01-24 Joseph Myers <joseph@codesourcery.com>
23362
23363 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23364 soft-float ColdFire configuration.
23365
23366 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
23367 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
23368 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
23369
23370 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
23371 MicroBlaze file.
23372
23373 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
23374 ....
23375 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
23376 ... here.
23377 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
23378 New file.
23379
23380 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
23381 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
23382 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
23383 file.
23384
23385 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
23386
23387 [BZ #22742]
23388 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
23389 Rename to __reserved and add comment.
23390 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
23391 Rename to __reserved.
23392
23393 2018-01-24 Joseph Myers <joseph@codesourcery.com>
23394
23395 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23396 i686-gnu configurations.
23397 (Context.run_builds): Include mig, gnumach and hurd in components
23398 considered.
23399 (Context.checkout): Add mig, gnumach and hurd to components.
23400 (Context.checkout_tar): Add URL mappings for mig, gnumach and
23401 hurd.
23402 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
23403 (Config.build): Install gnumach headers, build mig and install
23404 hurd headers for 'gnu' OS.
23405 (Config.install_gnumach_headers): New function.
23406 (Config.install_hurd_headers): Likewise.
23407 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
23408 when building for 'gnu' OS.
23409
23410 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
23411
23412 * manual/tunables.texi (Hardware Capability Tunables): Fix
23413 spelling.
23414
23415 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
23416
23417 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
23418 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
23419 (ALTMON_11, ALTMON_12): Improve documentation.
23420 * manual/time.texi (strftime): Likewise.
23421
23422 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
23423
23424 [BZ #10871]
23425 * localedata/locales/pl_PL: Alternative month names added,
23426 primary month names are genitive now.
23427 * time/tst-strptime.c (day_tests): Actually use a genitive case
23428 of a month name in Polish language.
23429
23430 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
23431
23432 [BZ #10871]
23433 * manual/locale.texi: Document ALTMON_1..12 constants for
23434 nl_langinfo. Specify when to use ALTMON instead of MON.
23435 * manual/time.texi (strftime, strptime): Document GNU extension
23436 permitting O modifier with %B and %b. Specify when to use
23437 %OB instead of %B.
23438
23439 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
23440
23441 [BZ #10871]
23442 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
23443 names, define them as the same as abbreviated month names explicitly.
23444 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
23445 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
23446 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
23447 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
23448 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
23449 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
23450 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
23451 _NL_WABALTMON_12): New enum constants.
23452 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
23453 wab_alt_mon, and ab_alt_mon_defined members.
23454 (time_output): Output ab_alt_mon and wab_alt_mon members.
23455 (time_read): Read them, initialize them as copies of abmon and wabmon
23456 respectively if they are missing, initialize ab_alt_mon_defined.
23457 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
23458 * locale/programs/locfile-kw.h: Regenerate.
23459 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
23460 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
23461 and ru_RU.UTF-8.
23462 * time/strftime_l.c (a_altmonth, aam_len): New macros.
23463 [!COMPILE_WIDE] (ABALTMON_1): New macro.
23464 (__strftime_internal): Handle %Ob and %Oh formats.
23465 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
23466 (__strptime_internal): Handle %Ob and %Oh formats.
23467 * time/tst-strptime.c (day_tests): Add more tests to parse different
23468 forms of month names including the new %Ob format specifier.
23469
23470 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
23471
23472 [BZ #10871]
23473 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
23474 define them as the same as primary full month names explicitly.
23475 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
23476 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
23477 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
23478 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
23479 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
23480 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
23481 _NL_WALTMON_12): New enum constants.
23482 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
23483 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
23484 macros.
23485 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
23486 walt_mon, and alt_mon_defined members.
23487 (time_output): Output alt_mon and walt_mon members.
23488 (time_read): Read them, initialize them as copies of mon and wmon
23489 respectively if they are missing, initialize alt_mon_defined.
23490 * locale/programs/locfile-kw.gperf (alt_mon): Define.
23491 * locale/programs/locfile-kw.h: Regenerate.
23492 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
23493 * localedata/tst-langinfo.c (map): Add tests for the new constants
23494 ALTMON_1 .. ALTMON_12.
23495 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
23496 and pl_PL.UTF-8.
23497 * time/strftime_l.c (f_altmonth): New macro.
23498 (__strftime_internal): Handle %OB format.
23499 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
23500 (__strptime_internal): Handle %OB format.
23501 * time/tst-strptime.c (day_tests): Add tests to parse different forms
23502 of month names including the new %OB format specifier.
23503
23504 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23505
23506 [BZ #22685]
23507 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
23508 from ABORT_TRANSACTION.
23509 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
23510 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
23511 ABORT_TRANSACTION_IMPL): Likewise.
23512 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
23513 Linux code, but remove the code that aborts transactions.
23514
23515 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
23516
23517 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
23518
23519 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
23520
23521 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
23522 in date: "2004-14-09" should be "2004-09-14".
23523 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
23524 "2003-15-09" should be "2003-09-15".
23525
23526 2018-01-18 Arjun Shankar <arjun@redhat.com>
23527
23528 [BZ #22343]
23529 [BZ #22774]
23530 CVE-2018-6485
23531 CVE-2018-6551
23532 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
23533 after padding.
23534 (_int_memalign): check for integer overflow before calling
23535 _int_malloc.
23536 * malloc/tst-malloc-too-large.c: New test.
23537 * malloc/Makefile: Add tst-malloc-too-large.
23538
23539 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
23540
23541 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
23542 in date: "2017-24-07" should be "2017-07-24".
23543 * localedata/locales/mai_IN: Likewise.
23544 * localedata/locales/mai_NP: Likewise.
23545
23546 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
23547
23548 * po/ru.po: Update translations.
23549
23550 2018-01-17 Joseph Myers <joseph@codesourcery.com>
23551
23552 [BZ #22719]
23553 * sysdeps/hppa/backtrace.c: New file.
23554
23555 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
23556
23557 [BZ #22715]
23558 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
23559 align La_x86_64_retval to VEC_SIZE.
23560
23561 2018-01-16 Joseph Myers <joseph@codesourcery.com>
23562
23563 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
23564 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
23565
23566 2018-01-16 Florian Weimer <fweimer@redhat.com>
23567
23568 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
23569 Move tst-thread-exit-clobber ...
23570 [$(CXX)] (tests-unsupported): ... to here.
23571
23572 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23573
23574 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
23575 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
23576 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23577 (_dl_aarch64_cap_flags): Update.
23578 (_DL_HWCAP_COUNT): Update.
23579
23580 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23581
23582 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
23583 (_DL_HWCAP_LAST): Remove.
23584 (_DL_HWCAP_COUNT): Move to ...
23585 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23586 (_DL_HWCAP_COUNT): ... here.
23587
23588 2018-01-16 Florian Weimer <fweimer@redhat.com>
23589
23590 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
23591 mode with GNU extensions.
23592
23593 2018-01-15 Alan Hayward <alan.hayward@arm.com>
23594
23595 * elf/elf.h (NT_ARM_SVE): Define.
23596
23597 2018-01-15 Florian Weimer <fweimer@redhat.com>
23598
23599 [BZ #22636]
23600 * nptl/tst-minstack-throw.cc: New file.
23601 * nptl/Makefile (tests): Add tst-minstack-throw.
23602 (LDLIBS-tst-minstack-throw): Link with libstdc++.
23603 [!CXX] (tests-unsupported): Add tst-minstack-throw.
23604
23605 2018-01-15 Joseph Myers <joseph@codesourcery.com>
23606
23607 * scripts/build-many-glibcs.py (Context.checkout): Default
23608 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
23609 version to 1.1.0.
23610
23611 2018-01-13 Carlos O'Donell <carlos@redhat.com>
23612
23613 [BZ #22707]
23614 * elf/elf.h (DF_1_STUB): Define.
23615 (DF_1_PIE): Define.
23616
23617 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23618
23619 [BZ #22697]
23620 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23621 Do not add 0.5 to integer or out-of-range arguments.
23622
23623 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23624
23625 * po/bg.po: Update translations.
23626 * po/cs.po: Likewise.
23627 * po/de.po: Likewise.
23628 * po/ko.po: Likewise.
23629 * po/pl.po: Likewise.
23630 * po/sv.po: Likewise.
23631 * po/uk.po: Likewise.
23632 * po/vi.po: Likewise.
23633
23634 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23635
23636 * aarch64/start.S (_start): Use __wrap_main.
23637 (__wrap_main): New local symbol.
23638
23639 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23640
23641 [BZ #22679]
23642 CVE-2018-1000001
23643 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23644 generic_getcwd if the path returned by getcwd syscall is not absolute.
23645 * io/tst-getcwd-abspath.c: New test.
23646 * io/Makefile (tests): Add tst-getcwd-abspath.
23647
23648 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23649
23650 * malloc/malloc.c (malloc_consolidate): Add size check.
23651
23652 2018-01-12 Florian Weimer <fweimer@redhat.com>
23653
23654 * support/write_message.c (write_message): Preserve errno.
23655 * support/check.c (print_failure): Likewise.
23656 * support/support_test_verify_impl.c (support_test_verify_impl):
23657 Likewise.
23658 * support/support_test_compare_failure.c
23659 (support_test_compare_failure): Likewise.
23660
23661 2018-01-12 Florian Weimer <fweimer@redhat.com>
23662
23663 [BZ #22701]
23664 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23665 Prevent installation of libnsl.so.
23666 (libnsl-inhibit-o): Do not build (or install) static libraries.
23667
23668 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23669
23670 [BZ #22657]
23671 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23672 before the day number which may produce a double space.
23673 (date_fmt): Likewise.
23674
23675 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23676
23677 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23678 instead of fegetenv.
23679
23680 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23681
23682 [BZ #22702]
23683 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23684 comment to say exceptions are discarded.
23685 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23686 __fegetenv.
23687 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23688 be enabled.
23689
23690 2018-01-11 Florian Weimer <fweimer@redhat.com>
23691
23692 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23693 and error message.
23694
23695 2018-01-11 Florian Weimer <fweimer@redhat.com>
23696
23697 [BZ #22636]
23698 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23699 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23700
23701 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23702
23703 [BZ #22693]
23704 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23705 negative arguments in test for NaN or infinity argument.
23706
23707 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23708
23709 * po/libc.pot: Regenerate.
23710
23711 2018-01-10 Florian Weimer <fweimer@redhat.com>
23712
23713 [BZ #22636]
23714 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23715 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23716
23717 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23718
23719 * hurd/hurd/fd.h: Include <fcntl.h>
23720 (__hurd_at_flags): New function.
23721 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23722 with call to __hurd_at_flags.
23723 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23724 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23725 __faccessat
23726 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23727 (__access_noerrno): Use __faccessat_common instead of access_common.
23728 (__access): Likewise.
23729 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23730 with a call to __faccessat.
23731 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23732 (__faccessat_common): ... this. Move implementation of __access into it when
23733 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23734 reauthenticate_cwdir_at helper to implement AT mechanism.
23735 (__faccessat_noerrno): New function, just calls __faccessat_common.
23736 (__faccessat): New function, just calls __faccessat_common.
23737 (faccessat): Define weak alias.
23738
23739 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23740
23741 [BZ #22691]
23742 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23743 (CFLAGS-s_fmaxmagl.c): New variable.
23744 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23745
23746 [BZ #22690]
23747 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23748 long int for arguments of possibly overflowing addition or
23749 subtraction.
23750 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23751
23752 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23753
23754 [BZ #22688]
23755 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23756 (CFLAGS-e_remainderl.c): New variable.
23757
23758 [BZ #22687]
23759 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23760 variable.
23761 (CFLAGS-s_cacoshl.c): Likewise.
23762 (CFLAGS-s_casinhl.c): Likewise.
23763 (CFLAGS-s_catanl.c): Likewise.
23764 (CFLAGS-s_catanhl.c): Likewise.
23765 (CFLAGS-s_cexpl.c): Likewise.
23766 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23767 (CFLAGS-s_csinhl.c): Likewise.
23768 (CFLAGS-s_clogl.c): Likewise.
23769 (CFLAGS-s_clog10l.c): Likewise.
23770 (CFLAGS-s_csinl.c): Likewise.
23771 (CFLAGS-s_csqrtl.c): Likewise.
23772
23773 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23774 2017-01-09 Svante Signell <svante.signell@gmail.com>
23775
23776 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23777 (_hurd_exec_paths): New function.
23778 * hurd/hurd.h (_hurd_exec): Deprecate function.
23779 (_hurd_exec_paths): Declare function.
23780 * hurd/Versions: Export _hurd_exec_paths.
23781 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23782 (__execve): Use __getcwd to build absolute path, and use
23783 _hurd_exec_paths instead of _hurd_exec.
23784 * sysdeps/mach/hurd/spawni.c: Likewise.
23785 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23786 _hurd_exec.
23787
23788 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23789
23790 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23791 test instead of failing in case of ENOENT returned by posix_openpt.
23792
23793 2018-01-08 Florian Weimer <fweimer@redhat.com>
23794
23795 resolv: Support binary labels in test framework.
23796 * support/resolv_test.c (struct to_be_freed): Remove.
23797 (struct compressed_name): New.
23798 (allocate_compressed_name, ascii_tolower)
23799 (compare_compressed_name): New functions.
23800 (struct resolv_response_builder): Update type of
23801 compression_offsets for use with tsearch. Rempve to_be_freed.
23802 (response_push_pointer_to_free): Remove function.
23803 (resolv_response_add_name): Rewrite using struct compressed_name
23804 and tsearch instead of hsearch_r.
23805 (response_builder_allocate): Remove initialization of
23806 compression_offsets.
23807 (response_builder_free): Update for removal of to_be_freed. Use
23808 tdestroy instead of hdestroy_r.
23809 * resolv/Makefile (tests): Add tst-resolv-binary.
23810 (tst-resolv-binary): Link with -lresolv -lpthread.
23811
23812 2018-01-08 Florian Weimer <fweimer@redhat.com>
23813
23814 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23815 time. Pass positive flag instead of negative flag to
23816 support_test_compare_failure.
23817 (support_test_compare_failure): Change negative parameter to
23818 positive.
23819 * support/support_test_compare_failure.c (report)
23820 (support_test_compare_failure): Likewise.
23821 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23822 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23823
23824 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23825
23826 [BZ #22637]
23827 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23828 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23829 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23830 stacksize.
23831 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23832
23833 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23834
23835 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23836 Add s_sincosf-sse2 and s_sincosf-fma.
23837 (CFLAGS-s_sincosf-fma.c): New.
23838 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23839 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23840 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23841 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23842 __sincosf is defined.
23843
23844 2018-01-08 Florian Weimer <fweimer@redhat.com>
23845
23846 * nptl/tst-thread-exit-clobber.cc: New file.
23847 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23848 C++11 mode.
23849 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23850 (tests): Add tst-thread-exit-clobber.
23851 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23852
23853 2018-01-08 Florian Weimer <fweimer@redhat.com>
23854
23855 * support/check.h (support_static_assert): Define.
23856 (TEST_COMPARE): Use it.
23857
23858 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23859
23860 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23861 [!__RLIM_T_MATCHES_RLIM64_T]
23862 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23863 __getrlimit64. Add libc_hidden_weak.
23864
23865 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23866
23867 * elf/elf.h (R_RISCV_NONE): New define.
23868 (R_RISCV_32): Likewise.
23869 (R_RISCV_64): Likewise.
23870 (R_RISCV_RELATIVE): Likewise.
23871 (R_RISCV_COPY): Likewise.
23872 (R_RISCV_JUMP_SLOT): Likewise.
23873 (R_RISCV_TLS_DTPMOD32): Likewise.
23874 (R_RISCV_TLS_DTPMOD64): Likewise.
23875 (R_RISCV_TLS_DTPREL32): Likewise.
23876 (R_RISCV_TLS_DTPREL64): Likewise.
23877 (R_RISCV_TLS_TPREL32): Likewise.
23878 (R_RISCV_TLS_TPREL64): Likewise.
23879 * Makerules (make-link-multidir): Make directories before linking into
23880 them.
23881 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23882 define.
23883 (VDSO_HASH_LINUX_4_15): Likewise.
23884 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23885 in subdirectories of lib.
23886 * nptl/Makefile (/librt.so): Always depend on
23887 "$(shared-thread-library)".
23888
23889 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23890
23891 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23892 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23893 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23894 (___tls_get_addr).
23895 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23896 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23897 "-O2 -march=i686".
23898 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23899 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23900 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23901 * sysdeps/gnu/glob-lstat-compat.c: New file.
23902 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23903 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23904
23905 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23906
23907 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23908 Reserve 16 chars to reloc_addr before calling _itoa_word.
23909
23910 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23911
23912 [BZ #22678]
23913 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23914 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23915
23916 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23917 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23918
23919 * resource/tst-getrlimit.c: Add copyright header.
23920
23921 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23922 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23923
23924 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23925 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23926 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23927 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23928 instead.
23929 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23930 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23931 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23932 RLIM64_INFINITY): Fix values to match the kernel ones.
23933 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23934 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23935 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23936 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23937 getrlimit64@@GLIBC_2_27.
23938 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23939 and setrlimit64.
23940 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23941 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23942 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23943 setrlimit, getrlimit64 and setrlimit64.
23944
23945 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23946
23947 [BZ #22648]
23948 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23949 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23950
23951 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23952
23953 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23954 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23955 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23956
23957 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23958
23959 [BZ #15479]
23960 [BZ #22666]
23961 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23962 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23963
23964 [BZ #15479]
23965 [BZ #22665]
23966 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23967 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23968 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23969 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23970
23971 2018-01-04 Florian Weimer <fweimer@redhat.com>
23972
23973 [BZ #22667]
23974 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23975 Align the stack before calling exit.
23976 * stdlib/tst-makecontext-align.c: New file.
23977 * stdlib/Makefile (tests): Add tst-makecontext-align.
23978
23979 2018-01-04 Florian Weimer <fweimer@redhat.com>
23980
23981 Add support for calling dlvsym from libc.so.
23982 * include/dlfcn.h (__libc_dlvsym): Declare.
23983 * elf/Makefile (tests-static-internal): Add
23984 tst-libc_dlvsym-static.
23985 (tests-internal): Add tst-libc_dlvsym.
23986 (modules-names): Add tst-libc_dlvsym-dso.
23987 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23988 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23989 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23990 object tst-libc_dlvsym-dso.so needs to be built before running
23991 these tests.
23992 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23993 * elf/Versions: Export __libc_dlvsym.
23994 * elf/dl-libc.c (struct do_dlvsym_args): New.
23995 (do_dlvsym, __libc_dlvsym): New functions.
23996 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23997 (_dl_open_hook2): New variable.
23998 (__libc_register_dl_open_hook): Set it.
23999 * elf/tst-libc_dlvsym-dso.c: New file.
24000 * elf/tst-libc_dlvsym-static.c: Likewise.
24001 * elf/tst-libc_dlvsym.c: Likewise.
24002 * elf/tst-libc_dlvsym.h: Likewise.
24003
24004 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
24005
24006 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
24007 include <sys/mount.h>.
24008
24009 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
24010
24011 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
24012 Add __NO_MATH_ERRNO__ check.
24013
24014 2018-01-02 Joseph Myers <joseph@codesourcery.com>
24015
24016 * sysdeps/mips/mips32/libm-test-ulps: Update.
24017 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24018
24019 2018-01-02 Florian Weimer <fweimer@redhat.com>
24020
24021 * misc/tst-pselect.c: Add copyright header.
24022
24023 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
24024
24025 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
24026 comment.
24027 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
24028 comment.
24029 (settrlimit): Rename into setrlimit.
24030 (__sttrlimit): Rename into __setrlimit.
24031
24032 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
24033 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
24034 never defined in that case.
24035
24036 2018-01-02 Joseph Myers <joseph@codesourcery.com>
24037
24038 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
24039
24040 * sysdeps/arm/libm-test-ulps: Update.
24041
24042 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
24043 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
24044
24045 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24046
24047 * NEWS: Add cosf and sincosf to list of optimized functions.
24048
24049 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
24050
24051 [BZ #22660]
24052 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
24053 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
24054 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
24055 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
24056
24057 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
24058
24059 [BZ #22433]
24060 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
24061
24062 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
24063 making a copy of it.
24064
24065 2018-01-01 Joseph Myers <joseph@codesourcery.com>
24066
24067 * manual/texinfo.tex: Update to version 2017-12-26.21 with
24068 trailing whitespace removed.
24069 * scripts/config.guess: Update to version 2018-01-01.
24070 * scripts/config.sub: Update to version 2018-01-01.
24071 * scripts/move-if-change: Update from gnulib.
24072
24073 * NEWS: Update copyright dates.
24074 * catgets/gencat.c (print_version): Likewise.
24075 * csu/version.c (banner): Likewise.
24076 * debug/catchsegv.sh: Likewise.
24077 * debug/pcprofiledump.c (print_version): Likewise.
24078 * debug/xtrace.sh (do_version): Likewise.
24079 * elf/ldconfig.c (print_version): Likewise.
24080 * elf/ldd.bash.in: Likewise.
24081 * elf/pldd.c (print_version): Likewise.
24082 * elf/sotruss.sh: Likewise.
24083 * elf/sprof.c (print_version): Likewise.
24084 * iconv/iconv_prog.c (print_version): Likewise.
24085 * iconv/iconvconfig.c (print_version): Likewise.
24086 * locale/programs/locale.c (print_version): Likewise.
24087 * locale/programs/localedef.c (print_version): Likewise.
24088 * login/programs/pt_chown.c (print_version): Likewise.
24089 * malloc/memusage.sh (do_version): Likewise.
24090 * malloc/memusagestat.c (print_version): Likewise.
24091 * malloc/mtrace.pl: Likewise.
24092 * manual/libc.texinfo: Likewise.
24093 * nptl/version.c (banner): Likewise.
24094 * nscd/nscd.c (print_version): Likewise.
24095 * nss/getent.c (print_version): Likewise.
24096 * nss/makedb.c (print_version): Likewise.
24097 * posix/getconf.c (main): Likewise.
24098 * scripts/test-installation.pl: Likewise.
24099 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
24100
24101 * All files with FSF copyright notices: Update copyright dates
24102 using scripts/update-copyrights.
24103 * locale/programs/charmap-kw.h: Regenerated.
24104 * locale/programs/locfile-kw.h: Likewise.
24105
24106 2017-12-31 Zack Weinberg <zackw@panix.com>
24107
24108 * libio/bits/libio-ldbl.h: Correct check for improper
24109 inclusion. Add own multiple include guard.
24110
24111 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
24112 Dmitry V. Levin <ldv@altlinux.org>
24113
24114 [BZ #22625]
24115 CVE-2017-16997
24116 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
24117 string token expansion. Check for NULL pointer or empty string possibly
24118 returned by expand_dynamic_string_token.
24119 (decompose_rpath): Check for empty path after dynamic string
24120 token expansion.
24121
24122 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
24123
24124 [BZ #22433]
24125 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
24126
24127 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
24128 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
24129 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
24130 and PTRACE_SYSCALL.
24131 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
24132 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24133 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24134 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24135 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24136 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
24137
24138 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
24139 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
24140 __ptrace_peeksiginfo_flags, ptrace): Move to ...
24141 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
24142 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24143 bits/ptrace-shared.h.
24144 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
24145 <bits/ptrace-shared.h>.
24146 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
24147 __ptrace_peeksiginfo_flags, ptrace): Remove.
24148 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24149 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24150 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24151 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24152 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
24153
24154 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
24155
24156 [BZ #17804]
24157 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
24158 end of the loop. Improve comments.
24159
24160 2017-12-29 Zack Weinberg <zackw@panix.com>
24161
24162 [BZ #22615]
24163 * manual/errno.texi (Checking for Errors): Explicitly say that errno
24164 might be set on success.
24165
24166 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
24167
24168 [BZ #22611]
24169 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
24170 is unchanged on success.
24171
24172 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
24173
24174 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
24175 updated.
24176 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
24177 expand_dynamic_string_token): Likewise.
24178 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
24179 is_path argument.
24180
24181 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
24182 contains ':'.
24183
24184 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
24185 is set and name contains ':', and all code depending on these checks.
24186
24187 2017-12-24 Zack Weinberg <zackw@panix.com>
24188
24189 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
24190 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
24191 respectively.
24192 * libio/libio.h: Rename the original version of this file to
24193 libio/bits/libio.h. Error out if not included by stdio.h or the
24194 stub libio.h.
24195 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
24196 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
24197 if not included by bits/libio.h or the stub _G_config.h.
24198 * sysdeps/unix/sysv/linux/_G_config.h: Move to
24199 sysdeps/unix/sysv/linux/bits. Error out if not included by
24200 bits/libio.h or the stub _G_config.h.
24201 * libio/stdio.h: Include bits/libio.h, not libio.h.
24202 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
24203 well as libio.h and _G_config.h.
24204
24205 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
24206 * libio/strfile.h, stdio-common/vfscanf.c
24207 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
24208 Include stdio.h, not _G_config.h nor libio.h.
24209 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
24210 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
24211
24212 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
24213
24214 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
24215
24216 [BZ #22347]
24217 * stdlib/getrandom.c (getrandom): Fix comment.
24218 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
24219
24220 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
24221
24222 [BZ #21161]
24223 * manual/arith.texi (strtoul): Fix a typo.
24224
24225 [BZ #22596]
24226 * manual/arith.texi (finite): Fix the description of the return
24227 value.
24228
24229 2017-12-22 Eric Blake <ebb9@byu.net>
24230
24231 Avoid gcc warnings on cygwin
24232 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24233 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24234 Avoid unused variable.
24235
24236 2017-12-22 Florian Weimer <fweimer@redhat.com>
24237
24238 * io/Makefile (routines): Add copy_file_range.
24239 (tests): Add tst-copy_file_range.
24240 (tests-static, tests-internal): Add tst-copy_file_range-compat.
24241 * io/Versions (GLIBC_2.27): Export copy_file_range.
24242 * io/copy_file_range-compat.c: New file.
24243 * io/copy_file_range.c: Likewise.
24244 * io/tst-copy_file_range-compat.c: Likewise.
24245 * io/tst-copy_file_range.c: Likewise.
24246 * manual/llio.texi (Copying File Data): New section.
24247 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
24248 * support/Makefile (libsupport-routines): Add support-xfstat,
24249 xftruncate, xlseek.
24250 * support/support-xfstat.c: New file.
24251 * support/xftruncate.c: Likewise.
24252 * support/xlseek.c: Likewise.
24253 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
24254 * sysdeps/unix/sysv/linux/**.abilist: Update.
24255 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
24256
24257 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
24258
24259 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24260 disable-multi-arch variant to aarch64-linux-gnu.
24261
24262 2017-12-20 Joseph Myers <joseph@codesourcery.com>
24263
24264 * manual/texinfo.tex: Update to version 2017-12-18.20 with
24265 trailing whitespace removed.
24266 * scripts/config.guess: Update to version 2017-12-17.
24267 * scripts/config.sub: Update to version 2017-11-23.
24268 * scripts/install-sh: Update to version 2017-09-23.17.
24269 * scripts/move-if-change: Update to version 2017-09-13 06:45.
24270
24271 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24272
24273 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
24274 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
24275 * sysdeps/tile/_mcount.S (__mcount): Likewise.
24276 * sysdeps/tile/crti.S (_init, _fini): Likewise.
24277 * sysdeps/tile/crtn.S: Likewise.
24278 * sysdeps/tile/dl-start.S (_start): Likewise.
24279 * sysdeps/tile/dl-trampoline.S: Likewise.
24280 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
24281 * sysdeps/tile/start.S (_start): Likewise.
24282 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
24283 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
24284 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
24285 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
24286 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
24287 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
24288 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
24289
24290 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
24291 comment.
24292 * sysdeps/tile/preconfigure: Remove tilegx folder.
24293 * sysdeps/tile/tilegx/Implies: Move definitions to ...
24294 * sysdeps/tile/Implies: ... here.
24295 * sysdeps/tile/tilegx/Makefile: Move rules to ...
24296 * sysdeps/tile/Makefile: ... here.
24297 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
24298 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
24299 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
24300 * sysdeps/tile/bits/wordsize.h: ... here.
24301 * sysdeps/tile/tilegx/*: Move to ...
24302 * sysdeps/tile/*: ... here.
24303 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
24304 * sysdeps/tile/tilegx32/Implies: ... here.
24305 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
24306 * sysdeps/tile/tilegx64/Implies: ... here.
24307 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
24308 to ...
24309 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
24310 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
24311 * sysdeps/unix/sysv/linux/tile/*: ... here.
24312 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
24313 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
24314 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
24315 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
24316
24317 * README: Remove tilepro-*-linux-gnu from supported architecture.
24318 * scripts/build-many-glibcs.py: Likewise.
24319 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
24320 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
24321 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
24322 elf_machine_matches_host, elf_machine_dynamic,
24323 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
24324 howto, elf_machine_rela): Likewise.
24325 * sysdeps/tile/dl-start.S (_start): Likewise.
24326 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
24327 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
24328 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
24329 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
24330 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
24331 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
24332 Likewise.
24333 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
24334 * sysdeps/tile/preconfigure: Likewise.
24335 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
24336 POINTER_CHK_GUARD): Likewise.
24337 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
24338 * sysdeps/tile/start.S (_start): Likewise.
24339 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
24340 Likewise.
24341 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
24342 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
24343 CMOVNEZ): Remove.
24344 * sysdeps/unix/sysv/linux/tile/bits/environments.h
24345 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
24346 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
24347 Likewise.
24348 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
24349 * sysdeps/tile/tilepro/Implies: Remove file.
24350 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
24351 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
24352 * sysdeps/tile/tilepro/memchr.c: Likewise.
24353 * sysdeps/tile/tilepro/memcpy.S: Likewise.
24354 * sysdeps/tile/tilepro/memset.c: Likewise.
24355 * sysdeps/tile/tilepro/memusage.h: Likewise.
24356 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
24357 * sysdeps/tile/tilepro/strchr.c: Likewise.
24358 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
24359 * sysdeps/tile/tilepro/strlen.c: Likewise.
24360 * sysdeps/tile/tilepro/strrchr.c: Likewise.
24361 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
24362 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
24363 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24364 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
24365 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
24366 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
24367 Likewise.
24368 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
24369 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24370 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
24371 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
24372 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24373 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
24374 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
24375 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
24376 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
24377 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
24378 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
24379 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
24380 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
24381 tilepro mention in comment.
24382
24383 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
24384 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
24385 * nptl/pthread_join_common.c: New file: common function used on
24386 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
24387 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
24388 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
24389 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
24390 (cleanup): Move definition to pthread_join_common.c.
24391 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
24392 Remove superflous checks.
24393 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
24394 Likewise.
24395
24396 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
24397
24398 * sysdeps/aarch64/libm-test-ulps: Update.
24399
24400 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24401
24402 * sysdeps/aarch64/memset.S (MEMSET): Define.
24403
24404 2017-12-20 Florian Weimer <fweimer@redhat.com>
24405
24406 [BZ #22635]
24407 nptl: Provide full implementation of pthread_self in libc.so.
24408 * nptl/Makefile (routines): Add pthread_self.
24409 (libpthread-routines): Replace pthread_self with
24410 compat-pthread_self.
24411 * nptl/forward.c (pthread_self): Remove.
24412 * nptl/nptl-init.c (pthread_functions): Do not initialize
24413 ptr_pthread_self.
24414 * nptl/pthread_self.c (pthread_self): Remove weak alias.
24415 * nptl/compat-pthread_self.c: New file.
24416 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
24417 Remove ptr_pthread_self.
24418
24419 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
24420
24421 * posix/regcomp.c: Fix spelling in comments.
24422 * posix/regex.h: Likewise.
24423 * posix/regex_internal.c: Likewise.
24424 * posix/regexec.c: Likewise.
24425
24426 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24427
24428 [BZ #22377]
24429 * math/Makefile [C++] (tests): Add test for iseqsig.
24430 * math/math.h [C++] (iseqsig): New implementation, which does
24431 not rely on __MATH_TG/__builtin_types_compatible_p.
24432 * math/test-math-iseqsig.cc: New file.
24433 * sysdeps/powerpc/powerpc64le/Makefile
24434 (CFLAGS-test-math-iseqsig.cc): New variable.
24435
24436 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
24437
24438 * elf/dl-load.c (is_trusted_path): Remove.
24439 (fillin_rpath): Remove check_trusted argument and its use,
24440 all callers changed.
24441
24442 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24443
24444 [BZ #22630]
24445 * Makeconfig (link-pie-before-libc): Replace -pie with
24446 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
24447 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
24448 (tst-dlopen-aout-no-pie): New.
24449 (LDFLAGS-tst-prelink): Removed.
24450 (tst-prelink-no-pie): New.
24451 (LDFLAGS-tst-main1): Removed.
24452 (tst-main1-no-pie): New.
24453 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
24454 (tst-gmon-no-pie): New.
24455
24456 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24457
24458 * manual/install.texi: Document that --enable-static-pie
24459 implies PIE.
24460 * INSTALL: Regenerated.
24461
24462 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
24463
24464 [BZ #21309]
24465 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
24466 unsigned.
24467
24468 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24469
24470 Revert:
24471
24472 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24473
24474 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24475
24476 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24477
24478 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24479 <errno.h>. Include "eexp.tbl".
24480 (half): New constant.
24481 (one): Likewise.
24482 (__ieee754_exp): Rewrite.
24483 (__slowexp): Remove prototype.
24484 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24485 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24486 * sysdeps/i386/fpu/slowexp.c: Likewise.
24487 * sysdeps/ia64/fpu/slowexp.c: Likewise.
24488 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24489 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24490 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24491 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24492 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24493 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24494 comment.
24495 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24496 (CPPFLAGS-slowexp.c): Remove variable.
24497 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24498 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24499 (CFLAGS-slowexp-fma.c): Remove variable.
24500 (CFLAGS-slowexp-fma4.c): Likewise.
24501 (CFLAGS-slowexp-avx.c): Likewise.
24502 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24503 define as macro.
24504 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24505 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24506 * math/Makefile (type-double-routines): Remove slowexp.
24507 * manual/probes.texi (slowexp_p6): Remove.
24508 (slowexp_p32): Likewise.
24509
24510 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24511
24512 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
24513 arithmetic.
24514
24515 * lib/glob.c (glob): Do not pass NULL to mempcpy.
24516
24517 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24518
24519 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24520
24521 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24522
24523 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24524 <errno.h>. Include "eexp.tbl".
24525 (half): New constant.
24526 (one): Likewise.
24527 (__ieee754_exp): Rewrite.
24528 (__slowexp): Remove prototype.
24529 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24530 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24531 * sysdeps/i386/fpu/slowexp.c: Likewise.
24532 * sysdeps/ia64/fpu/slowexp.c: Likewise.
24533 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24534 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24535 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24536 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24537 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24538 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24539 comment.
24540 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24541 (CPPFLAGS-slowexp.c): Remove variable.
24542 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24543 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24544 (CFLAGS-slowexp-fma.c): Remove variable.
24545 (CFLAGS-slowexp-fma4.c): Likewise.
24546 (CFLAGS-slowexp-avx.c): Likewise.
24547 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24548 define as macro.
24549 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24550 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24551 * math/Makefile (type-double-routines): Remove slowexp.
24552 * manual/probes.texi (slowexp_p6): Remove.
24553 (slowexp_p32): Likewise.
24554
24555 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24556 James Clarke <jrtc27@jrtc27.com>
24557
24558 [BZ #22603]
24559 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
24560 addition.
24561
24562 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24563
24564 [BZ #22605]
24565 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
24566 code.
24567
24568 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24569
24570 [BZ #22563]
24571 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24572 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
24573 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24574 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
24575 to feature_1.
24576
24577 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24578
24579 [BZ #22563]
24580 * bits/types/__cancel_jmp_buf_tag.h: New file.
24581 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
24582 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
24583 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
24584 * nptl/Makefile (headers): Add
24585 bits/types/__cancel_jmp_buf_tag.h.
24586 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
24587 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
24588 * sysdeps/nptl/pthread.h: Include
24589 <bits/types/__cancel_jmp_buf_tag.h>.
24590 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
24591 __cancel_jmp_buf.
24592 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
24593
24594 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24595
24596 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24597 --enable-static-pie variants to x86_64, x32 and i686.
24598
24599 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24600
24601 [BZ #22631]
24602 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
24603 argument for attrubutes. All callers changed.
24604 (__inline_mathop1): Likewise. All callers changed.
24605 (__inline_mathop): Likewise. All callers changed.
24606 [__USE_MISC] (scalbn): Use __inline_forward instead of
24607 __inline_forward_c.
24608 [__USE_ISOC99] (scalbln): Likewise.
24609 [__USE_ISOC99] (nearbyint): Likewise.
24610 [__USE_ISOC99] (lrint): Likewise.
24611 [__USE_MISC] (scalbnf): Likewise.
24612 [__USE_ISOC99] (scalblnf): Likewise.
24613 [__USE_ISOC99] (nearbyintf): Likewise.
24614 [__USE_ISOC99] (lrintf): Likewise.
24615 [__USE_MISC] (scalbnl): Likewise.
24616 [__USE_ISOC99] (scalblnl): Likewise.
24617 [__USE_ISOC99] (nearbyintl): Likewise.
24618 [__USE_ISOC99] (lrintl): Likewise.
24619 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24620 __inline_mathop and __m81_defun changed.
24621
24622 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24623 CPU or FPU for ARM hard-float configurations.
24624
24625 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24626
24627 * nptl/tst-attr3.c: Include <libc-diag.h>.
24628 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24629
24630 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24631
24632 * string/tester.c (test_strncat): Also disable -Warray-bounds
24633 warnings for two tests.
24634
24635 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24636
24637 [BZ #22614]
24638 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24639 $(cc-pie-default) == yes.
24640 * config.make.in (cc-pie-default): New.
24641 * configure.ac (libc_cv_pie_default): Renamed to ...
24642 (libc_cv_cc_pie_default): This.
24643 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24644 * configure: Regenerated.
24645
24646 2017-12-18 Florian Weimer <fweimer@redhat.com>
24647
24648 [BZ #20204]
24649 ld.so: Harden dl-libc/libdl hooks.
24650 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24651 (rtld_active): New function.
24652 * dlfcn/dladdr.c (__dladdr): Call it.
24653 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24654 * dlfcn/dlclose.c (__dlcose): Likewise.
24655 * dlfcn/dlerror.c (__dlerror): Likewise.
24656 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24657 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24658 * dlfcn/dlopen.c (__dlopen): Likewise.
24659 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24660 * dlfcn/dlsym.c (__dlsym): Likewise.
24661 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24662 * libio/vtables.c (_IO_vtable_check): Likewise.
24663 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24664 (__libc_dlclose): Likewise.
24665 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24666 assignment.
24667
24668 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24669
24670 [BZ #22446]
24671 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24672 buffers for readlink input and output.
24673
24674 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24675
24676 [BZ #22624]
24677 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24678 inhibit_stack_protector.
24679
24680 [BZ #22624]
24681 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24682 inhibit_stack_protector.
24683
24684 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24685
24686 [BZ #22627]
24687 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24688 code and invocation.
24689
24690 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24691
24692 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24693
24694 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24695
24696 [BZ #22505]
24697 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24698
24699 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24700
24701 * sysdeps/s390/fpu/libm-test-ulps: Update.
24702
24703 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24704
24705 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24706
24707 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24708
24709 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24710 constants to s_sincosf.h file.
24711 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24712 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24713 implementation.
24714 * sysdeps/ieee754/flt-32/s_sincosf.h:
24715 New file.
24716
24717 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24718
24719 [BZ #14681]
24720 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24721 before mtrace.
24722
24723 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24724
24725 [BZ #19574]
24726 * INSTALL: Regenerated.
24727 * Makeconfig (real-static-start-installed-name): New.
24728 (pic-default): Updated for --enable-static-pie.
24729 (pie-default): New for --enable-static-pie.
24730 (default-pie-ldflag): Likewise.
24731 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24732 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24733 Replace $(static-start-installed-name) with
24734 $(real-static-start-installed-name).
24735 (+prectorT): Updated for --enable-static-pie.
24736 (+postctorT): Likewise.
24737 (CFLAGS-.o): Add $(pie-default).
24738 (CFLAGS-.op): Likewise.
24739 * NEWS: Mention --enable-static-pie.
24740 * config.h.in (ENABLE_STATIC_PIE): New.
24741 * configure.ac (--enable-static-pie): New configure option.
24742 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24743 (have-static-pie): Likewise.
24744 Enable static PIE if linker supports --no-dynamic-linker.
24745 (ENABLE_STATIC_PIE): New AC_DEFINE.
24746 (enable-static-pie): New LIBC_CONFIG_VAR.
24747 * configure: Regenerated.
24748 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24749 gr$(start-installed-name) for --enable-static-pie.
24750 (extra-objs): Likewise.
24751 (install-lib): Likewise.
24752 (extra-objs): Add static-reloc.o and static-reloc.os
24753 ($(objpfx)$(start-installed-name)): Also depend on
24754 $(objpfx)static-reloc.o.
24755 ($(objpfx)r$(start-installed-name)): New.
24756 ($(objpfx)g$(start-installed-name)): Also depend on
24757 $(objpfx)static-reloc.os.
24758 ($(objpfx)gr$(start-installed-name)): New.
24759 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24760 in libc.a.
24761 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24762 initimage.
24763 * csu/static-reloc.c: New file.
24764 * elf/Makefile (routines): Add dl-reloc-static-pie.
24765 (elide-routines.os): Likewise.
24766 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24767 (tst-tls1-static-non-pie-no-pie): New.
24768 * elf/dl-reloc-static-pie.c: New file.
24769 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24770 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24771 STATIC_PIE_BOOTSTRAP.
24772 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24773 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24774 (tests-static): Likewise.
24775 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24776 (tst-gmon-static-no-pie): New.
24777 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24778 (CRT-tst-gmon-static-pie): Likewise.
24779 (tst-gmon-static-pie-ENV): Likewise.
24780 (tests-special): Likewise.
24781 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24782 (clean-tst-gmon-static-pie-data): Likewise.
24783 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24784 * gmon/tst-gmon-static-pie.c: New file.
24785 * manual/install.texi: Document --enable-static-pie.
24786 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24787 (_dl_get_dl_main_map): Likewise.
24788 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24789 * sysdeps/x86_64/configure.ac: Likewise.
24790 * sysdeps/i386/configure: Regenerated.
24791 * sysdeps/x86_64/configure: Likewise.
24792 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24793 (ASFLAGS-.op): Likewise.
24794
24795 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24796
24797 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24798 * posix/tst-mmap-offset.c (fname): Use /tmp.
24799 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24800
24801 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24802
24803 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24804
24805 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24806
24807 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24808 errno.
24809
24810 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24811
24812 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24813 --with-float=hard for arm-linux-gnueabihf configurations.
24814
24815 [BZ #14121]
24816 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24817 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24818 ($(mo-installed)): Use $(objpfx)%.mo.
24819 (realclean): Remove rule.
24820
24821 * po/Makefile (linguas): Remove rule and dependencies.
24822 (linguas.mo): Likewise.
24823 (.PHONY): Do not depend on linguas and linguas.mo.
24824 (podir): Remove variable.
24825 (pofiles): Likewise.
24826 [$(pofiles)] (%.po): Remove rule.
24827
24828 * sysdeps/sparc/sparc32/Makefile
24829 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24830 start-of-line whitespace in argument of echo.
24831 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24832 with whitespace. Generate __wrap_.udiv alias.
24833 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24834 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24835 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24836 * sysdeps/sparc/sparc32/urem.S: Likewise.
24837
24838 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24839
24840 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24841 for aligned inputs.
24842
24843 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24844
24845 * benchtests/bench-strcmp.c: Print output in JSON format.
24846
24847 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24848
24849 2017-12-14 Florian Weimer <fweimer@redhat.com>
24850
24851 [BZ #22607]
24852 CVE-2017-1000409
24853 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24854 the expanded path string.
24855
24856 2017-12-14 Florian Weimer <fweimer@redhat.com>
24857
24858 [BZ #22606]
24859 CVE-2017-1000408
24860 * elf/dl-load.c (system_dirs): Update comment.
24861 (nsystem_dirs_len): Use array_length.
24862 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24863
24864 2017-12-14 Florian Weimer <fweimer@redhat.com>
24865
24866 Simplify compiling most of support/ outside of glibc.
24867 * support/check_addrinfo.c: Include <string.h>.
24868 * support/check_dns_packet.c: Likewise.
24869 * support/check_hostent.c: Likewise.
24870 * support/support_can_chroot.c: Include <support/xunistd.h>.
24871 * support/support_format_addrinfo.c: Include <stdlib.h>
24872 * support/support_format_dns_packet.c: Include <stdbool.h>.
24873 * support/support_format_hostent.c: Include <stdlib.h>.
24874 * support/support_format_netent.c: Likewise.
24875 * support/support_write_string.c: Include <support/xunistd.h>.
24876 * support/xdlfcn.c: Include <stddef.h>.
24877
24878 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24879
24880 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24881
24882 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24883 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24884
24885 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24886 (sysdeps_routines): Add memset-niagara7.
24887 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24888 Likewise.
24889 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24890 file.
24891 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24892 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24893 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24894 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24895 Add niagara7 option.
24896 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24897 memset.
24898
24899 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24900 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24901 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24902 Likewise.
24903 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24904 New file.
24905 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24906 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24907 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24908 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24909 and __memmove_niagara7.
24910 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24911 Add niagara7 option.
24912 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24913 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24914 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24915 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24916 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24917
24918 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24919
24920 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24921 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24922 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24923 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24924
24925 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24926 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24927 _dl_sparc_cap_flags array.
24928 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24929
24930 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24931
24932 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24933 time whenever possible.
24934
24935 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24936
24937 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24938 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24939
24940 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24941
24942 * soft-fp/fmadf4.c: Move to ....
24943 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24944 * soft-fp/fmasf4.c: Move to ....
24945 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24946 * soft-fp/fmatf4.c: Move to ....
24947 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24948 * sysdeps/ieee754/soft-fp/Makefile: New file.
24949 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24950 * sysdeps/arm/preconfigure: Regenerated.
24951 * sysdeps/arm/nofpu/Implies: New file.
24952 * sysdeps/arm/s_fma.c: Remove file.
24953 * sysdeps/arm/s_fmaf.c: Likewise.
24954 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24955 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24956 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24957 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24958 * sysdeps/microblaze/s_fma.c: Remove file.
24959 * sysdeps/microblaze/s_fmaf.c: Likewise.
24960 * sysdeps/mips/mips32/nofpu/Implies: New file.
24961 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24962 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24963 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24964 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24965 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24966 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24967 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24968 implementation.
24969 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24970 * sysdeps/nios2/s_fma.c: Remove file.
24971 * sysdeps/nios2/s_fmaf.c: Likewise.
24972 * sysdeps/sh/nofpu/Implies: New file.
24973 * sysdeps/sh/s_fma.c: Remove file.
24974 * sysdeps/sh/s_fmaf.c: Likewise.
24975 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24976 * sysdeps/tile/s_fma.c: Remove file.
24977 * sysdeps/tile/s_fmaf.c: Likewise.
24978
24979 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24980
24981 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24982 Add s_cosf-sse2 and s_cosf-fma.
24983 (CFLAGS-s_cosf-fma.c): New.
24984 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24985 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24986 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24987
24988 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24989
24990 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24991
24992 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24993
24994 * libio/Makefile (tests): Add tst-bz22415.
24995 (tst-bz22415-ENV): New rule.
24996 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24997 (tests-special): Add tst-bz22415-mem.out.
24998 ($(objpfx)tst-bz22415-mem.out): New rule.
24999 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
25000 in case of a successful seek operation.
25001 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
25002 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
25003 buffer is required.
25004 * libio/tst-bz22415.c: New test.
25005
25006 * sysdeps/ia64/fpu/libm-test-ulps: Update.
25007
25008 2017-12-12 James Clarke <jrtc27@jrtc27.com>
25009
25010 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
25011 __IPC_64 to 0 to avoid IPC_64 being set.
25012
25013 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25014
25015 [BZ #22593]
25016 * math/bits/mathcalls.h (nextafter): Remove const.
25017 (nexttoward): Likewise.
25018
25019 2017-12-12 Joseph Myers <joseph@codesourcery.com>
25020
25021 * configure.ac (--with-fp): Remove configure option.
25022 (with_fp_cond): New variable.
25023 (libc_cv_with_fp): New configure test. Use this variable instead
25024 of with_fp.
25025 * configure: Regenerated.
25026 * config.make.in (with-fp): Use @libc_cv_with_fp@.
25027 * manual/install.texi (Configuring and compiling): Remove
25028 --without-fp.
25029 * INSTALL: Regenerated.
25030 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
25031 * sysdeps/mips/preconfigure (with_fp_cond): Define.
25032 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
25033 * sysdeps/sh/preconfigure (with_fp_cond): Define.
25034 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
25035 use --without-fp to configure glibc.
25036
25037 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
25038
25039 * manual/locale.texi (nl_langinfo): Fix a typo.
25040
25041 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
25042
25043 [BZ #22588]
25044 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
25045
25046 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
25047
25048 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
25049 (CFLAGS-argp-parse.c): Likewise.
25050 (CFLAGS-argp-fmtstream.c): Likewise.
25051 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
25052 (CPPFLAGS-sha512-crypt.c): Likewise.
25053 (CPPFLAGS-md5-crypt.c): Likewise.
25054 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
25055 (CFLAGS-stack_chk_fail_local.c): Likewise.
25056 (CFLAGS-backtrace.c): Likewise.
25057 (CFLAGS-sprintf_chk.c): Likewise.
25058 (CFLAGS-snprintf_chk.c): Likewise.
25059 (CFLAGS-vsprintf_chk.c): Likewise.
25060 (CFLAGS-vsnprintf_chk.c): Likewise.
25061 (CFLAGS-asprintf_chk.c): Likewise.
25062 (CFLAGS-vasprintf_chk.c): Likewise.
25063 (CFLAGS-obprintf_chk.c): Likewise.
25064 (CFLAGS-dprintf_chk.c): Likewise.
25065 (CFLAGS-vdprintf_chk.c): Likewise.
25066 (CFLAGS-printf_chk.c): Likewise.
25067 (CFLAGS-fprintf_chk.c): Likewise.
25068 (CFLAGS-vprintf_chk.c): Likewise.
25069 (CFLAGS-vfprintf_chk.c): Likewise.
25070 (CFLAGS-gets_chk.c): Likewise.
25071 (CFLAGS-fgets_chk.c): Likewise.
25072 (CFLAGS-fgets_u_chk.c): Likewise.
25073 (CFLAGS-fread_chk.c): Likewise.
25074 (CFLAGS-fread_u_chk.c): Likewise.
25075 (CFLAGS-swprintf_chk.c): Likewise.
25076 (CFLAGS-vswprintf_chk.c): Likewise.
25077 (CFLAGS-wprintf_chk.c): Likewise.
25078 (CFLAGS-fwprintf_chk.c): Likewise.
25079 (CFLAGS-vwprintf_chk.c): Likewise.
25080 (CFLAGS-vfwprintf_chk.c): Likewise.
25081 (CFLAGS-fgetws_chk.c): Likewise.
25082 (CFLAGS-fgetws_u_chk.c): Likewise.
25083 (CFLAGS-read_chk.c): Likewise.
25084 (CFLAGS-pread_chk.c): Likewise.
25085 (CFLAGS-pread64_chk.c): Likewise.
25086 (CFLAGS-recv_chk.c): Likewise.
25087 (CFLAGS-recvfrom_chk.c): Likewise.
25088 (CFLAGS-tst-longjmp_chk.c): Likewise.
25089 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
25090 (CFLAGS-tst-longjmp_chk2.c): Likewise.
25091 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
25092 (CFLAGS-tst-longjmp_chk3.c): Likewise.
25093 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
25094 (CFLAGS-tst-chk1.c): Likewise.
25095 (CFLAGS-tst-chk2.c): Likewise.
25096 (CFLAGS-tst-chk3.c): Likewise.
25097 (CFLAGS-tst-chk4.cc): Likewise.
25098 (CFLAGS-tst-chk5.cc): Likewise.
25099 (CFLAGS-tst-chk6.cc): Likewise.
25100 (CFLAGS-tst-lfschk1.c): Likewise.
25101 (CFLAGS-tst-lfschk2.c): Likewise.
25102 (CFLAGS-tst-lfschk3.c): Likewise.
25103 (CFLAGS-tst-lfschk4.cc): Likewise.
25104 (CFLAGS-tst-lfschk5.cc): Likewise.
25105 (CFLAGS-tst-lfschk6.cc): Likewise.
25106 (CFLAGS-tst-ssp-1.c): Likewise.
25107 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
25108 (CFLAGS-scandir64.c): Likewise.
25109 (CFLAGS-scandir-tail.c): Likewise.
25110 (CFLAGS-scandir64-tail.c): Likewise.
25111 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
25112 (CFLAGS-dl-tunables.c): Likewise.
25113 (CFLAGS-dl-runtime.c): Likewise.
25114 (CFLAGS-dl-lookup.c): Likewise.
25115 (CFLAGS-dl-iterate-phdr.c): Likewise.
25116 (CFLAGS-vismain.c): Likewise.
25117 (CFLAGS-tst-linkall-static.c): Likewise.
25118 (CFLAGS-tst-linkall-static.c): Likewise.
25119 (CPPFLAGS-dl-load.c): Likewise.
25120 (CFLAGS-ldconfig.c): Likewise.
25121 (CFLAGS-dl-cache.c): Likewise.
25122 (CFLAGS-cache.c): Likewise.
25123 (CFLAGS-rtld.c): Likewise.
25124 (CFLAGS-multiload.c): Likewise.
25125 (CFLAGS-filtmod1.c): Likewise.
25126 (CFLAGS-tst-align.c): Likewise.
25127 (CFLAGS-tst-align2.c): Likewise.
25128 (CFLAGS-tst-alignmod.c): Likewise.
25129 (CFLAGS-tst-alignmod2.c): Likewise.
25130 (CPPFLAGS-tst-execstack.c): Likewise.
25131 (CFLAGS-tst-ptrguard1-static.c): Likewise.
25132 (CFLAGS-tst-latepthreadmod.c): Likewise.
25133 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
25134 (CFLAGS-getgrnam_r.c): Likewise.
25135 (CFLAGS-getgrent_r.c): Likewise.
25136 (CFLAGS-getgrent.c): Likewise.
25137 (CFLAGS-fgetgrent.c): Likewise.
25138 (CFLAGS-fgetgrent_r.c): Likewise.
25139 (CFLAGS-putgrent.c): Likewise.
25140 (CFLAGS-initgroups.c): Likewise.
25141 (CFLAGS-getgrgid.c): Likewise.
25142 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
25143 (CFLAGS-getsgent.c): Likewise.
25144 (CFLAGS-fgetsgent.c): Likewise.
25145 (CFLAGS-fgetsgent_r.c): Likewise.
25146 (CFLAGS-putsgent.c): Likewise.
25147 (CFLAGS-getsgnam.c): Likewise.
25148 (CFLAGS-getsgnam_r.c): Likewise.
25149 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
25150 (CFLAGS-iconv_charmap.c): Likewise.
25151 (CFLAGS-dummy-repertoire.c): Likewise.
25152 (CFLAGS-charmap.c): Likewise.
25153 (CFLAGS-linereader.c): Likewise.
25154 (CFLAGS-simple-hash.c): Likewise.
25155 (CFLAGS-gconv_conf.c): Likewise.
25156 (CFLAGS-iconvconfig.c): Likewise.
25157 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
25158 (CFLAGS-gethstbyad.c): Likewise.
25159 (CFLAGS-gethstbynm_r.c): Likewise.
25160 (CFLAGS-gethstbynm.c): Likewise.
25161 (CFLAGS-gethstbynm2_r.c): Likewise.
25162 (CFLAGS-gethstbynm2.c): Likewise.
25163 (CFLAGS-gethstent_r.c): Likewise.
25164 (CFLAGS-gethstent.c): Likewise.
25165 (CFLAGS-rcmd.c): Likewise.
25166 (CFLAGS-getnetbynm_r.c): Likewise.
25167 (CFLAGS-getnetbynm.c): Likewise.
25168 (CFLAGS-getnetbyad_r.c): Likewise.
25169 (CFLAGS-getnetbyad.c): Likewise.
25170 (CFLAGS-getnetent_r.c): Likewise.
25171 (CFLAGS-getnetent.c): Likewise.
25172 (CFLAGS-getaliasent_r.c): Likewise.
25173 (CFLAGS-getaliasent.c): Likewise.
25174 (CFLAGS-getrpcent_r.c): Likewise.
25175 (CFLAGS-getrpcent.c): Likewise.
25176 (CFLAGS-getservent_r.c): Likewise.
25177 (CFLAGS-getservent.c): Likewise.
25178 (CFLAGS-getprtent_r.c): Likewise.
25179 (CFLAGS-getprtent.c): Likewise.
25180 (CFLAGS-either_ntoh.c): Likewise.
25181 (CFLAGS-either_hton.c): Likewise.
25182 (CFLAGS-getnetgrent.c): Likewise.
25183 (CFLAGS-getnetgrent_r.c): Likewise.
25184 (CFLAGS-tst-checks-posix.c): Likewise.
25185 (CFLAGS-tst-sockaddr.c): Likewise.
25186 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
25187 (CFLAGS-tst-translit.c): Likewise.
25188 (CFLAGS-tst-gettext2.c): Likewise.
25189 (CFLAGS-tst-codeset.c): Likewise.
25190 (CFLAGS-tst-gettext3.c): Likewise.
25191 (CFLAGS-tst-gettext4.c): Likewise.
25192 (CFLAGS-tst-gettext5.c): Likewise.
25193 (CFLAGS-tst-gettext6.c): Likewise.
25194 * io/Makefile (CFLAGS-open.c): Likewise.
25195 (CFLAGS-open64.c): Likewise.
25196 (CFLAGS-creat.c): Likewise.
25197 (CFLAGS-creat64.c): Likewise.
25198 (CFLAGS-fcntl.c): Likewise.
25199 (CFLAGS-poll.c): Likewise.
25200 (CFLAGS-ppoll.c): Likewise.
25201 (CFLAGS-lockf.c): Likewise.
25202 (CFLAGS-statfs.c): Likewise.
25203 (CFLAGS-fstatfs.c): Likewise.
25204 (CFLAGS-statvfs.c): Likewise.
25205 (CFLAGS-fstatvfs.c): Likewise.
25206 (CFLAGS-fts.c): Likewise.
25207 (CFLAGS-fts64.c): Likewise.
25208 (CFLAGS-ftw.c): Likewise.
25209 (CFLAGS-ftw64.c): Likewise.
25210 (CFLAGS-lockf.c): Likewise.
25211 (CFLAGS-posix_fallocate.c): Likewise.
25212 (CFLAGS-posix_fallocate64.c): Likewise.
25213 (CFLAGS-fallocate.c): Likewise.
25214 (CFLAGS-fallocate64.c): Likewise.
25215 (CFLAGS-read.c): Likewise.
25216 (CFLAGS-write.c): Likewise.
25217 (CFLAGS-test-stat.c): Likewise.
25218 (CFLAGS-test-lfs.c): Likewise.
25219 * libio/Makefile (CFLAGS-fileops.c): Likewise.
25220 (CFLAGS-fputc.c): Likewise.
25221 (CFLAGS-fputwc.c): Likewise.
25222 (CFLAGS-freopen64.c): Likewise.
25223 (CFLAGS-freopen.c): Likewise.
25224 (CFLAGS-fseek.c): Likewise.
25225 (CFLAGS-fseeko64.c): Likewise.
25226 (CFLAGS-fseeko.c): Likewise.
25227 (CFLAGS-ftello64.c): Likewise.
25228 (CFLAGS-ftello.c): Likewise.
25229 (CFLAGS-fwide.c): Likewise.
25230 (CFLAGS-genops.c): Likewise.
25231 (CFLAGS-getc.c): Likewise.
25232 (CFLAGS-getchar.c): Likewise.
25233 (CFLAGS-getwc.c): Likewise.
25234 (CFLAGS-getwchar.c): Likewise.
25235 (CFLAGS-iofclose.c): Likewise.
25236 (CFLAGS-iofflush.c): Likewise.
25237 (CFLAGS-iofgetpos64.c): Likewise.
25238 (CFLAGS-iofgetpos.c): Likewise.
25239 (CFLAGS-iofgets.c): Likewise.
25240 (CFLAGS-iofgetws.c): Likewise.
25241 (CFLAGS-iofputs.c): Likewise.
25242 (CFLAGS-iofputws.c): Likewise.
25243 (CFLAGS-iofread.c): Likewise.
25244 (CFLAGS-iofsetpos64.c): Likewise.
25245 (CFLAGS-iofsetpos.c): Likewise.
25246 (CFLAGS-ioftell.c): Likewise.
25247 (CFLAGS-iofwrite.c): Likewise.
25248 (CFLAGS-iogetdelim.c): Likewise.
25249 (CFLAGS-iogetline.c): Likewise.
25250 (CFLAGS-iogets.c): Likewise.
25251 (CFLAGS-iogetwline.c): Likewise.
25252 (CFLAGS-ioputs.c): Likewise.
25253 (CFLAGS-ioseekoff.c): Likewise.
25254 (CFLAGS-ioseekpos.c): Likewise.
25255 (CFLAGS-iosetbuffer.c): Likewise.
25256 (CFLAGS-iosetvbuf.c): Likewise.
25257 (CFLAGS-ioungetc.c): Likewise.
25258 (CFLAGS-ioungetwc.c): Likewise.
25259 (CFLAGS-oldfileops.c): Likewise.
25260 (CFLAGS-oldiofclose.c): Likewise.
25261 (CFLAGS-oldiofgetpos64.c): Likewise.
25262 (CFLAGS-oldiofgetpos.c): Likewise.
25263 (CFLAGS-oldiofsetpos64.c): Likewise.
25264 (CFLAGS-oldiofsetpos.c): Likewise.
25265 (CFLAGS-peekc.c): Likewise.
25266 (CFLAGS-putc.c): Likewise.
25267 (CFLAGS-putchar.c): Likewise.
25268 (CFLAGS-putwc.c): Likewise.
25269 (CFLAGS-putwchar.c): Likewise.
25270 (CFLAGS-rewind.c): Likewise.
25271 (CFLAGS-wfileops.c): Likewise.
25272 (CFLAGS-wgenops.c): Likewise.
25273 (CFLAGS-oldiofopen.c): Likewise.
25274 (CFLAGS-iofopen.c): Likewise.
25275 (CFLAGS-iofopen64.c): Likewise.
25276 (CFLAGS-oldtmpfile.c): Likewise.
25277 (CFLAGS-tst_putwc.c): Likewise.
25278 * locale/Makefile (CFLAGS-md5.c): Likewise.
25279 (CFLAGS-charmap.c): Likewise.
25280 (CFLAGS-locfile.c): Likewise.
25281 (CFLAGS-charmap-dir.c): Likewise.
25282 * login/Makefile (CFLAGS-grantpt.c): Likewise.
25283 (CFLAGS-getpt.c): Likewise.
25284 (CFLAGS-pt_chown.c): Likewise.
25285 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
25286 (CFLAGS-obstack.c): Likewise.
25287 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
25288 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
25289 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
25290 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
25291 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
25292 (CFLAGS-test-tgmath.c): Likewise.
25293 (CFLAGS-test-tgmath2.c): Likewise.
25294 (CFLAGS-test-tgmath-ret.c): Likewise.
25295 (CFLAGS-test-powl.c): Likewise.
25296 (CFLAGS-test-snan.c): Likewise.
25297 (CFLAGS-test-signgam-finite.c): Likewise.
25298 (CFLAGS-test-signgam-finite-c99.c): Likewise.
25299 (CFLAGS-test-signgam-finite-c11.c): Likewise.
25300 (CFLAGS-test-signgam-uchar.c): Likewise.
25301 (CFLAGS-test-signgam-uchar-init.c): Likewise.
25302 (CFLAGS-test-signgam-uchar-static.c): Likewise.
25303 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
25304 (CFLAGS-test-signgam-uint.c): Likewise.
25305 (CFLAGS-test-signgam-uint-init.c): Likewise.
25306 (CFLAGS-test-signgam-uint-static.c): Likewise.
25307 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
25308 (CFLAGS-test-signgam-ullong.c): Likewise.
25309 (CFLAGS-test-signgam-ullong-init.c): Likewise.
25310 (CFLAGS-test-signgam-ullong-static.c): Likewise.
25311 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
25312 (CFLAGS-test-math-cxx11.cc): Likewise.
25313 (CFLAGS-test-math-isinff.cc): Likewise.
25314 (CFLAGS-test-math-iszero.cc): Likewise.
25315 (CFLAGS-test-math-issignaling.cc): Likewise.
25316 (CFLAGS-test-math-iscanonical.cc): Likewise.
25317 (CFLAGS-test-iszero-excess-precision.c): Likewise.
25318 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
25319 (CFLAGS-test-flt-eval-method.c): Likewise.
25320 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
25321 (CFLAGS-test-finite-macros.c): Likewise.
25322 * misc/Makefile (CFLAGS-select.c): Likewise.
25323 (CFLAGS-tsearch.c): Likewise.
25324 (CFLAGS-lsearch.c): Likewise.
25325 (CFLAGS-pselect.c): Likewise.
25326 (CFLAGS-readv.c): Likewise.
25327 (CFLAGS-writev.c): Likewise.
25328 (CFLAGS-preadv.c): Likewise.
25329 (CFLAGS-preadv64.c): Likewise.
25330 (CFLAGS-pwritev.c): Likewise.
25331 (CFLAGS-pwritev64.c): Likewise.
25332 (CFLAGS-preadv2.c): Likewise.
25333 (CFLAGS-preadv64v2.c): Likewise.
25334 (CFLAGS-pwritev2.c): Likewise.
25335 (CFLAGS-pwritev64v2.c): Likewise.
25336 (CFLAGS-usleep.c): Likewise.
25337 (CFLAGS-syslog.c): Likewise.
25338 (CFLAGS-error.c): Likewise.
25339 (CFLAGS-getpass.c): Likewise.
25340 (CFLAGS-mkstemp.c): Likewise.
25341 (CFLAGS-mkstemp64.c): Likewise.
25342 (CFLAGS-getsysstats.c): Likewise.
25343 (CFLAGS-getusershell.c): Likewise.
25344 (CFLAGS-err.c): Likewise.
25345 (CFLAGS-tst-tsearch.c): Likewise.
25346 (CFLAGS-msync.c): Likewise.
25347 (CFLAGS-fdatasync.c): Likewise.
25348 (CFLAGS-fsync.c): Likewise.
25349 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
25350 (CFLAGS-unwind.c): Likewise.
25351 (CFLAGS-unwind-forcedunwind.c): Likewise.
25352 (CFLAGS-pthread_cancel.c): Likewise.
25353 (CFLAGS-pthread_setcancelstate.c): Likewise.
25354 (CFLAGS-pthread_setcanceltype.c): Likewise.
25355 (CFLAGS-cancellation.c): Likewise.
25356 (CFLAGS-libc-cancellation.c): Likewise.
25357 (CFLAGS-pthread_exit.c): Likewise.
25358 (CFLAGS-forward.c): Likewise.
25359 (CFLAGS-pthread_testcancel.c): Likewise.
25360 (CFLAGS-pthread_join.c): Likewise.
25361 (CFLAGS-pthread_timedjoin.c): Likewise.
25362 (CFLAGS-pthread_once.c): Likewise.
25363 (CFLAGS-pthread_cond_wait.c): Likewise.
25364 (CFLAGS-sem_wait.c): Likewise.
25365 (CFLAGS-sem_timedwait.c): Likewise.
25366 (CFLAGS-fcntl.c): Likewise.
25367 (CFLAGS-lockf.c): Likewise.
25368 (CFLAGS-pread.c): Likewise.
25369 (CFLAGS-pread64.c): Likewise.
25370 (CFLAGS-pwrite.c): Likewise.
25371 (CFLAGS-pwrite64.c): Likewise.
25372 (CFLAGS-wait.c): Likewise.
25373 (CFLAGS-waitpid.c): Likewise.
25374 (CFLAGS-sigwait.c): Likewise.
25375 (CFLAGS-msgrcv.c): Likewise.
25376 (CFLAGS-msgsnd.c): Likewise.
25377 (CFLAGS-tcdrain.c): Likewise.
25378 (CFLAGS-open.c): Likewise.
25379 (CFLAGS-open64.c): Likewise.
25380 (CFLAGS-pause.c): Likewise.
25381 (CFLAGS-recv.c): Likewise.
25382 (CFLAGS-send.c): Likewise.
25383 (CFLAGS-accept.c): Likewise.
25384 (CFLAGS-sendto.c): Likewise.
25385 (CFLAGS-connect.c): Likewise.
25386 (CFLAGS-recvfrom.c): Likewise.
25387 (CFLAGS-recvmsg.c): Likewise.
25388 (CFLAGS-sendmsg.c): Likewise.
25389 (CFLAGS-close.c): Likewise.
25390 (CFLAGS-read.c): Likewise.
25391 (CFLAGS-write.c): Likewise.
25392 (CFLAGS-nanosleep.c): Likewise.
25393 (CFLAGS-sigsuspend.c): Likewise.
25394 (CFLAGS-msync.c): Likewise.
25395 (CFLAGS-fdatasync.c): Likewise.
25396 (CFLAGS-fsync.c): Likewise.
25397 (CFLAGS-pt-system.c): Likewise.
25398 (CFLAGS-tst-cleanup2.c): Likewise.
25399 (CFLAGS-tst-cleanupx2.c): Likewise.
25400 (CFLAGS-flockfile.c): Likewise.
25401 (CFLAGS-ftrylockfile.c): Likewise.
25402 (CFLAGS-funlockfile.c): Likewise.
25403 (CFLAGS-tst-initializers1.c): Likewise.
25404 (CFLAGS-tst-initializers1-c89.c): Likewise.
25405 (CFLAGS-tst-initializers1-c99.c): Likewise.
25406 (CFLAGS-tst-initializers1-c11.c): Likewise.
25407 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
25408 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
25409 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
25410 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
25411 (CFLAGS-nscd_getgr_r.c): Likewise.
25412 (CFLAGS-nscd_gethst_r.c): Likewise.
25413 (CFLAGS-nscd_getai.c): Likewise.
25414 (CFLAGS-nscd_initgroups.c): Likewise.
25415 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
25416 (CFLAGS-pause.c): Likewise.
25417 (CFLAGS-pread.c): Likewise.
25418 (CFLAGS-pread64.c): Likewise.
25419 (CFLAGS-pwrite.c): Likewise.
25420 (CFLAGS-pwrite64.c): Likewise.
25421 (CFLAGS-sleep.c): Likewise.
25422 (CFLAGS-wait.c): Likewise.
25423 (CFLAGS-waitid.c): Likewise.
25424 (CFLAGS-waitpid.c): Likewise.
25425 (CFLAGS-getopt.c): Likewise.
25426 (CFLAGS-wordexp.c): Likewise.
25427 (CFLAGS-sysconf.c): Likewise.
25428 (CFLAGS-pathconf.c): Likewise.
25429 (CFLAGS-fpathconf.c): Likewise.
25430 (CFLAGS-spawn.c): Likewise.
25431 (CFLAGS-spawnp.c): Likewise.
25432 (CFLAGS-spawni.c): Likewise.
25433 (CFLAGS-glob.c): Likewise.
25434 (CFLAGS-glob64.c): Likewise.
25435 (CFLAGS-getconf.c): Likewise.
25436 (CFLAGS-nanosleep.c): Likewise.
25437 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
25438 (CFLAGS-getpwent.c): Likewise.
25439 (CFLAGS-getpw.c): Likewise.
25440 (CFLAGS-fgetpwent_r.c): Likewise.
25441 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
25442 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
25443 (CFLAGS-mq_timedreceive.c): Likewise.
25444 (CFLAGS-mq_timedsend.c): Likewise.
25445 (CFLAGS-clock_nanosleep.c): Likewise.
25446 (CFLAGS-librt-cancellation.c): Likewise.
25447 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
25448 (CFLAGS-getspent.c): Likewise.
25449 (CFLAGS-fgetspent.c): Likewise.
25450 (CFLAGS-fgetspent_r.c): Likewise.
25451 (CFLAGS-putspent.c): Likewise.
25452 (CFLAGS-getspnam.c): Likewise.
25453 (CFLAGS-getspnam_r.c): Likewise.
25454 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
25455 (CFLAGS-sigsuspend.c): Likewise.
25456 (CFLAGS-sigtimedwait.c): Likewise.
25457 (CFLAGS-sigwait.c): Likewise.
25458 (CFLAGS-sigwaitinfo.c): Likewise.
25459 (CFLAGS-sigreturn.c): Likewise.
25460 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
25461 (CFLAGS-vfwprintf.c): Likewise.
25462 (CFLAGS-tmpfile.c): Likewise.
25463 (CFLAGS-tmpfile64.c): Likewise.
25464 (CFLAGS-tempname.c): Likewise.
25465 (CFLAGS-psignal.c): Likewise.
25466 (CFLAGS-vprintf.c): Likewise.
25467 (CFLAGS-cuserid.c): Likewise.
25468 (CFLAGS-errlist.c): Likewise.
25469 (CFLAGS-siglist.c): Likewise.
25470 (CFLAGS-scanf15.c): Likewise.
25471 (CFLAGS-scanf17.c): Likewise.
25472 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
25473 (CFLAGS-msort.c): Likewise.
25474 (CFLAGS-qsort.c): Likewise.
25475 (CFLAGS-system.c): Likewise.
25476 (CFLAGS-fmtmsg.c): Likewise.
25477 (CFLAGS-strfmon.c): Likewise.
25478 (CFLAGS-strfmon_l.c): Likewise.
25479 (CFLAGS-strfromd.c): Likewise.
25480 (CFLAGS-strfromf.c): Likewise.
25481 (CFLAGS-strfroml.c): Likewise.
25482 (CFLAGS-tst-bsearch.c): Likewise.
25483 (CFLAGS-tst-qsort.c): Likewise.
25484 (CFLAGS-tst-makecontext2.c): Likewise.
25485 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
25486 (CFLAGS-xnlm_prot.c): Likewise.
25487 (CFLAGS-xrstat.c): Likewise.
25488 (CFLAGS-xyppasswd.c): Likewise.
25489 (CFLAGS-xklm_prot.c): Likewise.
25490 (CFLAGS-xrex.c): Likewise.
25491 (CFLAGS-xsm_inter.c): Likewise.
25492 (CFLAGS-xmount.c): Likewise.
25493 (CFLAGS-xrusers.c): Likewise.
25494 (CFLAGS-xspray.c): Likewise.
25495 (CFLAGS-xnfs_prot.c): Likewise.
25496 (CFLAGS-xrquota.c): Likewise.
25497 (CFLAGS-xkey_prot.c): Likewise.
25498 (CFLAGS-auth_unix.c): Likewise.
25499 (CFLAGS-key_call.c): Likewise.
25500 (CFLAGS-pmap_rmt.c): Likewise.
25501 (CFLAGS-clnt_perr.c): Likewise.
25502 (CFLAGS-openchild.c): Likewise.
25503 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
25504 (CFLAGS-msgsnd.c): Likewise.
25505 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
25506 * time/Makefile (CFLAGS-tzfile.c): Likewise.
25507 (CFLAGS-tzset.c): Likewise.
25508 (CFLAGS-getdate.c): Likewise.
25509 (CFLAGS-test_time.c): Likewise.
25510 (CPPFLAGS-tst-tzname.c): Likewise.
25511 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
25512 (CFLAGS-zic.c): Likewise.
25513 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
25514 (CFLAGS-wcswidth.c): Likewise.
25515 (CFLAGS-wcstol.c): Likewise.
25516 (CFLAGS-wcstoul.c): Likewise.
25517 (CFLAGS-wcstoll.c): Likewise.
25518 (CFLAGS-wcstoull.c): Likewise.
25519 (CFLAGS-wcstod.c): Likewise.
25520 (CFLAGS-wcstold.c): Likewise.
25521 (CFLAGS-wcstof128.c): Likewise.
25522 (CFLAGS-wcstof.c): Likewise.
25523 (CFLAGS-wcstol_l.c): Likewise.
25524 (CFLAGS-wcstoul_l.c): Likewise.
25525 (CFLAGS-wcstoll_l.c): Likewise.
25526 (CFLAGS-wcstoull_l.c): Likewise.
25527 (CFLAGS-wcstod_l.c): Likewise.
25528 (CFLAGS-wcstold_l.c): Likewise.
25529 (CFLAGS-wcstof128_l.c): Likewise.
25530 (CFLAGS-wcstof_l.c): Likewise.
25531 (CPPFLAGS-tst-wchar-h.c): Likewise.
25532 (CPPFLAGS-wcstold_l.c): Likewise.
25533
25534 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
25535
25536 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
25537
25538 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
25539 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25540
25541 * manual/tunables.texi (Hardware Capability Tunables): Document
25542 glibc.tune.cached_memopt.
25543 * sysdeps/powerpc/cpu-features.c: New file.
25544 * sysdeps/powerpc/cpu-features.h: New file.
25545 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
25546 _dl_powerpc_cpu_features.
25547 * sysdeps/powerpc/dl-tunables.list: New file.
25548 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
25549 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
25550 (INIT_ARCH): Initialize use_aligned_memopt.
25551 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
25552 IS_IN(rtld))]: Restrict dl_platform_init availability and
25553 initialize CPU features used by tunables.
25554 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
25555 Add memcpy-power8-cached.
25556 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
25557 __memcpy_power8_cached.
25558 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
25559 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
25560 New file.
25561
25562 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
25563
25564 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
25565 (CFLAGS-noinl-tester.c): Likewise.
25566 (CFLAGS-tst-strlen.c): Likewise.
25567 (CFLAGS-stratcliff.c): Likewise.
25568 (CFLAGS-test-ffs.c): Likewise.
25569 (CFLAGS-tst-inlcall.c): Likewise.
25570 (CFLAGS-tst-xbzero-opt.c): Likewise.
25571 (CFLAGS-memcpy.c): Likewise.
25572 (CFLAGS-wordcopy.c): Likewise.
25573
25574 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
25575
25576 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
25577 Store r15 on stack and add cfi rule.
25578 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
25579 Likewise.
25580
25581 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
25582
25583 [BZ #22577]
25584 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
25585 call.
25586
25587 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25588
25589 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25590 Add s_sinf-sse2 and s_sinf-fma.
25591 (CFLAGS-s_sinf-fma.c): New.
25592 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
25593 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
25594 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
25595
25596 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25597
25598 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
25599
25600 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25601
25602 [BZ #22568]
25603 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
25604 part of result to imaginary part of argument if it is zero and the
25605 real part of the argument is not finite.
25606 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
25607 of result to real part of argument if it is zero and the imaginary
25608 part of the argument is not finite.
25609
25610 2017-12-07 Mike FABIAN <mfabian@redhat.com>
25611
25612 [BZ #22524]
25613 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
25614 and to the list of locales to be built for testing.
25615 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25616 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
25617 and build the collation rules upon that.
25618
25619 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25620
25621 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25622 * manual/math.texi (Mathematics): Document support for _Float32.
25623 * math/Makefile (test-types): Add float32.
25624 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25625 * stdlib/Versions (GLIBC_2.27): Likewise.
25626 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25627 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25628 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25629 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25630 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25631 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25632 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25633 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25634 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25635 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25636 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25637 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25638 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25639 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25640 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25641 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25642 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25643 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25644 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25645 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25646 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25647 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25648 Likewise.
25649 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25650 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25651 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25652 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25653 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25655 Likewise.
25656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25657 Likewise.
25658 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25659 Likewise.
25660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25661 Likewise.
25662
25663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25664 Likewise.
25665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25666 Likewise.
25667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25668 Likewise.
25669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25670 Likewise.
25671 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25672 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25673 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25674 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25675 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25676 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25677 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25678 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25679 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25680 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25681 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25682 Likewise.
25683 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25684 Likewise.
25685 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25686 Likewise.
25687 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25688 Likewise.
25689 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25690 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25691 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25692 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25693 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25694 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25695 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25696 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25697
25698 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25699
25700 * stdlib/strtof.c: Include <bits/floatn.h>
25701 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25702 and later undefine as macro. Define as weak alias if
25703 [!USE_WIDE_CHAR].
25704 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25705 and later undefine as macro. Define as weak alias if
25706 [USE_WIDE_CHAR].
25707 * stdlib/strtof_l.c: Include <bits/floatn.h>
25708 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25709 and later undefine as macro. Define as weak alias if
25710 [!USE_WIDE_CHAR].
25711 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25712 and later undefine as macro. Define as weak alias if
25713 [USE_WIDE_CHAR].
25714
25715 * stdlib/strfromf.c: Include <bits/floatn.h>.
25716 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25717 and later undefine as macro and define as weak alias.
25718
25719 * math/test-float32.h: New file.
25720
25721 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25722 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25723 (libm_alias_float_other_r): Create f32 alias.
25724 (libm_alias_float_r): Use semicolon before call to
25725 libm_alias_float_other_r.
25726
25727 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25728 second argument to libm_alias_float_other.
25729 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25730 second argument to libm_alias_float_other.
25731 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25732 argument to libm_alias_float_other.
25733
25734 [BZ #22561]
25735 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25736 real part of result for argument 0 + i * NaN.
25737 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25738 results for tests of 0 + i * NaN.
25739
25740 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25741
25742 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25743
25744 2017-12-06 David S. Miller <davem@davemloft.net>
25745
25746 * sysdeps/sparc/fpu/libm-test-ulps: Update
25747 exp_{downward,towardzero,upward} ulps.
25748
25749 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25750
25751 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25752 variables static.
25753
25754 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25755 (Y0_2D): Likewise.
25756 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25757 (Y0_2D): Likewise.
25758 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25759 (Y0_2D): Likewise.
25760 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25761 (Y0_2D): Likewise.
25762
25763 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25764
25765 [BZ #22515]
25766 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25767 and to the list of locales to be built for testing.
25768 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25769 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25770 and build the collation rules upon that.
25771
25772 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25773
25774 * NEWS: Add sinf to list of optimized functions.
25775
25776 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25777
25778 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25779 (__HAVE_FLOAT32X): Likewise.
25780 * manual/math.texi (Mathematics): Document support for _Float64
25781 and _Float32x.
25782 * math/Makefile (test-types): Add float64 and float32x.
25783 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25784 functions.
25785 * stdlib/Versions (GLIBC_2.27): Likewise.
25786 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25787 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25788 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25789 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25790 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25791 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25792 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25793 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25794 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25795 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25796 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25797 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25798 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25799 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25800 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25801 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25802 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25803 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25804 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25805 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25806 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25807 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25808 Likewise.
25809 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25810 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25811 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25812 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25813 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25815 Likewise.
25816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25817 Likewise.
25818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25819 Likewise.
25820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25821 Likewise.
25822 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25823 Likewise.
25824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25825 Likewise.
25826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25827 Likewise.
25828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25829 Likewise.
25830 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25831 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25832 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25833 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25834 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25835 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25836 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25837 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25838 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25839 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25840 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25841 Likewise.
25842 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25843 Likewise.
25844 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25845 Likewise.
25846 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25847 Likewise.
25848 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25849 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25850 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25851 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25852 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25853 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25854 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25855 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25856
25857 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25858
25859 * bits/floatn-common.h: Include <bits/long-double.h>.
25860 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25861 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25862 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25863 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25864 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25865 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25866 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25867 (__builtin_huge_valf64): Use __builtin_huge_vall.
25868 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25869 (__builtin_inff64): Use __builtin_infl.
25870 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25871 (__builtin_nanf64): Use __builtin_nanl.
25872 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25873 (__builtin_nansf64): Use __builtin_nansl.
25874
25875 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25876 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25877 Carlos O'Donell <carlos@redhat.com>
25878
25879 * elf/dl-tunables.list: Add elision parameters.
25880 * manual/tunables.texi: Add entries about elision tunable.
25881 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25882 Add callback functions to dynamically enable/disable elision.
25883 Add multiple callbacks functions to set elision parameters.
25884 Deleted __libc_enable_secure check.
25885 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25886 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25887 * configure: Regenerated.
25888 * configure.ac: Option enable_lock_elision was deleted.
25889 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25890 * config.make.in: Remove references to enable_lock_elision.
25891 * manual/install.texi: Elision configure option was removed.
25892 * INSTALL: Regenerated to remove enable_lock_elision.
25893 * nptl/Makefile:
25894 Disable elision so it can verify error case for destroying a mutex.
25895 * sysdeps/powerpc/nptl/elide.h:
25896 Cleanup ENABLE_LOCK_ELISION check.
25897 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25898 * sysdeps/s390/configure: Regenerated.
25899 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25900 * nptl/tst-mutex8.c:
25901 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25902 * sysdeps/powerpc/powerpc32/sysdep.h:
25903 Deleted all ENABLE_LOCK_ELISION checks.
25904 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25905 * sysdeps/powerpc/sysdep.h: Likewise.
25906 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25907 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25908 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25909 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25910 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25911 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25912 enable-lock-elision.
25913
25914 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25915
25916 * stdlib/strtod.c: Include <bits/floatn.h>.
25917 (BUILD_DOUBLE): New macro.
25918 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25919 (strtof64): Define and later undefine as macro. Define as weak
25920 alias if [!USE_WIDE_CHAR].
25921 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25922 (wcstof64): Define and later undefine as macro. Define as weak
25923 alias if [USE_WIDE_CHAR].
25924 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25925 (strtof32x): Define and later undefine as macro. Define as weak
25926 alias if [!USE_WIDE_CHAR].
25927 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25928 (wcstof32x): Define and later undefine as macro. Define as weak
25929 alias if [USE_WIDE_CHAR].
25930 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25931 (BUILD_DOUBLE): New macro.
25932 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25933 (strtof64_l): Define and later undefine as macro. Define as weak
25934 alias if [!USE_WIDE_CHAR].
25935 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25936 (wcstof64_l): Define and later undefine as macro. Define as weak
25937 alias if [USE_WIDE_CHAR].
25938 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25939 (strtof32x_l): Define and later undefine as macro. Define as weak
25940 alias if [!USE_WIDE_CHAR].
25941 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25942 (wcstof32x_l): Define and later undefine as macro. Define as weak
25943 alias if [USE_WIDE_CHAR].
25944
25945 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25946
25947 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25948 (reduced): Use ones as double instead of integer.
25949
25950 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25951
25952 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25953
25954 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25955
25956 * stdlib/strfromd.c: Include <bits/floatn.h>.
25957 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25958 and later undefine as macro and define as weak alias.
25959 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25960 Likewise.
25961
25962 * math/test-float32x.h: New file.
25963 * math/test-float64.h: Likewise.
25964
25965 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25966 (libm_alias_double_other_r_f64): New macro.
25967 (libm_alias_double_other_r_f32x): Likewise.
25968 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25969 libm_alias_double_other_r_f32x.
25970 (libm_alias_double_r): Use semicolon before call to
25971 libm_alias_double_other_r.
25972 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25973 <bits/floatn.h>.
25974 (libm_alias_double_other_r_f64): New macro.
25975 (libm_alias_double_other_r_f32x): Likewise.
25976 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25977 libm_alias_double_other_r_f32x.
25978
25979 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25980
25981 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25982 int.
25983 (SINF_FUNC): Likewise. Replace floor with simple casts.
25984
25985 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25986
25987 [BZ #22517]
25988 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25989 and to the list of locales to be built for testing.
25990 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25991 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25992 and build the collation rules upon that.
25993
25994 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25995
25996 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25997 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25998 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25999 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
26000 instead of __insn__xxx.
26001 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
26002 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
26003 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
26004 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
26005 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
26006 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
26007
26008 2017-12-05 Florian Weimer <fweimer@redhat.com>
26009
26010 Linux: Implement interfaces for memory protection keys
26011 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
26012 xsignal, xsysconf.
26013 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
26014 * support/xunistd.h (xsysconf): Declare.
26015 * support/xraise.c: New file.
26016 * support/xsigaction.c: Likewise.
26017 * support/xsignal.c: Likewise.
26018 * support/xsysconf.c: Likewise.
26019 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
26020 pkey_set, pkey_get, pkey_mprotect.
26021 [misc] (tests): Add tst-pkey.
26022 (tst-pkey): Link with -lpthread.
26023 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
26024 pkey_free, pkey_set, pkey_get, pkey_mprotect.
26025 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
26026 (PKEY_DISABLE_WRITE): Define.
26027 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
26028 Declare.
26029 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
26030 (SEGV_PKUERR): Add.
26031 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
26032 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
26033 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
26034 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
26035 Add.
26036 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
26037 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
26038 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
26039 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
26040 * sysdeps/unix/sysv/linux/**.abilist: Update.
26041
26042 2017-12-05 Florian Weimer <fweimer@redhat.com>
26043
26044 * support/tst-test_compare.c (subprocess): Use long long instead
26045 of long argument for consistent type width across 32-bit and
26046 64-bit architectures.
26047 (do_test): Adjust expected output.
26048
26049 2017-12-05 Joseph Myers <joseph@codesourcery.com>
26050
26051 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
26052 (cosf): Define using libm_alias_float.
26053 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
26054 (fabsf): Define using libm_alias_float.
26055 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
26056 (fmaf): Define using libm_alias_float.
26057 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
26058 (rintf): Define using libm_alias_float.
26059 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
26060 (sinf): Define using libm_alias_float.
26061 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
26062 <libm-alias-float.h>.
26063 (modff): Define using libm_alias_float.
26064 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
26065 <libm-alias-float.h>.
26066 (logbf): Define using libm_alias_float.
26067 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
26068 <libm-alias-float.h>.
26069 (ceilf): Define using libm_alias_float.
26070 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
26071 <libm-alias-float.h>.
26072 (copysignf): Define using libm_alias_float.
26073 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
26074 <libm-alias-float.h>.
26075 (floorf): Define using libm_alias_float.
26076 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
26077 <libm-alias-float.h>.
26078 (llrintf): Define using libm_alias_float.
26079 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
26080 <libm-alias-float.h>.
26081 (llroundf): Define using libm_alias_float.
26082 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
26083 <libm-alias-float.h>.
26084 (lrintf): Define using libm_alias_float.
26085 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
26086 <libm-alias-float.h>.
26087 (lroundf): Define using libm_alias_float.
26088 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
26089 <libm-alias-float.h>.
26090 (nearbyintf): Define using libm_alias_float.
26091 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
26092 <libm-alias-float.h>.
26093 (rintf): Define using libm_alias_float.
26094 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
26095 <libm-alias-float.h>.
26096 (roundf): Define using libm_alias_float.
26097 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
26098 <libm-alias-float.h>.
26099 (truncf): Define using libm_alias_float.
26100 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
26101 Include <libm-alias-float.h>.
26102 (ceilf): Define using libm_alias_float.
26103 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
26104 Include <libm-alias-float.h>.
26105 (copysignf): Define using libm_alias_float.
26106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
26107 Include <libm-alias-float.h>.
26108 (floorf): Define using libm_alias_float.
26109 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
26110 Include <libm-alias-float.h>.
26111 (llrintf): Define using libm_alias_float.
26112 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
26113 Include <libm-alias-float.h>.
26114 (llroundf): Define using libm_alias_float.
26115 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
26116 Include <libm-alias-float.h>.
26117 (logbf): Define using libm_alias_float.
26118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
26119 Include <libm-alias-float.h>.
26120 (lrintf): Define using libm_alias_float.
26121 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
26122 Include <libm-alias-float.h>.
26123 (lroundf): Define using libm_alias_float.
26124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
26125 Include <libm-alias-float.h>.
26126 (modff): Define using libm_alias_float.
26127 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
26128 Include <libm-alias-float.h>.
26129 (roundf): Define using libm_alias_float.
26130 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
26131 Include <libm-alias-float.h>.
26132 (truncf): Define using libm_alias_float.
26133 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
26134 <libm-alias-float.h>.
26135 (llrintf): Define using libm_alias_float.
26136 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
26137 <libm-alias-float.h>.
26138 (llroundf): Define using libm_alias_float.
26139 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
26140 <libm-alias-float.h>.
26141 (ceilf): Define using libm_alias_float.
26142 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
26143 <libm-alias-float.h>.
26144 (floorf): Define using libm_alias_float.
26145 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
26146 <libm-alias-float.h>.
26147 (llroundf): Define using libm_alias_float.
26148 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
26149 <libm-alias-float.h>.
26150 (lroundf): Define using libm_alias_float.
26151 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
26152 <libm-alias-float.h>.
26153 (roundf): Define using libm_alias_float.
26154 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
26155 <libm-alias-float.h>.
26156 (truncf): Define using libm_alias_float.
26157 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
26158 <libm-alias-float.h>.
26159 (copysignf): Define using libm_alias_float.
26160 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
26161 <libm-alias-float.h>.
26162 (llrintf): Define using libm_alias_float.
26163 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
26164 <libm-alias-float.h>.
26165 (llroundf): Define using libm_alias_float.
26166 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
26167 <libm-alias-float.h>.
26168 (lrintf): Define using libm_alias_float.
26169 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
26170 <libm-alias-float.h>.
26171 (lroundf): Define using libm_alias_float.
26172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
26173 <libm-alias-float.h>.
26174 (ceilf): Define using libm_alias_float.
26175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
26176 <libm-alias-float.h>.
26177 (copysignf): Define using libm_alias_float.
26178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
26179 <libm-alias-float.h>.
26180 (cosf): Define using libm_alias_float.
26181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
26182 <libm-alias-float.h>.
26183 (floorf): Define using libm_alias_float.
26184 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
26185 <libm-alias-float.h>.
26186 (llrintf): Define using libm_alias_float.
26187 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
26188 <libm-alias-float.h>.
26189 (llroundf): Define using libm_alias_float.
26190 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
26191 <libm-alias-float.h>.
26192 (logbf): Define using libm_alias_float.
26193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
26194 <libm-alias-float.h>.
26195 (modff): Define using libm_alias_float.
26196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
26197 <libm-alias-float.h>.
26198 (roundf): Define using libm_alias_float.
26199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
26200 <libm-alias-float.h>.
26201 (sinf): Define using libm_alias_float.
26202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
26203 <libm-alias-float.h>.
26204 (truncf): Define using libm_alias_float.
26205 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
26206 <libm-alias-float.h>.
26207 (ceilf): Define using libm_alias_float.
26208 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
26209 <libm-alias-float.h>.
26210 (copysignf): Define using libm_alias_float.
26211 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
26212 <libm-alias-float.h>.
26213 (floorf): Define using libm_alias_float.
26214 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
26215 <libm-alias-float.h>.
26216 (llrintf): Define using libm_alias_float.
26217 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
26218 <libm-alias-float.h>.
26219 (llroundf): Define using libm_alias_float.
26220 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
26221 <libm-alias-float.h>.
26222 (nearbyintf): Define using libm_alias_float.
26223 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
26224 <libm-alias-float.h>.
26225 (rintf): Define using libm_alias_float.
26226 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
26227 <libm-alias-float.h>.
26228 (roundf): Define using libm_alias_float.
26229 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
26230 <libm-alias-float.h>.
26231 (truncf): Define using libm_alias_float.
26232 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
26233 <libm-alias-float.h>.
26234 (ceilf): Define using libm_alias_float.
26235 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
26236 <libm-alias-float.h>.
26237 (floorf): Define using libm_alias_float.
26238 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
26239 <libm-alias-float.h>.
26240 (llroundf): Define using libm_alias_float.
26241 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
26242 <libm-alias-float.h>.
26243 (roundf): Define using libm_alias_float.
26244 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
26245 <libm-alias-float.h>.
26246 (truncf): Define using libm_alias_float.
26247 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
26248 <libm-alias-float.h>.
26249 (copysignf): Define using libm_alias_float.
26250 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
26251 <libm-alias-float.h>.
26252 (llrintf): Define using libm_alias_float.
26253 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
26254 <libm-alias-float.h>.
26255 (llroundf): Define using libm_alias_float.
26256 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
26257 <libm-alias-float.h>.
26258 (cosf): Define using libm_alias_float.
26259 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
26260 <libm-alias-float.h>.
26261 (llrintf): Define using libm_alias_float.
26262 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
26263 <libm-alias-float.h>.
26264 (llroundf): Define using libm_alias_float.
26265 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
26266 <libm-alias-float.h>.
26267 (sinf): Define using libm_alias_float.
26268
26269 2017-12-04 Florian Weimer <fweimer@redhat.com>
26270
26271 * support/check.h (TEST_COMPARE): Define.
26272 (support_test_compare_failure): Declare.
26273 * support/Makefile (libsupport-routines): Add
26274 support_test_compare_failure.
26275 (tests): Add tst-test_compare.
26276 * support /support_test_compare_failure.c: New file.
26277 * support/tst-test_compare.c: Likewise.
26278
26279 2017-12-04 Mike FABIAN <mfabian@redhat.com>
26280
26281 [BZ #22527]
26282 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
26283 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
26284 available, this rewrite of the collation rules does reproduce
26285 the test file in the same order.
26286
26287 2017-12-04 Mike FABIAN <mfabian@redhat.com>
26288
26289 [BZ #10580]
26290 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
26291 digraphs in the month and day names. Using single code points for
26292 digraphs is deprecated. While there are dedicated Unicode
26293 codepoints, for the digraphs, these are included for backwards
26294 compatibility and modern texts use a sequence of Basic Latin
26295 characters. See: https://www.unicode.org/faq/ligature_digraph.html
26296 This makes the month and day names agree exactly with CLDR now,
26297 CLDR does not use the single code points for the digraphs either.
26298
26299 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
26300
26301 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
26302
26303 2017-12-04 Joseph Myers <joseph@codesourcery.com>
26304
26305 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
26306 of floor.
26307
26308 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
26309
26310 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
26311 Define only for libc.so.
26312
26313 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
26314
26315 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26316 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
26317 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
26318 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
26319 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26320
26321 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26322
26323 [BZ #5997]
26324 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
26325
26326 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
26327
26328 [BZ libc/19170]
26329 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
26330 PREINIT_FUNCTION_WEAK is nonzero.
26331 (gmon_initializer): New function. Put procedure label for it in
26332 .init_array section.
26333 (_init): Don't call PREINIT_FUNCTION.
26334 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
26335 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
26336 value when map argument is null.
26337
26338 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
26339 depi instruction from PIC pc-relative sequence.
26340 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
26341 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
26342 (elf_machine_load_address): Likewise.
26343 (elf_machine_runtime_setup): Likewise.
26344
26345 2017-12-02 Joseph Myers <joseph@codesourcery.com>
26346
26347 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
26348 <libm-alias-double.h>.
26349 (logb): Define using libm_alias_double.
26350 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
26351 <libm-alias-double.h>.
26352 (copysign): Define using libm_alias_double.
26353 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
26354 <libm-alias-double.h>.
26355 (llrint): Define using libm_alias_double.
26356 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
26357 <libm-alias-double.h>.
26358 (llround): Define using libm_alias_double.
26359 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
26360 <libm-alias-double.h>.
26361 (lrint): Define using libm_alias_double.
26362 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
26363 <libm-alias-double.h>.
26364 (lround): Define using libm_alias_double.
26365 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
26366 Include <libm-alias-double.h>.
26367 (copysign): Define using libm_alias_double.
26368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
26369 Include <libm-alias-double.h>.
26370 (llrint): Define using libm_alias_double.
26371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
26372 Include <libm-alias-double.h>.
26373 (llround): Define using libm_alias_double.
26374 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
26375 <libm-alias-double.h>.
26376 (logb): Define using libm_alias_double.
26377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
26378 Include <libm-alias-double.h>.
26379 (lrint): Define using libm_alias_double.
26380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
26381 Include <libm-alias-double.h>.
26382 (lround): Define using libm_alias_double.
26383 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
26384 <libm-alias-double.h>.
26385 (llrint): Define using libm_alias_double.
26386 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
26387 <libm-alias-double.h>.
26388 (llround): Define using libm_alias_double.
26389 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
26390 <libm-alias-double.h>.
26391 (llround): Define using libm_alias_double.
26392 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
26393 <libm-alias-double.h>.
26394 (lround): Define using libm_alias_double.
26395 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
26396 <libm-alias-double.h>.
26397 (copysign): Define using libm_alias_double.
26398 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
26399 <libm-alias-double.h>.
26400 (llrint): Define using libm_alias_double.
26401 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
26402 <libm-alias-double.h>.
26403 (llround): Define using libm_alias_double.
26404 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
26405 <libm-alias-double.h>.
26406 (lrint): Define using libm_alias_double.
26407 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
26408 <libm-alias-double.h>.
26409 (lround): Define using libm_alias_double.
26410 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
26411 <libm-alias-double.h>.
26412 (copysign): Define using libm_alias_double.
26413 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
26414 <libm-alias-double.h>.
26415 (llrint): Define using libm_alias_double.
26416 (lrint): Likewise.
26417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
26418 <libm-alias-double.h>.
26419 (llround): Define using libm_alias_double.
26420 (lround): Likewise.
26421 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
26422 <libm-alias-double.h>.
26423 (logb): Define using libm_alias_double.
26424 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
26425 <libm-alias-double.h>.
26426 (copysign): Define using libm_alias_double.
26427 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
26428 <libm-alias-double.h>.
26429 (llrint): Define using libm_alias_double.
26430 (lrint): Likewise.
26431 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
26432 <libm-alias-double.h>.
26433 (llround): Define using libm_alias_double.
26434 (lround): Likewise.
26435 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
26436 <libm-alias-double.h>.
26437 (llround): Define using libm_alias_double.
26438 (lround): Likewise.
26439 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
26440 <libm-alias-double.h>.
26441 (copysign): Define using libm_alias_double.
26442 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
26443 <libm-alias-double.h>.
26444 (llrint): Define using libm_alias_double.
26445 (lrint): Likewise.
26446 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
26447 <libm-alias-double.h>.
26448 (llround): Define using libm_alias_double.
26449 (lround): Likewise.
26450 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
26451 <libm-alias-double.h>.
26452 (llrint): Define using libm_alias_double.
26453 (lrint): Likewise.
26454 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
26455 <libm-alias-double.h>.
26456 (llround): Define using libm_alias_double.
26457 (lround): Likewise.
26458
26459 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26460
26461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
26462 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
26463 compat symbol based on llround.
26464
26465 * sysdeps/powerpc/power7/fpu/s_logb.c
26466 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
26467 symbol based on __logb, not on logb.
26468 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
26469 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
26471 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26472
26473 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
26474 (rint): Define using libm_alias_double.
26475 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
26476 <libm-alias-double.h>.
26477 (modf): Define using libm_alias_double.
26478 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
26479 <libm-alias-double.h>.
26480 (ceil): Define using libm_alias_double.
26481 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
26482 <libm-alias-double.h>.
26483 (floor): Define using libm_alias_double.
26484 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
26485 <libm-alias-double.h>.
26486 (nearbyint): Define using libm_alias_double.
26487 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
26488 <libm-alias-double.h>.
26489 (rint): Define using libm_alias_double.
26490 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
26491 <libm-alias-double.h>.
26492 (round): Define using libm_alias_double.
26493 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
26494 <libm-alias-double.h>.
26495 (trunc): Define using libm_alias_double.
26496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
26497 <libm-alias-double.h>.
26498 (ceil): Define using libm_alias_double.
26499 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
26500 Include <libm-alias-double.h>.
26501 (floor): Define using libm_alias_double.
26502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
26503 <libm-alias-double.h>.
26504 (modf): Define using libm_alias_double.
26505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
26506 Include <libm-alias-double.h>.
26507 (round): Define using libm_alias_double.
26508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
26509 Include <libm-alias-double.h>.
26510 (trunc): Define using libm_alias_double.
26511 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
26512 <libm-alias-double.h>.
26513 (ceil): Define using libm_alias_double.
26514 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
26515 <libm-alias-double.h>.
26516 (floor): Define using libm_alias_double.
26517 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
26518 <libm-alias-double.h>.
26519 (round): Define using libm_alias_double.
26520 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
26521 <libm-alias-double.h>.
26522 (trunc): Define using libm_alias_double.
26523 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
26524 <libm-alias-double.h>.
26525 (ceil): Define using libm_alias_double.
26526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
26527 <libm-alias-double.h>.
26528 (floor): Define using libm_alias_double.
26529 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
26530 <libm-alias-double.h>.
26531 (modf): Define using libm_alias_double.
26532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
26533 <libm-alias-double.h>.
26534 (round): Define using libm_alias_double.
26535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
26536 <libm-alias-double.h>.
26537 (trunc): Define using libm_alias_double.
26538 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
26539 <libm-alias-double.h>.
26540 (ceil): Define using libm_alias_double.
26541 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
26542 <libm-alias-double.h>.
26543 (floor): Define using libm_alias_double.
26544 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
26545 <libm-alias-double.h>.
26546 (nearbyint): Define using libm_alias_double.
26547 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
26548 <libm-alias-double.h>.
26549 (rint): Define using libm_alias_double.
26550 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
26551 <libm-alias-double.h>.
26552 (round): Define using libm_alias_double.
26553 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
26554 <libm-alias-double.h>.
26555 (trunc): Define using libm_alias_double.
26556 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
26557 <libm-alias-double.h>.
26558 (ceil): Define using libm_alias_double.
26559 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
26560 <libm-alias-double.h>.
26561 (floor): Define using libm_alias_double.
26562 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
26563 <libm-alias-double.h>.
26564 (round): Define using libm_alias_double.
26565 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
26566 <libm-alias-double.h>.
26567 (trunc): Define using libm_alias_double.
26568
26569 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
26570 (fabs): Define using libm_alias_double.
26571 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
26572 (fma): Define using libm_alias_double.
26573 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
26574 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
26575 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
26576 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
26577
26578 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26579
26580 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
26581
26582 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
26583 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
26584 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26585
26586 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
26587 due redirect macro.
26588
26589 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
26590
26591 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
26592
26593 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26594
26595 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
26596 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
26597 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
26598 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
26599
26600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26601 (libm-sysdep_routines): Add s_nearbyintf-generic and
26602 s_nearbyint-generic.
26603 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
26604 New file.
26605 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
26606 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
26607 Likewise.
26608 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
26609 Likewise.
26610 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
26611 file.
26612 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26613 Likewise.
26614
26615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26616 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26618 file.
26619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26621 Likewise.
26622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26624 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26625
26626 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26627 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26628 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26629 file.
26630 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26632 Likewise.
26633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26636
26637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26638 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26639 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26640 file.
26641 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26643 Likewise.
26644 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26645 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26646 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26647
26648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26649 (sysdep_calls): New rule.
26650 (sysdep_routines): Use sysdep_calls as base.
26651 (libm-sysdep_routines): Add generic rule for symbols shared with
26652 libc. Add s_copysign-generic and s_copysign-generic objects.
26653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26654 New file.
26655 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26656 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26657 Likewise.
26658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26659 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26660 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26661
26662 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26663
26664 [BZ #22519]
26665 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26666 the list of locales to be built for testing.
26667 * localedata/is_IS.UTF-8.in: New file.
26668 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26669 on iso14651_t1.
26670
26671 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26672
26673 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26674 <libm-alias-float.h>.
26675 (fabsf): Define using libm_alias_float.
26676
26677 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26678
26679 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26680
26681 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26682
26683 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26684 <libm-alias-float.h>.
26685 (fabsf): Define using libm_alias_float.
26686 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26687 <libm-alias-float.h>.
26688 (lrintf): Define using libm_alias_float.
26689 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26690 <libm-alias-float.h>.
26691 (rintf): Define using libm_alias_float.
26692
26693 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26694 <libm-alias-double.h>.
26695 (fabs): Define using libm_alias_double.
26696 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26697 <libm-alias-double.h>.
26698 (lrint): Define using libm_alias_double.
26699 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26700 <libm-alias-double.h>.
26701 (rint): Define using libm_alias_double.
26702
26703 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26704 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26705 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26706 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26707 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26708 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26709 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26710 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26711 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26712 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26713 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26714 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26715 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26716 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26717 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26718 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26719 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26720 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26721 s_atan_template.c.
26722 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26723 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26724 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26725 s_ceil_template.c.
26726 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26727 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26728 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26729 s_cos_template.c.
26730 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26731 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26732 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26733 s_expm1_template.c.
26734 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26735 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26736 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26737 s_fabs_template.c.
26738 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26739 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26740 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26741 s_floor_template.c.
26742 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26743 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26744 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26745 s_frexp_template.c.
26746 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26747 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26748 s_lrint_template.c.
26749 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26750 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26751 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26752 s_modf_template.c.
26753 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26754 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26755 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26756 s_nearbyint_template.c.
26757 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26758 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26759 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26760 s_remquo_template.c.
26761 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26762 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26763 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26764 s_rint_template.c.
26765 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26766 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26767 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26768 s_sin_template.c.
26769 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26770 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26771 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26772 s_sincos_template.c.
26773 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26774 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26775 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26776 s_tan_template.c.
26777 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26778 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26779 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26780 s_tanh_template.c.
26781 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26782 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26783 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26784 s_trunc_template.c.
26785 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26786 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26787 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26788 s_atan.c instead of including s_atan.c.
26789 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26790 s_atanf.c instead of including s_atanf.c.
26791 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26792 s_atanl.c instead of including s_atanl.c.
26793 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26794 instead of s_atan.c.
26795 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26796 instead of s_atanf.c.
26797 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26798 instead of s_atanl.c.
26799
26800 * scripts/update-copyrights: Do not handle intl/plural.c
26801 specially.
26802
26803 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26804
26805 [BZ #22432]
26806 * configure.ac (BISON): Require to be present.
26807 * configure: Regenerated.
26808 * intl/Makefile (generated): Add plural.c.
26809 [$(BISON) != no]: Make code unconditional.
26810 (plural.c): Change rule to $(objpfx)plural.c.
26811 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26812 * intl/plural.c: Remove.
26813 * manual/install.texi (Tools for Compilation): Document bison as
26814 required.
26815 * INSTALL: Regenerated.
26816
26817 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26818
26819 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26820 <libm-alias-double.h>.
26821 (llrint): Define using libm_alias_double.
26822 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26823 <libm-alias-float.h>.
26824 (llrintf): Define using libm_alias_float.
26825 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26826 <libm-alias-ldouble.h>.
26827 (llrintl): Define using libm_alias_ldouble.
26828
26829 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26830 declare_mgen_alias instead of weak_alias.
26831 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26832 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26833 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26834
26835 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26836
26837 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26838 Add add_n-generic.
26839 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26840 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26841 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26842
26843 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26844 Add submul_1-generic.
26845 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26846 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26847 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26848
26849 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26850 Add addmul_1-generic.
26851 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26852 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26853 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26854
26855 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26856 Add sub_n-generic.
26857 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26858 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26859 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26860
26861 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26862 Add mul_1-generic.
26863 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26864 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26865 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26866
26867 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26868
26869 According to CLDR, collation rules for Serbian and Bosnian
26870 should be the same as for Croatian.
26871
26872 [BZ #22534]
26873 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26874 and to the list of locales to be built for testing.
26875 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26876 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26877 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26878 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26879
26880 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26881
26882 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26883 to make test case pass.
26884 * localedata/hr_HR.UTF-8.in: Add more test strings.
26885
26886 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26887
26888 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26889
26890 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26891
26892 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26893 the list of locales to built for testing.
26894 * localedata/hr_HR.UTF-8.in: New file.
26895
26896 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26897
26898 [BZ #10580]
26899 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26900 iso14651_t1.
26901 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26902 CLDR (except use ligatures for the digraphs, CLDR does not use
26903 the ligatures), add first_workday, some fixes in the date and time
26904 formats.
26905 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26906 for Đ and đ.
26907 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26908 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26909 Add int_p_cs_precedes and int_n_cs_precedes.
26910 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26911 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26912 LC_MONETARY now).
26913 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26914 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26915 name_miss.
26916 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26917 and lang_lib. Change postal_fmt.
26918
26919 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26920
26921 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26922 <setjmp.h>.
26923 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26924 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26925 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26926 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26927 * sysdeps/generic/setjmpP.h: New file.
26928 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26929 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26930 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26931 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26932 Add jmp_buf-ssp.sym.
26933 (tests): Add tst-saved_mask-1.
26934
26935 2017-11-30 Arjun Shankar <arjun@redhat.com>
26936
26937 [BZ #22375]
26938 CVE-2017-17426
26939 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26940 instead of request2size.
26941
26942 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26943
26944 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26945 (__lllrint): Remove alias.
26946 (lllrint): Likewise.
26947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26948 (__lllrintf): Likewise.
26949 (lllrintf): Likewise.
26950
26951 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26952 <libm-alias-float.h>.
26953 (copysignf): Define using libm_alias_float.
26954 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26955 <libm-alias-float.h>.
26956 (fabsf): Define using libm_alias_float.
26957 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26958 Include <libm-alias-float.h>.
26959 (copysignf): Define using libm_alias_float.
26960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26961 <libm-alias-float.h>.
26962 (fabsf): Define using libm_alias_float.
26963 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26964 <libm-alias-float.h>.
26965 (fdimf): Define using libm_alias_float.
26966 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26967 <libm-alias-float.h>.
26968 (fmaf): Define using libm_alias_float.
26969 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26970 <libm-alias-float.h>.
26971 (llrintf): Define using libm_alias_float.
26972 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26973 Include <libm-alias-float.h>.
26974 (nearbyintf): Define using libm_alias_float.
26975 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26976 <libm-alias-float.h>.
26977 (rintf): Define using libm_alias_float.
26978 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26979 <libm-alias-float.h>.
26980 (llrintf): Define using libm_alias_float.
26981 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26982 <libm-alias-float.h>.
26983 (lrintf): Define using libm_alias_float.
26984 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26985 <libm-alias-float.h>.
26986 (nearbyintf): Define using libm_alias_float.
26987 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26988 <libm-alias-float.h>.
26989 (rintf): Define using libm_alias_float.
26990 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26991 <libm-alias-float.h>.
26992 (ceilf): Define using libm_alias_float.
26993 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26994 <libm-alias-float.h>.
26995 (floorf): Define using libm_alias_float.
26996 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26997 <libm-alias-float.h>.
26998 (fmaf): Define using libm_alias_float.
26999 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
27000 <libm-alias-float.h>.
27001 (lrintf): Define using libm_alias_float.
27002 (llrintf): Likewise.
27003 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
27004 <libm-alias-float.h>.
27005 (nearbyintf): Define using libm_alias_float.
27006 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
27007 <libm-alias-float.h>.
27008 (rintf): Define using libm_alias_float.
27009 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
27010 <libm-alias-float.h>.
27011 (truncf): Define using libm_alias_float.
27012 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
27013 <libm-alias-float.h>.
27014 (copysignf): Define using libm_alias_float.
27015 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
27016 <libm-alias-float.h>.
27017 (fabsf): Define using libm_alias_float.
27018 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
27019 <libm-alias-float.h>.
27020 (lrintf): Define using libm_alias_float.
27021 (llrintf): Likewise.
27022 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
27023 <libm-alias-float.h>.
27024 (nearbyintf): Define using libm_alias_float.
27025 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
27026 <libm-alias-float.h>.
27027 (rintf): Define using libm_alias_float.
27028
27029 2017-11-29 Joseph Myers <joseph@codesourcery.com>
27030
27031 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27032 <libm-alias-double.h>.
27033 (copysign): Define using libm_alias_double.
27034 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
27035 <libm-alias-double.h>.
27036 (fabs): Define using libm_alias_double.
27037 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27038 Include <libm-alias-double.h>.
27039 (copysign): Define using libm_alias_double.
27040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27041 <libm-alias-double.h>.
27042 (fabs): Define using libm_alias_double.
27043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
27044 <libm-alias-double.h>.
27045 (fdim): Define using libm_alias_double.
27046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
27047 <libm-alias-double.h>.
27048 (fma): Define using libm_alias_double.
27049 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
27050 <libm-alias-double.h>.
27051 (llrint): Define using libm_alias_double.
27052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
27053 Include <libm-alias-double.h>.
27054 (nearbyint): Define using libm_alias_double.
27055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
27056 <libm-alias-double.h>.
27057 (rint): Define using libm_alias_double.
27058 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
27059 <libm-alias-double.h>.
27060 (fabs): Define using libm_alias_double.
27061 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
27062 <libm-alias-double.h>.
27063 (llrint): Define using libm_alias_double.
27064 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
27065 <libm-alias-double.h>.
27066 (nearbyint): Define using libm_alias_double.
27067 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
27068 <libm-alias-double.h>.
27069 (rint): Define using libm_alias_double.
27070 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
27071 <libm-alias-double.h>.
27072 (ceil): Define using libm_alias_double.
27073 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
27074 <libm-alias-double.h>.
27075 (floor): Define using libm_alias_double.
27076 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
27077 <libm-alias-double.h>.
27078 (fma): Define using libm_alias_double.
27079 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
27080 <libm-alias-double.h>.
27081 (lrint): Define using libm_alias_double.
27082 (llrint): Likewise.
27083 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
27084 <libm-alias-double.h>.
27085 (nearbyint): Define using libm_alias_double.
27086 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
27087 <libm-alias-double.h>.
27088 (rint): Define using libm_alias_double.
27089 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
27090 <libm-alias-double.h>.
27091 (trunc): Define using libm_alias_double.
27092 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
27093 <libm-alias-double.h>.
27094 (copysign): Define using libm_alias_double.
27095 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
27096 <libm-alias-double.h>.
27097 (fabs): Define using libm_alias_double.
27098 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
27099 <libm-alias-double.h>.
27100 (lrint): Define using libm_alias_double.
27101 (llrint): Likewise.
27102 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
27103 <libm-alias-double.h>.
27104 (nearbyint): Define using libm_alias_double.
27105 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
27106 <libm-alias-double.h>.
27107 (rint): Define using libm_alias_double.
27108
27109 [BZ #22229]
27110 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
27111 <math_ldbl_opt.h>.
27112 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27113
27114 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
27115 SPARC --disable-multi-arch glibc variants.
27116
27117 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
27118 <libm-alias-float.h>.
27119 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27120 if [SHARED].
27121 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
27122 <libm-alias-float.h>.
27123 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27124 if [SHARED].
27125 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
27126 <libm-alias-float.h>.
27127 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27128 if [SHARED].
27129 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
27130 <libm-alias-float.h>.
27131 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27132 if [SHARED].
27133 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
27134 <libm-alias-float.h>.
27135 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27136 if [SHARED].
27137 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
27138 <libm-alias-float.h>.
27139 (ceilf): Define using libm_alias_float.
27140 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
27141 <libm-alias-float.h>.
27142 (floorf): Define using libm_alias_float.
27143 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
27144 <libm-alias-float.h>.
27145 (fmaf): Define using libm_alias_float.
27146 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
27147 <libm-alias-float.h>.
27148 (nearbyintf): Define using libm_alias_float.
27149 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
27150 <libm-alias-float.h>.
27151 (rintf): Define using libm_alias_float.
27152 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
27153 <libm-alias-float.h>.
27154 (truncf): Define using libm_alias_float.
27155 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
27156 (copysignf): Define using libm_alias_float.
27157 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
27158 (cosf): Define using libm_alias_float.
27159 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27160 (fabsf): Define using libm_alias_float.
27161 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27162 (fmaxf): Define using libm_alias_float.
27163 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
27164 (fminf): Define using libm_alias_float.
27165 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
27166 (llrintf): Define using libm_alias_float.
27167 [!__ILP32__] (lrintf): Likewise.
27168 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
27169 (sincosf): Define using libm_alias_float.
27170 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
27171 (sinf): Define using libm_alias_float.
27172 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
27173 (lrintf): Define using libm_alias_float.
27174
27175 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
27176 <libm-alias-double.h>.
27177 (atan): Define using libm_alias_double.
27178 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
27179 <libm-alias-double.h>.
27180 (ceil): Define using libm_alias_double.
27181 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
27182 <libm-alias-double.h>.
27183 (floor): Define using libm_alias_double.
27184 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
27185 <libm-alias-double.h>.
27186 (fma): Define using libm_alias_double.
27187 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
27188 <libm-alias-double.h>.
27189 (nearbyint): Define using libm_alias_double.
27190 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
27191 <libm-alias-double.h>.
27192 (rint): Define using libm_alias_double.
27193 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
27194 <libm-alias-double.h>.
27195 (sin): Define using libm_alias_double.
27196 (cos): Likewise.
27197 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
27198 <libm-alias-double.h>.
27199 (tan): Define using libm_alias_double.
27200 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
27201 <libm-alias-double.h>.
27202 (trunc): Define using libm_alias_double.
27203 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
27204 (copysign): Define using libm_alias_double.
27205 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
27206 (fabs): Define using libm_alias_double.
27207 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
27208 (fmax): Define using libm_alias_double.
27209 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
27210 (fmin): Define using libm_alias_double.
27211 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
27212 (llrint): Define using libm_alias_double.
27213 [!__ILP32__] (lrint): Likewise.
27214 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
27215 (lrint): Define using libm_alias_double.
27216
27217 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27218
27219 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27220 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
27221 objects.
27222 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
27223 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
27224 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
27225 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
27226 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
27227 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
27228
27229 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27230 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
27231 objects.
27232 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
27233 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
27234 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
27235 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
27236 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
27237 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
27238
27239 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
27240 (libm-sysdep_routines): Add s_nearbyint-generic and
27241 s_nearbyintf-generic objects.
27242 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
27243 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
27244 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
27245 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
27246 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
27247 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
27248
27249 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27250 Add s_finitef-generic and s_finite-generic objects.
27251 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
27252 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
27253 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
27254 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
27255 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
27256 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
27257
27258 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27259 Add s_isinff-generic and s_isinf-generic objects.
27260 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
27261 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
27262 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
27263 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
27264 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
27265 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
27266
27267 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
27268 Add s_isnanf-generic and s_isnan-generic objects.
27269 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
27270 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
27271 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
27272 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
27273 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
27274 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
27275
27276 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
27277 macro.
27278 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
27279 rule.
27280 (sysdep_routines): Use sysdep_calls as base.
27281 (libm-sysdep_routines): Add generic rule for symbols shared with
27282 libc. Add s_signbit-generic and s_signbitf-generic objects.
27283 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
27284 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
27285 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
27286 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
27287 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
27288 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
27289
27290 2017-11-29 Joseph Myers <joseph@codesourcery.com>
27291
27292 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
27293 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
27294 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
27295 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
27296 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
27297 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
27298 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
27299 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
27300 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
27301 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
27302 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
27303 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
27304 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
27305 libm_alias_float_r.
27306 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
27307 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
27308 (logf): Likewise.
27309 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
27310 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
27311 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
27312 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
27313 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
27314 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
27315 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
27316 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
27317 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
27318 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
27319 libm_alias_float.
27320 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
27321 (cosf): Likewise.
27322 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
27323 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
27324 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
27325 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
27326 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
27327 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
27328 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
27329 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
27330 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
27331 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
27332 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
27333 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
27334 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
27335 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
27336 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
27337 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
27338 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
27339 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
27340 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
27341 libm_alias_float.
27342 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
27343 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
27344 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
27345 * sysdeps/ia64/fpu/w_lgammaf_main.c
27346 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
27347 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
27348
27349 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27350 Alexandre Oliva <aoliva@redhat.com>
27351
27352 [BZ #17750]
27353 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
27354 * localedata/fr_CA.UTF-8.in: New file with test data for backward
27355 accents sorting.
27356 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
27357 sorting.
27358 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
27359 * localedata/locales/de_DE (LC_COLLATE): Likewise.
27360 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
27361 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
27362 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
27363 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
27364 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
27365 instead of “ifdef DIACRIT_BACKWARD”.
27366
27367 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27368
27369 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
27370 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
27371 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
27372 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
27373 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
27374 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
27375 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
27376 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
27377 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
27378 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
27379 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
27380 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
27381 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
27382 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
27383 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
27384 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
27385 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
27386 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
27387 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
27388 ($(have-as-vis3) == yes): Remove conditional.
27389 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
27390 Likewise.
27391 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
27392 file.
27393 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
27394 file.
27395 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
27396 file.
27397 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
27398 file.
27399 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
27400 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
27401 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
27402 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
27403 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
27404 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
27405 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
27406 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
27407
27408 2017-11-29 Joseph Myers <joseph@codesourcery.com>
27409
27410 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
27411 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
27412 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
27413 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
27414 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
27415 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
27416 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
27417 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
27418 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
27419 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
27420 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
27421 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
27422 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
27423 libm_alias_double_r.
27424 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
27425 (log): Likewise.
27426 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
27427 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
27428 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
27429 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
27430 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
27431 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
27432 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
27433 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
27434 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
27435 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
27436 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
27437 libm_alias_double.
27438 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
27439 (cos): Likewise.
27440 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
27441 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
27442 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
27443 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
27444 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
27445 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
27446 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
27447 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
27448 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
27449 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
27450 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
27451 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
27452 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
27453 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
27454 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
27455 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
27456 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
27457 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
27458 libm_alias_double.
27459 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
27460 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
27461 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
27462 * sysdeps/ia64/fpu/w_lgamma_main.c
27463 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
27464 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
27465
27466 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
27467
27468 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
27469 address of $global$ into %dp register earlier. Use pc-relative
27470 instruction sequence for PIC case.
27471
27472 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27473
27474 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
27475 (asinhf): Define using libm_alias_float.
27476 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
27477 (atanf): Define using libm_alias_float.
27478 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
27479 (cbrtf): Define using libm_alias_float.
27480 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
27481 (ceilf): Define using libm_alias_float.
27482 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
27483 (copysignf): Define using libm_alias_float.
27484 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
27485 (expm1f): Define using libm_alias_float.
27486 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
27487 (fabsf): Define using libm_alias_float.
27488 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
27489 (floorf): Define using libm_alias_float.
27490 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27491 (fmaxf): Define using libm_alias_float.
27492 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
27493 (fminf): Define using libm_alias_float.
27494 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
27495 (frexpf): Define using libm_alias_float.
27496 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
27497 (llrintf): Define using libm_alias_float.
27498 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
27499 (logbf): Define using libm_alias_float.
27500 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
27501 (lrintf): Define using libm_alias_float.
27502 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
27503 (nearbyintf): Define using libm_alias_float.
27504 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
27505 (remquof): Define using libm_alias_float.
27506 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
27507 (rintf): Define using libm_alias_float.
27508 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
27509 (truncf): Define using libm_alias_float.
27510 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
27511 <libm-alias-float.h>.
27512 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27513 if [SHARED].
27514 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
27515 <libm-alias-float.h>.
27516 (expf): Define using libm_alias_float, or libm_alias_float_other
27517 if [SHARED].
27518 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
27519 <libm-alias-float.h>.
27520 (log2f): Define using libm_alias_float, or libm_alias_float_other
27521 if [SHARED].
27522 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
27523 <libm-alias-float.h>.
27524 (logf): Define using libm_alias_float, or libm_alias_float_other
27525 if [SHARED].
27526 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
27527 <libm-alias-float.h>.
27528 (powf): Define using libm_alias_float, or libm_alias_float_other
27529 if [SHARED].
27530 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
27531 <libm-alias-float.h>.
27532 (cosf): Define using libm_alias_float.
27533 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
27534 <libm-alias-float.h>.
27535 (sincosf): Define using libm_alias_float.
27536 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
27537 <libm-alias-float.h>.
27538 (sinf): Define using libm_alias_float.
27539 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27540 (fmaxf): Define using libm_alias_float.
27541 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
27542 (fminf): Define using libm_alias_float.
27543 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27544 <libm-alias-float.h>.
27545 (fmaf): Define using libm_alias_float.
27546
27547 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
27548 (asinh): Define using libm_alias_double.
27549 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
27550 (atan): Define using libm_alias_double.
27551 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
27552 (cbrt): Define using libm_alias_double.
27553 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
27554 (ceil): Define using libm_alias_double.
27555 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
27556 (copysign): Define using libm_alias_double.
27557 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
27558 (expm1): Define using libm_alias_double.
27559 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
27560 (fabs): Define using libm_alias_double.
27561 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
27562 (fdim): Define using libm_alias_double.
27563 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
27564 (floor): Define using libm_alias_double.
27565 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
27566 (fmax): Define using libm_alias_double.
27567 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
27568 (fmin): Define using libm_alias_double.
27569 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
27570 (frexp): Define using libm_alias_double.
27571 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
27572 (llrint): Define using libm_alias_double.
27573 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
27574 (logb): Define using libm_alias_double.
27575 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
27576 (lrint): Define using libm_alias_double.
27577 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
27578 (nearbyint): Define using libm_alias_double.
27579 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
27580 (remquo): Define using libm_alias_double.
27581 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
27582 (rint): Define using libm_alias_double.
27583 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
27584 (trunc): Define using libm_alias_double.
27585 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
27586 (fmax): Define using libm_alias_double.
27587 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
27588 (fmin): Define using libm_alias_double.
27589 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
27590 (fma): Define using libm_alias_double.
27591
27592 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
27593
27594 [BZ #22370]
27595 * elf/dl-hwcaps.c (ROUND): Removed.
27596 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
27597 and ELF_NOTE_NEXT_OFFSET.
27598 * elf/dl-load.c (ROUND): Removed.
27599 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27600 * elf/readelflib.c (ROUND): Removed.
27601 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27602 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
27603 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
27604 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
27605
27606 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27607
27608 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27609 [!__fmaf] (fmaf): Define using libm_alias_float.
27610
27611 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
27612 [!__fma] (fma): Define using libm_alias_double.
27613 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
27614
27615 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27616
27617 [BZ #22336]
27618 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
27619 and implement the collation rules for cs from CLDR on top of that.
27620 * Makefile: Add cs_CZ.UTF-8 to test-input.
27621 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27622
27623 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27624
27625 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27626
27627 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27628 Icarus Sparry <icarus.w.sparry@intel.com>
27629
27630 * benchtests/Makefile:Add BENCHSET to allow subsets of
27631 benchmarks to be run.
27632 * benchtests/README: Add documentation for: Running subsets of
27633 benchmarks.
27634
27635 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27636
27637 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27638 range of tests names.
27639
27640 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27641 result from property and remove "max", min" and "mean" from
27642 required properties based on benchtests/bench-skeleton.c.
27643
27644 2017-11-28 Florian Weimer <fweimer@redhat.com>
27645
27646 [BZ #20826]
27647 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27648 due to Internet requirement.
27649 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27650 tst-getaddrinfo5.
27651 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27652
27653 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27654
27655 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27656 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27657 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27658 (sysdep_routines): Add memset-ultra1.
27659 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27660 file.
27661 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27662 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27663 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27664 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27665 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27666 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27667 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27668 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27669
27670 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27671 file.
27672 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27673 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27674 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27675 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27676 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27677 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27678 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27679 macro.
27680 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27681 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27682 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27683 (sysdep_routines): Add memcpy-ultra1.
27684 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27685 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27686
27687 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27688
27689 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27690 (cfloat_versions): Take function argument without trailing 'f'.
27691 Call libm_alias_float_other.
27692 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27693 * sysdeps/alpha/fpu/cargf.c: Likewise.
27694 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27695 * sysdeps/alpha/fpu/conjf.c: Likewise.
27696 * sysdeps/alpha/fpu/crealf.c: Likewise.
27697 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27698 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27699 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27700 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27701 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27702 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27703 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27704 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27705 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27706 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27707 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27708 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27709 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27710 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27711 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27712 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27713 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27714 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27715 (clog10f): Use libm_alias_float_other.
27716 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27717 (ceilf): Define using libm_alias_float.
27718 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27719 (copysignf): Define using libm_alias_float.
27720 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27721 (fabsf): Define using libm_alias_float.
27722 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27723 (floorf): Define using libm_alias_float.
27724 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27725 (fmaxf): Define using libm_alias_float.
27726 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27727 (fminf): Define using libm_alias_float.
27728 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27729 (lrintf): Define using libm_alias_float.
27730 (llrintf): Likewise.
27731 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27732 (lroundf): Define using libm_alias_float.
27733 (llroundf): Likewise.
27734 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27735 (rintf): Define using libm_alias_float.
27736 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27737 (truncf): Define using libm_alias_float.
27738
27739 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27740 (ceilf): Define using libm_alias_float.
27741 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27742 (floorf): Define using libm_alias_float.
27743 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27744 (fmaf): Define using libm_alias_float.
27745 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27746 (fmaxf): Define using libm_alias_float.
27747 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27748 (fminf): Define using libm_alias_float.
27749 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27750 (llrintf): Define using libm_alias_float.
27751 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27752 (llroundf): Define using libm_alias_float.
27753 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27754 (lrintf): Define using libm_alias_float.
27755 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27756 (lroundf): Define using libm_alias_float.
27757 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27758 <libm-alias-float.h>.
27759 (nearbyintf): Define using libm_alias_float.
27760 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27761 (rintf): Define using libm_alias_float.
27762 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27763 (roundf): Define using libm_alias_float.
27764 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27765 (truncf): Define using libm_alias_float.
27766
27767 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27768 (ceil): Define using libm_alias_double.
27769 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27770 (copysign): Define using libm_alias_double.
27771 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27772 (fabs): Define using libm_alias_double.
27773 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27774 (floor): Define using libm_alias_double.
27775 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27776 (fmax): Define using libm_alias_double.
27777 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27778 (fmin): Define using libm_alias_double.
27779 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27780 (lrint): Define using libm_alias_double.
27781 (llrint): Likewise.
27782 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27783 (lround): Define using libm_alias_double.
27784 (llround): Likewise.
27785 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27786 (rint): Define using libm_alias_double.
27787 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27788 (trunc): Define using libm_alias_double.
27789
27790 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27791 (libm_alias_double_r): Add semicolon after weak_alias call.
27792
27793 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27794
27795 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27796 (ceil): Define using libm_alias_double.
27797 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27798 (floor): Define using libm_alias_double.
27799 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27800 (fma): Define using libm_alias_double.
27801 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27802 (fmax): Define using libm_alias_double.
27803 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27804 (fmin): Define using libm_alias_double.
27805 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27806 (llrint): Define using libm_alias_double.
27807 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27808 (llround): Define using libm_alias_double.
27809 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27810 (lrint): Define using libm_alias_double.
27811 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27812 (lround): Define using libm_alias_double.
27813 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27814 (nearbyint): Define using libm_alias_double.
27815 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27816 (rint): Define using libm_alias_double.
27817 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27818 (round): Define using libm_alias_double.
27819 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27820 (trunc): Define using libm_alias_double.
27821
27822 2017-11-27 Florian Weimer <fweimer@redhat.com>
27823
27824 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27825 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27826 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27827 (tests): Add tst-mlock2.
27828 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27829 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27830 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27831 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27832 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27833 for mlock. Document mlock2.
27834
27835 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27836
27837 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27838 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27839 Likewise.
27840 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27841 Likewise.
27842 * sysdeps/x86/Makeconfig: New file.
27843 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27844 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27845 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27846 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27847 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27848 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27849 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27850 Likewise.
27851 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27852 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27853 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27854 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27855 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27856 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27857 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27858 * manual/math.texi (Mathematics): Document support for _Float64x.
27859 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27860 * stdlib/Versions (GLIBC_2.27): Likewise.
27861 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27862 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27863 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27864 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27865 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27866 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27867 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27868 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27869 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27870 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27871 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27872 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27874 Likewise.
27875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27876 Likewise.
27877 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27878 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27879 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27880 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27881 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27882 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27883 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27884 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27885 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27886 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27887 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27888 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27889 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27890 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27891
27892 2017-11-27 Andreas Schwab <schwab@suse.de>
27893
27894 * elf/Makefile (dl-routines): Add dl-sort-maps.
27895 * elf/dl-sort-maps.c: New file.
27896 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27897 (_dl_sort_maps): Declare.
27898 * elf/dl-fini.c (_dl_sort_fini): Remove.
27899 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27900 * elf/dl-close.c (_dl_close_worker): Likewise.
27901 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27902 open-coding it.
27903 * elf/dl-open.c (dl_open_worker): Likewise.
27904
27905 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27906
27907 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27908 using libm_alias_float128.
27909 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27910 Likewise.
27911 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27912 Likewise.
27913 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27914 (setpayloadsigf128): Likewise.
27915 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27916 Likewise.
27917 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27918 Likewise.
27919
27920 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27921 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27922 -mfloat128 to CFLAGS.
27923 ($(foreach
27924 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27925 Likewise.
27926 (CFLAGS-libm-test-support-float64x.c): New variable.
27927 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27928 $(f128-loader-link) to gnulib-tests.
27929
27930 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27931 (libm_alias_float128_other_r): If
27932 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27933 alias.
27934 (libm_alias_float128_r): Add semicolon after weak_alias call.
27935 * sysdeps/generic/libm-alias-ldouble.h
27936 (libm_alias_ldouble_other_r_f128): New macro.
27937 (libm_alias_ldouble_other_r_f64x): Likewise.
27938 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27939 and libm_alias_ldouble_other_r_f64x.
27940 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27941 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27942 (libm_alias_ldouble_other_r_f128): New macro.
27943 (libm_alias_ldouble_other_r_f64x): Likewise.
27944 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27945 and libm_alias_ldouble_other_r_f64x.
27946
27947 * stdlib/strfroml.c: Always include <stdlib.h>.
27948 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27949 undefine as macro and define as weak alias.
27950 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27951 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27952 <stdlib.h>.
27953 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27954 Define and later undefine as macro and define as weak alias.
27955
27956 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27957 Define and later undefine as macro. Define as weak alias if
27958 [!USE_WIDE_CHAR].
27959 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27960 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27961 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27962 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27963 Define and later undefine as macro. Define as weak alias if
27964 [!USE_WIDE_CHAR].
27965 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27966 Define and later undefine as macro. Define as weak alias if
27967 [USE_WIDE_CHAR].
27968 * sysdeps/ieee754/float128/strtof128_l.c
27969 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27970 Define and later undefine as macro. Define as weak alias if
27971 [!USE_WIDE_CHAR].
27972 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27973 Define and later undefine as macro. Define as weak alias if
27974 [USE_WIDE_CHAR].
27975 * sysdeps/ieee754/ldbl-128/strtold_l.c
27976 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27977 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27978 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27979 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27980 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27981 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27982 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27983 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27984 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27985 * sysdeps/ieee754/ldbl-96/strtold_l.c
27986 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27987 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27988 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27989 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27990
27991 * math/test-float64x.h: New file.
27992 * math/Makefile (type-float64x-yes): New variable.
27993 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27994
27995 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27996 function-like macro.
27997 (min_of_type_): Likewise.
27998 (min_of_type_l): Likewise.
27999 (min_of_type_f128): Likewise.
28000 (min_of_type): Pass () as last argument of __MATH_TG.
28001
28002 * stdlib/tst-strtod-round-skeleton.c
28003 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
28004 headers.
28005
28006 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
28007 for combinations of long double with _Float64 and _Float64x.
28008
28009 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
28010 (__DECL_SIMD_cosf32): Likewise.
28011 (__DECL_SIMD_cosf64): Likewise.
28012 (__DECL_SIMD_cosf32x): Likewise.
28013 (__DECL_SIMD_cosf64x): Likewise.
28014 (__DECL_SIMD_cosf128x): Likewise.
28015 (__DECL_SIMD_sinf16): Likewise.
28016 (__DECL_SIMD_sinf32): Likewise.
28017 (__DECL_SIMD_sinf64): Likewise.
28018 (__DECL_SIMD_sinf32x): Likewise.
28019 (__DECL_SIMD_sinf64x): Likewise.
28020 (__DECL_SIMD_sinf128x): Likewise.
28021 (__DECL_SIMD_sincosf16): Likewise.
28022 (__DECL_SIMD_sincosf32): Likewise.
28023 (__DECL_SIMD_sincosf64): Likewise.
28024 (__DECL_SIMD_sincosf32x): Likewise.
28025 (__DECL_SIMD_sincosf64x): Likewise.
28026 (__DECL_SIMD_sincosf128x): Likewise.
28027 (__DECL_SIMD_logf16): Likewise.
28028 (__DECL_SIMD_logf32): Likewise.
28029 (__DECL_SIMD_logf64): Likewise.
28030 (__DECL_SIMD_logf32x): Likewise.
28031 (__DECL_SIMD_logf64x): Likewise.
28032 (__DECL_SIMD_logf128x): Likewise.
28033 (__DECL_SIMD_expf16): Likewise.
28034 (__DECL_SIMD_expf32): Likewise.
28035 (__DECL_SIMD_expf64): Likewise.
28036 (__DECL_SIMD_expf32x): Likewise.
28037 (__DECL_SIMD_expf64x): Likewise.
28038 (__DECL_SIMD_expf128x): Likewise.
28039 (__DECL_SIMD_powf16): Likewise.
28040 (__DECL_SIMD_powf32): Likewise.
28041 (__DECL_SIMD_powf64): Likewise.
28042 (__DECL_SIMD_powf32x): Likewise.
28043 (__DECL_SIMD_powf64x): Likewise.
28044 (__DECL_SIMD_powf128x): Likewise.
28045
28046 * stdlib/Versions (libc): Move entries for wcstof128 and
28047 wcstof128_l to ....
28048 * wcsmbs/Versions (libc): ... here.
28049 Include <float128-abi.h>.
28050
28051 2017-11-24 Florian Weimer <fweimer@redhat.com>
28052
28053 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28054 bits/mman-shared.h.
28055 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
28056 <bits/mman-shared.h>.
28057 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
28058 to ...
28059 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
28060 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
28061 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
28062 <bits/mman-shared.h>.
28063
28064 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28065
28066 [BZ #22457]
28067 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
28068 posix_memalign/free.
28069 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
28070
28071 2017-11-22 Mike FABIAN <mfabian@redhat.com>
28072
28073 [BZ #22469]
28074 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
28075 and implement the collation rules for pl from CLDR on top of that.
28076 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
28077 of locales to be built for testing.
28078 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
28079
28080 2017-11-23 Joseph Myers <joseph@codesourcery.com>
28081
28082 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
28083 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
28084 libm_alias_ldouble_other.
28085 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
28086 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
28087 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
28088 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
28089 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
28090 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
28091 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
28092 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
28093 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
28094 libm_alias_ldouble_r.
28095 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
28096 libm_alias_ldouble_other.
28097 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
28098 (log10l): Likewise.
28099 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
28100 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
28101 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
28102 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
28103 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
28104 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
28105 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
28106 (atan2l): Likewise.
28107 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
28108 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
28109 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
28110 libm_alias_ldouble.
28111 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
28112 (cosl): Likewise.
28113 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
28114 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
28115 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
28116 (expl): Likewise.
28117 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
28118 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
28119 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
28120 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
28121 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
28122 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
28123 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
28124 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
28125 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
28126 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
28127 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
28128 libm_alias_ldouble.
28129 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
28130 libm_alias_ldouble_other.
28131 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
28132 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
28133 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
28134 libm_alias_ldouble.
28135 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
28136 libm_alias_ldouble_other.
28137 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
28138 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
28139 * sysdeps/ia64/fpu/w_lgammal_main.c
28140 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
28141 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
28142
28143 2017-11-23 Florian Weimer <fweimer@redhat.com>
28144
28145 * malloc/malloc.c (tcache_thread_shutdown): Rename from
28146 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
28147 alike. Remove freeres marker.
28148 * malloc/arena.c (arena_thread_freeres): Call
28149 tcache_thread_shutdown.
28150
28151 2017-11-23 Florian Weimer <fweimer@redhat.com>
28152
28153 [BZ #22459]
28154 Export nscd hash function as __nss_hash.
28155 * include/nss.h (__nss_hash): Declare.
28156 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
28157 symbol.
28158 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
28159 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
28160 of __nscd_hash.
28161 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
28162 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
28163 * nss/Makefiles (routines): Add nss_hash.
28164 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
28165 * nss/nss_hash.c: Rename from nis/nis_hash.c.
28166 (__nss_hash): Rename from __nis_hash. Define hidden alias.
28167 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
28168
28169 2017-11-23 Florian Weimer <fweimer@redhat.com>
28170
28171 [BZ #22478]
28172 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
28173 Return error code, not -1.
28174 * signal/tst-sigwait-eintr.c: New file.
28175 * signal/Makefile (tests): Add tst-sigwait-eintr.
28176
28177 2017-11-23 Florian Weimer <fweimer@redhat.com>
28178
28179 Linux: Add memfd_create system call wrapper
28180 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
28181 tst-memfd_create.
28182 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
28183 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
28184 [__USE_GNU] (memfd_create): Declare.
28185 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
28186 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
28187 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
28188 * sysdeps/unix/sysv/linux/**.abilist: Update.
28189 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
28190
28191 2017-11-22 Joseph Myers <joseph@codesourcery.com>
28192
28193 * localedata/gen-locale.sh: Fix typo in variable name.
28194
28195 * resolv/res_debug.c (p_secstodate): Condition definition on
28196 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
28197 directly as __p_secstodate, and as a compat symbol. Do not use
28198 libresolv_hidden_def.
28199 * resolv/resolv.h (p_secstodate): Remove macro and function
28200 declaration.
28201 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
28202 using p_secstodate.
28203 * include/resolv.h (__p_secstodate): Do not use
28204 libresolv_hidden_proto.
28205 * resolv/Makefile (tests): Move tst-p_secstodate to ....
28206 (tests-internal): ... here.
28207 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
28208 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
28209 and declare and use __p_secstodate and use compat_symbol_reference
28210 in that case.
28211 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
28212 implementation returning 77.
28213
28214 [BZ #22463]
28215 * resolv/res_debug.c: Include <libc-diag.h>.
28216 (p_secstodate): Assert time_t at least as wide as u_long. On
28217 overflow, use integer seconds since the epoch as output, or use
28218 "<overflow>" as output and set errno to EOVERFLOW if integer
28219 seconds since the epoch would be 14 or more characters.
28220 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
28221 for sprintf call.
28222 * resolv/tst-p_secstodate.c: New file.
28223 * resolv/Makefile (tests): Add tst-p_secstodate.
28224 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
28225
28226 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
28227 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
28228 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
28229
28230 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
28231
28232 * posix/regcomp.c (init_word_char): Add comments.
28233
28234 2017-11-22 Joseph Myers <joseph@codesourcery.com>
28235
28236 [BZ #22447]
28237 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
28238 strlen to compute length of ut_user and set trailing NUL byte of
28239 result explicitly.
28240
28241 2017-11-21 Mike FABIAN <mfabian@redhat.com>
28242
28243 [BZ #15537]
28244 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
28245 using “copy "iso14651_t1"” and then implementing the
28246 collation rules for lv from CLDR on top of that.
28247 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
28248 of locales to be built for testing.
28249 * lv_LV.UTF-8.in: New file with test data to test the Latvian
28250 sorting.
28251
28252 2017-11-21 Joseph Myers <joseph@codesourcery.com>
28253
28254 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28255 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
28256 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
28257 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
28258 [__USE_MISC] (MADV_HWPOISON): New macro.
28259 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
28260
28261 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28262
28263 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
28264 -Wmissing-braces on GCC 4.9.
28265
28266 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
28267
28268 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
28269 * sysdeps/s390/s390-32/start.S (_start): Likewise
28270 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
28271 (thread_start): Likewise.
28272 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
28273 (thread_start): Likewise.
28274 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
28275 (__makecontext_ret): Likewise.
28276 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
28277 (__makecontext_ret): Likewise.
28278
28279 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
28280
28281 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
28282 __wcschrnul): Remove attribute_hidden.
28283
28284 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
28285
28286 regex: don't assume uint64_t or uint32_t
28287 This avoids -Werror=overflow errors for 32-bit systems in
28288 the 64-bit case. Problem reported by Joseph Myers in:
28289 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
28290 Also, when this code is used in Gnulib it ports to platforms
28291 that lack uint64_t and uint32_t. The C standard doesn't guarantee
28292 them, and on some 32-bit compilers there is no uint64_t.
28293 Problem reported by Gianluigi Tiesi in:
28294 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
28295 * posix/regcomp.c (init_word_char): Don't assume that the types
28296 uint64_t and uint32_t exist. Adapted from Gnulib patch
28297 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
28298 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
28299
28300 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
28301
28302 * sysdeps/aarch64/memset-reg.h: New file.
28303 * sysdeps/aarch64/memset.S: Use it.
28304 (__memset): Rename to MEMSET macro.
28305 [ZVA_MACRO]: Use zva_macro.
28306 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
28307 Add memset_generic and memset_falkor.
28308 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28309 (__libc_ifunc_impl_list): Add memset ifuncs.
28310 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
28311 local variable zva_size.
28312 * sysdeps/aarch64/multiarch/memset.c: New file.
28313 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
28314 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
28315 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
28316 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
28317 (DCZID_DZP_MASK): New macro.
28318 (DCZID_BS_MASK): Likewise.
28319 (init_cpu_features): Read and set zva_size.
28320 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
28321 (struct cpu_features): New member zva_size.
28322
28323 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
28324 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
28325 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
28326
28327 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
28328 backwards. Fix timing computation.
28329 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
28330 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
28331 on memset by N at a time. Fix timing computation.
28332
28333 2017-11-20 Florian Weimer <fweimer@redhat.com>
28334
28335 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
28336 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
28337
28338 2017-11-19 Florian Weimer <fweimer@redhat.com>
28339
28340 manual: Document mprotect
28341 * manual/memory.texi (Memory Protection): New section.
28342 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
28343 documentation of PROT_* flags and reference the Memory Protection
28344 section instead.
28345
28346 2017-11-19 Florian Weimer <fweimer@redhat.com>
28347
28348 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
28349 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
28350 (Scatter-Gather): ... to here. Remove misleading comment.
28351
28352 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
28353
28354 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
28355 style.
28356
28357 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
28358 when /proc/<pid>/setgroups does not exist.
28359
28360 2017-11-18 Florian Weimer <fweimer@redhat.com>
28361
28362 * sysdeps/unix/sysv/linux/tst-ttyname.c
28363 (become_root_in_mount_ns): Remove.
28364 (do_in_chroot_1): Call support_enter_mount_namespace.
28365 (do_in_chroot_2): Likewise.
28366 (do_test): Call support_become_root early.
28367
28368 2017-11-18 Florian Weimer <fweimer@redhat.com>
28369
28370 * support/namespace.h (support_enter_mount_namespace): Declare.
28371 * support/support_enter_mount_namespace.c: New file.
28372 * support/Makefile (libsupport-routines): Add
28373 support_enter_mount_namespace.
28374
28375 2017-11-18 Florian Weimer <fweimer@redhat.com>
28376
28377 * support/temp_file.c (support_create_temp_directory): Use
28378 test_dir and do not rely on the presence of the XXXXXX suffix.
28379 * support/temp_file.h (support_create_temp_directory): Update
28380 comment.
28381 * support/tst-xreadlink.c (do_test): Adjust.
28382 * support/support_chroot.c (support_chroot_create): Likewise.
28383
28384 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28385
28386 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
28387 macro.
28388 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
28389 htm-no-suspend.
28390
28391 2017-11-17 Joseph Myers <joseph@codesourcery.com>
28392
28393 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28394 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28395 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28396 (ceill): Define using libm_alias_ldouble.
28397 * sysdeps/x86_64/fpu/s_copysignl.S: Include
28398 <libm-alias-ldouble.h>.
28399 (copysignl): Define using libm_alias_ldouble.
28400 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28401 (fabsl): Define using libm_alias_ldouble.
28402 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28403 (floorl): Define using libm_alias_ldouble.
28404 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28405 (fmaxl): Define using libm_alias_ldouble.
28406 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28407 (fminl): Define using libm_alias_ldouble.
28408 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28409 (llrintl): Define using libm_alias_ldouble.
28410 (lrintl): Likewise.
28411 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
28412 <libm-alias-ldouble.h>.
28413 (nearbyintl): Define using libm_alias_ldouble.
28414 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28415 (truncl): Define using libm_alias_ldouble.
28416 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
28417 <libm-alias-ldouble.h>.
28418 (lrintl): Define using libm_alias_ldouble.
28419
28420 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28421 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28422 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
28423 (asinhl): Define using libm_alias_ldouble.
28424 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
28425 (atanl): Define using libm_alias_ldouble.
28426 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
28427 (cbrtl): Define using libm_alias_ldouble.
28428 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28429 (ceill): Define using libm_alias_ldouble.
28430 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
28431 (copysignl): Define using libm_alias_ldouble.
28432 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28433 (fabsl): Define using libm_alias_ldouble.
28434 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28435 (floorl): Define using libm_alias_ldouble.
28436 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28437 (fmaxl): Define using libm_alias_ldouble.
28438 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28439 (fminl): Define using libm_alias_ldouble.
28440 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
28441 (frexpl): Define using libm_alias_ldouble.
28442 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28443 (llrintl): Define using libm_alias_ldouble.
28444 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
28445 (logbl): Define using libm_alias_ldouble.
28446 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
28447 (lrintl): Define using libm_alias_ldouble.
28448 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
28449 (nearbyintl): Define using libm_alias_ldouble.
28450 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
28451 (nextafterl): Define using libm_alias_ldouble.
28452 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
28453 (remquol): Define using libm_alias_ldouble.
28454 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
28455 (rintl): Define using libm_alias_ldouble.
28456 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28457 (truncl): Define using libm_alias_ldouble.
28458 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28459 (fmaxl): Define using libm_alias_ldouble.
28460 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28461 (fminl): Define using libm_alias_ldouble.
28462
28463 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
28464 to C syntax instead of availability and properties of types.
28465 * bits/floatn.h [!__ASSEMBLER]: Likewise.
28466 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
28467 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
28468 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
28469 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
28470 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
28471
28472 2017-11-17 Florian Weimer <fweimer@redhat.com>
28473
28474 support_become_root: Enable file creation in namespaces.
28475 * support/support_become_root.c (setup_mapping): New function.
28476 (support_become_root): Call it.
28477
28478 2017-11-17 Joseph Myers <joseph@codesourcery.com>
28479
28480 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
28481 macro.
28482
28483 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28484
28485 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
28486 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
28487
28488 2017-11-16 Joseph Myers <joseph@codesourcery.com>
28489
28490 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
28491
28492 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28493 version to 4.14.
28494
28495 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28496
28497 * INSTALL: Fix botched up regeneration.
28498
28499 * NEWS: Update sourceare link to https.
28500 * configure.ac: Likewise.
28501 * crypt/md5test-giant.c: Likewise.
28502 * dlfcn/bug-atexit1.c: Likewise.
28503 * dlfcn/bug-atexit2.c: Likewise.
28504 * localedata/README: Likewise.
28505 * malloc/tst-mallocfork.c: Likewise.
28506 * manual/install.texi: Likewise.
28507 * nptl/tst-pthread-getattr.c: Likewise.
28508 * stdio-common/tst-fgets.c: Likewise.
28509 * stdio-common/tst-fwrite.c: Likewise.
28510 * sunrpc/Makefile: Likewise.
28511 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
28512 * wcsmbs/tst-mbrtowc2.c: Likewise.
28513 * configure: Regenerate.
28514 * INSTALL: Regenerate.
28515
28516 2017-11-15 Martin Sebor <msebor@redhat.com>
28517
28518 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
28519 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
28520 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
28521
28522 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28523
28524 [BZ #22145]
28525 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
28526 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
28527
28528 [BZ #22145]
28529 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
28530 Defer is_pty check until end of the function.
28531 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28532
28533 [BZ #22145]
28534 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
28535 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
28536 (ttyname): Likewise.
28537 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28538 (__ttyname_r): Likewise.
28539
28540 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
28541 int to bool.
28542
28543 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
28544
28545 * manual/terminal.texi (Is It a Terminal):
28546 Mention ENODEV for ttyname and ttyname_r.
28547
28548 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28549
28550 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
28551 constant and macro.
28552
28553 * sysdeps/unix/sysv/linux/bits/mman-linux.h
28554 [__USE_MISC] (MADV_WIPEONFORK): New macro.
28555 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28556 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28557 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
28558 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28559
28560 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28561
28562 * signal/sigrelse.c (sigrelse): Optimize implementation.
28563
28564 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
28565 (__sigpause): Rely on __sigsuspend to implement single thread
28566 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
28567
28568 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28569
28570 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28571 kernel version to 4.14.
28572
28573 2017-11-15 Steve Ellcey <sellcey@cavium.com>
28574
28575 [BZ #22442]
28576 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
28577 Check if ifname is too long.
28578
28579 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28580
28581 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
28582
28583 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28584
28585 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
28586 was accidentally lost.
28587
28588 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28589
28590 * localedata/locales/az_IR: Add standard copyright header.
28591
28592 2017-11-15 Florian Weimer <fweimer@redhat.com>
28593
28594 [BZ #22439]
28595 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
28596 not just the top one. Output a new "subheaps" statistic.
28597
28598 2017-11-15 Florian Weimer <fweimer@redhat.com>
28599
28600 [BZ #22408]
28601 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
28602 under the per-arena lock.
28603 * malloc/Makefile (tests): Add tst-malloc_info.
28604 (tst-malloc_info): Link with libpthread.
28605 * malloc/tst-malloc_info.c: New file.
28606
28607 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28608
28609 [BZ #21660]
28610 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
28611 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
28612 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
28613 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
28614 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28615 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28616 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28617 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28618 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28619 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28620 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28621 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28622 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28623 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28624 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28625 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28626 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28627 (__floating_type): Likewise.
28628 (__real_integer_type): Likewise.
28629 (__complex_integer_type): Likewise.
28630 (__expr_is_real): Likewise.
28631 (__tgmath_real_type_sub): Likewise.
28632 (__tgmath_real_type): Likewise.
28633 (__tgmath_complex_type_sub): Likewise.
28634 (__tgmath_complex_type): Likewise.
28635 (__TGMATH_F128): Likewise.
28636 (__TGMATH_CF128): Likewise.
28637 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28638 new macros.
28639 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28640 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28641 Likewise.
28642 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28643 Likewise.
28644 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28645 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28646 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28647 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28648 Likewise.
28649 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28650 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28651 Likewise.
28652 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28653 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28654 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28655 Likewise.
28656 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28657 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28658 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28659 (cimag): Likewise.
28660 (creal): Likewise.
28661
28662 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28663
28664 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28665 for stpncpy calls for GCC 8.
28666 (test_strncat): Disable -Wstringop-truncation warning for strncat
28667 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28668 strncat call for GCC 7.
28669 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28670 calls for GCC 8.
28671 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28672 trailing NUL.
28673
28674 * string/bug-strncat1.c: Include <libc-diag.h>.
28675 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28676
28677 2017-11-13 Claude Paroz <claude@2xlibre.net>
28678
28679 [BZ #22387]
28680 * localedata/locales/aa_DJ: Improved readibility by replacing
28681 <Uxxxx> sequences in the ASCII printable range by their ASCII
28682 character equivalents.
28683 * localedata/locales/aa_ER: Likewise.
28684 * localedata/locales/aa_ER@saaho: Likewise.
28685 * localedata/locales/aa_ET: Likewise.
28686 * localedata/locales/af_ZA: Likewise.
28687 * localedata/locales/agr_PE: Likewise.
28688 * localedata/locales/ak_GH: Likewise.
28689 * localedata/locales/am_ET: Likewise.
28690 * localedata/locales/anp_IN: Likewise.
28691 * localedata/locales/ar_AE: Likewise.
28692 * localedata/locales/ar_BH: Likewise.
28693 * localedata/locales/ar_DZ: Likewise.
28694 * localedata/locales/ar_EG: Likewise.
28695 * localedata/locales/ar_IN: Likewise.
28696 * localedata/locales/ar_IQ: Likewise.
28697 * localedata/locales/ar_JO: Likewise.
28698 * localedata/locales/ar_KW: Likewise.
28699 * localedata/locales/ar_LB: Likewise.
28700 * localedata/locales/ar_LY: Likewise.
28701 * localedata/locales/ar_MA: Likewise.
28702 * localedata/locales/ar_OM: Likewise.
28703 * localedata/locales/ar_QA: Likewise.
28704 * localedata/locales/ar_SA: Likewise.
28705 * localedata/locales/ar_SD: Likewise.
28706 * localedata/locales/ar_SS: Likewise.
28707 * localedata/locales/ar_SY: Likewise.
28708 * localedata/locales/ar_TN: Likewise.
28709 * localedata/locales/ar_YE: Likewise.
28710 * localedata/locales/as_IN: Likewise.
28711 * localedata/locales/ast_ES: Likewise.
28712 * localedata/locales/ayc_PE: Likewise.
28713 * localedata/locales/az_AZ: Likewise.
28714 * localedata/locales/az_IR: Likewise.
28715 * localedata/locales/be_BY: Likewise.
28716 * localedata/locales/be_BY@latin: Likewise.
28717 * localedata/locales/bem_ZM: Likewise.
28718 * localedata/locales/ber_DZ: Likewise.
28719 * localedata/locales/ber_MA: Likewise.
28720 * localedata/locales/bg_BG: Likewise.
28721 * localedata/locales/bhb_IN: Likewise.
28722 * localedata/locales/bho_IN: Likewise.
28723 * localedata/locales/bi_VU: Likewise.
28724 * localedata/locales/bn_BD: Likewise.
28725 * localedata/locales/bn_IN: Likewise.
28726 * localedata/locales/bo_CN: Likewise.
28727 * localedata/locales/bo_IN: Likewise.
28728 * localedata/locales/br_FR: Likewise.
28729 * localedata/locales/brx_IN: Likewise.
28730 * localedata/locales/bs_BA: Likewise.
28731 * localedata/locales/byn_ER: Likewise.
28732 * localedata/locales/ca_AD: Likewise.
28733 * localedata/locales/ca_ES: Likewise.
28734 * localedata/locales/ca_FR: Likewise.
28735 * localedata/locales/ca_IT: Likewise.
28736 * localedata/locales/ce_RU: Likewise.
28737 * localedata/locales/chr_US: Likewise.
28738 * localedata/locales/cmn_TW: Likewise.
28739 * localedata/locales/crh_UA: Likewise.
28740 * localedata/locales/cs_CZ: Likewise.
28741 * localedata/locales/csb_PL: Likewise.
28742 * localedata/locales/cv_RU: Likewise.
28743 * localedata/locales/cy_GB: Likewise.
28744 * localedata/locales/da_DK: Likewise.
28745 * localedata/locales/de_AT: Likewise.
28746 * localedata/locales/de_BE: Likewise.
28747 * localedata/locales/de_CH: Likewise.
28748 * localedata/locales/de_DE: Likewise.
28749 * localedata/locales/de_IT: Likewise.
28750 * localedata/locales/de_LI: Likewise.
28751 * localedata/locales/de_LU: Likewise.
28752 * localedata/locales/doi_IN: Likewise.
28753 * localedata/locales/dv_MV: Likewise.
28754 * localedata/locales/dz_BT: Likewise.
28755 * localedata/locales/el_CY: Likewise.
28756 * localedata/locales/el_GR: Likewise.
28757 * localedata/locales/en_AG: Likewise.
28758 * localedata/locales/en_AU: Likewise.
28759 * localedata/locales/en_BW: Likewise.
28760 * localedata/locales/en_CA: Likewise.
28761 * localedata/locales/en_DK: Likewise.
28762 * localedata/locales/en_GB: Likewise.
28763 * localedata/locales/en_HK: Likewise.
28764 * localedata/locales/en_IE: Likewise.
28765 * localedata/locales/en_IL: Likewise.
28766 * localedata/locales/en_IN: Likewise.
28767 * localedata/locales/en_NG: Likewise.
28768 * localedata/locales/en_NZ: Likewise.
28769 * localedata/locales/en_PH: Likewise.
28770 * localedata/locales/en_SG: Likewise.
28771 * localedata/locales/en_US: Likewise.
28772 * localedata/locales/en_ZA: Likewise.
28773 * localedata/locales/en_ZM: Likewise.
28774 * localedata/locales/en_ZW: Likewise.
28775 * localedata/locales/eo: Likewise.
28776 * localedata/locales/es_AR: Likewise.
28777 * localedata/locales/es_BO: Likewise.
28778 * localedata/locales/es_CL: Likewise.
28779 * localedata/locales/es_CO: Likewise.
28780 * localedata/locales/es_CR: Likewise.
28781 * localedata/locales/es_CU: Likewise.
28782 * localedata/locales/es_DO: Likewise.
28783 * localedata/locales/es_EC: Likewise.
28784 * localedata/locales/es_ES: Likewise.
28785 * localedata/locales/es_GT: Likewise.
28786 * localedata/locales/es_HN: Likewise.
28787 * localedata/locales/es_MX: Likewise.
28788 * localedata/locales/es_NI: Likewise.
28789 * localedata/locales/es_PA: Likewise.
28790 * localedata/locales/es_PE: Likewise.
28791 * localedata/locales/es_PR: Likewise.
28792 * localedata/locales/es_PY: Likewise.
28793 * localedata/locales/es_SV: Likewise.
28794 * localedata/locales/es_US: Likewise.
28795 * localedata/locales/es_UY: Likewise.
28796 * localedata/locales/es_VE: Likewise.
28797 * localedata/locales/et_EE: Likewise.
28798 * localedata/locales/eu_ES: Likewise.
28799 * localedata/locales/eu_ES@euro: Likewise.
28800 * localedata/locales/fa_IR: Likewise.
28801 * localedata/locales/ff_SN: Likewise.
28802 * localedata/locales/fi_FI: Likewise.
28803 * localedata/locales/fil_PH: Likewise.
28804 * localedata/locales/fo_FO: Likewise.
28805 * localedata/locales/fr_BE: Likewise.
28806 * localedata/locales/fr_CA: Likewise.
28807 * localedata/locales/fr_CH: Likewise.
28808 * localedata/locales/fr_FR: Likewise.
28809 * localedata/locales/fr_LU: Likewise.
28810 * localedata/locales/fur_IT: Likewise.
28811 * localedata/locales/fy_DE: Likewise.
28812 * localedata/locales/fy_NL: Likewise.
28813 * localedata/locales/ga_IE: Likewise.
28814 * localedata/locales/gd_GB: Likewise.
28815 * localedata/locales/gez_ER: Likewise.
28816 * localedata/locales/gez_ET: Likewise.
28817 * localedata/locales/gl_ES: Likewise.
28818 * localedata/locales/gu_IN: Likewise.
28819 * localedata/locales/gv_GB: Likewise.
28820 * localedata/locales/ha_NG: Likewise.
28821 * localedata/locales/hak_TW: Likewise.
28822 * localedata/locales/he_IL: Likewise.
28823 * localedata/locales/hi_IN: Likewise.
28824 * localedata/locales/hif_FJ: Likewise.
28825 * localedata/locales/hne_IN: Likewise.
28826 * localedata/locales/hr_HR: Likewise.
28827 * localedata/locales/hsb_DE: Likewise.
28828 * localedata/locales/ht_HT: Likewise.
28829 * localedata/locales/hu_HU: Likewise.
28830 * localedata/locales/hy_AM: Likewise.
28831 * localedata/locales/i18n: Likewise.
28832 * localedata/locales/ia_FR: Likewise.
28833 * localedata/locales/id_ID: Likewise.
28834 * localedata/locales/ig_NG: Likewise.
28835 * localedata/locales/ik_CA: Likewise.
28836 * localedata/locales/is_IS: Likewise.
28837 * localedata/locales/it_CH: Likewise.
28838 * localedata/locales/it_IT: Likewise.
28839 * localedata/locales/iu_CA: Likewise.
28840 * localedata/locales/ja_JP: Likewise.
28841 * localedata/locales/ka_GE: Likewise.
28842 * localedata/locales/kk_KZ: Likewise.
28843 * localedata/locales/kl_GL: Likewise.
28844 * localedata/locales/kn_IN: Likewise.
28845 * localedata/locales/ko_KR: Likewise.
28846 * localedata/locales/kok_IN: Likewise.
28847 * localedata/locales/ks_IN: Likewise.
28848 * localedata/locales/ks_IN@devanagari: Likewise.
28849 * localedata/locales/ku_TR: Likewise.
28850 * localedata/locales/kw_GB: Likewise.
28851 * localedata/locales/ky_KG: Likewise.
28852 * localedata/locales/lb_LU: Likewise.
28853 * localedata/locales/lg_UG: Likewise.
28854 * localedata/locales/li_BE: Likewise.
28855 * localedata/locales/li_NL: Likewise.
28856 * localedata/locales/lij_IT: Likewise.
28857 * localedata/locales/ln_CD: Likewise.
28858 * localedata/locales/lo_LA: Likewise.
28859 * localedata/locales/lt_LT: Likewise.
28860 * localedata/locales/lv_LV: Likewise.
28861 * localedata/locales/lzh_TW: Likewise.
28862 * localedata/locales/mag_IN: Likewise.
28863 * localedata/locales/mai_IN: Likewise.
28864 * localedata/locales/mg_MG: Likewise.
28865 * localedata/locales/mhr_RU: Likewise.
28866 * localedata/locales/mi_NZ: Likewise.
28867 * localedata/locales/mk_MK: Likewise.
28868 * localedata/locales/ml_IN: Likewise.
28869 * localedata/locales/mn_MN: Likewise.
28870 * localedata/locales/mni_IN: Likewise.
28871 * localedata/locales/mr_IN: Likewise.
28872 * localedata/locales/ms_MY: Likewise.
28873 * localedata/locales/mt_MT: Likewise.
28874 * localedata/locales/my_MM: Likewise.
28875 * localedata/locales/nan_TW: Likewise.
28876 * localedata/locales/nan_TW@latin: Likewise.
28877 * localedata/locales/nb_NO: Likewise.
28878 * localedata/locales/nds_DE: Likewise.
28879 * localedata/locales/nds_NL: Likewise.
28880 * localedata/locales/ne_NP: Likewise.
28881 * localedata/locales/nhn_MX: Likewise.
28882 * localedata/locales/niu_NU: Likewise.
28883 * localedata/locales/niu_NZ: Likewise.
28884 * localedata/locales/nl_AW: Likewise.
28885 * localedata/locales/nl_BE: Likewise.
28886 * localedata/locales/nl_NL: Likewise.
28887 * localedata/locales/nn_NO: Likewise.
28888 * localedata/locales/nr_ZA: Likewise.
28889 * localedata/locales/nso_ZA: Likewise.
28890 * localedata/locales/oc_FR: Likewise.
28891 * localedata/locales/om_ET: Likewise.
28892 * localedata/locales/om_KE: Likewise.
28893 * localedata/locales/or_IN: Likewise.
28894 * localedata/locales/os_RU: Likewise.
28895 * localedata/locales/pa_IN: Likewise.
28896 * localedata/locales/pa_PK: Likewise.
28897 * localedata/locales/pap_AW: Likewise.
28898 * localedata/locales/pap_CW: Likewise.
28899 * localedata/locales/pl_PL: Likewise.
28900 * localedata/locales/ps_AF: Likewise.
28901 * localedata/locales/pt_BR: Likewise.
28902 * localedata/locales/pt_PT: Likewise.
28903 * localedata/locales/quz_PE: Likewise.
28904 * localedata/locales/raj_IN: Likewise.
28905 * localedata/locales/ro_RO: Likewise.
28906 * localedata/locales/ru_RU: Likewise.
28907 * localedata/locales/ru_UA: Likewise.
28908 * localedata/locales/rw_RW: Likewise.
28909 * localedata/locales/sa_IN: Likewise.
28910 * localedata/locales/sat_IN: Likewise.
28911 * localedata/locales/sc_IT: Likewise.
28912 * localedata/locales/sd_IN: Likewise.
28913 * localedata/locales/sd_IN@devanagari: Likewise.
28914 * localedata/locales/se_NO: Likewise.
28915 * localedata/locales/sgs_LT: Likewise.
28916 * localedata/locales/shs_CA: Likewise.
28917 * localedata/locales/si_LK: Likewise.
28918 * localedata/locales/sid_ET: Likewise.
28919 * localedata/locales/sk_SK: Likewise.
28920 * localedata/locales/sl_SI: Likewise.
28921 * localedata/locales/sm_WS: Likewise.
28922 * localedata/locales/so_DJ: Likewise.
28923 * localedata/locales/so_ET: Likewise.
28924 * localedata/locales/so_KE: Likewise.
28925 * localedata/locales/so_SO: Likewise.
28926 * localedata/locales/sq_AL: Likewise.
28927 * localedata/locales/sq_MK: Likewise.
28928 * localedata/locales/sr_ME: Likewise.
28929 * localedata/locales/sr_RS: Likewise.
28930 * localedata/locales/sr_RS@latin: Likewise.
28931 * localedata/locales/ss_ZA: Likewise.
28932 * localedata/locales/st_ZA: Likewise.
28933 * localedata/locales/sv_FI: Likewise.
28934 * localedata/locales/sv_SE: Likewise.
28935 * localedata/locales/sw_KE: Likewise.
28936 * localedata/locales/sw_TZ: Likewise.
28937 * localedata/locales/szl_PL: Likewise.
28938 * localedata/locales/ta_IN: Likewise.
28939 * localedata/locales/ta_LK: Likewise.
28940 * localedata/locales/tcy_IN: Likewise.
28941 * localedata/locales/te_IN: Likewise.
28942 * localedata/locales/tg_TJ: Likewise.
28943 * localedata/locales/th_TH: Likewise.
28944 * localedata/locales/the_NP: Likewise.
28945 * localedata/locales/ti_ER: Likewise.
28946 * localedata/locales/ti_ET: Likewise.
28947 * localedata/locales/tig_ER: Likewise.
28948 * localedata/locales/tk_TM: Likewise.
28949 * localedata/locales/tl_PH: Likewise.
28950 * localedata/locales/tn_ZA: Likewise.
28951 * localedata/locales/to_TO: Likewise.
28952 * localedata/locales/tpi_PG: Likewise.
28953 * localedata/locales/tr_CY: Likewise.
28954 * localedata/locales/tr_TR: Likewise.
28955 * localedata/locales/ts_ZA: Likewise.
28956 * localedata/locales/tt_RU: Likewise.
28957 * localedata/locales/tt_RU@iqtelif: Likewise.
28958 * localedata/locales/ug_CN: Likewise.
28959 * localedata/locales/uk_UA: Likewise.
28960 * localedata/locales/unm_US: Likewise.
28961 * localedata/locales/ur_IN: Likewise.
28962 * localedata/locales/ur_PK: Likewise.
28963 * localedata/locales/uz_UZ: Likewise.
28964 * localedata/locales/uz_UZ@cyrillic: Likewise.
28965 * localedata/locales/ve_ZA: Likewise.
28966 * localedata/locales/vi_VN: Likewise.
28967 * localedata/locales/wa_BE: Likewise.
28968 * localedata/locales/wae_CH: Likewise.
28969 * localedata/locales/wal_ET: Likewise.
28970 * localedata/locales/wo_SN: Likewise.
28971 * localedata/locales/xh_ZA: Likewise.
28972 * localedata/locales/yi_US: Likewise.
28973 * localedata/locales/yo_NG: Likewise.
28974 * localedata/locales/yue_HK: Likewise.
28975 * localedata/locales/yuw_PG: Likewise.
28976 * localedata/locales/zh_CN: Likewise.
28977 * localedata/locales/zh_HK: Likewise.
28978 * localedata/locales/zh_SG: Likewise.
28979 * localedata/locales/zh_TW: Likewise.
28980 * localedata/locales/zu_ZA: Likewise.
28981
28982 2017-11-13 Florian Weimer <fweimer@redhat.com>
28983
28984 * support/next_to_fault.h, support/next_to_fault.c: New files.
28985 * support/Makefile (libsupport-routines): Add next_to_fault.
28986 * resolv/tst-inet_pton.c (struct next_to_fault)
28987 (next_to_fault_allocate, next_to_fault_free): Remove.
28988 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28989
28990 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28991
28992 * elf/dl-support.c: Include <dl-procruntime.c>.
28993 * include/link.h: Include <link_map.h>.
28994 * sysdeps/generic/dl-procruntime.c: New file.
28995 * sysdeps/generic/link_map.h: Likewise.
28996 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28997 the writable ld.so namespace.
28998
28999 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
29000
29001 timezone: pacify GCC -Wstringop-truncation
29002 Problem reported by Martin Sebor in:
29003 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
29004 * timezone/zic.c (writezone): Use memcpy, not strncpy.
29005
29006 2017-11-12 Florian Weimer <fweimer@redhat.com>
29007
29008 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
29009 tst-xreadlink.
29010 (tests): Add tst-xreadlink.
29011 * support/support.h (xstrndup): Declare.
29012 * support/xunistd.h (xunlink, xreadlink): Declare.
29013 * support/temp_file.h (support_create_temp_directory): Declare.
29014 * support/temp_file.c (support_create_temp_directory): New function.
29015 * support/support_chroot.c (support_chroot_create): Use it.
29016 * support/xreadlink.c: New file.
29017 * support/xstrndup.c: Likewise.
29018 * support/xunlink.c: Likewise.
29019 * support/tst-xreadlink.c: Likewise.
29020
29021 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
29022
29023 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
29024
29025 2017-11-11 Florian Weimer <fweimer@redhat.com>
29026
29027 [BZ #22409]
29028 [BZ #22412]
29029 * resolv/res_comp.c (printable_string, binary_hnok)
29030 (binary_leading_dash): New functions.
29031 (res_hnok): Reimplement using these functions and ns_name_pton.
29032 (res_ownok): Likewise.
29033 (res_mailok): Reimplement using printable_string, ns_name_pton and
29034 binary_hnok.
29035 (res_dnok): Reimplement using printable_string and ns_name_pton.
29036 * resolv/tst-res_hnok.c (tests): Add additional tests.
29037 (LETTERDIGITS, PRINTABLE): Define.
29038 (do_test): Adjust one_char results.
29039
29040 2017-11-11 Florian Weimer <fweimer@redhat.com>
29041
29042 [BZ #22413]
29043 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
29044 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
29045
29046 2017-11-11 Florian Weimer <fweimer@redhat.com>
29047
29048 * resolv/tst-ns_name_pton.c: New file.
29049 * resolv/Makefile (tests): Add tst-ns_name_pton.
29050 (tst-ns_name_pton): Link against libresolv.
29051
29052 2017-11-11 Florian Weimer <fweimer@redhat.com>
29053
29054 * resolv/tst-res_hnok.c: New file.
29055 * resolv/Makefile (tests): Add tst-res_hnok.
29056 (tst-res_hnok): Link against libresolv.
29057
29058 2017-11-11 Florian Weimer <fweimer@redhat.com>
29059
29060 * resolv/tst-resolv-network.c: Use test framework instead explicit
29061 main function.
29062
29063 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
29064
29065 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
29066 <jmp_buf-macros.h>.
29067 [!_ISOMAC] (STR_HELPER): New.
29068 [!_ISOMAC] (STR): Likewise.
29069 [!_ISOMAC] (TEST_SIZE): Likewise.
29070 [!_ISOMAC] (TEST_ALIGN): Likewise.
29071 [!_ISOMAC] (TEST_OFFSET): Likewise.
29072 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
29073 field offsets of jmp_buf as well as sigjmp_buf.
29074 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
29075 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
29076 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
29077 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
29078 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
29079 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
29080 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
29081 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
29082 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
29083 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
29084 Likewise.
29085 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
29086 Likewise.
29087 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
29088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
29089 Likewise.
29090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
29091 Likewise.
29092 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
29093 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
29094 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
29095 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
29096 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
29097 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
29098 Likewise.
29099 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
29100 Likewise.
29101 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
29102 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
29103 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
29104
29105 2017-11-07 Joseph Myers <joseph@codesourcery.com>
29106
29107 * include/float.h
29108 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29109 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
29110 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29111 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
29112 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29113 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
29114 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29115 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
29116 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29117 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
29118 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29119 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
29120 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29121 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
29122 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29123 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
29124 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29125 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
29126 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29127 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
29128 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29129 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
29130 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29131 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
29132 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29133 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
29134 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29135 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
29136 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29137 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
29138 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29139 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
29140 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29141 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
29142 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29143 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
29144 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29145 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
29146 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29147 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
29148 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29149 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
29150 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29151 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
29152 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29153 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
29154 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29155 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
29156 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29157 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
29158 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29159 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
29160 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29161 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
29162 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29163 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
29164 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29165 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
29166 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29167 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
29168 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29169 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
29170 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29171 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
29172 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29173 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
29174 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29175 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
29176 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29177 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
29178 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29179 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
29180 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29181 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
29182 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29183 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
29184 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29185 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
29186 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29187 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
29188 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29189 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
29190 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29191 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
29192 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29193 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
29194 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
29195 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
29196
29197 * stdlib/tst-strtod.h (F16): New macro.
29198 (F32): Likewise.
29199 (F64): Likewise.
29200 (F32X): Likewise.
29201 (F64X): Likewise.
29202 (F128X): Likewise.
29203 (IF_FLOAT16): Likewise.
29204 (IF_FLOAT32): Likewise.
29205 (IF_FLOAT64): Likewise.
29206 (IF_FLOAT32X): Likewise.
29207 (IF_FLOAT64X): Likewise.
29208 (IF_FLOAT128X): Likewise.
29209 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
29210 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
29211 (STRTOD_TEST_FOREACH): Likewise.
29212 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
29213 (CHOOSE_f64): Likewise.
29214 (CHOOSE_f32x): Likewise.
29215 (CHOOSE_f64x): Likewise.
29216
29217 2017-11-07 Andreas Schwab <schwab@suse.de>
29218
29219 * nptl/Makefile (tests-internal): Remove tst-typesizes.
29220
29221 2017-11-07 Mike FABIAN <mfabian@redhat.com>
29222
29223 [BZ #22403]
29224 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
29225 to be escaped.
29226 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
29227 to be escaped.
29228
29229 2017-11-07 Claude Paroz <claude@2xlibre.net>
29230
29231 [BZ #22403]
29232 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
29233 to be escaped.
29234 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
29235 to be escaped.
29236 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
29237 to be escaped.
29238
29239 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29240
29241 [BZ #22298]
29242 * nptl/allocatestack.c (allocate_stack): Check if
29243 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
29244 __PTHREAD_MUTEX_HAVE_PREV is defined.
29245 * nptl/descr.h (pthread): Likewise.
29246 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
29247 Likewise.
29248 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
29249 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
29250 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
29251 * sysdeps/nptl/bits/thread-shared-types.h
29252 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
29253 defines.
29254 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
29255 of __WORDSIZE for internal layout.
29256 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
29257 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
29258 instead of __WORDSIZE whether to use an union for __spins and __list
29259 fields.
29260 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
29261 case.
29262 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
29263 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
29264 defines.
29265 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
29266 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29267 Likewise.
29268 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
29269 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29270 Likewise.
29271 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
29272 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29273 Likewise.
29274 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
29275 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29276 Likewise.
29277 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
29278 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29279 Likewise.
29280 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
29281 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29282 Likewise.
29283 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
29284 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29285 Likewise.
29286 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
29287 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29288 Likewise.
29289 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
29290 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29291 Likewise.
29292 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
29293 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29294 Likewise.
29295 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
29296 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29297 Likewise.
29298 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
29299 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29300 Likewise.
29301 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
29302 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29303 Likewise.
29304 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
29305 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29306 Likewise.
29307
29308 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
29309 New macros.
29310 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
29311 checks for expected input type size.
29312 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
29313 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
29314 Likewise.
29315 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
29316 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
29317 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
29318 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
29319 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
29320 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
29321 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
29322 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
29323 superflous runtime assert check.
29324 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
29325 Likewise.
29326 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
29327 Likewise.
29328 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
29329 Likewise.
29330 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
29331 Likewise.
29332 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
29333 Likewise.
29334 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
29335 Likewise.
29336 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
29337 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
29338 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
29339 Likewise.
29340 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
29341 Likewise.
29342 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
29343 Likewise.
29344 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
29345 Likewise.
29346 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
29347 Likewise.
29348 * nptl/pthread_attr_setinheritsched.c
29349 (__pthread_attr_setinheritsched): Likewise.
29350 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
29351 Likewise.
29352 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
29353 Likewise.
29354 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
29355 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
29356 __old_pthread_attr_setstack): Likewise.
29357 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
29358 Likewise.
29359 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
29360 Likewise.
29361 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
29362 Likewise.
29363 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
29364 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
29365 Likewise.
29366 * nptl/tst-typesizes.c: Remove file.
29367
29368 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
29369 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
29370 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
29371 checks for internal pthread_mutex_t offsets.
29372 * sysdeps/aarch64/nptl/pthread-offsets.h
29373 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
29374 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
29375 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
29376 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
29377 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
29378 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
29379 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
29380 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
29381 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
29382 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
29383 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
29384 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
29385 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
29386 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
29387 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
29388 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
29389 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
29390 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
29391
29392 2017-11-07 Florian Weimer <fweimer@redhat.com>
29393
29394 * bits/mman-linux.h: Move ...
29395 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
29396 comment.
29397 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
29398 outdated comment.
29399
29400 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29401
29402 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
29403 Redefine STRNLEN as __strnlen_power8.
29404
29405 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29406
29407 * signal/sighold.c (sighold): Optimize implementation.
29408
29409 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
29410 __NR_rt_sigqueueinfo.
29411
29412 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
29413 __sigtimedwait.
29414 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
29415 assume __NR_rt_sigtimedwait.
29416 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
29417 and add LIBC_CANCEL_HANDLED for cancellation marking.
29418 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
29419
29420 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29421 (sysdeps_routines): Add memchr_noneon.
29422 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
29423 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
29424 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
29425 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
29426 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
29427 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
29428 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
29429
29430 * sysdeps/arm/arm-ifunc.h: New file.
29431 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
29432 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
29433 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
29434 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
29435 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
29436 (__memcpy_neon): Avoid create hidden alias.
29437 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
29438 (__memcpy_vfp): Likewise.
29439 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29440 (sysdep_routines): Add memcpy_arm.
29441 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
29442
29443 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
29444
29445 [BZ #22362]
29446 * Makerules (make-link-multidir): New.
29447 * config.make.in (multidir): New.
29448 * configure.ac (libc_cv_multidir): New. AC_SUBST.
29449 * configure: Regenerated.
29450 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
29451 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
29452 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
29453 New target.
29454
29455 2017-11-06 Joseph Myers <joseph@codesourcery.com>
29456
29457 [BZ #22402]
29458 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
29459 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
29460
29461 2017-11-04 Mike FABIAN <mfabian@redhat.com>
29462
29463 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
29464 to be escaped.
29465
29466 2017-11-04 Florian Weimer <fweimer@redhat.com>
29467
29468 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
29469
29470 2017-11-03 Joseph Myers <joseph@codesourcery.com>
29471
29472 * math/math.h [__HAVE_DISTINCT_FLOAT16
29473 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29474 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29475 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29476 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
29477 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
29478 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
29479 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29480 (__MATH_TG_F32): New macro.
29481 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29482 (__MATH_TG_F64X): Likewise.
29483 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29484 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
29485
29486 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
29487
29488 * po/de.po: Update translations.
29489 * po/ru.po: Likewise.
29490
29491 2017-11-03 Florian Weimer <fweimer@redhat.com>
29492
29493 * manual/filesys.texi (Hard Links): Document linkat.
29494
29495 2017-11-03 Joseph Myers <joseph@codesourcery.com>
29496
29497 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
29498 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29499 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29500 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29501 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29502 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29503 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
29504 the same as _Float128.
29505 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29506 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29507 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
29508
29509 * stdlib/stdlib.h
29510 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
29511 Declare.
29512 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
29513 Likewise.
29514 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
29515 Likewise.
29516 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29517 (strtof32x): Likewise.
29518 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29519 (strtof64x): Likewise.
29520 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29521 (strtof128x): Likewise.
29522 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29523 (strfromf16): Likewise.
29524 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29525 (strfromf32): Likewise.
29526 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29527 (strfromf64): Likewise.
29528 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29529 (strfromf32x): Likewise.
29530 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29531 (strfromf64x): Likewise.
29532 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29533 (strfromf128x): Likewise.
29534 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
29535 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
29536 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
29537 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
29538 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
29539 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
29540
29541 2017-11-03 Richard Henderson <rth@twiddle.net>
29542
29543 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
29544
29545 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29546
29547 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
29548
29549 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29550
29551 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
29552 DT_TLSDESC_GOT initialization.
29553 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
29554 (_dl_tlsdesc_resolve_hold): Likewise.
29555 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
29556 (_dl_tlsdesc_resolve_hold): Likewise.
29557 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
29558 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29559
29560 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29561
29562 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
29563
29564 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29565
29566 [BZ #18572]
29567 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
29568 non-lazily for R_ARM_TLS_DESC.
29569
29570 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29571
29572 [BZ #17078]
29573 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
29574 R_ARM_TLS_DESC case.
29575 (elf_machine_lazy_rel): Remove the prelink check.
29576
29577 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29578
29579 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
29580 DT_TLSDESC_GOT initialization.
29581 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
29582 (_dl_tlsdesc_resolve_rela): Likewise.
29583 (_dl_tlsdesc_resolve_hold): Likewise.
29584 (_dl_tlsdesc_undefweak): Remove ldar.
29585 (_dl_tlsdesc_dynamic): Likewise.
29586 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
29587 (_dl_tlsdesc_resolve_rela): Likewise.
29588 (_dl_tlsdesc_resolve_hold): Likewise.
29589 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
29590 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29591 (_dl_tlsdesc_resolve_rela): Likewise.
29592 (_dl_tlsdesc_resolve_hold): Likewise.
29593
29594 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29595
29596 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
29597 binding and initialization non-lazily for R_AARCH64_TLSDESC.
29598
29599 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29600
29601 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
29602 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29603
29604 2017-11-02 Joseph Myers <joseph@codesourcery.com>
29605
29606 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
29607 Declare.
29608 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
29609 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
29610 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
29611 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
29612 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
29613 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
29614 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29615 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29616 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29617 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29618 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29619
29620 2017-11-02 Mike FABIAN <mfabian@redhat.com>
29621
29622 [BZ #22382]
29623 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29624 * localedata/locales/tpi_PG: Add standard header.
29625
29626 2017-11-02 Florian Weimer <fweimer@redhat.com>
29627
29628 test-errno-linux: quotactl can fail with EPERM in containers.
29629 * sysdeps/unix/sysv/linux/test-errno-linux.c
29630 (LIST, LIST_FORWARD): New macros.
29631 (check_error_in_list): New function.
29632 (test_wrp_rv): Accept list of permitted error codes.
29633 (test_wrp_rv2): Remove.
29634 (test_wrp): Call test_wrp_rv with list of error codes.
29635 (test_wrp2): Accept list of error codes.
29636 (do_test): Adjust. Allow EPERM for quotactl.
29637
29638 2017-11-02 Florian Weimer <fweimer@redhat.com>
29639
29640 * stdio-common/bug16.c (do_test): Use array_length.
29641 * stdio-common/errlist.c (_sys_nerr): Likewise.
29642 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29643 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29644 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29645 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29646 (do_test): Use array_length.
29647 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29648 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29649 * stdio-common/tst-printf-round.c (do_test): Likewise.
29650 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29651 (CHECK): Use array_length.
29652 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29653 * stdio-common/tstscanf.c (main): Likewise.
29654 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29655
29656 2017-11-02 Florian Weimer <fweimer@redhat.com>
29657
29658 Add array_length and array_end macros.
29659 * include/array_length.h: New file.
29660
29661 2017-11-02 Florian Weimer <fweimer@redhat.com>
29662
29663 [BZ #22332]
29664 * posix/tst-glob-tilde.c (do_noescape): New variable.
29665 (one_test): Process it.
29666 (do_test): Set do_noescape. Add unescaping test case.
29667
29668 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29669
29670 * math/complex.h
29671 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29672 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29673 with appropriate macros defined and undefined.
29674 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29675 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29676 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29677 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29678 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29679 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29680 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29681 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29682 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29683 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29684
29685 * math/complex.h
29686 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29687 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29688 that for long double. Do not condition define and undefine of
29689 _Mdouble_complex_ on [__CFLOAT128].
29690
29691 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29692
29693 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29694 of <sysdeps/generic/sysdep.h>.
29695 (ALIGNARG): Removed.
29696 (ASM_SIZE_DIRECTIVE): Likewise.
29697 (ENTRY): Likewise.
29698 (END): Likewise.
29699 (ENTRY_CHK): Likewise.
29700 (END_CHK): Likewise.
29701 (syscall_error): Likewise.
29702 (mcount): Likewise.
29703 (PSEUDO_END): Likewise.
29704 (L): Likewise.
29705 (atom_text_section): Likewise.
29706 * sysdeps/x86/sysdep.h: New file.
29707 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29708 of <sysdeps/generic/sysdep.h>.
29709 (ALIGNARG): Removed.
29710 (ASM_SIZE_DIRECTIVE): Likewise.
29711 (ENTRY): Likewise.
29712 (END): Likewise.
29713 (ENTRY_CHK): Likewise.
29714 (END_CHK): Likewise.
29715 (syscall_error): Likewise.
29716 (mcount): Likewise.
29717 (PSEUDO_END): Likewise.
29718 (L): Likewise.
29719 (atom_text_section): Likewise.
29720
29721 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
29722
29723 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29724 category of LC_CTYPE set to "i18n:2012".
29725 * localedata/locales/i18n_ctype: Regenerate.
29726
29727 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29728
29729 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29730 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29731 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29732 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29733
29734 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29735 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29736 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29737 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29738
29739 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29740
29741 * math/complex.h
29742 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29743 New macro.
29744 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29745 Likewise.
29746 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29747 Likewise.
29748 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29749 (CMPLXF32X): Likewise.
29750 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29751 (CMPLXF64X): Likewise.
29752 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29753 (CMPLXF128X): Likewise.
29754
29755 * math/math.h
29756 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29757 (__MATH_EVAL_FMT2): Define to add 0.0f.
29758
29759 2017-10-31 Alan Modra <amodra@gmail.com>
29760
29761 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29762 include sysdep.h.
29763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29765 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29767 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29769 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29772 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29773 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29776 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29777 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29778 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29779 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29780 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29781 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29782 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29783 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29784 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29785 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29786 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29787 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29788 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29789 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29790 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29791 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29792 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29793 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29794 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29795 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29796 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29797 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29798 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29799 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29800 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29801 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29802 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29803 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29804 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29805 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29806 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29807 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29808 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29809 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29810 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29811 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29812 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29813 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29814 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29815 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29816 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29817 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29818 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29819 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29820 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29821 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29822 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29823 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29824 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29825 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29826 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29827 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29828 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29829 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29830 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29831 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29832
29833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29834 include sysdep.h and math_ldbl_opt.h.
29835
29836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29837 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29839 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29841 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29844 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29845 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29847 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29850 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29851 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29857 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29862
29863 2017-10-31 Alan Modra <amodra@gmail.com>
29864
29865 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29866 string/strncase_l.c, not string/strncase.c.
29867 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29868 (libc_hidden_def): Redefine.
29869
29870 2017-10-31 Alan Modra <amodra@gmail.com>
29871
29872 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29873 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29874 (__strcasecmp): Don't define.
29875
29876 2017-10-31 Alan Modra <amodra@gmail.com>
29877
29878 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29879 IS_IN (libc).
29880 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29881 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29882 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29883
29884 2017-10-31 Alan Modra <amodra@gmail.com>
29885
29886 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29887 USE_AS_STPNCPY.
29888
29889 2017-10-31 Alan Modra <amodra@gmail.com>
29890
29891 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29892 Redefine only when SHARED.
29893
29894 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29895
29896 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29897 Include <bits/math-finite.h> with appropriate macros defined and
29898 undefined.
29899 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29900 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29901 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29902 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29903 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29904
29905 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29906 [!_Mlong_double_] (_Mlong_double_): Likewise.
29907 [!_Mfloat16_] (_Mfloat16_): Likewise.
29908 [!_Mfloat32_] (_Mfloat32_): Likewise.
29909 [!_Mfloat64_] (_Mfloat64_): Likewise.
29910 [!_Mfloat128_] (_Mfloat128_): Likewise.
29911 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29912 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29913 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29914 (_Mdouble_): Define without indirection through those macros.
29915 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29916 [!_Mfloat128_] (_Mfloat128_): Likewise.
29917 [_Mlong_double_] (_Mlong_double_): Likewise.
29918 (_Mdouble_): Define without indirection through those macros.
29919 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29920 not add -D_Mlong_double_=double.
29921 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29922 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29923
29924 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29925
29926 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29927
29928 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29929
29930 * sysdeps/x86/libc-start.c: Reformat.
29931
29932 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29933
29934 [BZ #22353]
29935 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29936 (1): Renamed to ...
29937 (L(Src0)): This.
29938 (L(Src1)): New.
29939 (L(Src2)): Likewise.
29940 (L(1)): Renamed to ...
29941 (L(Src3)): This.
29942
29943 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29944
29945 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29946 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29947 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29948 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29949 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29950 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29951 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29952 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29953 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29954 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29955 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29956 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29957 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29958 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29959 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29960 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29961 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29962 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29963 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29964 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29965 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29966 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29967 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29968 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29969 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29970 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29971 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29972 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29973 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29974 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29975 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29976 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29977 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29978 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29979 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29980 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29981 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29982 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29983 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29984 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29985 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29986 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29987 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29988 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29989 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29990 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29991 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29992 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29993 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29994 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29995 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29996 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29997 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29998 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29999 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
30000 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
30001 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
30002 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
30003 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
30004 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
30005 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
30006 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
30007 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
30008 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
30009 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
30010 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
30011
30012 2017-10-30 Florian Weimer <fweimer@redhat.com>
30013
30014 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
30015 always defined.
30016 * io/tst-mkdirat.c (do_test): Likewise.
30017 * io/tst-mkfifoat.c (do_test): Likewise.
30018 * io/tst-mknodat.c (do_test): Likewise.
30019 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
30020 * locale/programs/locale.c (select_dirs): Likewise.
30021 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
30022 * posix/bug-glob2.c (my_readdir): Likewise.
30023 * posix/tst-dir.c (main): Likewise.
30024 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
30025 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
30026
30027 2017-10-30 Florian Weimer <fweimer@redhat.com>
30028
30029 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
30030 just __USE_GNU.
30031
30032 2017-10-30 Florian Weimer <fweimer@redhat.com>
30033
30034 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
30035 Convert to support/test-driver.c.
30036 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
30037 New macro parameters.
30038 (PRINTF): Remove macro. Use test_verbose conditionals instead.
30039 * posix/tst-gnuglob.c: New file.
30040 * posix/tst-gnuglob64.c: Likewise.
30041 * posix/Makefile (tests): Add tst-gnuglob64.
30042
30043 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
30044
30045 [BZ #19485]
30046 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
30047 and use a better translation for March in “mon”.
30048 * localedata/locales/csb_PL: Use more ASCII to improve the
30049 readability of the source.
30050
30051 2017-10-30 Mike FABIAN <mfabian@redhat.com>
30052
30053 [BZ #13953]
30054 * localedata/locales/km_KH: Use ASCII as much
30055 as possible for better readability of the source and
30056 remove useless comments.
30057 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
30058 was commented out and apparently wrong anyway because it was
30059 using Lao characters. If Buddhist era should be used
30060 for km_KH, a native speaker should write the correct formaat
30061 for Khmer.
30062 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
30063 (According to CLDR, the first weekday for Cambodia is Sunday).
30064 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
30065 (These were using Lao characters which must be wrong. If we get
30066 the correct data from a native speaker, we could add it back, until
30067 then it is better not to have name_mr and name_mrs at all than
30068 having it wrong).
30069
30070 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
30071
30072 * locale/loadlocale.c: Correct size of
30073 _nl_value_type_LC_<category> arrays.
30074
30075 2017-10-27 Joseph Myers <joseph@codesourcery.com>
30076
30077 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
30078 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
30079 with appropriate macros defined and undefined.
30080 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
30081 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
30082 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
30083 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
30084 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
30085
30086 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
30087
30088 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
30089 "-O2 -march=i586".
30090
30091 2017-10-27 Mike FABIAN <mfabian@redhat.com>
30092
30093 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
30094 with lowercase letters to make it agree with CLDR.
30095
30096 2017-10-27 Mike FABIAN <mfabian@redhat.com>
30097
30098 [BZ #15260]
30099 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
30100 first letters of yesstr and nostr in yesexpr and noexpr,
30101 not for the full words.
30102 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
30103 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
30104 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
30105 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
30106 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
30107 first letters of yesstr and nostr in yesexpr and noexpr,
30108 until now only English was matched in yesexpr and noexpr.
30109 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
30110 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
30111 fil but not for tl. As tl and fil are very similar, using fil
30112 is probably better than using English.
30113
30114 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
30115
30116 [BZ #21706]
30117 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
30118 in yesstr and nostr.
30119
30120 2017-10-26 Joseph Myers <joseph@codesourcery.com>
30121
30122 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
30123 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
30124 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
30125 Likewise.
30126 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
30127 Likewise.
30128 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
30129 Likewise.
30130 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
30131 Likewise.
30132 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30133 (SNANF128X): Likewise.
30134
30135 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
30136 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
30137 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30138 (HUGE_VAL_F32): Likewise.
30139 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30140 (HUGE_VAL_F64): Likewise.
30141 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30142 (HUGE_VAL_F32X): Likewise.
30143 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30144 (HUGE_VAL_F64X): Likewise.
30145 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30146 (HUGE_VAL_F128X): Likewise.
30147
30148 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
30149
30150 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
30151 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
30152 for the br_FR locale.
30153
30154 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
30155
30156 [BZ #21706]
30157 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
30158
30159 2017-10-25 Carlos O'Donell <carlos@redhat.com>
30160
30161 * locale/programs/record-status.h: Define globals, and function
30162 prototypes. Move function bodies...
30163 * locale/programs/record-status.c: ... to here. New file.
30164 * iconv/Makefile (iconv_prog-modules): Add record-status.
30165 * locale/Makefile (lib-modules): Likewise.
30166 * iconv/iconv_prog.c: Remove verbose.
30167 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
30168 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
30169 record a warning about ASCII compatibility.
30170 * locale/programs/ld-monetary.c (monetary_finish): If
30171 warn_int_curr_symbol is true then record a warning about the symbol
30172 not being in our ISO 4217 list.
30173 * locale/programs/locale.c: Include record-status.h. Remove verbose.
30174 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
30175 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
30176 (OPT_NO_WARN): Define.
30177 (OPT_WARN): Define.
30178 (options): Add entry for --no-warnings, and --warnings.
30179 (set_warnings): New function to enable/disable warnings.
30180 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
30181 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
30182 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
30183 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
30184 Pass flags to generate_locale.
30185 (generate_locale): Accept new flag argument and pass it to localedef
30186 invocation.
30187 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
30188 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
30189
30190 * localedata/Makefile (test-input-data): Use full file name.
30191 * localedata/da_DK.in: Rename to...
30192 * localedata/da_DK.ISO-8859-1.in: ...this.
30193 * localedata/de_DE.in: Rename to...
30194 * localedata/de_DE.ISO-8859-1.in: ...this.
30195 * localedata/en_US.in: Rename to...
30196 * localedata/en_US.ISO-8859-1.in: ...this.
30197 * localedata/fr_FR.in: Rename to...
30198 * localedata/fr_FR.UTF-8.in: ... this.
30199 * localedata/hr_HR.in: Rename to...
30200 * localedata/hr_HR.ISO-8859-2.in: ...this.
30201 * localedata/hu_HU.in: Rename to...
30202 * localedata/hu_HU.UTF-8.in: ...this.
30203 * localedata/si_LK.in: Rename to...
30204 * localedata/si_LK.UTF-8.in: ...this.
30205 * localedata/sv_SE.in: Rename to...
30206 * localedata/sv_SE.ISO-8859-1.in: ...this.
30207 * localedata/tr_TR.in: Rename to...
30208 * localedata/tr_TR.UTF-8.in: ...this.
30209 * localedata/uk_UA.in: Rename to...
30210 * localedata/uk_UA.UTF-8.in: ...this.
30211 * localedata/sort-test.sh: Test file is locale name with the
30212 suffix.
30213
30214 * localedata/unicode-gen/Makefile (check_i18n): Rename to
30215 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
30216 file.
30217 * localedata/locales/i18n_ctype: Regenerate.
30218 * localedata/locales/tr_TR: Likewise.
30219 * localedata/locales/translit_circle: Likewise.
30220 * localedata/locales/translit_cjk_compat: Likewise.
30221 * localedata/locales/translit_combining: Likewise.
30222 * localedata/locales/translit_compat: Likewise.
30223 * localedata/locales/translit_font: Likewise.
30224 * localedata/locales/translit_fraction: Likewise.
30225
30226 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30227
30228 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
30229 lxvd2x/stxvd2x with lvx/stvx.
30230 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
30231
30232 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
30233
30234 * include/alloc_buffer.h: Replace "if if " with "if " in
30235 comments.
30236 * sysdeps/mips/memcpy.S: Likkewise.
30237 * sysdeps/mips/memset.S: Likewise.
30238 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30239 Likewise.
30240 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
30241 Likewise.
30242 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
30243 Likewise.
30244
30245 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30246
30247 [BZ #15261]
30248 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
30249 yesexpr and noexpr.
30250 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
30251 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
30252 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
30253 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
30254 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
30255 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
30256 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
30257
30258 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30259
30260 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
30261 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
30262 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
30263 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
30264 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
30265 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
30266 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
30267 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
30268 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
30269 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
30270 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
30271 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
30272
30273 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30274
30275 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
30276 as possible for better readability of the source.
30277 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
30278 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
30279 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
30280 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
30281 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
30282 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
30283 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
30284 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
30285 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
30286 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
30287 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
30288 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
30289 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
30290 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
30291 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
30292 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
30293 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
30294 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
30295 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
30296 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
30297 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
30298 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
30299 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
30300 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
30301 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
30302 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
30303 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
30304 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
30305 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
30306 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
30307 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
30308 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
30309 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
30310 * localedata/locales/en_US (LC_MESSAGES): Likewise.
30311 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
30312 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
30313 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
30314 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
30315 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
30316 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
30317 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
30318 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
30319 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
30320 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
30321 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
30322 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
30323 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
30324 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
30325 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
30326 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
30327 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
30328 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
30329 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
30330 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
30331 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
30332 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
30333 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
30334 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
30335 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
30336 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
30337 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
30338 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
30339 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
30340 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
30341 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
30342 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
30343 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
30344 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
30345 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
30346 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
30347 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
30348 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
30349 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
30350 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
30351 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
30352 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
30353 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
30354 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
30355 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
30356 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
30357 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
30358 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
30359 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
30360 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
30361 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
30362 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
30363 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
30364 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
30365 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
30366 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
30367 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
30368 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
30369 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
30370 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
30371 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
30372 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
30373 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
30374 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
30375 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
30376 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
30377 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
30378 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
30379 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
30380 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
30381 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
30382 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
30383 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
30384 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
30385 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
30386 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
30387 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
30388 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
30389 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
30390 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
30391 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
30392 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
30393 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
30394 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
30395 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
30396 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
30397 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
30398 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
30399 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
30400 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
30401 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
30402 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
30403 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
30404 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
30405 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
30406 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
30407 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
30408 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
30409 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
30410 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
30411 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
30412 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
30413 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
30414 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
30415 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
30416 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
30417 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
30418 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
30419 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
30420 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
30421 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
30422 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
30423 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
30424 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
30425 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
30426 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
30427 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
30428 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
30429 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
30430 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
30431 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
30432 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
30433 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
30434 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
30435 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
30436 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
30437 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
30438 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
30439 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
30440 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
30441 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
30442 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
30443 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
30444 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
30445 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
30446 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
30447 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
30448 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
30449 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
30450 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
30451
30452 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30453
30454 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
30455 (Use first letters of yesstr and nostr correctly instead of using
30456 full words).
30457
30458 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30459
30460 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
30461 (Use first letters of yesstr and nostr correctly).
30462
30463 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30464
30465 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
30466 also check for the first characters of yesstr and nostr.
30467 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
30468 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
30469
30470 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30471
30472 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
30473 also check for Chinese characters.
30474
30475 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30476
30477 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
30478 match also for the contents of yesstr and nostr. As the first letter
30479 of yesstr and nostr is equal, checking only for the first letter
30480 is not enough.
30481
30482 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30483
30484 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
30485 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
30486
30487 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30488
30489 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
30490 of main contributor.
30491
30492 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30493
30494 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
30495 instead of using English.
30496
30497 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30498
30499 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
30500 by including the first letters of nostr and yesexpr in the regexp.
30501 Also make it more readable by using ASCII where possible.
30502
30503 2017-10-25 Mike FABIAN <mfabian@redhat.com>
30504
30505 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
30506 the first letter of nostr in the regexp. It agrees with CLDR now.
30507 Also make it more readable by using ASCII where possible.
30508
30509 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30510
30511 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
30512 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
30513 these strings contain a U+17D6 (which somewhat looks like a colon)
30514 instead of a real colon to separate the full words for “yes”
30515 and “no” from the single letter responses.
30516
30517 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30518
30519 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
30520 it agree with CLDR (include the first letter of yesstr).
30521 Also make it more readable by using ASCII where possible.
30522
30523 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30524
30525 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
30526 and improve yesexpr and noexpr. The yesstr and nostr apparently
30527 came from CLDR. And CLDR has a bug there: these strings contain
30528 a U+0903 (which looks like a colon) instead of a real colon
30529 to separate the full words for “yes” and “no” from the single
30530 letter responses.
30531
30532 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30533
30534 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
30535 letters of the full yesstr and nostr in yesexpr and noexpr.
30536
30537 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30538
30539 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
30540 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
30541 * localedata/locales/an_ES: Make source more readable by using ASCII
30542 where possible.
30543
30544 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30545
30546 [BZ #20952]
30547 * localedata/locales/yuw_PG: New file.
30548 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
30549 * locale/iso-639.def: Add Yau (Uruwa).
30550
30551 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30552
30553 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
30554
30555 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30556
30557 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
30558 (__libc_realloc): Likewise.
30559 (_mid_memalign): Likewise.
30560 (__libc_calloc): Likewise.
30561
30562 2017-10-23 Mike FABIAN <mfabian@redhat.com>
30563
30564 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
30565 by adding the generic +1 and -0 as in all other locales.
30566 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
30567 day names and make it more readable by using ASCII where possible.
30568
30569 2017-10-24 Joseph Myers <joseph@codesourcery.com>
30570
30571 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
30572 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
30573
30574 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30575
30576 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
30577 WNOHANG in waitpid call.
30578
30579 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
30580
30581 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
30582 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
30583
30584 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
30585 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
30586 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
30587 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
30588 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
30589 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
30590 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
30591 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
30592 variables.
30593
30594 2017-10-23 Michael Collison <michael.collison@arm.com>
30595
30596 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
30597 with __builtin_sqrt.
30598 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
30599 with __builtin_sqrtf.
30600 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
30601 with __builtin_ceil.
30602 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
30603 with __builtin_ceilf.
30604 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
30605 with __builtin_floor.
30606 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
30607 with __builtin_floorf.
30608 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
30609 with __builtin_fma.
30610 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
30611 with __builtin_fmaf.
30612 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
30613 with __builtin_fmax.
30614 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30615 with __builtin_fmaxf.
30616 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30617 with __builtin_fmin.
30618 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30619 with __builtin_fminf.
30620 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30621 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30622 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30623 with builtin_rint and conversion to int.
30624 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30625 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30626 with builtin_llround.
30627 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30628 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30629 with builtin_rint and conversion to long int.
30630 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30631 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30632 with builtin_lround.
30633 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30634 with builtin_lroundf.
30635 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30636 statements with __builtin_nearbyint.
30637 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30638 statements with __builtin_nearbyintf.
30639 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30640 with __builtin_rint.
30641 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30642 with __builtin_rintf.
30643 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30644 with __builtin_round.
30645 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30646 with __builtin_roundf.
30647 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30648 with __builtin_trunc.
30649 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30650 with __builtin_truncf.
30651 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30652 and s_l[l]round[f].c too.
30653
30654 2017-10-23 Alan Modra <amodra@gmail.com>
30655
30656 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30657 Adjust stack after restoring regs. Add missing LR cfi_restore.
30658
30659 2017-10-23 Alan Modra <amodra@gmail.com>
30660
30661 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30662 Move LR save and frame setup/teardown and LR restore to
30663 immediately around memset call. Provide cfi.
30664
30665 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30666
30667 * sysdeps/i386/fpu/e_powf.S: Removed.
30668 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30669 * sysdeps/i386/fpu/w_powf.c: Likewise.
30670 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30671 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30672 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30673 Add e_powf-sse2.
30674 (CFLAGS-e_powf-sse2.c): New.
30675 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30676 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30677
30678 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30679
30680 * sysdeps/i386/fpu/e_log2f.S: Removed.
30681 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30682 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30683 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30684 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30685 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30686 Add e_log2f-sse2.
30687 (CFLAGS-e_log2f-sse2.c): New.
30688 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30689 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30690
30691 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30692
30693 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30694 Add e_powf-fma.
30695 (CFLAGS-e_powf-fma.c): New.
30696 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30697 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30698
30699 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30700
30701 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30702 Add e_log2f-fma.
30703 (CFLAGS-e_log2f-fma.c): New.
30704 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30705 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30706
30707 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30708
30709 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30710 Add e_logf-fma.
30711 (CFLAGS-e_logf-fma.c): New.
30712 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30713 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30714
30715 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30716
30717 * sysdeps/i386/fpu/e_logf.S: Removed.
30718 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30719 * sysdeps/i386/fpu/w_logf.c: Likewise.
30720 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30721 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30722 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30723 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30724 Add e_logf-sse2.
30725 (CFLAGS-e_logf-sse2.c): New.
30726 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30727 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30728
30729 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30730
30731 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30732 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30733 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30734 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30735 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30736 Add e_exp2f-sse2.
30737 (CFLAGS-e_exp2f-sse2.c): New.
30738 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30739 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30740
30741 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30742
30743 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30744 Add e_exp2f-fma.
30745 (CFLAGS-e_exp2f-fma.c): New.
30746 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30747 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30748
30749 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30750
30751 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30752 * sysdeps/i386/fpu/e_expf.S: Likewise.
30753 * sysdeps/i386/fpu/math_errf.c: Likewise.
30754 * sysdeps/i386/fpu/w_expf.c: Likewise.
30755 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30756 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30757 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30758 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30759 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30760 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30761 Remove e_expf-ia32.
30762 (CFLAGS-e_expf-sse2.c): New.
30763 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30764 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30765
30766 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30767
30768 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30769 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30770 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30771 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30772 e_expf.c.
30773 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30774 New.
30775 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30776 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30777 Renamed to ...
30778 (__redirect_expf): This.
30779 (SYMBOL_NAME): Changed to expf.
30780 (__ieee754_expf): Renamed to ...
30781 (__expf): This.
30782 (__GI___expf): This.
30783 (__ieee754_expf): Add strong_alias.
30784 (__expf_finite): Likewise.
30785 (__expf): New.
30786 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30787
30788 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30789
30790 [BZ #22332]
30791 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30792 unescaping.
30793
30794 2017-10-21 Florian Weimer <fweimer@redhat.com>
30795
30796 * posix/Makefile (tests): Add tst-glob-tilde.
30797 (tests-special): Add tst-glob-tilde-mem.out
30798 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30799 (tst-glob-tilde-mem.out): Add mtrace check.
30800 * posix/tst-glob-tilde.c: New file.
30801
30802 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30803
30804 * bits/floatn-common.h: New file.
30805 * math/Makefile (headers): Add bits/floatn-common.h.
30806 * bits/floatn.h: Include <bits/floatn-common.h>.
30807 * sysdeps/ia64/bits/floatn.h: Likewise.
30808 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30809 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30810 * sysdeps/powerpc/bits/floatn.h: Likewise.
30811 * sysdeps/x86/bits/floatn.h: Likewise.
30812
30813 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30814
30815 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30816 indicates whether compiler emits an warning for alias for
30817 functions with incompatible types.
30818
30819 [BZ #22273]
30820 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30821 the auxiliary process is terminated by a signal before calling _exit
30822 or execve.
30823
30824 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30825
30826 [BZ #21265]
30827 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30828 New.
30829 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30830 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30831 and bit_arch_XSAVEC_Usable if needed.
30832 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30833 and bit_arch_Use_dl_runtime_resolve_opt.
30834 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30835 Removed.
30836 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30837 (bit_arch_Prefer_No_AVX512): Updated.
30838 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30839 (bit_arch_XSAVEC_Usable): New.
30840 (STATE_SAVE_OFFSET): Likewise.
30841 (STATE_SAVE_MASK): Likewise.
30842 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30843 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30844 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30845 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30846 (index_arch_XSAVEC_Usable): New.
30847 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30848 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30849 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30850 is enabled.
30851 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30852 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30853 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30854 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30855 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30856 _dl_runtime_resolve_xsavec.
30857 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30858 Removed.
30859 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30860 instead of VEC_SIZE.
30861 (REGISTER_SAVE_BND0): Removed.
30862 (REGISTER_SAVE_BND1): Likewise.
30863 (REGISTER_SAVE_BND3): Likewise.
30864 (REGISTER_SAVE_RAX): Always defined to 0.
30865 (VMOV): Removed.
30866 (_dl_runtime_resolve_avx): Likewise.
30867 (_dl_runtime_resolve_avx_slow): Likewise.
30868 (_dl_runtime_resolve_avx_opt): Likewise.
30869 (_dl_runtime_resolve_avx512): Likewise.
30870 (_dl_runtime_resolve_avx512_opt): Likewise.
30871 (_dl_runtime_resolve_sse): Likewise.
30872 (_dl_runtime_resolve_sse_vex): Likewise.
30873 (USE_FXSAVE): New.
30874 (_dl_runtime_resolve_fxsave): Likewise.
30875 (USE_XSAVE): Likewise.
30876 (_dl_runtime_resolve_xsave): Likewise.
30877 (USE_XSAVEC): Likewise.
30878 (_dl_runtime_resolve_xsavec): Likewise.
30879 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30880 Removed.
30881 (_dl_runtime_resolve_avx512_opt): Likewise.
30882 (_dl_runtime_resolve_avx): Likewise.
30883 (_dl_runtime_resolve_avx_opt): Likewise.
30884 (_dl_runtime_resolve_sse): Likewise.
30885 (_dl_runtime_resolve_sse_vex): Likewise.
30886 (_dl_runtime_resolve_fxsave): New.
30887 (_dl_runtime_resolve_xsave): Likewise.
30888 (_dl_runtime_resolve_xsavec): Likewise.
30889
30890 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30891
30892 [BZ #22320]
30893 CVE-2017-15670
30894 * posix/glob.c (__glob): Fix one-byte overflow.
30895
30896 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30897
30898 * malloc/malloc.c (sysdep-cancel.h): Add include.
30899
30900 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30901
30902 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30903
30904 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30905
30906 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30907 (tests): Remove $(objpfx)ga_test depdendency.
30908 * resolv/ga_test.c: Remove file.
30909
30910 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30911
30912 [BZ #18812]
30913 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30914 * localedata/locales/kab_DZ: New file.
30915
30916 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30917
30918 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30919 _dl_relocate_static_pie instead of _dl_start to compute load
30920 address in static PIE.
30921
30922 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30923
30924 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30925
30926 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30927
30928 [BZ #13605]
30929 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30930 * localedata/locales/shn_MM: New file.
30931
30932 2017-10-20 Florian Weimer <fweimer@redhat.com>
30933
30934 [BZ #22321]
30935 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30936 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30937 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30938 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30939 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30940 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30941
30942 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30943
30944 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30945
30946 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30947
30948 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30949
30950 [BZ #22322]
30951 * sysdeps/mips/bits/long-double.h: Move to ....
30952 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30953
30954 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30955
30956 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30957
30958 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30959 H.J. Lu <hongjiu.lu@intel.com>
30960
30961 [BZ #22299]
30962 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30963 GLRO(dl_platform) to NULL.
30964 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30965 (modules-names): Add tst-platformmod-1 and
30966 x86_64/tst-platformmod-2.
30967 (CFLAGS-tst-platform-1.c): New.
30968 (CFLAGS-tst-platformmod-1.c): Likewise.
30969 (CFLAGS-tst-platformmod-2.c): Likewise.
30970 (LDFLAGS-tst-platformmod-2.so): Likewise.
30971 ($(objpfx)tst-platform-1): Likewise.
30972 ($(objpfx)tst-platform-1.out): Likewise.
30973 (tst-platform-1-ENV): Likewise.
30974 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30975 * sysdeps/x86_64/tst-platform-1.c: New file.
30976 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30977 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30978
30979 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30980
30981 [BZ #13994]
30982 * locale/iso-639.def: Add Karbi.
30983 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30984 * localedata/locales/mjw_IN: New file.
30985
30986 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30987
30988 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30989 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30990 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30991 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30992 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30993 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30994 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30995 <bits/floatn.h>.
30996 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30997 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30998 * manual/math.texi (Mathematics): Document additional architecture
30999 support for _Float128.
31000 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
31001 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
31002 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
31003 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31004 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31005 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
31006 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
31007 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
31008 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31009 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
31010 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31011 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
31012 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31013 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
31014 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31015
31016 2017-10-18 Renlin Li <renlin.li@arm.com>
31017
31018 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
31019 _DYNAMIC symbol to calculate load address.
31020
31021 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
31022
31023 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
31024 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
31025 summary bits.
31026 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
31027 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
31028
31029 2017-10-18 Mike FABIAN <mfabian@redhat.com>
31030
31031 [BZ #16777]
31032 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
31033 and improve readability by using more ASCII.
31034 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
31035 and improve readability by using more ASCII.
31036
31037 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
31038
31039 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
31040 not all targets support atomics on bool.
31041
31042 2017-10-17 Joseph Myers <joseph@codesourcery.com>
31043
31044 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
31045 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
31046 __f128.
31047 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31048 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
31049 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31050 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
31051 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
31052 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
31053
31054 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31055
31056 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
31057 defines.
31058
31059 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
31060
31061 [BZ #22159]
31062 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
31063 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
31064 (do_check_remalloced_chunk): Fix build bug.
31065 (do_check_malloc_state): Add assert that checks arena->top.
31066 (malloc_consolidate): Remove initialization.
31067 (int_mallinfo): Remove call to malloc_consolidate.
31068 (__libc_mallopt): Clarify why malloc_consolidate is needed.
31069
31070 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
31071
31072 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
31073 (have_fastchunks): Remove.
31074 (clear_fastchunks): Remove.
31075 (set_fastchunks): Remove.
31076 (malloc_state): Add have_fastchunks.
31077 (malloc_init_state): Use have_fastchunks.
31078 (do_check_malloc_state): Remove incorrect invariant checks.
31079 (_int_malloc): Use have_fastchunks.
31080 (_int_free): Likewise.
31081 (malloc_consolidate): Likewise.
31082
31083 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
31084
31085 * malloc/malloc.c (tcache_put): Inline.
31086 (tcache_get): Inline.
31087
31088 2017-10-17 Jordi Mallach <jordi@gnu.org>
31089
31090 Aurelien Jarno <aurelien@aurel32.net>
31091 [BZ #2522]
31092 * localedata/locales/ca_ES@valencia: New file.
31093 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
31094
31095 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
31096
31097 [BZ #22296]
31098 * math/math.h: Let signbit use the builtin in C++ mode with gcc
31099 < 6.x
31100
31101 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31102
31103 * scripts/build-many-glibcs.py (Context.add_all_configs):
31104 Add arm-linux-gnueabihf multiarch extra_glibcs.
31105
31106 * sysdeps/generic/ifunc-init.h: New file.
31107 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
31108
31109 2017-10-17 Mike FABIAN <mfabian@redhat.com>
31110
31111 [BZ #22019]
31112 * localedata/locales/el_GR: Set n_cs_precedes to 0.
31113 * localedata/locales/el_CY: copy "el_GR" because it is identical.
31114 * stdlib/tst-strfmon_l.c: adapt test case.
31115
31116 2017-10-16 Joseph Myers <joseph@codesourcery.com>
31117
31118 * sysdeps/generic/float128-abi.h: New file.
31119 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
31120 non-__prefixed symbols to ....
31121 * math/Versions: ... here. Include <float128-abi.h>.
31122 * stdlib/Versions ... and here. Include <float128-abi.h>
31123
31124 2017-10-16 Florian Weimer <fweimer@redhat.com>
31125
31126 * version.h (VERSION): Switch to ".9000" as the development
31127 version suffix.
31128
31129 2017-10-16 Florian Weimer <fweimer@redhat.com>
31130
31131 [BZ #22050]
31132 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
31133 compat_symbol_reference to access non-default version.
31134
31135 2017-10-16 Florian Weimer <fweimer@redhat.com>
31136
31137 * malloc/Makefile (others-extras): Set to mcheck-init.o.
31138
31139 2017-10-16 Carlos O'Donell <carlos@redhat.com>
31140
31141 * include/shlib-compat.h (compat_symbol_reference): Update
31142 comment.
31143
31144 2017-10-16 Joseph Myers <joseph@codesourcery.com>
31145
31146 * math/Makefile (test-types): Add
31147 $(type-float128-$(float128-alias-fcts)).
31148 * math/test-float128.h (TYPE_STR): Define conditional on
31149 [FLT128_MANT_DIG == LDBL_MANT_DIG].
31150 (ULP_IDX): Likewise.
31151 (ULP_I_IDX): Likewise.
31152
31153 * stdlib/strtold.c: Include <bits/floatn.h>
31154 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
31155 and later undefine as macro. Define as weak alias if
31156 [!USE_WIDE_CHAR].
31157 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
31158 and later undefine as macro. Define as weak alias if
31159 [USE_WIDE_CHAR].
31160 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
31161 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
31162 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
31163 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
31164 Define and later undefine as macro. Define as weak alias if
31165 [USE_WIDE_CHAR].
31166 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
31167 <bits/floatn.h>.
31168 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
31169 Define and later undefine as macro. Define as weak alias if
31170 [!USE_WIDE_CHAR].
31171 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
31172 Define and later undefine as macro. Define as weak alias if
31173 [USE_WIDE_CHAR].
31174
31175 2017-10-15 Carlos O'Donell <carlos@redhat.com>
31176
31177 * localedata/collate-test.c (allocate_arrays): Don't use \n in
31178 record_verbose messages.
31179
31180 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
31181
31182 [BZ #22052]
31183 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
31184 to silence -O3 -Wall warning with GCC 7.
31185
31186 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
31187
31188 * Makeconfig (+link-static-before-libc): Use the first of
31189 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
31190 * gmon/Makefile (tests): Add tst-gmon-static.
31191 (tests-static): Likewise.
31192 (CFLAGS-tst-gmon-static.c): New.
31193 (CRT-tst-gmon-static): Likewise.
31194 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
31195 (tst-gmon-static-ENV): Likewise.
31196 (tests-special): Likewise.
31197 ($(objpfx)tst-gmon-static.out): Likewise.
31198 (clean-tst-gmon-static-data): Likewise.
31199 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
31200 * gmon/tst-gmon-static-gprof.sh: New file.
31201 * gmon/tst-gmon-static.c: Likewise.
31202
31203 2017-10-13 Carlos O'Donell <carlos@redhat.com>
31204
31205 [BZ #22295]
31206 * locale/programs/linereader.c (get_string): Don't warn on
31207 non-symbolic character.
31208
31209 [BZ #22294]
31210 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
31211 int_curr_symbol.
31212
31213 [BZ #22292]
31214 * locale/programs/record-status.h: New file
31215 * locale/programs/locale.c: Add comment.
31216 * locale/programs/charmap-dir.c: Don't include error.h.
31217 (charmap_opendir): Use record_error.
31218 * locale/programs/charmap.c: Don't include error.h.
31219 (charmap_read): Use record_error, and record_warning.
31220 (parse_charmap): Likewise.
31221 * locale/programs/ld-address.c: Don't include error.h.
31222 (address_finish): Use record_error, and record_warning.
31223 * locale/programs/ld-collate.c: Don't include error.h.
31224 (collate_finish): Use record_error, and record_error_at_line.
31225 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
31226 (ctype_class_new): Likewise.
31227 (ctype_map_new): Likewise.
31228 (set_one_default): Likewise.
31229 (set_class_defaults): Likewise.
31230 (translit_flatten): Likewise.
31231 (allocate_arrays): Use record_error, and record_verbose.
31232 * locale/programs/ld-identification.c: Don't include error.h.
31233 (indentation_finish): Use record_error and record_warning.
31234 * locale/programs/ld-measurement.c: Don't include error.h.
31235 (measurement_finish): Use record_error.
31236 * locale/programs/ld-messages.c
31237 (message_finish): Likewise.
31238 * locale/programs/ld-monetary.c
31239 (monetary_finish): Likewise.
31240 * locale/programs/ld-name.c (name_finish): Use record_error
31241 and record_warning.
31242 * locale/programs/ld-numeric.c
31243 (numeric_finish): Use record_error.
31244 * locale/programs/ld-paper.c: Don't include error.h.
31245 (paper_finish): Use record_error.
31246 * locale/programs/ld-telephone.c: Don't include error.h.
31247 (telephone_finish): Use record_error.
31248 * locale/programs/ld-time.c (time_finish): Likewise.
31249 * locale/programs/linereader.h (lr_error): Make inline func.
31250 * locale/programs/localedef.c: Define recorded_warning_count,
31251 and recorded_error_count.
31252 (main): Use record_error. Use recorded_error_count and
31253 recorded_warning_count to issue correct error returns.
31254 (add_to_readlist): Use record_error.
31255 (find_locale): Likewise.
31256 (load_locale): Likewise.
31257 * locale/programs/localedef.h: Remove be_quiet
31258 and WITH_CUR_LOCALE.
31259 * locale/programs/locarchive.c (compare_from_file): Use
31260 record_error.
31261 * locale/programs/locfile.c (write_locale_data): Use
31262 record_error.
31263 * locale/programs/repertoire.c: Dont include error.h.
31264 (repertoire_complain): Use record_error.
31265 * localedata/tst-fmon.sh: Expect failures from localedef.
31266 * localedata/tst-locale.sh: Likewise.
31267 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
31268
31269 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
31270 (REPORTS): Likewise.
31271 (check): Likewise.
31272 (i18n): Rename to...
31273 (i18n_ctype): ...this.
31274 (i18n-report): Rename to...
31275 (i18n_ctype-report): ...this.
31276 * localedata/locales/i18n_ctype: Regenerate.
31277 * localedata/locales/i18n: copy i18n_ctype.
31278
31279 2017-10-13 Joseph Myers <joseph@codesourcery.com>
31280
31281 * stdlib/strfroml.c: Include <bits/floatn.h>.
31282 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
31283 Define before include of <stdlib.h> and undefine afterwards, then
31284 define as weak alias.
31285
31286 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
31287 Undefine and restore default definition. Use
31288 libm_alias_ldouble_other.
31289
31290 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
31291
31292 [BZ #22153]
31293 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
31294 in coredumps.
31295
31296 2017-10-13 James Clarke <jrtc27@jrtc27.com>
31297
31298 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
31299 Assign sym_map to be map for local symbols, as TLS relocations
31300 use sym_map to determine whether the symbol is defined and to
31301 extract the TLS information.
31302 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
31303 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
31304
31305 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
31306
31307 [BZ #22189]
31308 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
31309 (math_force_eval): Add powerpc version.
31310
31311 [BZ #22142]
31312 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
31313 -DBL_MAX.
31314 (do_test): Likewise.
31315 * stdio-common/tst-printf.sh: Likewise.
31316 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
31317 ifdef clause in order to set the carry bit right. Replace r0 by
31318 0 without changing the behavior.
31319
31320 2017-10-13 Joseph Myers <joseph@codesourcery.com>
31321
31322 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
31323 <libm-alias-ldouble.h>.
31324 (fabsl): Define using libm_alias_ldouble.
31325 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
31326 <libm-alias-ldouble.h>.
31327 (fabsl): Define using libm_alias_ldouble.
31328
31329 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
31330 Remove conditional code.
31331
31332 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
31333 Rename to __clog10_internal_l.
31334 (__clog10_internal_l): Define aliases using
31335 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
31336 with __clog10.
31337
31338 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31339
31340 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
31341 * benchtests/sincosf-inputs: New file.
31342 * benchtests/cosf-inputs: New file.
31343 * benchtests/sinf-inputs: New file.
31344
31345 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
31346
31347 * posix/tst-spawn.c (do_test): Wait for both children.
31348
31349 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
31350
31351 [BZ #22284]
31352 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
31353 tests-pie): Add tst-gmon-pie.
31354 (CFLAGS-tst-gmon-pie.c): New.
31355 (CRT-tst-gmon-pie): Likewise.
31356 (tst-gmon-pie-ENV): Likewise.
31357 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
31358 ($(objpfx)tst-gmon-pie.out): Likewise.
31359 (clean-tst-gmon-pie-data): Likewise.
31360 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
31361 * gmon/gmon.c [PIC]: Include <link.h>.
31362 [PIC] (callback): New function.
31363 (write_hist): Add an argument for load address. Subtract load
31364 address from PCs.
31365 (write_call_graph): Likewise.
31366 (write_gmon): Call __dl_iterate_phdr to get load address, pass
31367 it to write_hist and write_call_graph.
31368 * gmon/tst-gmon-pie.c: New file.
31369
31370 2017-10-11 Joseph Myers <joseph@codesourcery.com>
31371
31372 * math/Makefile (test-types-basic): New variable.
31373 (test-types): Likewise.
31374 (libm-test-support): Use $(test-types) instead of $(types).
31375 (libm-tests-base-normal): Likewise.
31376 (libm-tests-base-finite): Likewise.
31377 (libm-tests-base-inline): Likewise.
31378 (generated): Likewise.
31379 ($(objpfx)libm-test-support-$(t).c): Likewise.
31380 (libm-tests-for-type iterator): Likewise.
31381 (libm-test-support iterator): Likewise.
31382 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
31383 (ulp_idx): Use ULP_IDX.
31384 * math/test-ldouble.h: Include <float.h>.
31385 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
31386 (ULP_IDX): New macro.
31387 (ULP_I_IDX): Likewise.
31388 * math/test-double.h (ULP_IDX): Likewise.
31389 (ULP_I_IDX): Likewise.
31390 * math/test-float.h (ULP_IDX): Likewise.
31391 (ULP_I_IDX): Likewise.
31392 * math/test-float128.h (ULP_IDX): Likewise.
31393 (ULP_I_IDX): Likewise.
31394
31395 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31396
31397 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
31398 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
31399 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
31400 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
31401 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
31402 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
31403 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
31404 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
31405 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
31406 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
31407 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
31408 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
31409 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
31410 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31411 (SINGLE_THREAD_BY_GLOBAL): Define.
31412 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31413 Likewise.
31414 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31415 Likewise.
31416 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31417 Likewise.
31418 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31419 Likewise.
31420 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
31421 (SINGLE_THREAD_BY_GLOBAL): Likewise.
31422 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31423 Likewise.
31424
31425 2017-10-11 Andreas Schwab <schwab@suse.de>
31426
31427 * nis/Makefile (aux): Remove.
31428 * nscd/Makefile (aux): Add nscd_hash.
31429 (nscd-modules): Likewise.
31430 ($(objpfx)nscd): Don't depend on libnsl.
31431 * nscd/nscd_hash.c: New file.
31432 * nscd/nscd_hash.h: Likewise.
31433 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
31434 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
31435 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
31436 instead of <nis/rpcsvc/nis.h>.
31437 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
31438
31439 2017-10-11 Florian Weimer <fweimer@redhat.com>
31440
31441 [BZ #22078]
31442 Avoid large NSS buffers with many addresses, aliases.
31443 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
31444 using dynarrays and struct alloc_buffer.
31445 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
31446 (tst-nss-files-hosts-multi): Link with -ldl.
31447 * nss/tst-nss-files-hosts-multi.c: New file.
31448
31449 2017-10-11 Florian Weimer <fweimer@redhat.com>
31450
31451 [BZ #18023]
31452 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
31453 scratch_buffer. Eliminate gotos.
31454
31455 2017-10-11 Joseph Myers <joseph@codesourcery.com>
31456
31457 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
31458 libm_alias_ldouble_other.
31459 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
31460 undefine and redefine.
31461 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
31462 (exp10l): Do not define here.
31463 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
31464 (weak_alias): Undefine and redefine.
31465 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
31466 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
31467 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
31468 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
31469
31470 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
31471 [!__fma] (fma): Define using libm_alias_double.
31472 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
31473 [!__fmaf] (fmaf): Define using libm_alias_float.
31474 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
31475 (fmal): Define using libm_alias_ldouble.
31476
31477 2017-10-10 Joseph Myers <joseph@codesourcery.com>
31478
31479 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
31480 New macro.
31481 (libm_alias_double_other): Likewise.
31482 (libm_alias_double_r): Use libm_alias_double_other_r.
31483 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
31484 New macro.
31485 (libm_alias_float_other): Likewise.
31486 (libm_alias_float_r): Use libm_alias_float_other_r.
31487 * sysdeps/generic/libm-alias-float128.h
31488 (libm_alias_float128_other_r): New macro.
31489 (libm_alias_float128_other): Likewise.
31490 (libm_alias_float128_r): Use libm_alias_float128_other_r.
31491 * sysdeps/generic/libm-alias-ldouble.h
31492 (libm_alias_ldouble_other_r): New macro.
31493 (libm_alias_ldouble_other): Likewise.
31494 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31495 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
31496 (libm_alias_double_other_r): New macro.
31497 (libm_alias_double_other): Likewise.
31498 (libm_alias_double_r): Use libm_alias_double_other_r.
31499 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
31500 (libm_alias_ldouble_other_r): New macro.
31501 (libm_alias_ldouble_other): Likewise.
31502 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31503 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
31504 [!USE_AS_COMPAT]: Use libm_alias_double_other.
31505 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
31506 [!USE_AS_COMPAT]: Use libm_alias_float_other.
31507 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
31508 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
31509 * math/w_exp2f.c: Use libm_alias_float_other.
31510 * math/w_expf.c: Likewise.
31511 * math/w_log2f.c: Likewise.
31512 * math/w_logf.c: Likewise.
31513 * math/w_powf.c: Likewise.
31514 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
31515 [!__exp2f]: Use libm_alias_float_other.
31516 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
31517 [!__expf]: Use libm_alias_float_other.
31518 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
31519 [!__log2f]: Use libm_alias_float_other.
31520 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
31521 [!__logf]: Use libm_alias_float_other.
31522 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
31523 [!__powf]: Use libm_alias_float_other.
31524
31525 2017-10-10 Florian Weimer <fweimer@redhat.com>
31526
31527 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
31528 function.
31529 (_nss_files_gethostbyname3_r): Call it.
31530
31531 2017-10-09 Joseph Myers <joseph@codesourcery.com>
31532
31533 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
31534 error. Remove default definition of declare_mgen_alias.
31535 [!declare_mgen_alias_r]: Likewise.
31536 * sysdeps/generic/math-type-macros-double.h
31537 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
31538 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
31539 (declare_mgen_alias_r): Likewise.
31540 * sysdeps/generic/math-type-macros-float128.h
31541 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31542 * sysdeps/generic/math-type-macros-ldouble.h
31543 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31544 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
31545 macro.
31546 (declare_mgen_alias_r_s): Likewise.
31547 (declare_mgen_alias_r): Likewise.
31548 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
31549 (lgamma_r): Define using libm_alias_double_r.
31550 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
31551 (lgammaf_r): Define using libm_alias_float_r.
31552 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
31553 (lgammal_r): Define using libm_alias_ldouble_r.
31554 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
31555 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31556
31557 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31558
31559 * lib/glob.c (__glob_pattern_type): Remove now-spurious
31560 extern declaration.
31561
31562 2017-10-09 Joseph Myers <joseph@codesourcery.com>
31563
31564 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
31565
31566 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
31567
31568 [BZ #21326]
31569 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
31570 [__cplusplus >= 201103] (__USE_ISOC99): Define.
31571 * math/Makefile (test-math-cxx11): New test.
31572 * math/test-math-cxx11.cc: New file.
31573
31574 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
31575
31576 * login/openpty.c (openpty): Close slave pty file descriptor on error.
31577
31578 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
31579 call to allocate the slave pty file descriptor.
31580
31581 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31582
31583 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
31584 [!__fma] (fma): Define using libm_alias_double.
31585 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
31586 [!__fma] (fma): Define using libm_alias_double.
31587
31588 * sysdeps/ieee754/float128/float128_private.h: Include
31589 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
31590 (libm_alias_ldouble_r): Undefine and redefine.
31591 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
31592 <libm-alias-ldouble.h>.
31593 (asinhl): Define using libm_alias_ldouble.
31594 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
31595 <libm-alias-ldouble.h>.
31596 (atanl): Define using libm_alias_ldouble.
31597 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
31598 <libm-alias-ldouble.h>.
31599 (cbrtl): Define using libm_alias_ldouble.
31600 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
31601 <libm-alias-ldouble.h>.
31602 (ceill): Define using libm_alias_ldouble.
31603 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
31604 <libm-alias-ldouble.h>.
31605 (copysignl): Define using libm_alias_ldouble.
31606 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
31607 <libm-alias-ldouble.h>.
31608 (cosl): Define using libm_alias_ldouble.
31609 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
31610 <libm-alias-ldouble.h>.
31611 (erfl): Define using libm_alias_ldouble.
31612 (erfcl): Likewise.
31613 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
31614 <libm-alias-ldouble.h>.
31615 (expm1l): Define using libm_alias_ldouble.
31616 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31617 <libm-alias-ldouble.h>.
31618 (fabsl): Define using libm_alias_ldouble.
31619 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31620 <libm-alias-ldouble.h>.
31621 (floorl): Define using libm_alias_ldouble.
31622 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31623 <libm-alias-ldouble.h>.
31624 (fmal): Define using libm_alias_ldouble.
31625 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31626 <libm-alias-ldouble.h>.
31627 (frexpl): Define using libm_alias_ldouble.
31628 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31629 libm_alias_ldouble.
31630 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31631 <libm-alias-ldouble.h>.
31632 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31633 libm_alias_ldouble.
31634 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31635 <libm-alias-ldouble.h>.
31636 (getpayloadl): Define using libm_alias_ldouble.
31637 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31638 <libm-alias-ldouble.h>.
31639 (llrintl): Define using libm_alias_ldouble.
31640 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31641 <libm-alias-ldouble.h>.
31642 (llroundl): Define using libm_alias_ldouble.
31643 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31644 <libm-alias-ldouble.h>.
31645 (logbl): Define using libm_alias_ldouble.
31646 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31647 <libm-alias-ldouble.h>.
31648 (lrintl): Define using libm_alias_ldouble.
31649 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31650 <libm-alias-ldouble.h>.
31651 (lroundl): Define using libm_alias_ldouble.
31652 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31653 <libm-alias-ldouble.h>.
31654 (modfl): Define using libm_alias_ldouble.
31655 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31656 <libm-alias-ldouble.h>.
31657 (nearbyintl): Define using libm_alias_ldouble.
31658 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31659 <libm-alias-ldouble.h>.
31660 (nextafterl): Define using libm_alias_ldouble.
31661 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31662 <libm-alias-ldouble.h>.
31663 (nextupl): Define using libm_alias_ldouble.
31664 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31665 <libm-alias-ldouble.h>.
31666 (remquol): Define using libm_alias_ldouble.
31667 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31668 <libm-alias-ldouble.h>.
31669 (rintl): Define using libm_alias_ldouble.
31670 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31671 <libm-alias-ldouble.h>.
31672 (roundevenl): Define using libm_alias_ldouble.
31673 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31674 <libm-alias-ldouble.h>.
31675 (roundl): Define using libm_alias_ldouble.
31676 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31677 using libm_alias_ldouble.
31678 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31679 <libm-alias-ldouble.h>.
31680 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31681 Define using libm_alias_ldouble.
31682 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31683 <libm-alias-ldouble.h>.
31684 (sincosl): Define using libm_alias_ldouble.
31685 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31686 <libm-alias-ldouble.h>.
31687 (sinl): Define using libm_alias_ldouble.
31688 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31689 <libm-alias-ldouble.h>.
31690 (tanhl): Define using libm_alias_ldouble.
31691 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31692 <libm-alias-ldouble.h>.
31693 (tanl): Define using libm_alias_ldouble.
31694 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31695 <libm-alias-ldouble.h>.
31696 (totalorderl): Define using libm_alias_ldouble.
31697 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31698 <libm-alias-ldouble.h>.
31699 (totalordermagl): Define using libm_alias_ldouble.
31700 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31701 <libm-alias-ldouble.h>.
31702 (truncl): Define using libm_alias_ldouble.
31703 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31704 libm_alias_ldouble.
31705 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31706 libm_alias_ldouble.
31707 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31708 <libm-alias-ldouble.h>.
31709 (weak_alias): Do not undefine and redefine.
31710 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31711 (copysignl): Define with long_double_symbol only if [IS_IN
31712 (libc)].
31713 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31714 <libm-alias-ldouble.h>.
31715 (weak_alias): Do not undefine and redefine.
31716 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31717 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31718 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31719 <libm-alias-ldouble.h>.
31720 (weak_alias): Do not undefine and redefine.
31721 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31722 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31723 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31724 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31725 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31726 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31727 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31728 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31729 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31730 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31731 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31732 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31733 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31734 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31735 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31736 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31737 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31738 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31739 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31740 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31741 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31742 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31743 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31744 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31745 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31746 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31747
31748 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31749
31750 [BZ #22111]
31751 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31752 (tcache_thread_freeres): Set tcache_shutting_down before
31753 freeing the tcache.
31754 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31755 * malloc/tst-malloc-tcache-leak.c: New file.
31756
31757 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31758
31759 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31760 back to powerpc32 file.
31761 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31762 (memrchr): Add __memrchr_power8 to ifunc list.
31763 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31764 extra bytes for unaligned inputs.
31765
31766 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31767
31768 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31769 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31770 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31771 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31772 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31773
31774 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31775
31776 * sysdeps/arm/libm-test-ulps: Update.
31777
31778 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31779 <libm-alias-ldouble.h>.
31780 (asinhl): Define using libm_alias_ldouble.
31781 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31782 <libm-alias-ldouble.h>.
31783 (cbrtl): Define using libm_alias_ldouble.
31784 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31785 <libm-alias-ldouble.h>.
31786 (copysignl): Define using libm_alias_ldouble.
31787 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31788 <libm-alias-ldouble.h>.
31789 (cosl): Define using libm_alias_ldouble.
31790 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31791 <libm-alias-ldouble.h>.
31792 (erfl): Define using libm_alias_ldouble.
31793 (erfcl): Likewise.
31794 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31795 <libm-alias-ldouble.h>.
31796 (fmal): Define using libm_alias_ldouble.
31797 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31798 <libm-alias-ldouble.h>.
31799 (frexpl): Define using libm_alias_ldouble.
31800 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31801 libm_alias_ldouble.
31802 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31803 <libm-alias-ldouble.h>.
31804 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31805 libm_alias_ldouble.
31806 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31807 <libm-alias-ldouble.h>.
31808 (getpayloadl): Define using libm_alias_ldouble.
31809 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31810 <libm-alias-ldouble.h>.
31811 (llrintl): Define using libm_alias_ldouble.
31812 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31813 <libm-alias-ldouble.h>.
31814 (llroundl): Define using libm_alias_ldouble.
31815 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31816 <libm-alias-ldouble.h>.
31817 (lrintl): Define using libm_alias_ldouble.
31818 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31819 <libm-alias-ldouble.h>.
31820 (lroundl): Define using libm_alias_ldouble.
31821 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31822 <libm-alias-ldouble.h>.
31823 (modfl): Define using libm_alias_ldouble.
31824 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31825 <libm-alias-ldouble.h>.
31826 (nextupl): Define using libm_alias_ldouble.
31827 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31828 <libm-alias-ldouble.h>.
31829 (remquol): Define using libm_alias_ldouble.
31830 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31831 <libm-alias-ldouble.h>.
31832 (roundevenl): Define using libm_alias_ldouble.
31833 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31834 <libm-alias-ldouble.h>.
31835 (roundl): Define using libm_alias_ldouble.
31836 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31837 using libm_alias_ldouble.
31838 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31839 <libm-alias-ldouble.h>.
31840 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31841 <libm-alias-ldouble.h>.
31842 (setpayloadsigl): Define using libm_alias_ldouble.
31843 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31844 <libm-alias-ldouble.h>.
31845 (sincosl): Define using libm_alias_ldouble.
31846 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31847 <libm-alias-ldouble.h>.
31848 (sinl): Define using libm_alias_ldouble.
31849 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31850 <libm-alias-ldouble.h>.
31851 (tanhl): Define using libm_alias_ldouble.
31852 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31853 <libm-alias-ldouble.h>.
31854 (tanl): Define using libm_alias_ldouble.
31855 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31856 <libm-alias-ldouble.h>.
31857 (totalorderl): Define using libm_alias_ldouble.
31858 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31859 <libm-alias-ldouble.h>.
31860 (totalordermagl): Define using libm_alias_ldouble.
31861 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31862 libm_alias_ldouble.
31863 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31864 libm_alias_ldouble.
31865
31866 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31867
31868 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31869 memmove_falkor.
31870 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31871 (__libc_ifunc_impl_list): Likewise.
31872 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31873 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31874
31875 * benchtests/bench-memmove-walk.c: New file.
31876 * benchtests/Makefile (string-benchset): Add it.
31877
31878 * benchtests/bench-memset-walk.c: New file.
31879 * benchtests/Makefile (string-benchset): Add it.
31880
31881 * benchtests/bench-memcpy-walk.c: New file.
31882 * benchtests/Makefile (string-benchset): Add it.
31883
31884 2017-10-05 Florian Weimer <fweimer@redhat.com>
31885
31886 nscd: Eliminate compilation time dependency in the build output.
31887 * nscd/nscd_stat.c (STATDATA_VERSION)
31888 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31889 (STATDATA_VERSION_FULL): New macro definitions.
31890 (compilation): Remove.
31891 (struct statdata): Adjust version member.
31892 (send_stats): Set version from STATDATA_VERSION_FULL.
31893 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31894
31895 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31896
31897 * configure.ac (--enable-add-ons): Remove option.
31898 (machine): Do not mention add-ons in comment.
31899 (LIBC_PRECONFIGURE): Likewise.
31900 (add_ons): Remove variable and sanity checks and logic to locate
31901 add-ons.
31902 (add_ons_automatic): Remove variable.
31903 (configured_add_ons): Likewise.
31904 (add_ons_sfx): Likewise.
31905 (add_ons_pfx): Likewise.
31906 (add_on_subdirs): Likewise.
31907 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31908 consideration of add-ons in Implies handling.
31909 (sysdeps_add_ons): Likewise.
31910 * configure: Regenerated.
31911 * libidn/configure.ac: Remove.
31912 * libidn/configure: Likewise.
31913 * sysdeps/unix/inet/configure.ac: New file.
31914 * sysdeps/unix/inet/configure: New generated file.
31915 * sysdeps/unix/inet/Subdirs: Add libidn.
31916 * Makeconfig (sysdeps-srcdirs): Remove variable.
31917 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31918 ($(common-objpfx)config.status): Do not depend on add-on files.
31919 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31920 comment.
31921 (all-subdirs): Do not include $(add-on-subdirs).
31922 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31923 * config.make.in (add-ons): Remove variable.
31924 (add-on-subdirs): Likewise.
31925 (sysdeps-add-ons): Likewise.
31926 * manual/Makefile (add-chapters): Remove.
31927 ($(objpfx)texis): Do not depend on $(add-chapters).
31928 (nonexamples): Do not handle $(add-chapters).
31929 (examples): Do not handle $(add-ons).
31930 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31931 libc-texinfo.sh.
31932 * manual/install.texi (Installation): Do not mention add-ons.
31933 (--enable-add-ons): Do not document configure option.
31934 * INSTALL: Regenerated.
31935 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31936 * manual/maint.texi (Hierarchy Conventions): Do not mention
31937 add-ons.
31938 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31939 --enable-add-ons.
31940 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31941 add-ons.
31942 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31943 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31944
31945 2017-10-05 Andreas Schwab <schwab@suse.de>
31946
31947 [BZ #15142]
31948 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31949 (_IO_flush_all_lockp): Always lock list_all_lock.
31950 (_IO_flush_all_linebuffered): Likewise.
31951 (_IO_unbuffer_all): Likewise.
31952
31953 2017-10-05 Florian Weimer <fweimer@redhat.com>
31954
31955 [BZ #15436]
31956 Do not flush stdio streams on abort.
31957 * stdlib/abort.c (fflush): Remove macro definition.
31958 (abort): Remove stages related to stdio flushing.
31959
31960 2017-10-05 Florian Weimer <fweimer@redhat.com>
31961
31962 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31963
31964 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31965
31966 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31967
31968 2017-10-05 Florian Weimer <fweimer@redhat.com>
31969
31970 * support/support_format_hostent.c (support_format_hostent): Add
31971 more error information for NETDB_INTERNAL.
31972
31973 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31974
31975 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31976 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31977 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31978 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31979 AC_DEFINE if multi-arch is enabled.
31980 * sysdeps/i386/configure: Regenerated.
31981
31982 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31983
31984 * Makeconfig (+link-static-before-libc): Use
31985 $(DEFAULT-LDFLAGS-$(@F)).
31986 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31987 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31988 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31989
31990 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31991
31992 * elf/Makefile (tests): Add tst-main1.
31993 (modules-names): Add tst-main1mod.
31994 ($(objpfx)tst-main1): New.
31995 (CRT-tst-main1): Likewise.
31996 (LDFLAGS-tst-main1): Likewise.
31997 (LDLIBS-tst-main1): Likewise.
31998 (tst-main1mod.so-no-z-defs): Likewise.
31999 * elf/tst-main1.c: New file.
32000 * elf/tst-main1mod.c: Likewise.
32001
32002 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
32003
32004 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
32005
32006 2017-10-04 Joseph Myers <joseph@codesourcery.com>
32007
32008 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
32009 (fma): Define using libm_alias_double.
32010 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
32011 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
32012 <math_ldbl_opt.h>.
32013 (fmal): Do not define as compat symbol here.
32014 * sysdeps/alpha/fpu/s_fma.c: New file.
32015
32016 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
32017
32018 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
32019
32020 2017-10-04 Joseph Myers <joseph@codesourcery.com>
32021
32022 [BZ #22229]
32023 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
32024 <math_ldbl_opt.h>
32025 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
32026 and libc.
32027 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
32028 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
32029 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
32030 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
32031 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
32032 Include <math_ldbl_opt.h>
32033 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
32034 and libc.
32035 (compat_symbol): Undefine and redefine.
32036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
32037 <math_ldbl_opt.h>
32038 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
32039 (compat_symbol): Undefine and redefine.
32040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
32041 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
32042 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
32043 GLIBC_2_1 for libm.
32044 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
32045 GLIBC_2.0 copysignl symbol.
32046 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32047 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
32048
32049 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
32050
32051 2017-10-04 Florian Weimer <fweimer@redhat.com>
32052
32053 * scripts/check-local-headers.sh: Ignore nspr4 header file
32054 directory in addition to nspr.
32055
32056 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
32057
32058 [BZ #17956]
32059 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
32060 * configure: Regenerate.
32061 * crypt/Makefile (nss-cpp-flags): New variable.
32062 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
32063 (CPPFLAGS-md5-crypt.c): Use it.
32064 * scripts/check-local-headers.sh: Ignore nspr header file
32065 directory.
32066
32067 2017-10-04 Andreas Schwab <schwab@suse.de>
32068
32069 * nis/Makefile (services): Remove compat.
32070 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
32071 ($(objpfx)libnss_compat.so): Remove rule.
32072 * nis/Versions (libnss_compat): Remove.
32073 * nss/Makefile (services): Add compat.
32074 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
32075 * nss/Versions (libnss_compat): Define.
32076 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
32077 Don't include <rpc/types.h>. Replace bool_t by bool.
32078 * nss/nss_compat/compat-initgroups.c: Likewise.
32079 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
32080 instead of <rpcsrv/ypclnt.h>.
32081 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
32082 yp_get_default_domain.
32083 * nss/nss_compat/compat-pwd.c: Likewise.
32084 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
32085 yp_get_default_domain.
32086 * nss/nss_compat/nisdomain.c: New file.
32087 * nss/nss_compat/nisdomain.h: Likewise.
32088
32089 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
32090
32091 [BZ #22244]
32092 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
32093 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32094
32095 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
32096
32097 [BZ #22243]
32098 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
32099 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
32100
32101 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32102
32103 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
32104 "movl main@GOTOFF(%ebx), %eax".
32105
32106 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32107
32108 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
32109 allow undefined _DYNAMIC in PIE libc.a.
32110 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32111 Likewse.
32112
32113 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32114
32115 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
32116 check _DYNAMIC.
32117
32118 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32119
32120 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
32121 check _DYNAMIC.
32122
32123 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32124
32125 * math/test-math-iscanonical.cc (error): Replace bool with int.
32126
32127 2017-10-03 Joseph Myers <joseph@codesourcery.com>
32128
32129 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
32130 (modf): Define using libm_alias_double, only if [!__modf].
32131 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
32132 <libm-alias-double.h>.
32133 (modf): Define using libm_alias_double, only if [!__modf].
32134 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
32135 compat symbol here.
32136 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
32137 (weak_alias): Do not undefine and redefine.
32138 (strong_alias): Likewise.
32139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
32140 (weak_alias): Likewise.
32141 (strong_alias): Likewise.
32142
32143 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
32144 (logb): Define using libm_alias_double, only if [!__logb].
32145 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
32146 <libm-alias-double.h>.
32147 (logb): Define using libm_alias_double, only if [!__logb].
32148 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
32149 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
32150 (weak_alias): Do not undefine and redefine.
32151 (strong_alias): Likewise.
32152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
32153 (weak_alias): Likewise.
32154 (strong_alias): Likewise.
32155
32156 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32157
32158 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
32159 Check SHARED instead PIC.
32160
32161 2017-10-03 Joseph Myers <joseph@codesourcery.com>
32162
32163 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
32164 [!__fmaf] (fmaf): Define using libm_alias_float.
32165
32166 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
32167 (frexp): Define using libm_alias_double.
32168 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
32169 <libm-alias-double.h>.
32170 (frexp): Define using libm_alias_double.
32171 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
32172 compat symbol here.
32173
32174 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
32175
32176 [BZ #22235]
32177 * math/math.h: Trivial fix for unbalanced parentheses in comment.
32178 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
32179 (CFLAGS-test-math-iscanonical.cc): New variable.
32180 * math/test-math-iscanonical.cc: New file.
32181 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
32182 Provide a C++ implementation based on function overloading,
32183 rather than using __MATH_TG, which uses C-only builtins.
32184 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
32185 Likewise.
32186 * sysdeps/powerpc/powerpc64le/Makefile
32187 (CFLAGS-test-math-iscanonical.cc): New variable.
32188
32189 2017-10-03 Joseph Myers <joseph@codesourcery.com>
32190
32191 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
32192 (ceil): Define using libm_alias_double.
32193 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
32194 (floor): Define using libm_alias_double.
32195 * sysdeps/ieee754/dbl-64/s_llround.c: Include
32196 <libm-alias-double.h>.
32197 (llround): Define using libm_alias_double.
32198 * sysdeps/ieee754/dbl-64/s_lround.c: Include
32199 <libm-alias-double.h>.
32200 (lround): Define using libm_alias_double.
32201 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
32202 <libm-alias-double.h>.
32203 (nearbyint): Define using libm_alias_double.
32204 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
32205 <libm-alias-double.h>.
32206 (remquo): Define using libm_alias_double.
32207 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
32208 (rint): Define using libm_alias_double.
32209 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
32210 (round): Define using libm_alias_double.
32211 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
32212 (trunc): Define using libm_alias_double.
32213 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
32214 <libm-alias-double.h>.
32215 (ceil): Define using libm_alias_double.
32216 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
32217 <libm-alias-double.h>.
32218 (floor): Define using libm_alias_double.
32219 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
32220 <libm-alias-double.h>.
32221 (llround): Define using libm_alias_double.
32222 [_LP64] (lround): Likewise.
32223 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
32224 <libm-alias-double.h>.
32225 [!_LP64] (lround): Define using libm_alias_double.
32226 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
32227 <libm-alias-double.h>.
32228 (nearbyint): Define using libm_alias_double.
32229 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
32230 <libm-alias-double.h>.
32231 (remquo): Define using libm_alias_double.
32232 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
32233 <libm-alias-double.h>.
32234 (rint): Define using libm_alias_double.
32235 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
32236 <libm-alias-double.h>.
32237 (round): Define using libm_alias_double.
32238 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
32239 <libm-alias-double.h>.
32240 (trunc): Define using libm_alias_double.
32241 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
32242 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
32243 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
32244 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
32245 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
32246 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
32247 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
32248 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
32249 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
32250
32251 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
32252
32253 * math/w_remainder.c: New file.
32254 * math/w_remainderf.c: New file.
32255 * math/w_remainderl.c: New file.
32256
32257 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
32258
32259 * elf/rtld.c (BOOTSTRAP_MAP): New.
32260 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
32261 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32262 Likewise.
32263 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32264 Likewise.
32265 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
32266 Likewise.
32267
32268 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
32269
32270 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
32271 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
32272 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
32273 rtld_hidden_data_ver): Define to empty.
32274 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
32275 __assert_perror_fail): Likewise.
32276 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32277 (__rewinddir): Likewise.
32278 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32279 (__profile_frequency): Likewise.
32280 * include/setjmp.h (__sigsetjmp): Likewise.
32281 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
32282 __libc_sigaction): Likewise.
32283 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
32284 not set hidden attribute.
32285 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
32286 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
32287 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
32288 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
32289 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
32290 __fxstatat64): Likewise.
32291 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32292 (__uname): Likewise.
32293 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32294 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
32295 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
32296 (NO_RTLD_HIDDEN): Set.
32297 * sysdeps/mach/hurd/configure: Refresh.
32298 * config.h.in: Refresh.
32299
32300 2017-10-02 Joseph Myers <joseph@codesourcery.com>
32301
32302 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
32303 (atan): Define using libm_alias_double.
32304 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
32305 (tan): Define using libm_alias_double.
32306 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
32307 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
32308
32309 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
32310 define as weak alias of __atan. Do not define any aliases if
32311 [__atan].
32312 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
32313 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
32314 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
32315 as weak alias of __tan. Do not define any aliases if [__tan].
32316 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
32317 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
32318 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
32319 __atan.
32320 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
32321 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
32322 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
32323 and define as weak alias of __atan.
32324 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
32325 __atan.
32326 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
32327 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
32328 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
32329 define as weak alias of __tan.
32330
32331 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32332
32333 * math/w_lgamma.c: New file.
32334 * math/w_lgammaf.c: New file.
32335 * math/w_lgammal.c: New file.
32336
32337 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32338
32339 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
32340 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
32341 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
32342 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
32343 * sysdeps/ieee754/flt-32/w_logf.c: New file.
32344 * sysdeps/ieee754/flt-32/w_powf.c: New file.
32345 * sysdeps/i386/fpu/w_log2f.c: New file.
32346 * sysdeps/i386/fpu/w_logf.c: New file.
32347 * sysdeps/i386/fpu/w_powf.c: New file.
32348 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
32349 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
32350 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
32351
32352 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32353 H.J. Lu <hongjiu.lu@intel.com>
32354
32355 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
32356 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
32357 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
32358 * sysdeps/ieee754/flt-32/w_expf.c: New file.
32359 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
32360 the new expf code.
32361 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
32362 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
32363 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
32364 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
32365 * sysdeps/i386/fpu/w_exp2f.c: New file.
32366 * sysdeps/i386/fpu/w_expf.c: New file.
32367 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
32368 * sysdeps/x86_64/fpu/w_expf.c: New file.
32369
32370 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32371
32372 * math/Versions (logf): New libm symbol at GLIBC_2.27.
32373 (log2f): Likewise.
32374 (powf): Likewise.
32375 * math/w_log2f.c: New file.
32376 * math/w_logf.c: New file.
32377 * math/w_powf.c: New file.
32378 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
32379 * math/w_logf_compat.c (__logf_compat): Likewise.
32380 * math/w_powf_compat.c (__powf_compat): Likewise.
32381 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
32382 * sysdeps/ia64/fpu/e_logf.S: Likewise.
32383 * sysdeps/ia64/fpu/e_powf.S: Likewise.
32384 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32385 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32386 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32387 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32388 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32389 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32390 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32391 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32392 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32393 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32394 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32395 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32397 Likewise.
32398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32399 Likewise.
32400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32401 Likewise.
32402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32403 Likewise.
32404 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32405 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32406 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32407 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32408 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32409 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32410 Likewise.
32411 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32412 Likewise.
32413 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32414 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32415 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32416
32417 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
32418
32419 * sysdeps/powerpc/powerpc64/multiarch/Makefile
32420 (sysdep_routines): Add memrchr_power8.
32421 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
32422 (memrchr): Add __memrchr_power8 to list of memrchr functions.
32423 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
32424 New file.
32425 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
32426 (memrchr): Add __memrchr_power8 to ifunc list.
32427 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
32428
32429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32430
32431 [BZ #18822]
32432 * sysdeps/unix/sysv/linux/posix_fadvise64.c
32433 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
32434 libc_hidden_def.
32435 * sysdeps/unix/sysv/linux/posix_fallocate64.c
32436 (__posix_fallocate64_l64): Likewise.
32437
32438 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32439
32440 [BZ #18822]
32441 * sysdeps/unix/sysv/linux/sched_setaffinity.c
32442 (__sched_setaffinity_new): Add libc_hidden_proto and
32443 libc_hidden_def.
32444
32445 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32446
32447 [BZ #18822]
32448 * include/glob.h (__glob64): Add libc_hidden_proto.
32449 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
32450 libc_hidden_def.
32451
32452 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32453
32454 [BZ #18822]
32455 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
32456 attribute_hidden.
32457
32458 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32459
32460 [BZ #18822]
32461 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
32462
32463 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32464
32465 [BZ #18822]
32466 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
32467 libc_hidden_def.
32468
32469 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32470
32471 [BZ #18822]
32472 * csu/version.c (__libc_print_version): Add attribute_hidden.
32473
32474 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32475
32476 [BZ #18822]
32477 * include/libc-internal.h (__init_misc): Add attribute_hidden.
32478
32479 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32480
32481 [BZ #18822]
32482 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
32483
32484 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32485
32486 [BZ #18822]
32487 * nscd/nscd_helper.c (__nis_hash): New prototype.
32488
32489 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32490
32491 [BZ #18822]
32492 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
32493 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
32494 libc_hidden_def.
32495 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
32496 * termios/tcgetattr.c (__tcgetattr): Likewise.
32497
32498 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32499
32500 [BZ #18822]
32501 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
32502 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
32503 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
32504 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
32505 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
32506
32507 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32508
32509 [BZ #18822]
32510 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
32511
32512 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32513
32514 [BZ #18822]
32515 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
32516 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
32517
32518 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32519
32520 [BZ #18822]
32521 * intl/hash-string.h (__hash_string): Add attribute_hidden.
32522
32523 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32524
32525 [BZ #18822]
32526 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
32527 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
32528
32529 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32530
32531 [BZ #18822]
32532 * include/ifreq.h: New file.
32533 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
32534 (__ifreq): Likewise.
32535 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
32536 (__ifreq): Likewise.
32537
32538 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32539
32540 [BZ #18822]
32541 * include/idna.h: New file.
32542 * inet/getnameinfo.c: Include <idna.h> instead of
32543 <libidn/idna.h>.
32544 (__idna_to_unicode_lzlz): Removed.
32545 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
32546 <libidn/idna.h>.
32547 (__idna_to_ascii_lz): Removed.
32548 (__idna_to_unicode_lzlz): Likewise.
32549
32550 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32551
32552 [BZ #18822]
32553 * include/plural-exp.h: New file.
32554 * intl/plural-exp.c: Include <plural-exp.h> instead of
32555 "plural-exp.h".
32556
32557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32558
32559 [BZ #18822]
32560 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
32561 "getsourcefilter.h".
32562 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
32563 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
32564 "getsourcefilter.h".
32565 (__get_sol): Removed.
32566
32567 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32568
32569 [BZ #18822]
32570 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
32571 to ...
32572 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
32573
32574 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32575
32576 [BZ #18822]
32577 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
32578 attribute_hidden.
32579
32580 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32581
32582 [BZ #18822]
32583 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
32584
32585 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32586
32587 [BZ #18822]
32588 * include/search.h (__tdestroy): Add libc_hidden_proto.
32589 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
32590
32591 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32592
32593 [BZ #18822]
32594 * include/assert.h (__assert_fail_base): Add attribute_hidden.
32595
32596 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32597
32598 [BZ #18822]
32599 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
32600 attribute_hidden.
32601
32602 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32603
32604 [BZ #18822]
32605 * include/signal.h (__kill): Add libc_hidden_proto.
32606 (__sigblock): Likewise.
32607 (__sigprocmask): Likewise.
32608 (__sigaltstack): Likewise.
32609 * signal/kill.c (__kill): Add libc_hidden_def.
32610 * signal/sigblock.c (__sigblock): Likewise.
32611 * signal/sigprocmask.c (__sigprocmask): Likewise.
32612 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
32613 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
32614 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32615 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32616 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32617 Likewise.
32618 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32619 Likewise.
32620 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32621 (__sigprocmask): Likewise.
32622 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32623 Likewise.
32624 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32625 (__sigprocmask): Likewise.
32626 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32627 Likewise.
32628
32629 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32630
32631 [BZ #18822]
32632 * include/string.h (__strsep): Add libc_hidden_proto.
32633 * string/strsep.c (__strsep): Add libc_hidden_def.
32634
32635 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32636
32637 [BZ #18822]
32638 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32639 attribute_hidden.
32640 (__spawni): Likewise.
32641
32642 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32643
32644 [BZ #18822]
32645 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32646 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32647 libc_hidden_def.
32648
32649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32650
32651 [BZ #18822]
32652 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32653
32654 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32655
32656 [BZ #18822]
32657 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32658 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32659 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32660 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32661 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32662 Likewise.
32663 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32664 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32665
32666 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32667
32668 [BZ #18822]
32669 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32670 (__dcigettext): Likewise.
32671
32672 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32673
32674 [BZ #18822]
32675 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32676 libc_hidden_proto.
32677 (__get_nprocs): Likewise.
32678 (__get_phys_pages): Likewise.
32679 (__get_avphys_pages): Likewise.
32680 (__get_child_max): Add attribute_hidden.
32681 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32682 (__get_nprocs): Likewise.
32683 (__get_phys_pages): Likewise.
32684 (__get_avphys_pages): Likewise.
32685 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32686 libc_hidden_def.
32687 (__get_nprocs): Likewise.
32688 (__get_phys_pages): Likewise.
32689 (__get_avphys_pages): Likewise.
32690 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32691 libc_hidden_def.
32692 (__get_nprocs_conf): Likewise.
32693 (__get_phys_pages): Likewise.
32694 (__get_avphys_pages): Likewise.
32695
32696 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32697
32698 [BZ #18822]
32699 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32700 attribute_hidden.
32701 (__netlink_close): Likewise.
32702 (__netlink_free_handle): Likewise.
32703 (__netlink_request): Likewise.
32704
32705 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32706
32707 [BZ #18822]
32708 * include/rpc/rpc.h (__rpc_thread_variables): Add
32709 attribute_hidden.
32710 (__rpc_thread_svc_cleanup): Likewise.
32711 (__rpc_thread_clnt_cleanup): Likewise.
32712 (__rpc_thread_key_cleanup): Likewise.
32713
32714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32715
32716 [BZ #18822]
32717 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32718 (__writev): Likewise.
32719 * misc/readv.c (__readv): Add libc_hidden_def.
32720 * misc/writev.c (__writev): Likewise.
32721 * sysdeps/posix/readv.c (__readv): Likewise.
32722 * sysdeps/posix/writev.c (__writev): Likewise.
32723 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32724 (__readv): Likewise.
32725 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32726 (__writev): Likewise.
32727
32728 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32729
32730 [BZ #18822]
32731 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32732 (__regcomp): Add libc_hidden_proto.
32733 (__regexec): Likewise.
32734 (__regfree): Likewise.
32735 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32736 (__regfree): Likewise.
32737 * posix/regexec.c (__regexec): Likewise.
32738
32739 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32740
32741 [BZ #18822]
32742 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32743 (__getutent): Likewise.
32744 (__getutid): Likewise.
32745 (__getutline): Likewise.
32746 (__pututline): Likewise.
32747 (__getutent_r): Likewise.
32748 (__getutid_r): Likewise.
32749 (__getutline_r): Likewise.
32750 (__utmpname): Add attribute_hidden.
32751 (__setutent): Likewise.
32752 (__endutent): Likewise.
32753 * login/getutent.c (__getutent): Add libc_hidden_def.
32754 * login/getutent_r.c (__getutent_r): Likewise.
32755 (__pututline): Likewise.
32756 * login/getutid.c (__getutid): Likewise.
32757 * login/getutid_r.c (__getutid_r): Likewise.
32758 * login/getutline.c (__getutline): Likewise.
32759 * login/getutline_r.c (__getutline_r): Likewise.
32760 * login/updwtmp.c (__updwtmp): Likewise.
32761
32762 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32763
32764 [BZ #18822]
32765 * include/dirent.h (__opendir): Always add attribute_hidden.
32766 (__fdopendir): Likewise.
32767 (__closedir): Likewise.
32768 (__readdir): Likewise.
32769 (__readdir64): Add libc_hidden_proto.
32770 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32771 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32772 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32773 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32774 New alias.
32775
32776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32777
32778 [BZ #18822]
32779 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32780 * include/netdb.h (__gethostbyaddr_r): Likewise.
32781 (__gethostbyname_r): Likewise.
32782 (__gethostbyname2_r): Likewise.
32783 (__getnetbyaddr_r): Likewise.
32784 (__getnetbyname_r): Likewise.
32785 (__getservbyname_r): Likewise.
32786 (__getservbyport_r): Likewise.
32787 (__getprotobyname_r): Likewise.
32788 (__getprotobynumber_r): Likewise.
32789 (__getnetgrent_r): Likewise.
32790 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32791 (__getrpcbynumber_r): Likewise.
32792 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32793
32794 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32795
32796 [BZ #18822]
32797 * include/stdio.h (__fcloseall): Add attribute_hidden.
32798 (__getline): Likewise.
32799 (__path_search): Likewise.
32800 (__gen_tempname): Likewise.
32801 (__libc_message): Likewise.
32802 (__flockfile): Likewise.
32803 (__funlockfile): Likewise.
32804 (__fxprintf): Likewise.
32805 (__fxprintf_nocancel): Likewise.
32806
32807 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32808
32809 [BZ #18822]
32810 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32811 (__sgetsgent_r): Likewise.
32812
32813 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32814
32815 [BZ #18822]
32816 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32817 (__statfs64): Likewise.
32818 (__fstatfs64): Likewise.
32819 * include/sys/statvfs.h (__statvfs64): Likewise.
32820 (__fstatvfs64): Likewise.
32821 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32822 (__statfs_filesize_max): Likewise.
32823 (__statfs_symlinks): Likewise.
32824 (__statfs_chown_restricted): Likewise.
32825
32826 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32827
32828 [BZ #18822]
32829 * include/time.h (__tzstring): Add attribute_hidden.
32830 (__tzfile_read): Likewise.
32831 (__tzfile_compute): Likewise.
32832 (__tzfile_default): Likewise.
32833 (__tzset_parse_tz): Likewise.
32834 (__offtime): Likewise.
32835 (__asctime_r): Likewise.
32836 (__tzset): Likewise.
32837 (__tz_convert): Likewise.
32838 (__getdate_r): Likewise.
32839 (__getclktck): Likewise.
32840
32841 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32842
32843 [BZ #18822]
32844 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32845 (__nscd_unmap): Likewise.
32846 (__nscd_cache_search): Likewise.
32847 (__nscd_get_nl_timestamp): Likewise.
32848 (__nscd_getpwnam_r): Likewise.
32849 (__nscd_getpwuid_r): Likewise.
32850 (__nscd_getgrnam_r): Likewise.
32851 (__nscd_getgrgid_r): Likewise.
32852 (__nscd_gethostbyname_r): Likewise.
32853 (__nscd_gethostbyname2_r): Likewise.
32854 (__nscd_gethostbyaddr_r): Likewise.
32855 (__nscd_getai): Likewise.
32856 (__nscd_getgrouplist): Likewise.
32857 (__nscd_getservbyname_r): Likewise.
32858 (__nscd_getservbyport_r): Likewise.
32859 (__nscd_innetgr): Likewise.
32860 (__nscd_setnetgrent): Likewise.
32861
32862 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32863
32864 [BZ #18822]
32865 * include/gmp.h: Declare internal functions only if _ISOMAC is
32866 undefined.
32867 (__mpn_extract_double): Add attribute_hidden.
32868 (__mpn_extract_long_double): Likewise.
32869 (__mpn_extract_float128): Likewise.
32870 (__mpn_construct_float): Likewise.
32871 (__mpn_construct_double): Likewise.
32872 (__mpn_construct_long_double): Likewise.
32873 (__mpn_construct_float128): Likewise.
32874 (mpn_add_1): Likewise.
32875 (mpn_addmul_1): Likewise.
32876 (mpn_add_n): Likewise.
32877 (mpn_cmp): Likewise.
32878 (mpn_divrem): Likewise.
32879 (mpn_lshift): Likewise.
32880 (mpn_mul): Likewise.
32881 (mpn_mul_1): Likewise.
32882 (mpn_rshift): Likewise.
32883 (mpn_sub_1): Likewise.
32884 (mpn_submul_1): Likewise.
32885 (mpn_sub_n): Likewise.
32886
32887 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32888
32889 [BZ #18822]
32890 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32891 (__wcscat): Likewise.
32892 (__btowc): Likewise.
32893 (__wcrtomb): Likewise.
32894 (__mbsrtowcs): Likewise.
32895 (__wcsrtombs): Likewise.
32896 (__mbsnrtowcs): Likewise.
32897 (__wcsnrtombs): Likewise.
32898 (__wcsncpy): Likewise.
32899 (__wcpncpy): Likewise.
32900 (__wmemcpy): Likewise.
32901 (__wmempcpy): Likewise.
32902 (__wmemmove): Likewise.
32903 (__wcschrnul): Likewise.
32904 (__vfwscanf): Likewise.
32905 (__vswprintf): Likewise.
32906 (__fwprintf): Likewise.
32907 (__vfwprintf): Likewise.
32908
32909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32910
32911 [BZ #18822]
32912 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32913 (__getgrgid_r): Likewise.
32914 (__getgrnam_r): Likewise.
32915 * include/pwd.h (__getpwuid_r): Likewise.
32916 (__getpwnam_r): Likewise.
32917 (__fgetpwent_r): Likewise.
32918 * include/shadow.h (__getspnam_r): Likewise.
32919 (__sgetspent_r): Likewise.
32920 (__fgetspent_r): Likewise.
32921
32922 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32923
32924 [BZ #18822]
32925 * include/unistd.h (__access): Add attribute_hidden.
32926 (__lseek64): Likewise.
32927 (__libc_pread64): Likewise.
32928 (__pipe2): Likewise.
32929 (__sleep): Likewise.
32930 (__chdir): Likewise.
32931 (__fchdir): Likewise.
32932 (__getcwd): Likewise.
32933 (__rmdir): Likewise.
32934 (__execvpe): Likewise.
32935 (__execve): Likewise.
32936 (__setsid): Likewise.
32937 (__getuid): Likewise.
32938 (__geteuid): Likewise.
32939 (__getgid): Likewise.
32940 (__getegid): Likewise.
32941 (__getgroups): Likewise.
32942 (__group_member): Likewise.
32943 (__ttyname_r): Likewise.
32944 (__isatty): Likewise.
32945 (__readlink): Likewise.
32946 (__unlink): Likewise.
32947 (__gethostname): Likewise.
32948 (__profil): Likewise.
32949 (__getdtablesize): Likewise.
32950 (__brk): Likewise.
32951 (__ftruncate): Likewise.
32952 (__ftruncate64): Likewise.
32953
32954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32955
32956 [BZ #18822]
32957 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32958 * argp/argp-fs-xinl.c: Likewise.
32959 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32960 * argp/argp-parse.c: Include <argp.h>.
32961 * argp/argp-xinl.c: Likewise.
32962 * include/argp-fmtstream.h: New file.
32963 * include/argp.h (__argp_error): Add attribute_hidden.
32964 (__argp_failure): Likewise.
32965 (__argp_input): Likewise.
32966 (__argp_state_help): Likewise.
32967
32968 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32969
32970 [BZ #18822]
32971 * include/wchar.h (____wcstof_l_internal): New prototype.
32972 (____wcstod_l_internal): Likewise.
32973 (____wcstold_l_internal): Likewise.
32974 (____wcstol_l_internal): Likewise.
32975 (____wcstoul_l_internal): Likewise.
32976 (____wcstoll_l_internal): Likewise.
32977 (____wcstoull_l_internal): Likewise.
32978 (____wcstof128_l_internal): Likewise.
32979 * sysdeps/ieee754/float128/wcstof128.c
32980 (____wcstof128_l_internal): Removed.
32981 * sysdeps/ieee754/float128/wcstof128_l.c
32982 (____wcstof128_l_internal): Likewise.
32983 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32984 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32985 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32986 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32987 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32988 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32989 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32990 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32991 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32992 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32993
32994 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32995
32996 [BZ #18822]
32997 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32998 instead of <sys/statvfs.h>.
32999 (__internal_statvfs): Removed.
33000 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
33001 instead of <sys/statvfs.h>.
33002 (__internal_statvfs64): Removed.
33003 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
33004 "internal_statvfs.h" instead of <sys/statvfs.h>.
33005 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
33006 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
33007 instead of <sys/statvfs.h>.
33008 (__internal_statvfs): Removed.
33009 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
33010 instead of <sys/statvfs.h>.
33011 (__internal_statvfs64): Removed.
33012
33013 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33014
33015 [BZ #18822]
33016 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
33017 (__gconv_close): Likewise.
33018 (__gconv): Likewise.
33019 (__gconv_find_transform): Likewise.
33020 (__gconv_lookup_cache): Likewise.
33021 (__gconv_compare_alias_cache): Likewise.
33022 (__gconv_load_cache): Likewise.
33023 (__gconv_get_path): Likewise.
33024 (__gconv_close_transform): Likewise.
33025 (__gconv_release_cache): Likewise.
33026 (__gconv_find_shlib): Likewise.
33027 (__gconv_release_shlib): Likewise.
33028 (__gconv_get_builtin_trans): Likewise.
33029 (__gconv_compare_alias): Likewise.
33030 * include/dlfcn.h (_dlerror_run): Likewise.
33031 * include/stdio.h (__fortify_fail_abort): Likewise.
33032 * include/time.h (__tz_compute): Likewise.
33033 (__strptime_internal): Likewise.
33034 * intl/gettextP.h (_nl_find_domain): Likewise.
33035 (_nl_load_domain): Likewise.
33036 (_nl_find_msg): Likewise.
33037 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
33038 (EXTRACT_PLURAL_EXPRESSION): Likewise.
33039 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
33040 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
33041 (__gai_find_request): Likewise.
33042 (__gai_remove_request): Likewise.
33043 (__gai_notify): Likewise.
33044 (__gai_notify_only): Likewise.
33045 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
33046 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33047 (_dl_non_dynamic_init): Likewise.
33048 (_dl_aux_init): Likewise.
33049 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
33050 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
33051 Likewise.
33052 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
33053 (__wcsmbs_clone_conv): Likewise.
33054 (__wcsmbs_named_conv): Likewise.
33055
33056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33057
33058 [BZ #18822]
33059 * include/stdlib.h (__random): Add attribute_hidden.
33060 (__random_r): Likewise.
33061 (__srandom_r): Likewise.
33062 (__initstate_r): Likewise.
33063 (__setstate_r): Likewise.
33064 (__erand48_r): Likewise.
33065 (__nrand48_r): Likewise.
33066 (__jrand48_r): Likewise.
33067 (__srand48_r): Likewise.
33068 (__seed48_r): Likewise.
33069 (__lcong48_r): Likewise.
33070 (__drand48_iterate): Likewise.
33071 (__setenv): Likewise.
33072 (__unsetenv): Likewise.
33073 (__clearenv): Likewise.
33074 (__ptsname_r): Likewise.
33075 (__posix_openpt): Likewise.
33076 (__add_to_environ): Likewise.
33077 (__realpath): Add libc_hidden_proto.
33078 (__ecvt_r): Likewise.
33079 (__fcvt_r): Likewise.
33080 (__qecvt_r): Likewise.
33081 (__qfcvt_r): Likewise.
33082 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
33083 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
33084
33085 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
33086
33087 [BZ #18822]
33088 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
33089 * include/time.h (__mktime_internal): Likewise.
33090 * libio/iolibio.h (__fopen_internal): Likewise.
33091
33092 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
33093
33094 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
33095 pointer in frame.
33096 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
33097 Correct offset used to restore PIC register.
33098
33099 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
33100
33101 [BZ libc/22165]
33102 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
33103 code to load address of __getcontext_ret when generating PIC code.
33104
33105 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
33106
33107 * elf/Makefile (tests-static-internal): Add
33108 tst-tls1-static-non-pie.
33109 (LDFLAGS-tst-tls1-static-non-pie): New.
33110 * elf/tst-tls1-static-non-pie.c: New file.
33111
33112 2017-09-29 Joseph Myers <joseph@codesourcery.com>
33113
33114 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
33115 (asinh): Define using libm_alias_double.
33116 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
33117 (cbrt): Define using libm_alias_double.
33118 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
33119 <libm-alias-double.h>.
33120 (copysign): Define using libm_alias_double.
33121 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
33122 (erf): Define using libm_alias_double.
33123 (erfc): Likewise.
33124 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
33125 (expm1): Define using libm_alias_double.
33126 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
33127 (fabs): Define using libm_alias_double.
33128 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
33129 libm_alias_double.
33130 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
33131 <libm-alias-double.h>.
33132 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
33133 libm_alias_double.
33134 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
33135 <libm-alias-double.h>.
33136 (getpayload): Define using libm_alias_double.
33137 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
33138 <libm-alias-double.h>.
33139 (llrint): Define using libm_alias_double.
33140 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
33141 (lrint): Define using libm_alias_double.
33142 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
33143 <libm-alias-double.h>.
33144 (nextup): Define using libm_alias_double.
33145 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
33146 <libm-alias-double.h>.
33147 (roundeven): Define using libm_alias_double.
33148 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
33149 libm_alias_double.
33150 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
33151 <libm-alias-double.h>.
33152 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
33153 using libm_alias_double.
33154 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
33155 (cos): Define using libm_alias_double.
33156 (sin): Likewise.
33157 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
33158 <libm-alias-double.h>.
33159 (sincos): Define using libm_alias_double.
33160 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
33161 (tanh): Define using libm_alias_double.
33162 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
33163 <libm-alias-double.h>.
33164 (totalorder): Define using libm_alias_double.
33165 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
33166 <libm-alias-double.h>.
33167 (totalordermag): Define using libm_alias_double.
33168 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
33169 libm_alias_double.
33170 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
33171 libm_alias_double.
33172 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
33173 <libm-alias-double.h>.
33174 (getpayload): Define using libm_alias_double.
33175 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
33176 <libm-alias-double.h>.
33177 (roundeven): Define using libm_alias_double.
33178 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
33179 <libm-alias-double.h>.
33180 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
33181 <libm-alias-double.h>.
33182 (totalorder): Define using libm_alias_double.
33183 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
33184 <libm-alias-double.h>.
33185 (totalordermag): Define using libm_alias_double.
33186 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
33187 libc compat symbol here.
33188 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
33189 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
33190 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
33191 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
33192 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
33193 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
33194 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
33195 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
33196 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
33197 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
33198
33199 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
33200
33201 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
33202 _dl_relocate_static_pie instead of _dl_start to compute load
33203 address in static PIE. Return 0 if _DYNAMIC is undefined for
33204 static executable.
33205
33206 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
33207
33208 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
33209 _DYNAMIC is undefined for static executable.
33210
33211 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
33212
33213 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
33214
33215 2017-09-29 Joseph Myers <joseph@codesourcery.com>
33216
33217 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33218
33219 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
33220
33221 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
33222 (__ieee754_lgamma_r): Use fabs rather than __fabs.
33223 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33224 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33225 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
33226 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
33227 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33228 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
33229 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
33230 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
33231 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
33232 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
33233 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33234 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
33235 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
33236 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
33237 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
33238
33239 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
33240
33241 * math/bits/cmathcalls.h (cimag): Remove inline.
33242 (creal): Remove inline.
33243 (conj): Remove inline.
33244
33245 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
33246
33247 * math/Makefile (type-float-routines): Add e_powf_log2_data.
33248 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
33249 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
33250 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
33251 (issignalingf_inline): Likewise.
33252 (POWF_LOG2_TABLE_BITS): Likewise.
33253 (POWF_LOG2_POLY_ORDER): Likewise.
33254 (POWF_SCALE_BITS): Likewise.
33255 (POWF_SCALE): Likewise.
33256 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
33257 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
33258 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
33259
33260 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
33261
33262 * math/Makefile (type-float-routines): Add e_log2f_data.
33263 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
33264 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
33265 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
33266 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
33267 * sysdeps/i386/fpu/e_log2f_data.c: New file.
33268 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
33269 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
33270
33271 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
33272
33273 * math/Makefile (type-float-routines): Add e_logf_data.
33274 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
33275 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
33276 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
33277 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
33278 * sysdeps/i386/fpu/e_logf_data.c: New file.
33279 * sysdeps/ia64/fpu/e_logf_data.c: New file.
33280 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
33281
33282 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
33283
33284 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
33285 undefined _DYNAMIC in PIE libc.a.
33286 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
33287 Likewse.
33288
33289 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
33290
33291 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
33292 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
33293 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
33294 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
33295 (__signbit): Remove.
33296 (__signbitl): Remove.
33297 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
33298 (__signbit): Remove.
33299 (__signbitl): Remove.
33300 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
33301 (__signbit): Remove.
33302 (__signbitl): Remove.
33303 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
33304 (__signbit): Remove.
33305 (__signbitl): Remove.
33306 * sysdeps/tile/bits/mathinline.h: Delete file.
33307 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
33308 (__signbit): Remove.
33309 (__signbitl): Remove.
33310
33311 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
33312
33313 * math/math.h: Improve handling of C99 isgreater macros.
33314 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
33315 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
33316 * sysdeps/powerpc/bits/mathinline.h: Likewise.
33317 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
33318 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
33319
33320 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
33321
33322 * sysdeps/aarch64/libm-test-ulps: Update.
33323
33324 2017-09-28 Joseph Myers <joseph@codesourcery.com>
33325
33326 [BZ #22225]
33327 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
33328 math_opt_barrier on argument when doing arithmetic on it.
33329 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
33330 Likewise. Use math_force_eval not math_opt_barrier after
33331 arithmetic.
33332 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
33333 math_opt_barrier on argument when doing arithmetic on it.
33334 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33335 Likewise.
33336
33337 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
33338
33339 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
33340 libc_hidden_def.
33341 (__freeifaddrs): Likewise.
33342
33343 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
33344
33345 * include/dirent.h (__dirfd): New declaration.
33346 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
33347 alias.
33348 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
33349 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
33350 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
33351 * include/unistd.h (__revoke): New declaration.
33352 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
33353 alias.
33354 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
33355 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
33356 revoke.
33357 * include/dirent.h (__seekdir): New declaration.
33358 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
33359 redefine as weak alias.
33360 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
33361 of seekdir.
33362 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
33363 and use libc_hidden_def on them.
33364 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
33365 them.
33366 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
33367 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
33368 instead of getifaddrs and freeifaddrs.
33369
33370 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
33371
33372 [BZ #18822]
33373 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
33374 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
33375 (__dso_handle): Remove declaration.
33376 * dlfcn/tstatexit.c (__dso_handle): Removed.
33377 (main): Don't check __dso_handle.
33378 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
33379 (main): Don't check __dso_handle.
33380 * include/dso_handle.h: New file.
33381 * malloc/mtrace.c: Include <dso_handle.h>.
33382 (mtrace): Pass __dso_handle directly.
33383 * nptl/pthread_atfork.c: Include <dso_handle.h>.
33384 (__dso_handle): Remove declaration.
33385 (__pthread_atfork): Pass __dso_handle directly.
33386 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
33387 (__dso_handle): Removed.
33388 * posix/wordexp-test.c: Include <dso_handle.h>.
33389 (__dso_handle): Remove declaration.
33390 (__app_register_atfork): Pass __dso_handle directly.
33391 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
33392 (__dso_handle): Remove declaration.
33393 (at_quick_exit): Pass __dso_handle directly.
33394 * stdlib/atexit.c: Include <dso_handle.h>.
33395 (__dso_handle): Remove declaration.
33396 (atexit): Pass __dso_handle directly.
33397 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
33398 (__dso_handle): Removed.
33399
33400 2017-09-26 Joseph Myers <joseph@codesourcery.com>
33401
33402 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
33403 using VDSO.
33404
33405 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
33406
33407 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
33408 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
33409 values to correct default value for given type.
33410
33411 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
33412
33413 [BZ #22101]
33414 * elf/Makefile (tests): Add tst-debug1.
33415 ($(objpfx)tst-debug1): New.
33416 ($(objpfx)tst-debug1.out): Likewise.
33417 ($(objpfx)tst-debug1mod1.so): Likewise.
33418 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
33419 with p_filesz == 0.
33420 * elf/tst-debug1.c: New file.
33421
33422 2017-09-26 Joseph Myers <joseph@codesourcery.com>
33423
33424 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
33425 Define using __ifunc.
33426
33427 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33428
33429 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
33430 exp2f() values.
33431
33432 2017-09-26 Joseph Myers <joseph@codesourcery.com>
33433
33434 [BZ #22156]
33435 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
33436
33437 2017-09-26 Florian Weimer <fweimer@redhat.com>
33438
33439 * resolv/Makefile (tests-internal): Fix typo in comment.
33440
33441 2017-09-26 Florian Weimer <fweimer@redhat.com>
33442
33443 * resolv/nss_dns/dns-host.c: Fix typo in comment.
33444
33445 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33446
33447 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
33448 Use an union instead of a max_align_t array for __space,
33449 so that __space is the same size on all platforms.
33450 * malloc/scratch_buffer_grow_preserve.c
33451 (__libc_scratch_buffer_grow_preserve): Likewise.
33452
33453 [BZ #22183]
33454 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
33455 version to 2.
33456 * posix/Makefile (routines): Add glob-lstat-compat and
33457 glob64-lstat-compat.
33458 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
33459 * posix/glob-lstat-compat.c: New file.
33460 * posix/glob64-lstat-compat.c: Likewise.
33461 * posix/tst-glob_lstat_compat.c: Likewise.
33462 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
33463 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
33464 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
33465 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
33466 Likewise.
33467 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
33468 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33469 * posix/glob.c (glob_lstat): New function.
33470 (glob): Rename to __glob and add versioned symbol to 2.27.
33471 (glob_in_dir): Use glob_lstat.
33472 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
33473 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
33474 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
33475 2.27.
33476 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
33477 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
33478 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
33479 gl_lstat on glob call.
33480 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
33481 and glob64 symbols.
33482 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
33483 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
33484 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
33485 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
33486 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
33487 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
33488 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
33489 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
33490 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
33491 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
33492 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
33493 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
33494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
33495 Likewise.
33496 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
33497 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
33498 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
33499 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
33500 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
33501 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
33502 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
33503 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
33504 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
33505 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
33506 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
33507 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
33508
33509 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
33510
33511 * configure.ac (AS): Require binutils 2.25 or later.
33512 * configure: Regenerated.
33513
33514 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
33515
33516 [BZ #22207]
33517 * stdlib/test-atexit-race-common.c (do_test): Minimize required
33518 VM size.
33519
33520 2017-09-25 DJ Delorie <dj@redhat.com>
33521
33522 [BZ #22161]
33523 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
33524 resetting timeout.
33525
33526 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
33527
33528 * sysdeps/ieee754/dbl-64/sincos32.h
33529 [SINCCOS32_H]: Remove define.
33530 [SINCOS32_H]: Define.
33531
33532 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33533
33534 * math/Versions (expf): New libm symbol at GLIBC_2.27.
33535 (exp2f): Likewise.
33536 * math/w_exp2f.c: New file.
33537 * math/w_expf.c: New file.
33538 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
33539 * math/w_expf_compat.c (__expf_compat): Likewise.
33540 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
33541 * sysdeps/ia64/fpu/e_expf.S: Likewise.
33542 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
33543 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
33544 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
33545 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
33546 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
33547 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
33548 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
33549 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
33550 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
33551 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
33552 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
33553 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
33554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
33555 Likewise.
33556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
33557 Likewise.
33558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
33559 Likewise.
33560 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
33561 Likewise.
33562 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
33563 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
33564 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
33565 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
33566 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
33567 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
33568 Likewise.
33569 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
33570 Likewise.
33571 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
33572 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
33573 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
33574
33575 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33576
33577 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
33578 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
33579 (roundtoint, converttoint): Likewise.
33580 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
33581 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
33582 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
33583 * sysdeps/ieee754/flt-32/math_config.h: New file.
33584 * sysdeps/ieee754/flt-32/math_errf.c: New file.
33585 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
33586 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
33587 * sysdeps/i386/fpu/math_errf.c: New file.
33588 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
33589 * sysdeps/ia64/fpu/math_errf.c: New file.
33590 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
33591 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
33592
33593 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
33594
33595 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
33596 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
33597 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
33598 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
33599 to make sure that these symbols are defined.
33600 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
33601 of <limits.h>
33602 (__need_NULL): Do not define.
33603 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
33604 alignment.
33605 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
33606 CMGROUP_MAX, cmsgcred): Do not define.
33607 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
33608 NULL.
33609 * bits/socket.h: Likewise.
33610 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
33611 __gettimeofday instead of gettimeofday.
33612 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
33613 instead of settimeofday.
33614
33615 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33616
33617 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33618 (asinhf): Define using libm_alias_float.
33619 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33620 (atanf): Define using libm_alias_float.
33621 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33622 (cbrtf): Define using libm_alias_float.
33623 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33624 (ceilf): Define using libm_alias_float.
33625 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33626 <libm-alias-float.h>.
33627 (copysignf): Define using libm_alias_float.
33628 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33629 (cosf): Define using libm_alias_float.
33630 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33631 (erff): Define using libm_alias_float.
33632 (erfcf): Likewise.
33633 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33634 (expm1f): Define using libm_alias_float.
33635 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33636 (fabsf): Define using libm_alias_float.
33637 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33638 (floorf): Define using libm_alias_float.
33639 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33640 (frexpf): Define using libm_alias_float.
33641 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33642 libm_alias_float.
33643 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33644 <libm-alias-float.h>.
33645 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33646 libm_alias_float.
33647 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33648 <libm-alias-float.h>.
33649 (getpayloadf): Define using libm_alias_float.
33650 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33651 <libm-alias-float.h>.
33652 (llrintf): Define using libm_alias_float.
33653 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33654 <libm-alias-float.h>.
33655 (llroundf): Define using libm_alias_float.
33656 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33657 (logbf): Define using libm_alias_float.
33658 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33659 (lrintf): Define using libm_alias_float.
33660 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33661 (lroundf): Define using libm_alias_float.
33662 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33663 (modff): Define using libm_alias_float.
33664 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33665 <libm-alias-float.h>.
33666 (nearbyintf): Define using libm_alias_float.
33667 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33668 <libm-alias-float.h>.
33669 (nextafterf): Define using libm_alias_float.
33670 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33671 <libm-alias-float.h>.
33672 (nextupf): Define using libm_alias_float.
33673 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33674 <libm-alias-float.h>.
33675 (remquof): Define using libm_alias_float.
33676 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33677 (rintf): Define using libm_alias_float.
33678 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33679 <libm-alias-float.h>.
33680 (roundevenf): Define using libm_alias_float.
33681 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33682 (roundf): Define using libm_alias_float.
33683 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33684 using libm_alias_float.
33685 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33686 <libm-alias-float.h>.
33687 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33688 Define using libm_alias_float.
33689 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33690 <libm-alias-float.h>.
33691 (sincosf): Define using libm_alias_float.
33692 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33693 (sinf): Define using libm_alias_float.
33694 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33695 (tanf): Define using libm_alias_float.
33696 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33697 (tanhf): Define using libm_alias_float.
33698 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33699 <libm-alias-float.h>.
33700 (totalorderf): Define using libm_alias_float.
33701 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33702 <libm-alias-float.h>.
33703 (totalordermagf): Define using libm_alias_float.
33704 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33705 (truncf): Define using libm_alias_float.
33706 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33707 libm_alias_float.
33708 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33709 libm_alias_float.
33710
33711 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33712
33713 [BZ #22146]
33714 math/math.h: Let fpclassify use the builtin in C++ mode, even
33715 when optimazing for size.
33716
33717 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33718
33719 * csu/Makefile (generated): Do not add version-info.h.
33720 (before-compile): Likewise.
33721 (all-Banner-files): Remove variable.
33722 ($(objpfx)version-info.h): Remove rule.
33723 * csu/version.c (banner): Do not include "version-info.h".
33724 * libidn/Banner: Remove.
33725 * manual/contrib.texi (Simon Josefsson): New entry.
33726
33727 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33728
33729 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33730 Remove conditionals on LDBL_MANT_DIG.
33731 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33732 (__ieee754_lgammal_r): Likewise.
33733
33734 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33735
33736 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33737 _Float128 and L().
33738 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33739 _Float128 and L(). Replace _Float128 with long double and L(x)
33740 with xL, throughout the file.
33741 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33742 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33743 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33744 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33745
33746 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33747
33748 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33749 sysdeps/ieee754/ldbl-128ibm.
33750 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33751 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33752 of including it. Keep _Float128 and L() intact. These will be
33753 reviewed by a separate patch.
33754 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33755 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33756 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33757 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33758
33759 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33760
33761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33762 (__finitef128): Define to __redirect___finitef128.
33763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33764 (__isinff128): Define to __redirect___isinff128.
33765 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33766 (__isnanf128): Define to __redirect___isnanf128.
33767
33768 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33769
33770 * sysdeps/powerpc/powerpc64le/Makefile
33771 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33772 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33773
33774 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33775 Carlos O'Donell <carlos@redhat.com>
33776
33777 [BZ #22180]
33778 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33779 * stdlib/test-dlclose-exit-race.c: New file.
33780 * stdlib/test-dlclose-exit-race-helper.c: New file.
33781 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33782
33783 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33784
33785 * crypt/Banner: Remove file.
33786 * nptl/Banner: Likewise.
33787 * resolv/Banner: Likewise.
33788 * soft-fp/Banner: Likewise.
33789 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33790 ($(objpfx)version.d): Remove dependency on banner.h.
33791 ($(objpfx)version.os): Likewise.
33792 * nptl/version.c (banner): Do not include banner.h.
33793 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33794 Jelinek and BIND code.
33795
33796 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33797 Carlos O'Donell <carlos@redhat.com>
33798
33799 * support/xdlfcn.h: New file.
33800 * support/xdlfcn.c: New file.
33801 * support/Makefile (libsupport-routines): Add xdlfcn.
33802 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33803
33804 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33805
33806 [BZ #20142]
33807 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33808 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33809 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33810 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33811 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33812 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33813 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33814 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33815
33816 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33817 Ricky Zhou <rickyz@google.com>
33818 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33819
33820 [BZ #14333]
33821 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33822 Remove atomics.
33823 (__new_exitfn): Fail registration when we finished at_exit processing.
33824 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33825 * stdlib/on_exit.c (__on_exit): Likewise.
33826 * stdlib/exit.c (__exit_funcs_done): New variable.
33827 (__run_exit_handlers): Use __exit_funcs_lock.
33828 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33829 declarations.
33830 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33831 (test-cxa_atexit-race, test-on_exit-race): New tests.
33832 * stdlib/test-atexit-race-common.c: New file.
33833 * stdlib/test-atexit-race.c: New file.
33834 * stdlib/test-at_quick_exit-race.c: New file.
33835 * stdlib/test-cxa_atexit-race.c: New file.
33836 * stdlib/test-on_exit-race.c: New file.
33837
33838 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33839
33840 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33841 * benchtests/exp2f-inputs: Copy of expf-inputs.
33842 * benchtests/log2f-inputs: Copy of logf-inputs.
33843
33844 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33845
33846 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33847 Explicitly take address of first element of array arguments in
33848 call to INLINE_SYSCALL.
33849
33850 2017-09-19 Andreas Schwab <schwab@suse.de>
33851
33852 [BZ #22134]
33853 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33854 execveat first.
33855 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33856 unimplemented.
33857 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33858 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33859 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33860 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33861 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33862 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33863 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33864 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33865 * posix/Makefile (tests): Add tst-fexecve.
33866 * posix/tst-fexecve.c: New file.
33867
33868 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33869
33870 * benchtests/Makefile: Add logf benchmark.
33871 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33872
33873 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33874
33875 * benchtests/Makefile: Add expf benchmark.
33876 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33877
33878 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33879
33880 * csu/Makefile: Add -funwind-tables to libc-start.c.
33881 * debug/Makefile: Add -funwind-tables to backtrace.c.
33882 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33883 * sysdeps/arm/Makefile: Likewise.
33884 * sysdeps/i386/Makefile: Likewise.
33885 * sysdeps/m68k/Makefile: Likewise.
33886 * sysdeps/mips/Makefile: Likewise.
33887 * sysdeps/nios2/Makefile: Likewise.
33888 * sysdeps/sh/Makefile: Likewise.
33889 * sysdeps/sparc/Makefile: Likewise.
33890
33891 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33892
33893 * benchtests/Makefile (bench-math): Add trunc and truncf.
33894 (CFLAGS-bench-trunc.c): New variable.
33895 (CFLAGS-bench-truncf.c): Likewise.
33896 * benchtests/trunc-inputs: New file.
33897 * benchtests/truncf-inputs: Likewise.
33898
33899 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33900
33901 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33902
33903 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33904
33905 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33906 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33907 redefine.
33908 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33909 (exp10l): Define as weak alias.
33910 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33911 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33912 and redefine.
33913 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33914 (remainderl): Define as weak alias.
33915
33916 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33917 (fmal): Define using libm_alias_ldouble.
33918 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33919 (acoshl): Define using libm_alias_ldouble.
33920 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33921 (acosl): Define using libm_alias_ldouble.
33922 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33923 (asinl): Define using libm_alias_ldouble.
33924 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33925 (atan2l): Define using libm_alias_ldouble.
33926 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33927 (atanhl): Define using libm_alias_ldouble.
33928 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33929 (coshl): Define using libm_alias_ldouble.
33930 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33931 (exp10l): Define using libm_alias_ldouble.
33932 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33933 (exp2l): Define using libm_alias_ldouble.
33934 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33935 (expl): Define using libm_alias_ldouble.
33936 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33937 (fmodl): Define using libm_alias_ldouble.
33938 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33939 (hypotl): Define using libm_alias_ldouble.
33940 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33941 (j0l): Define using libm_alias_ldouble.
33942 (y0l): Likewise.
33943 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33944 (j1l): Define using libm_alias_ldouble.
33945 (y1l): Likewise.
33946 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33947 (jnl): Define using libm_alias_ldouble.
33948 (ynl): Likewise.
33949 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33950 (log10l): Define using libm_alias_ldouble.
33951 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33952 (log2l): Define using libm_alias_ldouble.
33953 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33954 (logl): Define using libm_alias_ldouble.
33955 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33956 (powl): Define using libm_alias_ldouble.
33957 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33958 (remainderl): Define using libm_alias_ldouble.
33959 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33960 (sinhl): Define using libm_alias_ldouble.
33961 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33962 (sqrtl): Define using libm_alias_ldouble.
33963 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33964 (tgammal): Define using libm_alias_ldouble.
33965 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33966 (exp10l): Do not use long_double_symbol here.
33967 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33968 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33969 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33970 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33971 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33972 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33973 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33974 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33975 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33976 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33977 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33978 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33979 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33980 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33981 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33982 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33983 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33984 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33985 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33986 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33987 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33988 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33989
33990 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33991
33992 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33993 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33994
33995 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33996
33997 * io/read.c (read): Add libc_hidden_weak.
33998 * sysdeps/mach/hurd/read.c (read): Likewise.
33999 * io/write.c (write): Likewise.
34000 * sysdeps/mach/hurd/write.c (write): Likewise.
34001 * io/pread64.c (__pread64): Likewise.
34002 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
34003 * posix/pread64.c (__pread64): Add libc_hidden_def.
34004
34005 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
34006
34007 * benchtests/scripts/compare_strings.py: New option -g.
34008 (draw_graph): Print a message that a graph is being generated.
34009 (process_results): Generate graph only if -g is passed.
34010 (main): Process option -g.
34011
34012 * benchtests/scripts/compare_strings.py (process_results):
34013 Better spacing for output.
34014
34015 * benchtests/scripts/compare_strings.py: Use argparse.
34016 * benchtests/README: Document existence of compare_strings.py.
34017
34018 2017-09-15 Joseph Myers <joseph@codesourcery.com>
34019
34020 * math/s_fma.c: Include <libm-alias-double.h>.
34021 (fma): Define using libm_alias_double.
34022 * math/s_nextafter.c: Include <libm-alias-double.h>.
34023 (nextafter): Define using libm_alias_double.
34024 * math/w_acos_compat.c: Include <libm-alias-double.h>.
34025 (acos): Define using libm_alias_double.
34026 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
34027 (aocsh): Define using libm_alias_double.
34028 * math/w_asin_compat.c: Include <libm-alias-double.h>.
34029 (asin): Define using libm_alias_double.
34030 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
34031 (atan2): Define using libm_alias_double.
34032 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
34033 (atanh): Define using libm_alias_double.
34034 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
34035 (cosh): Define using libm_alias_double.
34036 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
34037 (exp10): Define using libm_alias_double.
34038 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
34039 (exp2): Define using libm_alias_double.
34040 * math/w_exp_compat.c: Include <libm-alias-double.h>.
34041 (exp): Define using libm_alias_double.
34042 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
34043 (fmod): Define using libm_alias_double.
34044 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
34045 (hypot): Define using libm_alias_double.
34046 * math/w_j0_compat.c: Include <libm-alias-double.h>.
34047 (j0): Define using libm_alias_double.
34048 (y0): Likewise.
34049 * math/w_j1_compat.c: Include <libm-alias-double.h>.
34050 (j1): Define using libm_alias_double.
34051 (y1): Likewise.
34052 * math/w_jn_compat.c: Include <libm-alias-double.h>.
34053 (jn): Define using libm_alias_double.
34054 (yn): Likewise.
34055 * math/w_log10_compat.c: Include <libm-alias-double.h>.
34056 (log10): Define using libm_alias_double.
34057 * math/w_log2_compat.c: Include <libm-alias-double.h>.
34058 (log2): Define using libm_alias_double.
34059 * math/w_log_compat.c: Include <libm-alias-double.h>.
34060 (log): Define using libm_alias_double.
34061 * math/w_pow_compat.c: Include <libm-alias-double.h>.
34062 (pow): Define using libm_alias_double.
34063 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
34064 (remainder): Define using libm_alias_double.
34065 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
34066 (sinh): Define using libm_alias_double.
34067 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
34068 (sqrt): Define using libm_alias_double.
34069 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
34070 (tgamma): Define using libm_alias_double.
34071 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
34072 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
34073 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
34074 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
34075 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
34076 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
34077 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
34078 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
34079 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
34080 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
34081 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
34082 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
34083 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
34084 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
34085 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
34086 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
34087 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
34088 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
34089 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
34090 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
34091 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
34092 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
34093 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
34094 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
34095 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
34096
34097 * math/e_acoshl.c: Remove.
34098 * math/e_acosl.c: Likewise.
34099 * math/e_asinl.c: Likewise.
34100 * math/e_atan2l.c: Likewise.
34101 * math/e_atanhl.c: Likewise.
34102 * math/e_coshl.c: Likewise.
34103 * math/e_expl.c: Likewise.
34104 * math/e_fmodl.c: Likewise.
34105 * math/e_gammal_r.c: Likewise.
34106 * math/e_hypotl.c: Likewise.
34107 * math/e_j0l.c: Likewise.
34108 * math/e_j1l.c: Likewise.
34109 * math/e_jnl.c: Likewise.
34110 * math/e_lgammal_r.c: Likewise.
34111 * math/e_log10l.c: Likewise.
34112 * math/e_log2l.c: Likewise.
34113 * math/e_logl.c: Likewise.
34114 * math/e_powl.c: Likewise.
34115 * math/e_rem_pio2l.c: Likewise.
34116 * math/e_sinhl.c: Likewise.
34117 * math/e_sqrtf128.c: Likewise.
34118 * math/e_sqrtl.c: Likewise.
34119 * math/k_cosl.c: Likewise.
34120 * math/k_sinl.c: Likewise.
34121 * math/k_tanl.c: Likewise.
34122 * math/s_asinhl.c: Likewise.
34123 * math/s_atanl.c: Likewise.
34124 * math/s_cbrtl.c: Likewise.
34125 * math/s_erfl.c: Likewise.
34126 * math/s_expm1l.c: Likewise.
34127 * math/s_log1pl.c: Likewise.
34128 * math/s_tanhl.c: Likewise.
34129
34130 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
34131
34132 [BZ #21745]
34133 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
34134 [$(subdir) = math] (sysdep_calls): New variable. Has the
34135 previous contents of sysdep_routines, but re-sorted..
34136 [$(subdir) = math] (sysdep_routines): Re-use the contents from
34137 sysdep_calls.
34138 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
34139 defined in sysdep_calls and replace by the respective m_* names.
34140 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
34141 (compat_symbol): Undefine to avoid duplicated compat symbols in
34142 libc.
34143
34144 2017-09-15 Joseph Myers <joseph@codesourcery.com>
34145
34146 * math/s_fmaf.c: Include <libm-alias-float.h>.
34147 (fmaf): Define using libm_alias_float.
34148 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
34149 (acosf): Define using libm_alias_float.
34150 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
34151 (acoshf): Define using libm_alias_float.
34152 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
34153 (asinf): Define using libm_alias_float.
34154 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
34155 (atan2f): Define using libm_alias_float.
34156 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
34157 (atanhf): Define using libm_alias_float.
34158 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
34159 (coshf): Define using libm_alias_float.
34160 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
34161 (exp10f): Define using libm_alias_float.
34162 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
34163 (fmodf): Define using libm_alias_float.
34164 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
34165 (hypotf): Define using libm_alias_float.
34166 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
34167 (j0f): Define using libm_alias_float.
34168 (y0f): Likewise.
34169 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
34170 (j1f): Define using libm_alias_float.
34171 (y1f): Likewise.
34172 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
34173 (jnf): Define using libm_alias_float.
34174 (ynf): Likewise.
34175 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
34176 (log10f): Define using libm_alias_float.
34177 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
34178 (log2f): Define using libm_alias_float.
34179 * math/w_logf_compat.c: Include <libm-alias-float.h>.
34180 (logf): Define using libm_alias_float.
34181 * math/w_powf_compat.c: Include <libm-alias-float.h>.
34182 (powf): Define using libm_alias_float.
34183 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
34184 (remainderf): Define using libm_alias_float.
34185 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
34186 (sinhf): Define using libm_alias_float.
34187 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
34188 (sqrtf): Define using libm_alias_float.
34189 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
34190 (tgammaf): Define using libm_alias_float.
34191
34192 2017-09-14 Joseph Myers <joseph@codesourcery.com>
34193
34194 * include/math.h (roundeven): Change hidden_proto call to
34195 __roundeven.
34196 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
34197 alias.
34198 [NO_LONG_DOUBLE] (__j0l): New strong alias.
34199 (y0): Rename to __y0 and define as weak alias.
34200 [NO_LONG_DOUBLE] (__y0l): New strong alias.
34201 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
34202 alias.
34203 (y0f): Rename to __y0f and define as weak alias.
34204 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
34205 alias.
34206 [NO_LONG_DOUBLE] (__j1l): New strong alias.
34207 (y1): Rename to __y1 and define as weak alias.
34208 [NO_LONG_DOUBLE] (__y1l): New strong alias.
34209 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
34210 alias.
34211 (y1f): Rename to __y1f and define as weak alias.
34212 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
34213 alias.
34214 [NO_LONG_DOUBLE] (__jnl): New strong alias.
34215 (yn): Rename to __yn and define as weak alias.
34216 [NO_LONG_DOUBLE] (__ynl): New strong alias.
34217 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
34218 alias.
34219 (ynf): Rename to __ynf and define as weak alias.
34220 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
34221 (fromfp): Define as weak alias.
34222 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
34223 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
34224 (fromfpx): Define as weak alias.
34225 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
34226 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
34227 __getpayload and define as weak alias.
34228 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
34229 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
34230 __roundeven and define as weak alias.
34231 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
34232 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
34233 __setpayload.
34234 (setpayload): Define as weak alias.
34235 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
34236 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
34237 __setpayloadsig.
34238 (setpayloadsig): Define as weak alias.
34239 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
34240 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
34241 __totalorder and define as weak alias.
34242 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
34243 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
34244 to __totalordermag and define as weak alias.
34245 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
34246 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
34247 (ufromfp): Define as weak alias.
34248 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
34249 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
34250 __ufromfpx.
34251 (ufromfpx): Define as weak alias.
34252 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
34253 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
34254 Rename to __getpayload and define as weak alias.
34255 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
34256 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
34257 Rename to __roundeven and define as weak alias.
34258 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
34259 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
34260 Rename to __totalorder and define as weak alias.
34261 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
34262 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
34263 (totalordermag): Rename to __totalordermag and define as weak
34264 alias.
34265 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
34266 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
34267 macro.
34268 (__roundevenl): Likewise.
34269 (__totalorderl): Likewise.
34270 (__totalordermagl): Likewise
34271 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
34272 __fromfpf128.
34273 (fromfpf128): Define as weak alias.
34274 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
34275 __fromfpxf128.
34276 (fromfpxf128): Define as weak alias.
34277 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
34278 __setpayloadf128.
34279 (setpayloadf128): Define as weak alias.
34280 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
34281 __setpayloadsigf128.
34282 (setpayloadsigf128): Define as weak alias.
34283 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
34284 __ufromfpf128.
34285 (ufromfpf128): Define as weak alias.
34286 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
34287 __ufromfpxf128.
34288 (ufromfpxf128): Define as weak alias.
34289 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
34290 (fromfpf): Define as weak alias.
34291 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
34292 __fromfpxf.
34293 (fromfpxf): Define as weak alias.
34294 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
34295 __getpayloadf and define as weak alias.
34296 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
34297 __roundevenf and define as weak alias.
34298 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
34299 __setpayloadf.
34300 (setpayloadf): Define as weak alias.
34301 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
34302 __setpayloadsigf.
34303 (setpayloadsigf): Define as weak alias.
34304 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
34305 __totalorderf and define as weak alias.
34306 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
34307 Rename to __totalordermagf and define as weak alias.
34308 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
34309 __ufromfpf.
34310 (ufromfpf): Define as weak alias.
34311 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
34312 __ufromfpxf.
34313 (ufromfpxf): Define as weak alias.
34314 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
34315 __fromfpl.
34316 (fromfpl): Define as weak alias.
34317 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
34318 __fromfpxl.
34319 (fromfpxl): Define as weak alias.
34320 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
34321 to __getpayloadl and define as weak alias.
34322 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
34323 __roundevenl and define as weak alias.
34324 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
34325 __setpayloadl.
34326 (setpayloadl): Define as weak alias.
34327 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
34328 __setpayloadsigl.
34329 (setpayloadsigl): Define as weak alias.
34330 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
34331 to __totalorderl and define as weak alias.
34332 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
34333 Rename to __totalordermagl and define as weak alias.
34334 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
34335 __ufromfpl.
34336 (ufromfpl): Define as weak alias.
34337 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
34338 __ufromfpxl.
34339 (ufromfpxl): Define as weak alias.
34340 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
34341 __fromfpl.
34342 (fromfpl): Define as weak alias.
34343 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
34344 __fromfpxl.
34345 (fromfpxl): Define as weak alias.
34346 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
34347 Rename to __getpayloadl and define as weak alias.
34348 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
34349 to __roundevenl and define as weak alias. Call __roundeven
34350 instead of roundeven.
34351 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
34352 __setpayloadl.
34353 (setpayloadl): Define as weak alias.
34354 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
34355 __setpayloadsigl.
34356 (setpayloadsigl): Define as weak alias.
34357 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
34358 Rename to __totalorderl and define as weak alias.
34359 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
34360 Rename to __totalordermagl and define as weak alias.
34361 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
34362 __ufromfpl.
34363 (ufromfpl): Define as weak alias.
34364 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
34365 __ufromfpxl.
34366 (ufromfpxl): Define as weak alias.
34367 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
34368 __fromfpl.
34369 (fromfpl): Define as weak alias.
34370 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
34371 __fromfpxl.
34372 (fromfpxl): Define as weak alias.
34373 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
34374 __getpayloadl and define as weak alias.
34375 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
34376 __roundevenl and define as weak alias.
34377 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
34378 __setpayloadl.
34379 (setpayloadl): Define as weak alias.
34380 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
34381 __setpayloadsigl.
34382 (setpayloadsigl): Define as weak alias.
34383 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
34384 __totalorderl and define as weak alias.
34385 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
34386 Rename to __totalordermagl and define as weak alias.
34387 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
34388 __ufromfpl.
34389 (ufromfpl): Define as weak alias.
34390 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
34391 __ufromfpxl.
34392 (ufromfpxl): Define as weak alias.
34393
34394 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
34395
34396 * benchtests/bench-string.h (realloc_bufs): New function.
34397 (test_init): Call it.
34398 * benchtests/bench-memset-large.c (do_test): Likewise.
34399 * benchtests/bench-memset.c (do_test): Likewise.
34400
34401 * benchtests/bench-memset-large.c: Print output in JSON
34402 format.
34403 * benchtests/bench-memset.c: Likewise.
34404
34405 2017-09-14 Mike FABIAN <mfabian@redhat.com>
34406
34407 [BZ #21084]
34408 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
34409 * iconvdata/Makefile: Add IBM858.
34410 * iconvdata/gconv-modules: Likewise.
34411 * iconvdata/tst-tables.sh: Likewise.
34412 * iconvdata/ibm858.c: New file.
34413 * localedata/charmaps/IBM858: Likewise.
34414
34415 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
34416
34417 [BZ #22023]
34418 * locales/niu_NZ (LC_TIME): copy "niu_NU".
34419 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
34420
34421 2017-09-14 Mike FABIAN <mfabian@redhat.com>
34422
34423 [BZ #22112]
34424 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
34425 and add tel_int_fmt.
34426
34427 2017-09-14 Joseph Myers <joseph@codesourcery.com>
34428
34429 * sysdeps/generic/libm-alias-float128.h: New file.
34430 * sysdeps/generic/math-type-macros-float128.h: Include
34431 <libm-alias-float128.h>.
34432 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34433
34434 2017-09-13 Joseph Myers <joseph@codesourcery.com>
34435
34436 * sysdeps/generic/libm-alias-ldouble.h: New file.
34437 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
34438 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
34439 * sysdeps/generic/math-type-macros-ldouble.h: Include
34440 <libm-alias-ldouble.h>.
34441 [!declare_mgen_alias] (declare_mgen_alias): Define to use
34442 libm_alias_ldouble.
34443
34444 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
34445
34446 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
34447 * math/w_exp_compat.c: ... here.
34448 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
34449 * math/w_expf_compat.c: ... here.
34450 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
34451 * math/w_expl_compat.c: ... here.
34452 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
34453 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
34454 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
34455 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
34456
34457 2017-09-13 Joseph Myers <joseph@codesourcery.com>
34458
34459 * math/w_scalbln_template.c (strong_alias): Do not undefine and
34460 redefine.
34461 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
34462 macro.
34463 (ldexpl): Only define as compat symbol for libc, not libm.
34464 (scalbnl): Define as compat symbol for libc here.
34465 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
34466 define for [IS_IN (libc)].
34467 (__ldexpl_2): Remove alias.
34468 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
34469 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
34470 name in long_double_symbol call.
34471 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
34472 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
34473 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
34474 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
34475 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
34476 Remove macro.
34477 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
34478 Define as compat symbol.
34479
34480 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34481
34482 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
34483 * sysdeps/unix/sysv/linux/alpha/Makefile
34484 [$(subdir) = csu] (sysdep_routines): Remove rule.
34485
34486 2017-09-13 Joseph Myers <joseph@codesourcery.com>
34487
34488 * sysdeps/generic/libm-alias-double.h: New file.
34489 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
34490 * sysdeps/generic/math-type-macros-double.h: Include
34491 <libm-alias-double.h>.
34492 [declare_mgen_alias] (declare_mgen_alias): Define to use
34493 libm_alias_double.
34494 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
34495 (M_LIBM_NEED_COMPAT): Remove macro.
34496 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
34497 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
34498 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
34499 code.
34500 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34501 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34502 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34503 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34504 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34505 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34506 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34507 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34508 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34509 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34510 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34511 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34512 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34513 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34514 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34515 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34516 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34517 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34518 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34519 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34520 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34521 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34522 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34523 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34524 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34525 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34526 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34527 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
34528 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
34529 macro.
34530 (declare_mgen_alias): New macro.
34531 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
34532 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
34533 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
34534 (M_LIBM_NEED_COMPAT): Remove macro.
34535 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
34536 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
34537 <first-versions.h>.
34538 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
34539 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
34540
34541 2017-09-12 Joseph Myers <joseph@codesourcery.com>
34542
34543 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
34544 (declare_mgen_alias_2): Remove.
34545 * sysdeps/generic/math-type-macros-double.h
34546 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
34547 Likewise.
34548 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
34549 alias.
34550 (ldexp): Define with declare_mgen_alias.
34551 (scalbn): Likewise.
34552
34553 2017-09-12 Steve Ellcey <sellcey@cavium.com>
34554
34555 * grp/initgroups.c: Include config.h.
34556 (DEFAULT_CONFIG): New macro.
34557 (internal_getgrouplist): Use DEFAULT_CONFIG.
34558 * nscd/initgrcache.c (addinitgroupsX): Likewise.
34559 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
34560 (DEFAULT_DEFCONFIG): New macro.
34561 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
34562 * nss/grp-lookup.c: Include config.h
34563 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
34564 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
34565 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
34566 * manual/nss.texi: Update default values section.
34567
34568 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
34569
34570 [BZ #21967]
34571 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
34572 New.
34573 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
34574 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34575 Handle MathVec_Prefer_No_AVX512.
34576 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
34577 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
34578 is set.
34579
34580 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
34581
34582 * posix/sched_primax.c (__sched_get_priority_max): Add
34583 libc_hidden_def.
34584 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
34585 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34586 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34587 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
34588 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
34589 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
34590 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
34591 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
34592 Add aliases.
34593
34594 2017-09-11 Joseph Myers <joseph@codesourcery.com>
34595
34596 * sysdeps/generic/libm-alias-float.h: New file.
34597 * sysdeps/generic/math-type-macros-float.h: Include
34598 <libm-alias-float.h>.
34599 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34600
34601 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
34602
34603 [BZ #22093]
34604 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
34605 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
34606 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
34607 (HWCAP_IMPORTANT): Likewise.
34608 (HWCAP_X86_64): New enum.
34609 (HWCAP_X86_AVX512_1): Updated.
34610 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
34611 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
34612 (modules-names): Add x86_64/tst-x86_64mod-1.
34613 (LDFLAGS-tst-x86_64mod-1.so): New.
34614 ($(objpfx)tst-x86_64-1): Likewise.
34615 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34616 (tst-x86_64-1-clean): Likewise.
34617 * sysdeps/x86_64/tst-x86_64-1.c: New file.
34618 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34619
34620 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34621
34622 * po/sv.po: Update translations.
34623 * po/fr.po: Likewise.
34624
34625 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34626
34627 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34628 seconds.
34629 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34630 seconds.
34631 * elf/rtld-Rules: Fix $(error) use.
34632
34633 2017-09-09 Mike FABIAN <mfabian@redhat.com>
34634
34635 [BZ #14925]
34636 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34637 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34638 * localedata/locales/bn_BD: “Bengali” was still used in some
34639 comments. Change it to “Bangla”.
34640
34641 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34642
34643 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34644
34645 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34646
34647 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34648 thunderx2t99p1 to list of cpu names.
34649 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34650 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34651
34652 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34653
34654 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34655 Use strcmp instead of tunable_is_name.
34656
34657 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34658
34659 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34660 (F_GET_RW_HINT): New macro.
34661 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34662 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34663 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34664 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34665 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34666 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34667 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34668 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34669 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34670
34671 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34672 (F_ADD_SEALS): New macro.
34673 [__USE_GNU] (F_GET_SEALS): Likewise.
34674 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34675 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34676 [__USE_GNU] (F_SEAL_GROW): Likewise.
34677 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34678
34679 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34680
34681 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34682 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34683 * posix/glob_internal.h (__glob_pattern_type):
34684 * posix/glob.c (glob):
34685 * posix/glob_pattern_p.c (__glob_pattern_p):
34686 Use them.
34687
34688 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34689 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34690 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34691 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34692 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34694 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34695 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34696 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34697 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34698 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34699 * sysdeps/wordsize-64/glob.c: Likewise.
34700 * sysdeps/wordsize-64/glob64.c: Likewise.
34701 * sysdeps/wordsize-64/globfree.c: Likewise.
34702 * sysdeps/wordsize-64/globfree64.c: Likewise.
34703 * sysdeps/unix/sysv/linux/glob.c: New file.
34704 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34705 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34706 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34707 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34708 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34709 adds !GLOB_NO_OLD_VERSION as an extra condition.
34710 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34711 using relative path instead of absolute one.
34712 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34713 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34714 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34715 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34716 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34717 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34718
34719 [BZ #1062]
34720 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34721 (glob): Use the same scratch buffer for both getlogin_r and
34722 getpwnam_r. Don’t require preallocation of the login name. This
34723 simplifies storage allocation, and corrects the handling of
34724 long login names.
34725
34726 [BZ #1062]
34727 * posix/glob.c (glob): Port recent patches to platforms
34728 lacking getpwnam_r.
34729 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34730 returns an error number rather than setting errno.
34731
34732 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34733 instead of GCC extension.
34734 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34735 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34736 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34737
34738 [BZ #866]
34739 [BZ #1062]
34740 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34741 * posix/bug-glob1.c: Remove file.
34742 * posix/tst-glob_symlinks.c: New file.
34743 * posix/glob.c (__lstat64): New macro.
34744 (is_dir): New function.
34745 (glob, glob_in_dir): Match symlinks even if they are dangling.
34746 (link_stat, link_exists_p): Remove. All uses removed.
34747
34748 [BZ #1062]
34749 [BZ #19971]
34750 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34751 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34752 All uses removed.
34753
34754 [BZ #1062]
34755 CVE-2017-15671
34756 * posix/Makefile (routines): Add globfree, globfree64, and
34757 glob_pattern_p.
34758 * posix/flexmember.h: New file.
34759 * posix/glob_internal.h: Likewise.
34760 * posix/glob_pattern_p.c: Likewise.
34761 * posix/globfree.c: Likewise.
34762 * posix/globfree64.c: Likewise.
34763 * sysdeps/gnu/globfree64.c: Likewise.
34764 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34765 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34766 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34767 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34768 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34769 * sysdeps/wordsize-64/globfree.c: Likewise.
34770 * sysdeps/wordsize-64/globfree64.c: Likewise.
34771 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34772 [NDEBUG): Remove comments.
34773 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34774 (dirent_type): New type. Use uint_fast8_t not
34775 uint8_t, as C99 does not require uint8_t.
34776 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34777 (struct readdir_result): Use dirent_type. Do not define skip_entry
34778 unless it is needed; this saves a byte on platforms lacking d_ino.
34779 (readdir_result_type, readdir_result_skip_entry):
34780 New functions, replacing ...
34781 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34782 these functions, which were removed. This makes the callers
34783 easier to read. All callers changed.
34784 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34785 (size_add_wrapv, glob_use_alloca): New static functions.
34786 (glob, glob_in_dir): Check for size_t overflow in several places,
34787 and fix some size_t checks that were not quite right.
34788 Remove old code using SHELL since Bash no longer
34789 uses this.
34790 (glob, prefix_array): Separate MS code better.
34791 (glob_in_dir): Remove old Amiga and VMS code.
34792 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34793 separate files.
34794 (glob_in_dir): Do not rely on undefined behavior in accessing
34795 struct members beyond their bounds. Use a flexible array member
34796 instead
34797 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34798 0/1. Caller changed.
34799 (glob): Fix memory leaks.
34800 * posix/glob64 (globfree64): Move to separate file.
34801 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34802 (globfree64): Remove hidden alias.
34803 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34804 oldglob.
34805 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34806 separate file.
34807 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34808 define.
34809 Move compat code to separate file.
34810 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34811 separate file.
34812
34813 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34814
34815 * resolv/tst-resolv-qtypes.c (domain): Changed to
34816 "const char domain[] =".
34817
34818 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34819
34820 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34821 version to 3.1.6.
34822
34823 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34824 (TCP_MD5SIG_EXT): Likewise.
34825 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34826 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34827 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34828
34829 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34830
34831 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34832
34833 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34834
34835 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34836
34837 [BZ #22100]
34838 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34839
34840 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34841
34842 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34843 before assuming that the file is empty. Avoid testing buffer content
34844 when nread == 0.
34845
34846 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34847
34848 [BZ #18858]
34849 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34850 Remove define.
34851 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34852 Likewise.
34853 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34854 Likewise.
34855 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34856 Likewise.
34857 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34858 Likewise.
34859 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34860 Likewise.
34861 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34862 Likewise.
34863
34864 2017-09-06 Florian Weimer <fweimer@redhat.com>
34865
34866 * malloc/dynarray_emplace_enlarge.c
34867 (__libc_dynarray_emplace_enlarge): Add missing else.
34868
34869 2017-09-06 Florian Weimer <fweimer@redhat.com>
34870
34871 [BZ #22096]
34872 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34873 case of failure to obtain the global conf object.
34874
34875 2017-09-06 Florian Weimer <fweimer@redhat.com>
34876
34877 [BZ #22095]
34878 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34879 dynarray allocation failure.
34880
34881 2017-09-06 Florian Weimer <fweimer@redhat.com>
34882
34883 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34884 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34885 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34886 New functions.
34887 (response): Call them. Add 'p', '6' flag processing.
34888 (test_reverse): New function.
34889 (test_get2_any): Call it.
34890 (test_no_inet6): Add 'p' test.
34891 (test_inet6): Likewise.
34892
34893 2017-09-06 Florian Weimer <fweimer@redhat.com>
34894
34895 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34896 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34897 the QNAME.
34898 (test_gai): Adjust query names. Add additional tests.
34899 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34900 test_get2. Adjust query names. Add additional tests.
34901 (test_no_inet6): New function, extracted from threadfunc.
34902 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34903 Add additional tests.
34904
34905 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34906
34907 [BZ #22070]
34908 * localedata/unicode-gen/utf8_gen.py: Set the width for
34909 characters with Prepended_Concatenation_Mark property to 1
34910 * localedata/charmaps/UTF-8: Updated using the improved script.
34911
34912 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34913
34914 [BZ #21750]
34915 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34916 use the range notation for all ranges of neighbouring characters
34917 with the same width.
34918
34919 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34920
34921 * sysdeps/generic/math-type-macros-double.h: Include
34922 <math-svid-compat.h>.
34923 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34924 * sysdeps/generic/math-type-macros-float.h: Include
34925 <math-svid-compat.h>.
34926 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34927 * sysdeps/generic/math-type-macros-ldouble.h: Include
34928 <math-svid-compat.h>.
34929 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34930 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34931 condition.
34932 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34933 * math/w_acosf_compat.c: Likewise.
34934 * math/w_acosh_compat.c: Likewise.
34935 * math/w_acoshf_compat.c: Likewise.
34936 * math/w_acoshl_compat.c: Likewise.
34937 * math/w_acosl_compat.c: Likewise.
34938 * math/w_asin_compat.c: Likewise.
34939 * math/w_asinf_compat.c: Likewise.
34940 * math/w_asinl_compat.c: Likewise.
34941 * math/w_atan2_compat.c: Likewise.
34942 * math/w_atan2f_compat.c: Likewise.
34943 * math/w_atan2l_compat.c: Likewise.
34944 * math/w_atanh_compat.c: Likewise.
34945 * math/w_atanhf_compat.c: Likewise.
34946 * math/w_atanhl_compat.c: Likewise.
34947 * math/w_cosh_compat.c: Likewise.
34948 * math/w_coshf_compat.c: Likewise.
34949 * math/w_coshl_compat.c: Likewise.
34950 * math/w_exp10_compat.c: Likewise.
34951 * math/w_exp10f_compat.c: Likewise.
34952 * math/w_exp10l_compat.c: Likewise.
34953 * math/w_exp2_compat.c: Likewise.
34954 * math/w_exp2f_compat.c: Likewise.
34955 * math/w_exp2l_compat.c: Likewise.
34956 * math/w_fmod_compat.c: Likewise.
34957 * math/w_fmodf_compat.c: Likewise.
34958 * math/w_fmodl_compat.c: Likewise.
34959 * math/w_hypot_compat.c: Likewise.
34960 * math/w_hypotf_compat.c: Likewise.
34961 * math/w_hypotl_compat.c: Likewise.
34962 * math/w_j0_compat.c: Likewise.
34963 * math/w_j0f_compat.c: Likewise.
34964 * math/w_j0l_compat.c: Likewise.
34965 * math/w_j1_compat.c: Likewise.
34966 * math/w_j1f_compat.c: Likewise.
34967 * math/w_j1l_compat.c: Likewise.
34968 * math/w_jn_compat.c: Likewise.
34969 * math/w_jnf_compat.c: Likewise.
34970 * math/w_jnl_compat.c: Likewise.
34971 * math/w_lgamma_r_compat.c: Likewise.
34972 * math/w_lgammaf_r_compat.c: Likewise.
34973 * math/w_lgammal_r_compat.c: Likewise.
34974 * math/w_log10_compat.c: Likewise.
34975 * math/w_log10f_compat.c: Likewise.
34976 * math/w_log10l_compat.c: Likewise.
34977 * math/w_log2_compat.c: Likewise.
34978 * math/w_log2f_compat.c: Likewise.
34979 * math/w_log2l_compat.c: Likewise.
34980 * math/w_log_compat.c: Likewise.
34981 * math/w_logf_compat.c: Likewise.
34982 * math/w_logl_compat.c: Likewise.
34983 * math/w_pow_compat.c: Likewise.
34984 * math/w_powf_compat.c: Likewise.
34985 * math/w_powl_compat.c: Likewise.
34986 * math/w_remainder_compat.c: Likewise.
34987 * math/w_remainderf_compat.c: Likewise.
34988 * math/w_remainderl_compat.c: Likewise.
34989 * math/w_sinh_compat.c: Likewise.
34990 * math/w_sinhf_compat.c: Likewise.
34991 * math/w_sinhl_compat.c: Likewise.
34992 * math/w_sqrt_compat.c: Likewise.
34993 * math/w_sqrtf_compat.c: Likewise.
34994 * math/w_sqrtl_compat.c: Likewise.
34995 * math/w_tgamma_compat.c: Likewise.
34996 * math/w_tgammaf_compat.c: Likewise.
34997 * math/w_tgammal_compat.c: Likewise.
34998 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34999 [LIBM_SVID_COMPAT].
35000 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
35001 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
35002 [LIBM_SVID_COMPAT].
35003 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
35004 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
35005 [LIBM_SVID_COMPAT].
35006 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
35007 * sysdeps/i386/fpu/w_sqrt.c: New file.
35008 * sysdeps/ia64/fpu/w_acos.c: Likewise.
35009 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
35010 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
35011 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
35012 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
35013 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
35014 * sysdeps/ia64/fpu/w_asin.c: Likewise.
35015 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
35016 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
35017 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
35018 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
35019 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
35020 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
35021 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
35022 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
35023 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
35024 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
35025 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
35026 * sysdeps/ia64/fpu/w_exp.c: Likewise.
35027 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
35028 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
35029 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
35030 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
35031 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
35032 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
35033 * sysdeps/ia64/fpu/w_expf.c: Likewise.
35034 * sysdeps/ia64/fpu/w_expl.c: Likewise.
35035 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
35036 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
35037 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
35038 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
35039 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
35040 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
35041 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
35042 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
35043 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
35044 * sysdeps/ia64/fpu/w_log.c: Likewise.
35045 * sysdeps/ia64/fpu/w_log10.c: Likewise.
35046 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
35047 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
35048 * sysdeps/ia64/fpu/w_log2.c: Likewise.
35049 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
35050 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
35051 * sysdeps/ia64/fpu/w_logf.c: Likewise.
35052 * sysdeps/ia64/fpu/w_logl.c: Likewise.
35053 * sysdeps/ia64/fpu/w_pow.c: Likewise.
35054 * sysdeps/ia64/fpu/w_powf.c: Likewise.
35055 * sysdeps/ia64/fpu/w_powl.c: Likewise.
35056 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
35057 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
35058 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
35059 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
35060 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
35061 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
35062 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
35063 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
35064 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
35065 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
35066 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
35067 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
35068 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
35069 [LIBM_SVID_COMPAT].
35070 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
35071 * sysdeps/ieee754/k_standard.c: Likewise.
35072 * sysdeps/ieee754/k_standardf.c: Likewise.
35073 * sysdeps/ieee754/k_standardl.c: Likewise.
35074 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
35075 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
35076 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
35077 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
35078 long_double_symbol call on [LIBM_SVID_COMPAT].
35079 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
35080 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
35081 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
35082 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
35083 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
35084 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
35085 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
35086 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
35087 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
35088 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
35089 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
35090 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
35091 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
35092 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
35093 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
35094 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
35095 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
35096 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
35097 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
35098 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
35099 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
35100 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
35101
35102 2017-09-05 Steve Ellcey <sellcey@cavium.com>
35103
35104 * include/shlib-compat.h (TEST_COMPAT): New Macro.
35105 * malloc/tst-mallocstate.c: Convert from test-skeleton
35106 to test-driver. Ifdef code using TEST_COMPAT macro.
35107 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
35108 * math/test-matherr.c: Likewise.
35109
35110 2017-09-05 Joseph Myers <joseph@codesourcery.com>
35111
35112 [BZ #22086]
35113 * debug/pcprofiledump.c (main): Use byte-swapped mask when
35114 comparing word with byte-swapped constant.
35115
35116 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
35117
35118 [BZ #20498]
35119 * locale/iso-639.def: add Miskito.
35120 * localedata/SUPPORTED: Add miq_NI/UTF-8.
35121 * localedata/locales/miq_NI: New file.
35122
35123 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
35124
35125 [BZ #18822]
35126 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
35127 (__mkdir): Likewise.
35128 * io/chmod.c (__chmod): Add libc_hidden_def.
35129 * io/mkdir.c (__mkdir): Likewise.
35130 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
35131 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
35132 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
35133 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
35134
35135 2017-09-04 Joseph Myers <joseph@codesourcery.com>
35136
35137 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
35138 version to 4.13.
35139
35140 [BZ #22082]
35141 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
35142 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
35143
35144 2017-09-04 Florian Weimer <fweimer@redhat.com>
35145
35146 * math/math.h: Issue warning if log is defined.
35147
35148 2017-09-04 Joseph Myers <joseph@codesourcery.com>
35149
35150 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
35151 kernel version to 4.13.
35152
35153 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35154
35155 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
35156 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
35157 parameter.
35158 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
35159 just <bits/types.h>.
35160 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
35161 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
35162 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
35163 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
35164 * misc/preadv2.c: Include <errno.h>.
35165 * misc/preadv64v2.c: Include <errno.h>.
35166 * misc/pwritev2.c: Include <errno.h>.
35167 * misc/pwritev64v2.c: Include <errno.h>.
35168 * sysdeps/posix/preadv2.c: Include <errno.h>.
35169 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
35170 Fix <unistd.h> inclusion.
35171 * sysdeps/posix/pwritev2.c: Include <errno.h>.
35172 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
35173 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
35174 __strtoul_internal): New functions.
35175 * sysdeps/posix/pause.c: Include <sigsetops.h>.
35176 * sysdeps/posix/system.c: Include <sigsetops.h>.
35177 * sysdeps/mach/hurd/i386/Makefile
35178 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
35179 [$(subdir) = csu] (sysdep-only-routines): Likewise.
35180 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
35181 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
35182 __feraiseexcept_renamed to feraiseexcept instead of
35183 __GI_feraiseexcept.
35184 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
35185 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
35186 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
35187 RWF_NOWAIT): Define to 0 if undefined already.
35188 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
35189 boils down to 0.
35190 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
35191 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
35192
35193 2017-09-01 Joseph Myers <joseph@codesourcery.com>
35194
35195 * manual/math.texi (pow10): Do not document.
35196 (pow10f): Likewise.
35197 (pow10l): Likewise.
35198 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
35199 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
35200 * math/libm-test-exp10.inc (pow10_test): Remove.
35201 (do_test): Do not call pow10.
35202 * math/w_exp10_compat.c (pow10): Make into compat symbol.
35203 [NO_LONG_DOUBLE] (pow10l): Likewise.
35204 * math/w_exp10f_compat.c (pow10f): Likewise.
35205 * math/w_exp10l_compat.c (pow10l): Likewise.
35206 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
35207 (pow10): Make into compat symbol.
35208 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
35209 (pow10f): Make into compat symbol.
35210 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
35211 (pow10l): Make into compat symbol.
35212 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
35213 pow10.
35214 (CFLAGS-nldbl-pow10.c): Remove variable..
35215 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
35216 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
35217 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
35218 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
35219 Undefine and redefine.
35220 (pow10l): Make into compat symbol.
35221 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
35222 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
35223 * sysdeps/arm/libm-test-ulps: Likewise.
35224 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
35225 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
35226 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
35227 * sysdeps/microblaze/libm-test-ulps: Likewise.
35228 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
35229 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
35230 * sysdeps/nios2/libm-test-ulps: Likewise.
35231 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
35232 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
35233 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
35234 * sysdeps/sh/libm-test-ulps: Likewise.
35235 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
35236 * sysdeps/tile/libm-test-ulps: Likewise.
35237 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35238
35239 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
35240
35241 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
35242
35243 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
35244
35245 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
35246 "../ChangeLog.old/ChangeLog.8".
35247 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
35248 "../ChangeLog.old/ChangeLog.14".
35249
35250 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
35251
35252 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
35253 Threads Library.
35254
35255 2017-09-01 Joseph Myers <joseph@codesourcery.com>
35256
35257 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
35258
35259 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
35260
35261 * csu/version.c (banner): Remove "by Roland McGrath et al.".
35262 * nptl/Banner: Remove "by Ulrich Drepper et al.".
35263
35264 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
35265
35266 * stdlib/tst-atexit-common.c (do_test): Test support for at least
35267 32 atexit handlers.
35268
35269 2017-09-01 Zack Weinberg <zackw@panix.com>
35270
35271 * math/math.h (HUGE_VAL): Improve commentary.
35272
35273 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35274 Andreas Schwab <schwab@suse.de>
35275
35276 [BZ #21530]
35277 * include/stdio.h (__gen_tempfd): New function.
35278 * stdio-common/Makefile (routines): Add gentempfd.
35279 * stdio-common/gentempfd.c: New file.
35280 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
35281 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
35282 unnamed file first.
35283
35284 2017-09-01 Florian Weimer <fweimer@redhat.com>
35285
35286 [BZ #21915]
35287 [BZ #21922]
35288 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
35289 result to determine success or failure, not the errno value.
35290 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
35291 (tst-nss-files-hosts-erange): Link with -ldl.
35292 * nss/tst-nss-files-hosts-erange.c: New file.
35293 * nss/tst-resolv-basic.c (response): Handle nodata.example.
35294 (do_test): Add NO_DATA tests.
35295 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
35296 (do_test): Call it.
35297
35298 2017-09-01 Florian Weimer <fweimer@redhat.com>
35299
35300 [BZ #21922]
35301 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
35302 coming from gethostbyname2_r.
35303
35304 2017-09-01 Florian Weimer <fweimer@redhat.com>
35305
35306 * support/namespace.h (struct support_chroot_configuration): Add
35307 hosts, host_conf.
35308 (struct support_chroot): Add path_hosts, path_host_conf.
35309 * support/support_chroot.c (write_file): New function.
35310 (support_chroot_create): Call it to process /etc/resolv.conf,
35311 /etc/hosts, /etc/host.conf.
35312 (support_chroot_free): Update.
35313
35314 2017-09-01 Florian Weimer <fweimer@redhat.com>
35315
35316 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
35317 status indicates it is set.
35318
35319 2017-09-01 Florian Weimer <fweimer@redhat.com>
35320
35321 [BZ #20532]
35322 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
35323 function lookup failures more reliable.
35324
35325 2017-09-01 Florian Weimer <fweimer@redhat.com>
35326
35327 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
35328 (getcanonname): Likewise.
35329 (gaih_inet): Likewise.
35330
35331 2017-09-01 Florian Weimer <fweimer@redhat.com>
35332
35333 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
35334 (getcanonname): Likewise.
35335 (gaih_inet): Likewise.
35336
35337 2017-08-31 Steve Ellcey <sellcey@cavium.com>
35338 Richard Henderson <rth@twiddle.net>
35339
35340 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
35341 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
35342 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
35343 (IREG_SIZE, OREG_SIZE): New macros.
35344 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
35345 (IREG_SIZE, OREG_SIZE): New macros.
35346 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
35347 (IREG_SIZE): New macro.
35348 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
35349 (IREG_SIZE): New macro.
35350 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
35351 New includes.
35352 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
35353 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
35354 (__CONCATX): Handle exceptions correctly on large values that may
35355 set FE_INVALID.
35356 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
35357 Initialize if not already set.
35358 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
35359
35360 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35361
35362 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
35363 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
35364 Likewise.
35365 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
35366 Likewise.
35367 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
35368 Likewise.
35369 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
35370 Likewise.
35371 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
35372 Likewise.
35373 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
35374 Likewise.
35375 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
35376 Likewise.
35377 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
35378 (NO_CANCELLATION): Likewise.
35379 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
35380 Likewise.
35381 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
35382 Likewise.
35383 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
35384 Likewise.
35385 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
35386 (NO_CANCELLATION): Likewise.
35387 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
35388 (NO_CANCELLATION): Likewise.
35389 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
35390 Likewise
35391 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
35392 Likewise.
35393 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
35394 Likewise.
35395 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
35396 Likewise.
35397 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
35398 hidden prototype.
35399 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
35400 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
35401
35402 2017-08-31 Steve Ellcey <sellcey@cavium.com>
35403
35404 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
35405 in resolver call.
35406
35407 2017-08-31 Florian Weimer <fweimer@redhat.com>
35408
35409 * include/libc-symbols.h (internal_function): Remove.
35410
35411 2017-08-31 Florian Weimer <fweimer@redhat.com>
35412
35413 * stdlib/fmtmsg.c (internal_addseverity): Remove
35414 internal_function.
35415
35416 2017-08-31 Florian Weimer <fweimer@redhat.com>
35417
35418 * stdio-common/printf_fp.c (group_number): Remove
35419 internal_function.
35420 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
35421
35422 2017-08-31 Florian Weimer <fweimer@redhat.com>
35423
35424 * posix/fnmatch.c (internal_function): Remove definition.
35425 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
35426 * posix/regcomp.c (peek_token, init_word_char)
35427 (duplicate_node_closure, fetch_token, peek_token)
35428 (peek_token_bracket, build_range_exp, build_collating_symbol):
35429 Likewise.
35430 * posix/regex_internal.c (re_string_construct_common)
35431 (create_ci_newstate, create_cd_newstate, re_string_allocate)
35432 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
35433 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
35434 (re_string_translate_buffer, re_string_reconstruct)
35435 (re_string_peek_byte_case, re_string_fetch_byte_case)
35436 (re_string_destruct, re_string_context_at, re_node_set_alloc)
35437 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
35438 (re_node_set_add_intersect, re_node_set_init_union)
35439 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
35440 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
35441 (re_dfa_add_node, calc_state_hash, re_acquire_state)
35442 (re_acquire_state_context): Likewise.
35443 * posix/regex_internal.h (internal_function): Remove definition.
35444 (re_string_realloc_buffers, build_wcs_buffer)
35445 (build_wcs_upper_buffer, build_upper_buffer)
35446 (re_string_translate_buffer, re_string_context_at)
35447 (re_string_char_size_at, re_string_wchar_at)
35448 (re_string_elem_size_at): Likewise.
35449 * posix/regexec.c (match_ctx_init, match_ctx_clean)
35450 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
35451 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
35452 (re_search_internal, re_search_2_stub, re_search_stub)
35453 (re_copy_regs, prune_impossible_nodes, check_matching)
35454 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
35455 (free_fail_stack_return, sift_states_iter_mb)
35456 (sift_states_backward, build_sifted_states)
35457 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
35458 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
35459 (check_subexp_limits, sift_states_bkref, merge_state_array)
35460 (find_recover_state, transit_state, merge_state_with_log)
35461 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
35462 (transit_state_mb, transit_state_bkref, get_subexp)
35463 (get_subexp_sub, find_subexp_node, check_arrival)
35464 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
35465 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
35466 (check_node_accept_bytes, find_collation_sequence_value)
35467 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
35468 (acquire_init_state_context, check_halt_node_context)
35469 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
35470 (sub_epsilon_src_nodes): Likewise.
35471 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
35472 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
35473 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
35474 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
35475 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
35476 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
35477 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
35478 * sysdeps/posix/ttyname.c (getttyname): Likewise.
35479 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
35480 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
35481 (PREADV): Likewise.
35482 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
35483 (PREADV): Likewise.
35484 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
35485 (PWRITEV): Likewise.
35486 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
35487 (PWRITEV): Likewise.
35488 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
35489 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
35490
35491 2017-08-31 Florian Weimer <fweimer@redhat.com>
35492
35493 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
35494 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
35495 Remove internal_function.
35496 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
35497 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
35498 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
35499 (__deallocate_stack, __libc_pthread_init)
35500 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
35501 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
35502 (__libc_disable_asynccancel, __librt_disable_asynccancel):
35503 Likewise.
35504 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
35505 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
35506 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
35507 Likewise.
35508 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
35509 (__pthread_mutex_unlock_usercnt): Likewise.
35510
35511 2017-08-31 Florian Weimer <fweimer@redhat.com>
35512
35513 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
35514 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
35515 (fts_safe_changedir): Remove internal_function.
35516 * io/ftw.c (internal_function): Remove definition.
35517 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
35518
35519 2017-08-31 Florian Weimer <fweimer@redhat.com>
35520
35521 * inet/deadline.c (__deadline_current_time)
35522 (__deadline_from_timeval, __deadline_to_ms): Remove
35523 internal_function.
35524 * inet/getnameinfo.c (nrl_domainname): Likewise.
35525 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
35526 * inet/inet6_option.c (add_pad): Likewise.
35527 * inet/net-internal.h (__deadline_current_time)
35528 (__deadline_from_timeval, __deadline_to_ms): Likewise.
35529 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
35530 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
35531 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
35532
35533 2017-08-31 Joseph Myers <joseph@codesourcery.com>
35534
35535 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
35536 include <bits/nan.h>.
35537 * math/Makefile (headers): Remove bits/nan.h.
35538 * bits/nan.h: Remove.
35539 * sysdeps/ieee754/bits/nan.h: Likewise.
35540 * sysdeps/mips/bits/nan.h: Likewise.
35541
35542 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
35543 not include <bits/inf.h>.
35544 * math/Makefile (headers): Remove bits/inf.h.
35545 * bits/inf.h: Remove.
35546 * sysdeps/ieee754/bits/inf.h: Likewise.
35547
35548 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
35549 bits/huge_vall.h or bits/huge_val_flt128.h.
35550 (HUGE_VAL): Define directly here.
35551 [__USE_ISOC99] (HUGE_VALF): Likewise.
35552 [__USE_ISOC99] (HUGE_VALL): Likewise.
35553 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35554 (HUGE_VAL_F128): Likewise.
35555 * math/Makefile (headers): Remove bits/huge_val.h,
35556 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
35557 * bits/huge_val.h: Remove.
35558 * bits/huge_val_flt128.h: Likewise.
35559 * bits/huge_valf.h: Likewise.
35560 * bits/huge_vall.h: Likewise.
35561 * sysdeps/ia64/bits/huge_vall.h: Likewise.
35562 * sysdeps/ieee754/bits/huge_val.h: Likewise.
35563 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
35564 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
35565 * sysdeps/sh/bits/huge_val.h: Likewise.
35566 * sysdeps/sparc/bits/huge_vall.h: Likewise.
35567 * sysdeps/x86/bits/huge_vall.h: Likewise.
35568
35569 2017-08-31 Florian Weimer <fweimer@redhat.com>
35570
35571 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
35572 internal_function.
35573 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
35574 Likewise.
35575 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
35576 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
35577 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
35578 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
35579 * elf/dl-fini.c (_dl_sort_fini): Likewise.
35580 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
35581 * elf/dl-libc.c (dlerror_run): Likewise.
35582 * elf/dl-load.c (add_name_to_object, decompose_rpath)
35583 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
35584 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
35585 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
35586 Likewise.
35587 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
35588 (_dl_higher_prime_number, _dl_strtoul): Likewise.
35589 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
35590 * elf/dl-profile.c (_dl_start_profile): Likewise.
35591 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
35592 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
35593 Likewise.
35594 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
35595 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
35596 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
35597 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
35598 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
35599 (_dl_allocate_tls_storage): Likewise.
35600 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
35601 (_dl_check_all_versions): Likewise.
35602 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
35603 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
35604 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
35605 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35606 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
35607 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
35608 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
35609 internal_function from __dl_start.
35610 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
35611 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
35612 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
35613 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
35614 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35615 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35616 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35617 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35618 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35619 (_dl_next_ld_env_entry, _dl_important_hwcaps)
35620 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35621 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35622 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35623 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35624 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35625 Likewise.
35626 (struct rtld_global_ro): Remove internal_function from the
35627 _dl_lookup_symbol_x member.
35628 (_dl_symbol_value): Remove. No longer defined anywhere.
35629 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35630 internal_function.
35631 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35632 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35633 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35634 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35635 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35636 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35637 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35638 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35639 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35640 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35641 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35642 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35643
35644 2017-08-31 Florian Weimer <fweimer@redhat.com>
35645
35646 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35647 Remove internal_function.
35648 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35649 Likewise.
35650 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35651 Likewise.
35652
35653 2017-08-31 Florian Weimer <fweimer@redhat.com>
35654
35655 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35656 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35657 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35658
35659 2017-08-31 Florian Weimer <fweimer@redhat.com>
35660
35661 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35662 (__gai_enqueue_request): Remove internal_function.
35663 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35664 (__gai_remove_request, __gai_notify, __gai_notify_only)
35665 (__gai_sigqueue): Likewise.
35666 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35667 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35668 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35669 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35670 Likewise.
35671
35672 2017-08-31 Florian Weimer <fweimer@redhat.com>
35673
35674 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35675 * include/dirent.h (__opendirat, __getdents, __getdents64)
35676 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35677 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35678 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35679 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35680 Likewise.
35681 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35682
35683 2017-08-31 Florian Weimer <fweimer@redhat.com>
35684
35685 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35686 internal_function.
35687 (GETCWD_RETURN_TYPE): Likewise.
35688
35689 2017-08-31 Florian Weimer <fweimer@redhat.com>
35690
35691 * include/time.h (__tz_compute, __strptime_internal): Remove
35692 internal_function.
35693 * time/strptime_l.c (__strptime_internal): Likewise.
35694 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35695
35696 2017-08-31 Florian Weimer <fweimer@redhat.com>
35697
35698 * iconv/gconv.c (__gconv): Remove internal_function.
35699 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35700 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35701 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35702 (__gconv_release_cache): Likewise.
35703 * iconv/gconv_close.c (__gconv_close): Likewise.
35704 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35705 (read_conf_file, __gconv_get_path): Likewise.
35706 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35707 (__gconv_release_step, gen_steps, increment_counter)
35708 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35709 (__gconv_close_transform, free_modules_db): Likewise.
35710 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35711 Likewise.
35712 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35713 (__gconv_find_transform, __gconv_lookup_cache)
35714 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35715 (__gconv_close_transform, __gconv_release_cache)
35716 (__gconv_loaded_object, __gconv_release_shlib)
35717 (__gconv_compare_alias): Likewise.
35718 * iconv/gconv_open.c (__gconv_open): Likewise.
35719 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35720 * iconv/iconvconfig.c (add_module): Likewise.
35721 * intl/dcigettext.c (plural_lookup, guess_category_value)
35722 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35723 * intl/eval-plural.h (plural_eval): Likewise.
35724 * intl/finddomain.c (_nl_find_domain): Likewise.
35725 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35726 (_nl_load_domain, _nl_find_msg): Likewise.
35727 (internal_function): Remove definition.
35728 * intl/loadinfo.h (internal_function): Likewise.
35729 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35730 internal_function.
35731 * intl/localealias.c (internal_function): Remove definition.
35732 (read_alias_file): Remove internal_function.
35733 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35734 * intl/plural-exp.h (internal_function): Remove definition.
35735 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35736 internal_function.
35737 * intl/plural.c: Regenerate.
35738 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35739 * locale/coll-lookup.c (__collidx_table_lookup)
35740 (__collseq_table_lookup): Likewise.
35741 * locale/coll-lookup.h (__collidx_table_lookup)
35742 (__collseq_table_lookup): Likewise.
35743 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35744 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35745 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35746 (_nl_unload_locale): Likewise.
35747 * locale/localeinfo.h (struct __locale_data): Remove
35748 internal_function from cleanup member.
35749 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35750 (_nl_remove_locale, _nl_load_locale_from_archive)
35751 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35752 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35753 (_nl_cleanup_time): Remove internal_function.
35754 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35755 (_nl_parse_alt_digit): Likewise.
35756 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35757 (_nl_select_era_entry): Likewise.
35758 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35759 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35760 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35761 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35762 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35763
35764 2017-08-31 Florian Weimer <fweimer@redhat.com>
35765
35766 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35767 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35768 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35769 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35770 Likewise.
35771 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35772 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35773 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35774 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35775 Likewise.
35776 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35777
35778 2017-08-31 Florian Weimer <fweimer@redhat.com>
35779
35780 * misc/getttyent.c (skip, value): Remove internal_function.
35781 * misc/syslog.c (openlog_internal): Likewise.
35782 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35783
35784 2017-08-31 Florian Weimer <fweimer@redhat.com>
35785
35786 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35787 (__nss_rewrite_field): Remove internal_function.
35788 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35789 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35790 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35791 * nss/nsswitch.c (nss_parse_file, nss_getline)
35792 (nss_parse_service_list, nss_new_service): Likewise.
35793 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35794 * nss/valid_field.c (__nss_valid_field): Likewise.
35795 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35796
35797 2017-08-31 Florian Weimer <fweimer@redhat.com>
35798
35799 * malloc/arena.c (__malloc_fork_lock_parent)
35800 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35801 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35802 internal_function from defintions.
35803 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35804 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35805 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35806 internal_function from declarations.
35807 * malloc/malloc.c (internal_function): Do not define.
35808 (mem2mem_check): Remove internal_function from declaration.
35809 (munmap_chunk, mremap_chunk): Remove internal_function.
35810 * malloc/mtrace.c (tr_where): Likewise.
35811
35812 2017-08-31 Florian Weimer <fweimer@redhat.com>
35813
35814 * include/rpc/pmap_clnt.h (__get_socket): Remove
35815 internal_function.
35816 * sunrpc/auth_des.c (synchronize): Likewise.
35817 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35818 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35819 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35820 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35821 (key_call): Likewise.
35822 * sunrpc/pm_getport.c (__get_socket): Likewise.
35823 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35824 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35825 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35826 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35827 (invalidate): Likewise.
35828 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35829 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35830 (set_input_fragment, get_input_bytes): Likewise.
35831
35832 2017-08-31 Florian Weimer <fweimer@redhat.com>
35833
35834 * malloc/malloc.c (_int_free): Remove locked variable and related
35835 asserts.
35836
35837 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35838
35839 [BZ #22051]
35840 * Makerules (build-module-helper-objlist): Filter out
35841 $(elf-objpfx)sofini.os.
35842 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35843 needed.
35844
35845 2017-08-31 Florian Weimer <fweimer@redhat.com>
35846
35847 * libio/fcloseall.c: Assume weak_alias is defined.
35848 * libio/feof.c: Likewise.
35849 * libio/fileno.c: Likewise.
35850 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35851 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35852 definitions.
35853 (_IO_file_open): Call __open directly.
35854 (_IO_new_file_sync): Assume ESPIPE is defined.
35855 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35856 (_IO_new_file_write): Call __write directly.
35857 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35858 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35859 * libio/genops.c: Assume _LIBC is defined.
35860 (save_for_backup): Remove internal_function.
35861 * libio/getc.c: Assume weak_alias is defined.
35862 * libio/getwc.c: Likewise.
35863 * libio/iofclose.c: Assume _LIBC is defined.
35864 * libio/iofdopen.c: Likewise.
35865 (_IO_fcntl): Remove macro definition.
35866 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35867 Call __fcntl directly.
35868 * libio/iofflush.c: Assume weak_alias is defined.
35869 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35870 defined.
35871 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35872 * libio/iofgets.c: Likewise.
35873 * libio/iofopen.c: Assume _LIBC is defined.
35874 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35875 * libio/iofputs.c: Assume weak_alias is defined.
35876 * libio/iofread.c: Likewise.
35877 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35878 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35879 * libio/ioftell.c: Assume weak_alias is defined.
35880 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35881 * libio/iofwide.c: Assume _LIBC is defined.
35882 (_IO_fwide): Drop SHARED conditional because it is implied by
35883 SHLIB_COMPAT.
35884 * libio/iofwrite.c: Assume weak_alias is defined.
35885 * libio/iogetdelim.c: Likewise.
35886 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35887 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35888 (_IO_getwline): Call __wmemcpy directly.
35889 * libio/iopopen.c: Assume _LIBC is defined.
35890 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35891 (_IO_close): Remove macro definitions.
35892 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35893 _exit directly.
35894 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35895 directly.
35896 * libio/ioputs.c: Assume weak_alias is defined.
35897 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35898 * libio/iosetbuffer.c: Assume weak_alias is defined.
35899 * libio/iosetvbuf.c: Likewise.
35900 * libio/ioungetc.c: Likewise.
35901 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35902 libc_hidden_def, libc_hidden_weak, NULL are defined.
35903 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35904 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35905 defined.
35906 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35907 definitions.
35908 (_IO_old_file_init_internal): Drop SHARED conditional because it
35909 is implied by SHLIB_COMPAT.
35910 (_IO_old_file_fopen): Call __open directly.
35911 (_IO_old_file_sync): Assume ESPIPE is defined.
35912 (_IO_old_file_write): Call __write directly.
35913 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35914 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35915 Call __fcntl directly.
35916 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35917 (_IO_old_fgetpos): Assume EIO is defined.
35918 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35919 (_IO_old_fgetpos64): Assume EIO is defined.
35920 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35921 (_IO_old_fsetpos): Assume EIO is defined.
35922 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35923 (_IO_old_fsetpos64): Assume EIO is defined.
35924 * libio/oldiopopen.c: Assume _LIBC is defined.
35925 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35926 (_IO_close): Remove macro definitions.
35927 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35928 directly.
35929 (_IO_old_proc_close): Call __close, __waitpid directly.
35930 * libio/put.c: Assume weak_alias is defined.
35931 * libio/stdfiles.c: Assume _LIBC is defined.
35932 * libio/stdio.c: Likewise.
35933 * libio/wfileops.c: Likewise.
35934 (_IO_wfile_sync): Assume ESPIPE is defined.
35935 * libio/wgenops.c: Assume _LIBC is defined.
35936 (save_for_wbackup): Remove internal_function.
35937
35938 2017-08-31 Florian Weimer <fweimer@redhat.com>
35939
35940 * malloc/malloc.c (top_check): Change return type to void. Remove
35941 internal_function.
35942 * malloc/hooks.c (top_check): Likewise.
35943 (malloc_check, realloc_check, memalign_check): Adjust.
35944
35945 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35946
35947 [BZ #21457]
35948 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35949 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35950 sigcontext and namespace requirements.
35951 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35952 * sysdeps/m68k/sys/ucontext.h: Likewise.
35953 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35954 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35955 <bits/sigcontext.h>.
35956 (__ctx): Define earlier.
35957 (mcontext_t): Define structure contents rather than using struct
35958 sigcontext.
35959 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35960 __glibc_reserved1 instead of __reserved.
35961 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35962 <bits/sigcontext.h>.
35963 (__ctx): Define earlier.
35964 (mcontext_t): Define structure contents rather than using struct
35965 sigcontext.
35966 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35967 mcontext_t instead of struct sigcontext.
35968 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35969 <bits/sigcontext.h>.
35970 (__ctx): Define earlier.
35971 (mcontext_t): Define structure contents rather than using struct
35972 sigcontext.
35973 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35974 <bits/sigcontext.h>.
35975 (__ctx): Define earlier.
35976 (mcontext_t): Define structure contents rather than using struct
35977 sigcontext.
35978 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35979 mcontext_t instead of struct sigcontext.
35980 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35981 mcontext_t instead of struct sigcontext.
35982 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35983 <bits/sigcontext.h>.
35984 (__ctx): New macro.
35985 (struct __ia64_fpreg_mcontext): New type.
35986 (mcontext_t): Define structure contents rather than using struct
35987 sigcontext.
35988 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35989 (uc_sigmask): Define using __ctx.
35990 (uc_stack): Likewise.
35991 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35992 <bits/sigcontext.h>.
35993 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35994 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35995 <bits/sigcontext.h>.
35996 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35997 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35998 <bits/sigcontext.h>.
35999 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
36000 <bits/sigcontext.h>.
36001 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
36002 <bits/sigcontext.h>.
36003 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
36004 <bits/sigcontext.h>.
36005 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
36006 <bits/sigcontext.h>.
36007 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
36008 <bits/sigcontext.h>.
36009 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
36010 <bits/sigcontext.h>.
36011 (__ctx): Define earlier.
36012 (mcontext_t): Define structure contents rather than using struct
36013 sigcontext.
36014 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
36015 <bits/sigcontext.h>. Include <bits/types.h>.
36016 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
36017 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
36018 (test-xfail-XPG42/ucontext.h/conform): Likewise.
36019 (test-xfail-UNIX98/signal.h/conform): Likewise.
36020 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36021 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36022 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36023 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36024 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36025 (test-xfail-POSIX2008/signal.h/conform): Likewise.
36026 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36027 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36028 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36029
36030 2017-08-30 Florian Weimer <fweimer@redhat.com>
36031
36032 * malloc/dynarray_emplace_enlarge.c
36033 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
36034 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
36035 * malloc/tst-dynarray.c (test_long_overflow): New function.
36036 (do_test): Call it.
36037
36038 2017-08-30 Florian Weimer <fweimer@redhat.com>
36039
36040 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
36041 (set_arena_corrupt): Remove definitions.
36042 (mtrim): Do not check for corrupt arena.
36043 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
36044 Likewise.
36045
36046 2017-08-30 Florian Weimer <fweimer@redhat.com>
36047
36048 [BZ #21754]
36049 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
36050 check_action.
36051 (ptmalloc_init): Do not set or use check_action.
36052 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
36053 call to malloc_printerr. Remove return statement.
36054 (free_check): Likewise. Remove arena unlock.
36055 (top_check): Update comment. Adjust call to malloc_printerr.
36056 Remove heap repair code.
36057 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
36058 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
36059 (sysmalloc): Adjust call to malloc_printerr.
36060 (munmap_chunk, __libc_realloc): Likewise. Remove return
36061 statement.
36062 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
36063 Remove errout label and corresponding gotos.
36064 (_int_free): Likewise. Remove arena unlock.
36065 (do_set_mallopt_check): Do not set check_action.
36066 (malloc_printerr): Adjust parameter list. Do not mark arena as
36067 corrupt.
36068 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
36069 comment.
36070 * manual/probes.texi (Memory Allocation Probes): Remove
36071 memory_mallopt_check_action.
36072
36073 2017-08-30 Steve Ellcey <sellcey@cavium.com>
36074
36075 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
36076 Use pointer to uint64_t instead of long int for sp.
36077
36078 2017-08-30 Florian Weimer <fweimer@redhat.com>
36079
36080 [BZ #21754]
36081 * malloc/malloc.c (malloc_printerr): Always terminate the process,
36082 without printing a backtrace. Do not leak any information in the
36083 error message.
36084 * manual/memory.texi (Heap Consistency Checking): Update.
36085 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
36086
36087 2017-08-30 Florian Weimer <fweimer@redhat.com>
36088
36089 Do not scale NPTL tests with available number of CPUs.
36090 * nptl/tst-cond16.c (count): Set to constant value of 8.
36091 * nptl/tst-cond18.c (count): Likewise.
36092
36093 2017-08-29 Joseph Myers <joseph@codesourcery.com>
36094
36095 [BZ #22035]
36096 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
36097 Define to take a second argument that is a macro that
36098 concatentates a suffix, not the suffix itself.
36099 (__CONCAT_d): New macro.
36100 (__CONCAT_f): Likewise.
36101 (__CONCAT_l): Likewise.
36102
36103 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
36104
36105 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
36106 by child.
36107
36108 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36109 Aurelien Jarno <aurelien@aurel32.net>
36110 Maciej W. Rozycki <macro@imgtec.com>
36111
36112 [BZ #21956]
36113 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
36114 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
36115 `mips16-syscall6' and `mips16-syscall7'.
36116 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
36117 (CFLAGS-mips16-syscall7.c): Remove.
36118 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
36119 Remove `__mips16_syscall5', `__mips16_syscall6' and
36120 `__mips16_syscall7'.
36121 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
36122 (__mips16_syscall0): Rename `__mips16_syscall_return' to
36123 `__mips_syscall_return'.
36124 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
36125 (__mips16_syscall1): Likewise.
36126 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
36127 (__mips16_syscall2): Likewise.
36128 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
36129 (__mips16_syscall3): Likewise.
36130 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
36131 (__mips16_syscall4): Likewise.
36132 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
36133 Remove.
36134 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
36135 Remove.
36136 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
36137 Remove.
36138 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
36139 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
36140 `__mips16_syscall5'. Remove prototype.
36141 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
36142 `__mips16_syscall6'. Remove prototype.
36143 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
36144 `__mips16_syscall7'. Remove prototype.
36145 (__nomips16, __mips16_syscall_return): Move to...
36146 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
36147 (__nomips16, __mips_syscall_return): ... here.
36148 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
36149 `__mips16_syscall_return' to `__mips_syscall_return'.
36150 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
36151 `internal_syscall##nr'.
36152 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
36153 `internal_syscall##nr'.
36154 (FORCE_FRAME_POINTER): Remove.
36155 (__mips_syscall5): New prototype.
36156 (internal_syscall5): Rewrite to call `__mips_syscall5'.
36157 (__mips_syscall6): New prototype.
36158 (internal_syscall6): Rewrite to call `__mips_syscall6'.
36159 (__mips_syscall7): New prototype.
36160 (internal_syscall7): Rewrite to call `__mips_syscall7'.
36161 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
36162 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
36163 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
36164 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
36165 (sysdep_routines): Add libc-do-syscall.
36166 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
36167 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
36168
36169 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36170
36171 [BZ #21672]
36172 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
36173 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
36174 (advise_stack_range): New function.
36175 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
36176 stack non required to advise_stack_range at allocatestack.c
36177
36178 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
36179
36180 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
36181
36182 2017-08-29 Florian Weimer <fweimer@redhat.com>
36183
36184 [BZ #22026]
36185 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
36186 __end_fct. Mangle __end_fct after setting it to NULL.
36187 * iconv/Makefile (tests): Add tst-gconv-init-failure.
36188 (modules-names, modules-names-tests): Add
36189 tst-gconv-init-failure-mod.
36190 (gconv-modules): New target.
36191 (tst-gconv-init-failure-mod.so): Link against libsupport.
36192 (tst-gconv-init-failure): Depend on gconv-modules,
36193 tst-gconv-init-failure-mod.so.
36194 * iconv/tst-gconv-init-failure-mod.c: New file.
36195 * iconv/tst-gconv-init-failure.c: Likewise.
36196 * iconv/test-gconv-modules: Likewise.
36197
36198 2017-08-29 Florian Weimer <fweimer@redhat.com>
36199
36200 [BZ #22025]
36201 * iconv/gconv_db.c (free_derivation): Remove redundant
36202 parentheses.
36203 (gen_steps): Unconditionally mangle __btowc_fct after
36204 initialization.
36205 (increment_counter): Likewise. Do not call init_fct for internal
36206 modules.
36207
36208 2017-08-29 Joseph Myers <joseph@codesourcery.com>
36209
36210 [BZ #22028]
36211 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
36212 (_MSUF_): Remove macro.
36213 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
36214 Likewise.
36215 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
36216 (__REDIRFROM_X): New macro.
36217 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
36218 Likewise.
36219 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
36220 (__REDIRTO_X): Likewise.
36221 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
36222 arguments.
36223 (__MATH_REDIRCALL_2): Likewise.
36224 (__MATH_REDIRCALL_INTERNAL): Likewise.
36225 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
36226 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
36227 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
36228 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
36229 * math/test-finite-macros.c: New file.
36230 * math/Makefile (tests): Add test-finite-macros.
36231 (CFLAGS-test-finite-macros.c): New variable.
36232
36233 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
36234 Jeff Law <law@redhat.com>
36235
36236 [BZ #22025]
36237 Mangle NULL pointers in iconv/gconv.
36238 * iconv/gconv_cache.c (find_module): Demangle init_fct before
36239 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
36240 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
36241 is non-NULL before demangling the end_fct. Check for NULL
36242 end_fct after demangling.
36243 (__gconv_release_step): Demangle the end_fct before checking
36244 it for NULL. Remove assert on __shlibc_handle != NULL.
36245 (gen_steps): Don't check btowc_fct for NULL before mangling.
36246 Demangle init_fct before checking for NULL.
36247 (increment_counter): Likewise.
36248 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
36249 end_fct for NULL before mangling.
36250 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
36251 for NULL.
36252
36253 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
36254
36255 [BZ #21971]
36256 * locale/iso-639.def: add Morisyen.
36257
36258 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36259
36260 [BZ #21930]
36261 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
36262 (iszero): New C++ implementation that does not use
36263 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
36264 signaling nans are enabled, since __builtin_types_compatible_p
36265 is a C-only feature.
36266 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
36267 defined, include ieee754_float128.h for access to the union and
36268 member ieee854_float128.ieee.
36269 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
36270 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
36271 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36272 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
36273 options of test-math-zero on powerpc64le.
36274
36275 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
36276
36277 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
36278 Change double to float.
36279
36280 2017-08-28 Joseph Myers <joseph@codesourcery.com>
36281
36282 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
36283 unconditional.
36284 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
36285 conditional code; define contents only for [LIBM_SVID_COMPAT].
36286
36287 2017-08-28 Florian Weimer <fweimer@redhat.com>
36288
36289 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
36290 (abi-lp64_be-options): Remove.
36291 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
36292 (abi-hard-options): Likewise.
36293 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
36294 (abi-o32_hard-options, abi-o32_soft_2008-options)
36295 (abi-o32_hard_2008-options, abi-n32_soft-options)
36296 (abi-n32_hard-options, abi-n32_soft_2008-options)
36297 (abi-n32_hard_2008-options, abi-n64_soft-options)
36298 (abi-n64_hard-options, abi-n64_soft_2008-options)
36299 (abi-n64_hard_2008-options): Likewise.
36300 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
36301 (abi-64-v1-options, abi-64-v2-options): Likewise.
36302 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
36303 (abi-64-options): Likewise.
36304 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
36305 (abi-64-options): Likewise.
36306 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
36307 (abi-64-options): Likewise.
36308 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
36309 (abi-64-options, abi-x32-options): Likewise.
36310
36311 2017-08-28 Florian Weimer <fweimer@redhat.com>
36312
36313 Store supported list of SYS_* system calls in the source tree.
36314 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
36315 (bits/syscall.h): Generate from list file.
36316 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
36317 [$(subdir) = misc] (tests): Add tst-syscall-list.
36318 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
36319 [$(subdir) = misc] (tst-syscall-list-macros.list)
36320 [$(subdir) = misc] (tst-syscall-list-nr.list)
36321 (tst-syscall-list-sys.list): Helper targets for new
36322 tst-syscall-list test.
36323 [$(subdir) = misc] (tst-syscall-list.out): Run test script
36324 tst-syscall-list.sh.
36325 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
36326 target. Do not include bits/syscall.d.
36327 [$(subdir) = misc] (generated): Do not update.
36328 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
36329 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
36330 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
36331 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
36332
36333 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
36334
36335 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
36336 (tst-cxa_atexit, tst-on_exit): Likewise.
36337 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
36338 tst-cxa_atexit, and tst-on_exit.
36339 * stdlib/tst-atexit-common.c: New file.
36340 * stdlib/tst-atexit.c: New file.
36341 * stdlib/tst-at_quick_exit.c: New file.
36342 * stdlib/tst-cxa_atexit.c: New file.
36343 * stdlib/tst-on_exit.c: New file.
36344
36345 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
36346
36347 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
36348 * mach/stack_chk_fail_local.c: New file.
36349 * hurd/stack_chk_fail_local.c: New file.
36350 * mach/Machrules ($(interface-library)-routines): Add
36351 stack_chk_fail_local.
36352 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
36353 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
36354 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
36355 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
36356 * hurd/Makefile (CFLAGS-hurdstartup.o,
36357 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
36358
36359 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
36360
36361 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
36362 (index_cpu_*, index_arch_*): Removed.
36363
36364 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
36365
36366 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
36367 Use uint64_t instead of unsigned long.
36368
36369 2017-08-25 Joseph Myers <joseph@codesourcery.com>
36370
36371 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
36372 [__HAVE_DISTINCT_FLOAT128].
36373
36374 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
36375 of <bits/math-finite.h>.
36376 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
36377 inclusion of <bits/math-finite.h>.
36378 * math/bits/math-finite.h (__REDIRTO_X): Do not define
36379 conditionally on [__MATH_DECLARING_LDOUBLE && defined
36380 __NO_LONG_DOUBLE_MATH].
36381 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
36382 (__MATH_REDIRCALL_2): Likewise.
36383 (__MATH_REDIRCALL_INTERNAL): Likewise.
36384 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
36385 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
36386 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
36387
36388 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
36389 Remove file.
36390 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
36391 Likewise.
36392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
36393 Likewise.
36394 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
36395 Likewise.
36396 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
36397 Likewise.
36398 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
36399 Likewise.
36400 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36401 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36402 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36403 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
36405 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
36406 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
36407 w_sqrtf_compat-ppc32.
36408
36409 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36410
36411 * math/math.h [defined __cplusplus] (issignaling): In the long
36412 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
36413 is not defined. Call __issignaling, otherwise.
36414
36415 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36416
36417 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
36418 syscall definitions and replace __builtin_expect with __glibc_likely.
36419 * sysdeps/unix/syscall-template.S: Update comment about cancellable
36420 syscall.
36421 (SYSCALL_CANCELLABLE): Removedefinition
36422 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
36423 definition.
36424 (PSEUDO_END): Likewise.
36425 [IS_IN (libpthread)] (CENABLE): Likewise.
36426 [IS_IN (libpthread)] (CDISABLE): Likewise.
36427 [IS_IN (libc)] (CENABLE): Likewise.
36428 [IS_IN (libc)] (CENABLE): Likewise.
36429 [IS_IN (librt)] (CDISABLE): Likewise.
36430 [IS_IN (librt)] (CDISABLE): Likewise.
36431 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36432 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
36433 definition.
36434 (PSEUDO_END): Likewise.
36435 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
36436 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
36437 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36438 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36439 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36440 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36441 (CENABLE): Likewise.
36442 (CDISABLE): Likewise.
36443 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36444 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
36445 defintion.
36446 (PSEUDO_END): Likewise.
36447 [IS_IN (libpthread)] (CENABLE): Likewise.
36448 [IS_IN (libpthread)] (CDISABLE): Likewise.
36449 [IS_IN (libc)] (CENABLE): Likewise.
36450 [IS_IN (libc)] (CENABLE): Likewise.
36451 [IS_IN (librt)] (CDISABLE): Likewise.
36452 [IS_IN (librt)] (CDISABLE): Likewise.
36453 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36454 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
36455 definition.
36456 (PSEUDO_END): Likewise.
36457 [IS_IN (libpthread)] (CENABLE): Likewise.
36458 [IS_IN (libpthread)] (CDISABLE): Likewise.
36459 [IS_IN (libc)] (CENABLE): Likewise.
36460 [IS_IN (libc)] (CENABLE): Likewise.
36461 [IS_IN (librt)] (CDISABLE): Likewise.
36462 [IS_IN (librt)] (CDISABLE): Likewise.
36463 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36464 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
36465 definition.
36466 (PSEUDO_END): Likewise.
36467 [IS_IN (libpthread)] (CENABLE): Likewise.
36468 [IS_IN (libpthread)] (CDISABLE): Likewise.
36469 [IS_IN (libc)] (CENABLE): Likewise.
36470 [IS_IN (libc)] (CENABLE): Likewise.
36471 [IS_IN (librt)] (CDISABLE): Likewise.
36472 [IS_IN (librt)] (CDISABLE): Likewise.
36473 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36474 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
36475 definition.
36476 (PSEUDO_END): Likewise.
36477 [IS_IN (libpthread)] (CENABLE): Likewise.
36478 [IS_IN (libpthread)] (CDISABLE): Likewise.
36479 [IS_IN (libc)] (CENABLE): Likewise.
36480 [IS_IN (libc)] (CENABLE): Likewise.
36481 [IS_IN (librt)] (CDISABLE): Likewise.
36482 [IS_IN (librt)] (CDISABLE): Likewise.
36483 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36484 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
36485 definition.
36486 (PSEUDO_END): Likewise.
36487 [IS_IN (libpthread)] (CENABLE): Likewise.
36488 [IS_IN (libpthread)] (CDISABLE): Likewise.
36489 [IS_IN (libc)] (CENABLE): Likewise.
36490 [IS_IN (libc)] (CENABLE): Likewise.
36491 [IS_IN (librt)] (CDISABLE): Likewise.
36492 [IS_IN (librt)] (CDISABLE): Likewise.
36493 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36494 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
36495 definition.
36496 (PSEUDO_END): Likewise.
36497 [IS_IN (libpthread)] (CENABLE): Likewise.
36498 [IS_IN (libpthread)] (CDISABLE): Likewise.
36499 [IS_IN (libc)] (CENABLE): Likewise.
36500 [IS_IN (libc)] (CENABLE): Likewise.
36501 [IS_IN (librt)] (CDISABLE): Likewise.
36502 [IS_IN (librt)] (CDISABLE): Likewise.
36503 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36504 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
36505 Remove definition.
36506 (PSEUDO_END): Likewise.
36507 [IS_IN (libpthread)] (CENABLE): Likewise.
36508 [IS_IN (libpthread)] (CDISABLE): Likewise.
36509 [IS_IN (libc)] (CENABLE): Likewise.
36510 [IS_IN (libc)] (CENABLE): Likewise.
36511 [IS_IN (librt)] (CDISABLE): Likewise.
36512 [IS_IN (librt)] (CDISABLE): Likewise.
36513 (SINGLE_THREAD_P): Likewise.
36514 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
36515 definition.
36516 (PSEUDO_END): Likewise.
36517 [IS_IN (libpthread)] (CENABLE): Likewise.
36518 [IS_IN (libpthread)] (CDISABLE): Likewise.
36519 [IS_IN (libc)] (CENABLE): Likewise.
36520 [IS_IN (libc)] (CENABLE): Likewise.
36521 [IS_IN (librt)] (CDISABLE): Likewise.
36522 [IS_IN (librt)] (CDISABLE): Likewise.
36523 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36524 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
36525 definition.
36526 (PSEUDO_END): Likewise.
36527 [IS_IN (libpthread)] (CENABLE): Likewise.
36528 [IS_IN (libpthread)] (CDISABLE): Likewise.
36529 [IS_IN (libc)] (CENABLE): Likewise.
36530 [IS_IN (libc)] (CENABLE): Likewise.
36531 [IS_IN (librt)] (CDISABLE): Likewise.
36532 [IS_IN (librt)] (CDISABLE): Likewise.
36533 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36534 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
36535 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
36536 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
36537 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
36538 definition.
36539 (PSEUDO_END): Likewise.
36540 [IS_IN (libpthread)] (CENABLE): Likewise.
36541 [IS_IN (libpthread)] (CDISABLE): Likewise.
36542 [IS_IN (libc)] (CENABLE): Likewise.
36543 [IS_IN (libc)] (CENABLE): Likewise.
36544 [IS_IN (librt)] (CDISABLE): Likewise.
36545 [IS_IN (librt)] (CDISABLE): Likewise.
36546 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36547 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
36548 definition.
36549 (PSEUDO_END): Likewise.
36550 [IS_IN (libpthread)] (CENABLE): Likewise.
36551 [IS_IN (libpthread)] (CDISABLE): Likewise.
36552 [IS_IN (libc)] (CENABLE): Likewise.
36553 [IS_IN (libc)] (CENABLE): Likewise.
36554 [IS_IN (librt)] (CDISABLE): Likewise.
36555 [IS_IN (librt)] (CDISABLE): Likewise.
36556 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36557 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
36558 definition.
36559 (PSEUDO_END): Likewise.
36560 [IS_IN (libpthread)] (CENABLE): Likewise.
36561 [IS_IN (libpthread)] (CDISABLE): Likewise.
36562 [IS_IN (libc)] (CENABLE): Likewise.
36563 [IS_IN (libc)] (CENABLE): Likewise.
36564 [IS_IN (librt)] (CDISABLE): Likewise.
36565 [IS_IN (librt)] (CDISABLE): Likewise.
36566 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36567 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
36568 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
36569 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
36570 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
36571 definition.
36572 (PSEUDO_END): Likewise.
36573 [IS_IN (libpthread)] (CENABLE): Likewise.
36574 [IS_IN (libpthread)] (CDISABLE): Likewise.
36575 [IS_IN (libc)] (CENABLE): Likewise.
36576 [IS_IN (libc)] (CENABLE): Likewise.
36577 [IS_IN (librt)] (CDISABLE): Likewise.
36578 [IS_IN (librt)] (CDISABLE): Likewise.
36579 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36580 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
36581 definition.
36582 (PSEUDO_END): Likewise.
36583 [IS_IN (libpthread)] (CENABLE): Likewise.
36584 [IS_IN (libpthread)] (CDISABLE): Likewise.
36585 [IS_IN (libc)] (CENABLE): Likewise.
36586 [IS_IN (libc)] (CENABLE): Likewise.
36587 [IS_IN (librt)] (CDISABLE): Likewise.
36588 [IS_IN (librt)] (CDISABLE): Likewise.
36589 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36590
36591 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
36592
36593 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
36594
36595 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36596
36597 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
36598
36599 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36600
36601 [BZ #21982]
36602 * string/stratcliff.c (do_test): Declare size, nchars, inner,
36603 middle and outer with size_t instead of int. Repleace %d and
36604 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
36605 "MAX (outer, nchars - 64)" to support unsigned outer and
36606 nchars. Also exit loop when outer == 0.
36607
36608 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36609
36610 * include/fcntl.h (__fcntl_nocancel): Remove definition.
36611 * include/signal.h (__sigsuspend_nocancel): Likewise.
36612 * include/time.h (__nanosleep_nocancel): Likewise.
36613 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
36614 * login/utmp_file.c: Include non cancellable syscall header.
36615 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36616 prototype.
36617
36618 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36619
36620 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36621 .byte sequences with AVX512F instructions.
36622 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36623 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36624 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36625 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36626 Likewise.
36627 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36628 Likewise.
36629
36630 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36631 Steve Ellcey <sellcey@cavium.com>
36632
36633 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36634 Use PTR_REG macro in cmp instruction.
36635
36636 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36637
36638 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36639 Change the return type of the ifunc resolver to match the return
36640 type of the target function.
36641
36642 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36643
36644 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36645 (preadv64): Likewise.
36646 (pwrite64(: Likewise.
36647 (pwritev64): Likewise.
36648
36649 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36650 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36651 (LOAD_ARGS_0): Likewise.
36652 (LOAD_ARGS_1): Likewise.
36653 (LOAD_ARGS_2): Likewise.
36654 (LOAD_ARGS_3): Likewise.
36655 (LOAD_ARGS_4): Likewise.
36656 (LOAD_ARGS_5): Likewise.
36657 (LOAD_ARGS_6): Likewise.
36658 (LOAD_REGS_0): Likewise.
36659 (LOAD_REGS_1): Likewise.
36660 (LOAD_REGS_2): Likewise.
36661 (LOAD_REGS_3): Likewise.
36662 (LOAD_REGS_4): Likewise.
36663 (LOAD_REGS_5): Likewise.
36664 (LOAD_REGS_6): Likewise.
36665 (ASM_ARGS_0): Likewise.
36666 (ASM_ARGS_1): Likewise.
36667 (ASM_ARGS_2): Likewise.
36668 (ASM_ARGS_3): Likewise.
36669 (ASM_ARGS_4): Likewise.
36670 (ASM_ARGS_5): Likewise.
36671 (ASM_ARGS_6): Likewise.
36672 (LOAD_ARGS_TYPES_1): Likewise.
36673 (LOAD_ARGS_TYPES_2): Likewise.
36674 (LOAD_ARGS_TYPES_3): Likewise.
36675 (LOAD_ARGS_TYPES_4): Likewise.
36676 (LOAD_ARGS_TYPES_5): Likewise.
36677 (LOAD_ARGS_TYPES_6): Likewise.
36678 (LOAD_REGS_TYPES_1): Likewise.
36679 (LOAD_REGS_TYPES_2): Likewise.
36680 (LOAD_REGS_TYPES_3): Likewise.
36681 (LOAD_REGS_TYPES_4): Likewise.
36682 (LOAD_REGS_TYPES_5): Likewise.
36683 (LOAD_REGS_TYPES_6): Likewise.
36684 (TYPEFY): New define.
36685 (ARGIFY): Likewise.
36686 (internal_syscall0): Likewise.
36687 (internal_syscall1): Likewise.
36688 (internal_syscall2): Likewise.
36689 (internal_syscall3): Likewise.
36690 (internal_syscall4): Likewise.
36691 (internal_syscall5): Likewise.
36692 (internal_syscall6): Likewise.
36693 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36694 (INTERNAL_SYSCALL_NCS): Remove define.
36695 (internal_syscall1): Add define.
36696
36697 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36698
36699 * math/w_remainder_compat.c: Remove duplicate inclusion of
36700 math-svid-compat.h.
36701 * math/w_remainderf_compat.c: Likewise.
36702 * math/w_remainderl_compat.c: Likewise.
36703
36704 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36705
36706 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36707
36708 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36709
36710 [BZ #21684]
36711 * math/tgmath.h (__floating_type): Simplify definitions.
36712 (__real_integer_type): New macro.
36713 (__complex_integer_type): Likewise.
36714 (__expr_is_real): Likewise.
36715 (__tgmath_real_type_sub): Update comment to describe handling of
36716 complex types.
36717 (__tgmath_complex_type_sub): New macro.
36718 (__tgmath_complex_type): Likewise.
36719 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36720 (__TGMATH_CF128): Use __expr_is_real.
36721 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36722 __expr_is_real.
36723 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36724 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36725 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36726 integer types.
36727
36728 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36729
36730 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36731 macro.
36732 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36733 alias.
36734 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36735 Likewise.
36736
36737 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36738 nanosleep_not_cancel with __nanosleep_nocancel.
36739 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36740 (__nanosleep_nocancel): New macro.
36741 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36742 function.
36743 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36744 macro.
36745 (__nanosleep_nocancel): New prototype.
36746
36747 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36748 pause_not_cancel with __pause_nocancel.
36749 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36750 (__pause_nocancel): New macro.
36751 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36752 macro.
36753 (__pause_nocancel): New prototype.
36754 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36755
36756 2017-08-22 Martin Sebor <msebor@redhat.com>
36757
36758 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36759 to return a pointer to the same type as the target function.
36760
36761 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36762
36763 [BZ #18822]
36764 [BZ #21986]
36765 * include/printf.h (__printf_fphex): Add attribute_hidden.
36766 (__guess_grouping): New prototype.
36767 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36768 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36769 libc_hidden_proto and libc_hidden_def.
36770 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36771 (__vstrfmon_l): Remove the third argument passed to
36772 __guess_grouping.
36773
36774 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36775
36776 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36777 definition for issignaling that does not rely on __MATH_TG,
36778 since __MATH_TG uses __builtin_types_compatible_p, which is only
36779 available in C mode.
36780 (CFLAGS-test-math-issignaling.cc): New variable.
36781 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36782 * math/test-math-issignaling.cc: New test for C++ implementation
36783 of type-generic issignaling.
36784 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36785 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36786 options of test-math-issignaling on powerpc64le.
36787
36788 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36789
36790 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36791 building libc.a.
36792 (hidden_proto): Likewise.
36793 (hidden_tls_proto): Likewise.
36794 (__hidden_proto): Likewise.
36795
36796 2017-08-22 Florian Weimer <fweimer@redhat.com>
36797
36798 math: Statically link tests of internal functionality.
36799 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36800 atest-exp2.
36801 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36802 (gmp-objs): Remove assignment.
36803 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36804
36805 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36806
36807 [BZ #21987]
36808 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36809 and copy to ...
36810 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36811 ... here.
36812 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36813 ... and here.
36814
36815 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36816 variable definitions above inclusion of ../Rules.
36817
36818 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36819
36820 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36821 case calling __builtin_unreachable.
36822
36823 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36824
36825 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36826 __waitpid_nocancel.
36827 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36828 (__waitpid_nocancel): New macro.
36829 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36830 macro.
36831 (__waitpid_nocancel): Replace macro with a function.
36832 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36833 function.
36834
36835 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36836 __fcntl_nocancel.
36837 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36838 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36839
36840 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36841 __writev_nocancel_nostatus.
36842 (write_call_graph): Likewise.
36843 (write_bb_counts): Likewise.
36844 * resolv/herror.c (herror): Likewise.
36845 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36846 macro.
36847 (__writev_nocancel_nostatus): New macro.
36848 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36849 Remove macro.
36850 (__writev_nocancel_nostatus): New function.
36851
36852 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36853
36854 Revert:
36855 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36856
36857 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36858 building libc.a.
36859 (hidden_proto): Likewise.
36860 (hidden_tls_proto): Likewise.
36861 (__hidden_proto): Likewise.
36862
36863 [BZ #21973]
36864 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36865 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36866 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36867 Likewise.
36868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36869 Likewise.
36870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36871 Likewise.
36872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36873 Likewise.
36874 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36875 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36876 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36877 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36878 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36879 GLIBC_2.0 sqrtl symbol.
36880
36881 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36882 [__USE_MISC] (_LIB_VERSION): Likewise.
36883 [__USE_MISC] (struct exception): Likewise.
36884 [__USE_MISC] (matherr): Likewise.
36885 [__USE_MISC] (DOMAIN): Likewise.
36886 [__USE_MISC] (SING): Likewise.
36887 [__USE_MISC] (OVERFLOW): Likewise.
36888 [__USE_MISC] (UNDERFLOW): Likewise.
36889 [__USE_MISC] (TLOSS): Likewise.
36890 [__USE_MISC] (PLOSS): Likewise.
36891 [__USE_MISC] (HUGE): Likewise.
36892 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36893 * math/math-svid-compat.h: New file.
36894 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36895 and matherrl.
36896 * include/math.h [!_ISOMAC] (__matherr): Remove.
36897 * manual/arith.texi (FP Exceptions): Do not document matherr.
36898 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36899 (tests-internal): New variable.
36900 (install-lib): Do not add libieee.a.
36901 (non-lib.a): Likewise.
36902 (extra-objs): Do not add libieee.a and ieee-math.o.
36903 (CPPFLAGS-s_lib_version.c): Remove variable.
36904 ($(objpfx)libieee.a): Remove rule.
36905 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36906 * math/ieee-math.c: Remove.
36907 * math/libm-test-support.c (matherr): Remove.
36908 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36909 and license notices. Include <math-svid-compat.h> and
36910 <shlib-compat.h>.
36911 (matherr): Undefine as macro. Use compat_symbol_reference.
36912 (_LIB_VERSION): Likewise.
36913 * math/test-matherr-2.c: New file.
36914 * math/test-matherr-3.c: Likewise.
36915 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36916 declaration.
36917 (__kernel_standard_f): Likewise.
36918 (__kernel_standard_l): Likewise.
36919 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36920 <math_private.h>. Include <math-svid-compat.h>.
36921 (_LIB_VERSION): Undefine as macro.
36922 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36923 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36924 [LIBM_SVID_COMPAT], use compat_symbol.
36925 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36926 <math_private.h>. Include <math-svid-compat.h>.
36927 (matherr): Undefine as macro.
36928 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36929 compat_symbol.
36930 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36931 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36932 compat_symbol_reference.
36933 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36934 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36935 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36936 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36937 (MATHERR_D): Remove declaration.
36938 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36939 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36940 [LIBM_BUILD] (pmatherrf): Likewise.
36941 [LIBM_BUILD] (pmatherr): Likewise.
36942 [LIBM_BUILD] (pmatherrl): Likewise.
36943 (DOMAIN): Likewise.
36944 (SING): Likewise.
36945 (OVERFLOW): Likewise.
36946 (UNDERFLOW): Likewise.
36947 (TLOSS): Likewise.
36948 (PLOSS): Likewise.
36949 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36950 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36951 compat_symbol.
36952 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36953 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36954 compat_symbol.
36955 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36956 * math/w_acos_compat.c: Likewise.
36957 * math/w_acosf_compat.c: Likewise.
36958 * math/w_acosh_compat.c: Likewise.
36959 * math/w_acoshf_compat.c: Likewise.
36960 * math/w_acoshl_compat.c: Likewise.
36961 * math/w_acosl_compat.c: Likewise.
36962 * math/w_asin_compat.c: Likewise.
36963 * math/w_asinf_compat.c: Likewise.
36964 * math/w_asinl_compat.c: Likewise.
36965 * math/w_atan2_compat.c: Likewise.
36966 * math/w_atan2f_compat.c: Likewise.
36967 * math/w_atan2l_compat.c: Likewise.
36968 * math/w_atanh_compat.c: Likewise.
36969 * math/w_atanhf_compat.c: Likewise.
36970 * math/w_atanhl_compat.c: Likewise.
36971 * math/w_cosh_compat.c: Likewise.
36972 * math/w_coshf_compat.c: Likewise.
36973 * math/w_coshl_compat.c: Likewise.
36974 * math/w_exp10_compat.c: Likewise.
36975 * math/w_exp10f_compat.c: Likewise.
36976 * math/w_exp10l_compat.c: Likewise.
36977 * math/w_exp2_compat.c: Likewise.
36978 * math/w_exp2f_compat.c: Likewise.
36979 * math/w_exp2l_compat.c: Likewise.
36980 * math/w_fmod_compat.c: Likewise.
36981 * math/w_fmodf_compat.c: Likewise.
36982 * math/w_fmodl_compat.c: Likewise.
36983 * math/w_hypot_compat.c: Likewise.
36984 * math/w_hypotf_compat.c: Likewise.
36985 * math/w_hypotl_compat.c: Likewise.
36986 * math/w_j0_compat.c: Likewise.
36987 * math/w_j0f_compat.c: Likewise.
36988 * math/w_j0l_compat.c: Likewise.
36989 * math/w_j1_compat.c: Likewise.
36990 * math/w_j1f_compat.c: Likewise.
36991 * math/w_j1l_compat.c: Likewise.
36992 * math/w_jn_compat.c: Likewise.
36993 * math/w_jnf_compat.c: Likewise.
36994 * math/w_jnl_compat.c: Likewise.
36995 * math/w_lgamma_main.c: Likewise.
36996 * math/w_lgamma_r_compat.c: Likewise.
36997 * math/w_lgammaf_main.c: Likewise.
36998 * math/w_lgammaf_r_compat.c: Likewise.
36999 * math/w_lgammal_main.c: Likewise.
37000 * math/w_lgammal_r_compat.c: Likewise.
37001 * math/w_log10_compat.c: Likewise.
37002 * math/w_log10f_compat.c: Likewise.
37003 * math/w_log10l_compat.c: Likewise.
37004 * math/w_log2_compat.c: Likewise.
37005 * math/w_log2f_compat.c: Likewise.
37006 * math/w_log2l_compat.c: Likewise.
37007 * math/w_log_compat.c: Likewise.
37008 * math/w_logf_compat.c: Likewise.
37009 * math/w_logl_compat.c: Likewise.
37010 * math/w_pow_compat.c: Likewise.
37011 * math/w_powf_compat.c: Likewise.
37012 * math/w_powl_compat.c: Likewise.
37013 * math/w_remainder_compat.c: Likewise.
37014 * math/w_remainderf_compat.c: Likewise.
37015 * math/w_remainderl_compat.c: Likewise.
37016 * math/w_scalb_compat.c: Likewise.
37017 * math/w_scalbf_compat.c: Likewise.
37018 * math/w_scalbl_compat.c: Likewise.
37019 * math/w_sinh_compat.c: Likewise.
37020 * math/w_sinhf_compat.c: Likewise.
37021 * math/w_sinhl_compat.c: Likewise.
37022 * math/w_sqrt_compat.c: Likewise.
37023 * math/w_sqrtf_compat.c: Likewise.
37024 * math/w_sqrtl_compat.c: Likewise.
37025 * math/w_tgamma_compat.c: Likewise.
37026 * math/w_tgammaf_compat.c: Likewise.
37027 * math/w_tgammal_compat.c: Likewise.
37028 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
37029 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
37030 * sysdeps/ieee754/k_standard.c: Likewise.
37031 * sysdeps/ieee754/k_standardf.c: Likewise.
37032 * sysdeps/ieee754/k_standardl.c: Likewise.
37033 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
37034 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
37035 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
37036 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
37037 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
37038 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
37039 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
37040 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
37041 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
37042 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
37043 Likewise.
37044 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
37045 Likewise.
37046 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
37047 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
37048 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
37049 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
37050
37051 2017-08-21 Florian Weimer <fweimer@redhat.com>
37052
37053 [BZ #21864]
37054 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
37055 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
37056 Move before inclusion of ../Rules.
37057
37058 2017-08-21 Florian Weimer <fweimer@redhat.com>
37059
37060 [BZ #21972]
37061 * assert/assert.h (assert): Use static_cast (bool) for C++.
37062 Use the ternary operator in the warning branch for GNU C.
37063 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
37064 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
37065 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
37066 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
37067 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
37068
37069 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37070
37071 [BZ #18822]
37072 * sysdeps/unix/sysv/linux/x86_64/init-first.c
37073 (__syscall_clock_gettime): Add attribute_hidden.
37074 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
37075 (__start_context): Likewise.
37076
37077 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37078
37079 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
37080 building libc.a.
37081 (hidden_proto): Likewise.
37082 (hidden_tls_proto): Likewise.
37083 (__hidden_proto): Likewise.
37084
37085 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37086
37087 * include/libc-symbols.h (attribute_hidden): Enable hidden
37088 visibility in libc.a compiled with PIE.
37089
37090 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37091
37092 [BZ #18822]
37093 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
37094 Add attribute_hidden.
37095
37096 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37097
37098 [BZ #21864]
37099 * Makerules (all-nonlib): Add $(others-extras).
37100 * catgets/Makefile (others-extras): New.
37101 * elf/Makefile (others-extras): Likewise.
37102 * nss/Makefile (others-extras): Likewise.
37103
37104 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37105
37106 [BZ #18822]
37107 * csu/libc-start.c (__libc_multiple_libcs): Removed.
37108 * elf/dl-open.c: Include <libc-internal.h>.
37109 (__libc_multiple_libcs): Removed.
37110 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
37111 <hp-timing.h>.
37112 * include/libc-internal.h (__libc_multiple_libcs): New.
37113 * misc/sbrk.c: Include <libc-internal.h>.
37114 (__libc_multiple_libcs): Removed.
37115
37116 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
37117
37118 [BZ #18822]
37119 * grp/initgroups.c (__nss_group_database): Removed.
37120 (__nss_initgroups_database): Likewise.
37121 * nscd/gai.c (__nss_hosts_database): Likewise.
37122 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
37123 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
37124 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
37125 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
37126 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
37127 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
37128 attribute_hidden.
37129 * nss/nsswitch.c (__nss_database_custom): Define only if
37130 USE_NSCD is defined.
37131 (__nss_configure_lookup): Use __nss_database_custom only if
37132 USE_NSCD is defined.
37133 * nss/nsswitch.h (__nss_database_custom): Declare only if
37134 USE_NSCD is defined. Add attribute_hidden.
37135 (__nss_setent): Add attribute_hidden.
37136 (__nss_endent): Likewise.
37137 (__nss_getent_r): Likewise.
37138 (__nss_getent): Likewise.
37139 (DEFINE_DATABASE): Declare __nss_##arg##_database.
37140
37141 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37142
37143 [BZ #18822]
37144 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
37145 libc_hidden_proto and libc_hidden_def.
37146
37147 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37148
37149 [BZ #18822]
37150 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
37151 Add libc_hidden_proto.
37152 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
37153 Add libc_hidden_def.
37154
37155 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37156
37157 [BZ #21974]
37158 * gmon/Makefile (routines): Remove bb_init_func and
37159 bb_exit_func.
37160 (elide-routines.os): Removed.
37161 * gmon/bb_exit_func.c: Likewise.
37162 * gmon/bb_init_func.c: Likewise.
37163 * include/sys/gmon.h (__bb): Likewise.
37164 (__bb_init_func): Likewise.
37165 (__bb_exit_func): Likewise.
37166 * sysdeps/alpha/bb_init_func.S: Likewise.
37167
37168 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
37169
37170 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
37171 * include/setjmp.h (____longjmp_chk): Here. Add
37172 attribute_hidden.
37173
37174 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
37175
37176 [BZ #18822]
37177 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
37178 attribute_hidden.
37179 (__strspn_sse2): Likewise.
37180
37181 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37182
37183 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
37184 (close_not_cancel_no_status): Likewise.
37185 (__close_nocancel): New macro.
37186 (__close_nocancel_nostatus): Likewise.
37187 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
37188 macro.
37189 (close_not_cancel): Likewise.
37190 (close_not_cancel_no_status): Likewise.
37191 (__close_nocancel): New prototype.
37192 (__close_nocancel_nostatus): New function.
37193 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
37194 * catgets/open_catalog.c (__open_catalog): Replace
37195 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
37196 * gmon/gmon.c (write_gmon): Likewise.
37197 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37198 * intl/loadmsgcat.c (close): Likewise.
37199 * io/ftw.c (open_dir_stream): Likewise.
37200 (ftw_startup): Likewise.
37201 * libio/fileops.c (_IO_file_open): Likewise.
37202 (_IO_file_close_mmap): Likewise.
37203 (_IO_file_close): Likewise.
37204 * libio/iopopen.c (_IO_dup2): Likewise.
37205 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37206 * locale/loadlocale.c (_nl_load_locale): Likewise.
37207 * login/utmp_file.c (pututline_file): Likewise.
37208 (endutent_file): Likewise.
37209 * misc/daemon.c (daemon): Likewise.
37210 * nscd/nscd_getai.c (__nscd_getai): Likewise.
37211 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37212 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
37213 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37214 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37215 * nscd/nscd_helper.c (open_socket): Likewise.
37216 (__nscd_open_socket): Likewise.
37217 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37218 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
37219 (__nscd_innetgr): Likewise.
37220 * nss/nss_db/db-open.c (internal_setent): Likewise.
37221 * resolv/res-close.c (__res_iclose): Likewise.
37222 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
37223 * sysdeps/posix/closedir.c (__closedir): Likewise.
37224 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
37225 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37226 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
37227 (opendir_tail): Likewise.
37228 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37229 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
37230 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37231 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
37232 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37233 (gethostid): Likewise.
37234 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37235 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37236 Likewise.
37237 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
37238 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
37239 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37240 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37241 Likewise.
37242 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
37243 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
37244 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37245 Likewise.
37246 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
37247 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37248 Likewise.
37249 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37250 Likewise.
37251 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
37252 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37253 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37254 __close_nocancel.
37255
37256 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
37257 (openat_not_cancel_3): Likewise.
37258 (openat64_not_cancel_3): Likewise).
37259 (openat_not_cancel_3): Likewise).
37260 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
37261 macro.
37262 (openat_not_cancel_3): Likewise.
37263 (openat64_not_cancel): Likewise.
37264 (openat64_not_cancel_3): Likewise.
37265 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
37266 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
37267 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
37268 __open{64}_nocancel.
37269 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
37270 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37271 * sysdeps/posix/opendir.c (__opendirat): Likewise.
37272
37273 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
37274
37275 [BZ #18822]
37276 * include/argz.h (__argz_create_sep): New function prototype.
37277 (__argz_append): Likewise.
37278 (__argz_add): Likewise.
37279 (__argz_add_sep): Likewise.
37280 (__argz_delete): Likewise.
37281 (__argz_insert): Likewise.
37282 (__argz_replace): Likewise.
37283 * string/argz.h (__argz_create_sep): Removed.
37284 (__argz_append): Likewise.
37285 (__argz_add): Likewise.
37286 (__argz_add_sep): Likewise.
37287 (__argz_delete): Likewise.
37288 (__argz_insert): Likewise.
37289 (__argz_replace): Likewise.
37290
37291 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
37292
37293 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
37294 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
37295 (GNU_PROPERTY_STACK_SIZE): Likewie.
37296 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
37297 (GNU_PROPERTY_LOPROC): Likewise.
37298 (GNU_PROPERTY_HIPROC): Likewise.
37299 (GNU_PROPERTY_LOUSER): Likewise.
37300 (GNU_PROPERTY_HIUSER): Likewise.
37301 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
37302 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
37303 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
37304 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
37305 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
37306 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
37307 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
37308 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
37309 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
37310 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
37311 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
37312 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
37313 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
37314 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
37315 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
37316 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
37317 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
37318 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
37319 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
37320 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
37321 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
37322 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
37323 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
37324
37325 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37326
37327 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
37328 in C++ mode.
37329
37330 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37331
37332 [BZ #21930]
37333 * math/math.h (isinf): Check if in C or C++ mode before using
37334 __builtin_types_compatible_p, since this is a C mode feature.
37335
37336 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37337
37338 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
37339 (__write_nocancel): New macro.
37340 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
37341 Rewrite as a function prototype.
37342 (write_not_cancel): Remove macro.
37343 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
37344 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
37345 (write_gmon): Likewise.
37346 * libio/fileops.c (_IO_new_file_write): Likewise.
37347 * login/utmp_file.c (pututline_file): Likewise.
37348 (updwtmp_file): Likewise.
37349 * stdio-common/psiginfo.c (psiginfo): Likewise.
37350 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37351 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37352 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37353 Likewise.
37354 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37355 Likewise.
37356
37357 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
37358 (__read_nocancel): New macro.
37359 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37360 __read_nocancel.
37361 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
37362 macro.
37363 (__read_nocancel): New prototype.
37364 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
37365 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
37366 with __read_nocancel.
37367 * intl/loadmsgcat.c (read): Likewise.
37368 * libio/fileops.c (_IO_file_read): Likewise.
37369 * locale/loadlocale.c (_nl_load_locale): Likewise.
37370 * login/utmp_file.c (getutent_r_file): Likewise.
37371 (internal_getut_r): Likewise.
37372 (getutline_r_file): Likewise.
37373 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37374 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
37375 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37376 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37377 Likewise.
37378 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
37379 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37380 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37381 Likewise.
37382 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37383 Likewise.
37384 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37385 Likewise.
37386 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37387 Likewise.
37388 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37389
37390 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
37391
37392 [BZ #21966]
37393 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
37394 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
37395 usable.
37396
37397 2017-08-17 DJ Delorie <dj@redhat.com>
37398
37399 * bug17079.c: Update to new test harness.
37400 * test-digits-dots.c: Likewise.
37401 * test-netdb.c: Likewise.
37402 * tst-field.c: Likewise.
37403 * tst-nss-getpwent.c: Likewise.
37404 * tst-nss-static.c: Likewise.
37405 * tst-nss-test1.c: Likewise.
37406 * tst-nss-test2.c: Likewise.
37407 * tst-nss-test3.c: Likewise.
37408 * tst-nss-test4.c: Likewise.
37409 * tst-nss-test5.c: Likewise.
37410
37411 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37412
37413 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
37414 (open_not_cancel_2): Likewise.
37415 (open_nocancel): New macro.
37416 (open64_nocancel): Likewise.
37417 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
37418 (open_not_cancel_2): Likewise.
37419 (__open_nocancel): New prototype.
37420 (__open64_nocancel): Likewise.
37421 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37422 __open_nocancel.
37423 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
37424 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
37425 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
37426 with __open_nocancel.
37427 * csu/check_fds.c (check_one_fd): Likewise.
37428 * gmon/gmon.c (write_gmon): Likewise.
37429 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
37430 * intl/loadmsgcat.c (open): Likewise.
37431 * libio/fileops.c (_IO_file_open): Likewise.
37432 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37433 * locale/loadlocale.c (_nl_load_locale): Likewise.
37434 * login/utmp_file.c (setutent_file): Likewise.
37435 * misc/daemon.c (daemon): Likewise.
37436 * nss/nss_db/db-open.c (internal_setent): Likewise.
37437 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
37438 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
37439 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
37440 (__opendir): Likewise.
37441 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37442 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37443 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37444 (gethostid): Likewise.
37445 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37446 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37447 Likewise.
37448 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
37449 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
37450 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37451 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37452 Likewise.
37453 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37454 Likewise.
37455 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37456 Likewise.
37457 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
37458 Likewise.
37459 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37460 Likewise.
37461 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37462 Likewise.
37463 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
37464 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37465
37466 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
37467
37468 * benchtests/bench-skeleton.c (main): Add support for
37469 latency benchmarking.
37470 * benchtests/scripts/bench.py: Add support for latency benchmarking.
37471
37472 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
37473
37474 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
37475 the startup object.
37476
37477 2017-08-17 Florian Weimer <fweimer@redhat.com>
37478
37479 * include/sys/socket.h (__opensock): Remove internal_function.
37480 * socket/opensock.c (__opensock): Likewise.
37481 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
37482
37483 2017-08-16 Joseph Myers <joseph@codesourcery.com>
37484
37485 [BZ #21944]
37486 * signal/bits/types/__sigval_t.h: New file.
37487 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
37488 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
37489 and define sigval_t using __sigval_t.
37490 * include/bits/types/__sigval_t.h: New file.
37491 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
37492 instead of <bits/types/__sigval_t.h>.
37493 (struct sigevent): Use __sigval_t instead of sigval_t.
37494 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
37495 instead of <bits/types/__sigval_t.h>.
37496 (siginfo_t): Use __sigval_t instead of sigval_t.
37497 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
37498 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37499 (struct sigevent): Use __sigval_t instead of sigval_t.
37500 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
37501 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37502 (siginfo_t): Use __sigval_t instead of sigval_t.
37503 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
37504
37505 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37506
37507 * NEWS: Remove "[Add new features here]" for 2.27.
37508
37509 2017-08-16 Joseph Myers <joseph@codesourcery.com>
37510
37511 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
37512 libc.so.
37513
37514 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37515
37516 * NEWS: Mention x86-64 FMA optimization.
37517
37518 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37519
37520 [BZ #21912]
37521 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37522 Add e_expf-fma.
37523 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
37524 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
37525 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
37526
37527 2017-08-16 Andreas Schwab <schwab@suse.de>
37528
37529 [BZ #16750]
37530 CVE-2009-5064
37531 * elf/ldd.bash.in: Never run file directly.
37532
37533 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
37534
37535 [BZ #21955]
37536 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
37537 (L(SP_INF_0)): Likewise.
37538
37539 2017-08-15 Florian Weimer <fweimer@redhat.com>
37540
37541 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
37542 run-built-tests.
37543
37544 2017-08-15 Florian Weimer <fweimer@redhat.com>
37545
37546 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
37547 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
37548 BROKEN_THREAD_SIGNALS code.
37549 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
37550 request_list): Remove caller_pid member used for
37551 BROKEN_THREAD_SIGNALS.
37552 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
37553 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
37554 Remove BROKEN_THREAD_SIGNALS support.
37555 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
37556 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
37557
37558 2017-08-15 Florian Weimer <fweimer@redhat.com>
37559
37560 * gmon/Makefile (tests): Add tst-gmon.
37561 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
37562 Set.
37563 (tests-special): Add tst-gmon-prof.out.
37564 (tst-gmon.out): Depend on clean-tst-gmon-data.
37565 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
37566 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
37567 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
37568 startup object.
37569 * aclocal.m4 (GPROF): Set and substitute.
37570 * config.amke.in (GPROF): Set.
37571 * configure: Regenerate.
37572
37573 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
37574
37575 * elf/elf.h A (NT_PPC_TAR): New macro.
37576 (NT_PPC_PPR): Likewise.
37577 (NT_PPC_DSCR): Likewise.
37578 (NT_PPC_EBB): Likewise.
37579 (NT_PPC_PMU): Likewise.
37580 (NT_PPC_TM_CGPR): Likewise.
37581 (NT_PPC_TM_CFPR): Likewise.
37582 (NT_PPC_TM_CVMX): Likewise.
37583 (NT_PPC_TM_CVSX): Likewise.
37584 (NT_PPC_TM_SPR): Likewise.
37585 (NT_PPC_TM_CTAR): Likewise.
37586 (NT_PPC_TM_CPPR): Likewise.
37587 (NT_PPC_TM_CDSCR): Likewise.
37588
37589 2017-08-15 Florian Weimer <fweimer@redhat.com>
37590
37591 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
37592 regparm (2) instead of internal_function.
37593 (_MCOUNT_DECL): Adjust.
37594
37595 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
37596
37597 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
37598 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
37599
37600 2017-08-14 Joseph Myers <joseph@codesourcery.com>
37601
37602 * conform/data/sys/wait.h-data (si_value): Do not expect for
37603 XPG42.
37604
37605 2017-08-14 Florian Weimer <fweimer@redhat.com>
37606
37607 [BZ #21962]
37608 NSS: Create stubs for accidentally exported lookup functions.
37609 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
37610 Remove declaration.
37611 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
37612 (ether_hostton): Call __nss_ethers_lookup2 instead.
37613 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
37614 (ether_ntohost): Call __nss_ethers_lookup2 instead.
37615 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37616 (setup): Call __nss_netgroup_lookup2 instead.
37617 * nss/Makefile (routines): Add compat-lookup.
37618 * nss/Versions (GLIBC_2.27): Add symbol version.
37619 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
37620 (DB_COMPAT_FCT): Remove.
37621 * nss/compat-lookup.c: New file.
37622 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37623 from databases.def.
37624 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37625 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37626 (netname2user): Call __nss_publickey_lookup2 instead.
37627 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37628 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37629 instead.
37630
37631 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37632 Sergei Trofimovich <slyfox@inbox.ru>
37633
37634 [BZ #21908]
37635 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37636 Rename to MMAP2_PAGE_UNIT.
37637 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37638 __OFF_T_MATCHES_OFF64_T is not defined.
37639 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37640 uint64_t.
37641 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37642 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37643
37644 2017-08-14 Florian Weimer <fweimer@redhat.com>
37645
37646 i386: Do not set internal_function.
37647 * config.h.in (USE_REGPARMS, internal_function): Remove.
37648 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37649 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37650
37651 2017-08-14 Florian Weimer <fweimer@redhat.com>
37652
37653 * elf/dl-init.c (_dl_init): Remove internal_function.
37654 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37655 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37656
37657 2017-08-14 Florian Weimer <fweimer@redhat.com>
37658
37659 * elf/rtld.c (_dl_start): Remove internal_function.
37660 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37661 _dl_start.
37662
37663 2017-08-14 Florian Weimer <fweimer@redhat.com>
37664
37665 * elf/dl-fini.c (_dl_fini): Remove internal_function
37666 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37667
37668 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37669
37670 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37671 (bit_cpu_SHSTK): Likewise.
37672 (index_cpu_IBT): Likewise.
37673 (index_cpu_SHSTK): Likewise.
37674 (reg_IBT): Likewise.
37675 (reg_SHSTK): Likewise.
37676 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37677 Handle index_cpu_IBT and index_cpu_SHSTK.
37678
37679 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37680
37681 [BZ #19982]
37682 * po/fr.po: Fix spelling mistake.
37683
37684 2017-08-13 Florian Weimer <fweimer@redhat.com>
37685
37686 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37687 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37688 (_dl_catch_error, _dl_receive_error): Likewise.
37689 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37690 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37691 (_dl_deallocate_tls): Likewise.
37692 * include/dlfcn.h (_dl_addr): Likewise.
37693 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37694 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37695 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37696 Likewise.
37697
37698 2017-08-13 Florian Weimer <fweimer@redhat.com>
37699
37700 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37701 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37702 internal_function.
37703 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37704
37705 2017-08-13 Florian Weimer <fweimer@redhat.com>
37706
37707 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37708 internal_function.
37709 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37710 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37711 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37712 internal_function from _dl_make_stack_executable_hook member.
37713 (_dl_make_stack_executable): Remove internal_function.
37714 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37715 Likewise.
37716 * sysdeps/unix/sysv/linux/dl-execstack.c
37717 (_dl_make_stack_executable): Likewise.
37718
37719 2017-08-13 Florian Weimer <fweimer@redhat.com>
37720
37721 * sysdeps/unix/sysv/linux/netlinkaccess.h
37722 (__netlink_assert_response): Remove internal_function.
37723 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37724 (__netlink_assert_response): Likewise.
37725
37726 2017-08-13 Florian Weimer <fweimer@redhat.com>
37727
37728 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37729 internal_function.
37730 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37731
37732 2017-08-13 Florian Weimer <fweimer@redhat.com>
37733
37734 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37735 internal_function.
37736 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37737 * inet/netgroup.h (__internal_setnetgrent)
37738 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37739 * inet/getnetgrent_r.c (__internal_setnetgrent)
37740 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37741 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37742 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37743 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37744 * nss/nsswitch.h (db_lookup_function): Likewise.
37745
37746 2017-08-13 Florian Weimer <fweimer@redhat.com>
37747
37748 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37749 Remove internal_function.
37750 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37751 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37752 message argument on the stack.
37753 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37754 Likeweise.
37755
37756 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37757
37758 Adapt test case data to the changes in the thousands
37759 separators.
37760
37761 [BZ #20756]
37762 * localedata/tst-langinfo.sh: Adapt test case data.
37763 * stdlib/tst-strfmon_l.c: Likewise.
37764 * stdlib/tst-strtod4.c: Likewise.
37765 * stdlib/tst-strtod5i.c: Likewise.
37766
37767 2017-08-11 Florian Weimer <fweimer@redhat.com>
37768
37769 [BZ #21242]
37770 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37771 Suppress pedantic warning resulting from statement expression.
37772 (__ASSERT_FUNCTION): Add missing __extension__.
37773
37774 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37775
37776 * benchtests/bench-memmove-large.c: Print output in JSON
37777 format.
37778 * benchtests/bench-memmove.c: Likewise.
37779
37780 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37781 * benchtests/bench-memchr.c (do_one_test): Likewise.
37782 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37783 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37784 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37785 * benchtests/bench-memmove.c (do_one_test): Likewise.
37786 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37787 * benchtests/bench-memset.c (do_one_test): Likewise.
37788 * benchtests/bench-string.h (test_init): Remove memsets.
37789
37790 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37791
37792 * manual/lang.texi
37793 (Computing the Width of an Integer Data Type): Rename section to
37794 "Width of an Integer Type". Remove inaccurate statement regarding
37795 lack of C language facilities for determining width of integer
37796 types, and reorder content to improve flow and context of
37797 discussion.
37798
37799 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37800
37801 * lang.texi (va_copy): Change standard from ISO to C99.
37802 (__va_copy): Add standard and header annotation.
37803 Update description for clarity of origins and current use.
37804
37805 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37806
37807 [BZ #21941]
37808 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37809 xssqrtqp requires operands to be in Vector Registers
37810 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37811 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37812 (__ieee754_sqrtf128): Likewise.
37813
37814 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37815
37816 * sysdeps/aarch64/memcmp.S (memcmp):
37817 Rewrite of optimized memcmp.
37818
37819 2017-08-10 Florian Weimer <fweimer@redhat.com>
37820
37821 Introduce ld.so exceptions.
37822 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37823 (_dl_exception_create, _dl_exception_create_format)
37824 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37825 (_dl_catch_exception): Declare.
37826 (_dl_catch_error): Update comment.
37827 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37828 errstring, malloced members with exception member.
37829 (_dl_out_of_memory): Remove.
37830 (fatal_error): New function, extracted from _dl_signal_error.
37831 (_dl_signal_exception, _dl_signal_cexception): New functions.
37832 (_dl_signal_error): Call _dl_exception_create to allocate an
37833 exception object.
37834 (_dl_catch_exception): New function, based on _dl_catch_error.
37835 (_dl_catch_error): Implement using _dl_catch_exception.
37836 * elf/dl-exception.c: New file.
37837 * elf/Makefile (dl-routines): Add dl-exception.
37838 (elide-routines.os): Likewise.
37839 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37840 _dl_exception_create_format, _dl_exception_free.
37841 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37842 _dl_signal_exception.
37843 * elf/dl-lookup.c (make_string): Remove.
37844 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37845 _dl_signal_cexception, _dl_exception_free.
37846 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37847 _dl_signal_exception.
37848 * elf/dl-sym.c (do_sym): Likewise.
37849 * elf/dl-version.c (make_string): Remove.
37850 (match_symbol): Use _dl_exception_create_format,
37851 _dl_signal_cexception, _dl_exception_free.
37852 (_dl_check_map_versions): Likewise.
37853 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37854 _dl_catch_exception.
37855 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37856 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37857 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37858 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37859 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37860 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37861 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37862 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37863 Likewise.
37864 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37866 (ld.so): Likewise.
37867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37868 (ld.so): Likewise.
37869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37870 Likewise.
37871 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37872 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37873 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37874 Likewise.
37875 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37876 Likewise.
37877 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37878
37879 2017-08-10 Florian Weimer <fweimer@redhat.com>
37880
37881 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37882 attribute_hidden, internal_function.
37883 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37884 internal_function.
37885
37886 2017-08-10 Florian Weimer <fweimer@redhat.com>
37887
37888 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37889 function which calls __builtin_unreachable.
37890
37891 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37892
37893 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37894 Indian monetary formatting
37895 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37896 test cases.
37897
37898 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37899
37900 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37901 Fix typo in comment.
37902
37903 [BZ #21928]
37904 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37905 PTRACE_SEIZE_DEVEL): Remove.
37906 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37907 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37908 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37909 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37910 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37911
37912 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37913
37914 * posix/bits/types.h (__qaddr_t): Remove.
37915
37916 [BZ #21457]
37917 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37918 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37919 __glibc_reserved1.
37920 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37921 (ucontext_t): Use __ctx with uc_flags.
37922 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37923 (__ctxt): Likewise.
37924 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37925 __glibc_reserved1.
37926 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37927 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37928 __glibc_reserved1.
37929 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37930 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37931 __glibc_reserved1.
37932 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37933 macro.
37934 (ucontext_t): Use __ctx with uc_flags.
37935 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37936 (ucontext_t): Use __ctx with uc_flags.
37937 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37938 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37939 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37940 (ucontext_t): Use __ctx with uc_flags.
37941 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37942 undefine further down.
37943 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37944 __glibc_reserved1.
37945 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37946 undefine further down.
37947 (ucontext_t): Use __ctx with uc_flags.
37948 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37949 undefine further down.
37950 (ucontext_t): Use __ctx with uc_flags.
37951 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37952 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37953 Rename uc_pad to __glibc_reserved1.
37954 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37955 undefine further down.
37956 (ucontext_t): Use __ctx with uc_flags.
37957 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37958 further down.
37959 (ucontext_t): Use __ctx with uc_flags.
37960 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37961 __ctx with uc_flags.
37962 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37963 (ucontext_t): Use __ctx with uc_flags.
37964 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37965 __ctx with uc_flags.
37966
37967 2017-08-09 Florian Weimer <fweimer@redhat.com>
37968
37969 [BZ #21932]
37970 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37971 before early return.
37972
37973 2017-08-09 Andreas Schwab <schwab@suse.de>
37974
37975 [BZ #21041]
37976 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37977 renamed alias.
37978
37979 [BZ #21041]
37980 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37981 tst-compat-forwarder.
37982 (modules-names): Add tst-compat-forwarder-mod.
37983 ($(objpfx)tst-compat-forwarder): Depend on
37984 $(objpfx)tst-compat-forwarder-mod.so.
37985 * nptl/tst-compat-forwarder.c: New file.
37986 * nptl/tst-compat-forwarder-mod.c: New file.
37987
37988 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37989
37990 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37991 comments.
37992
37993 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37994 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37995 memcpy_falkor.
37996 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37997 Bump.
37998 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37999 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
38000 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
38001 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
38002 Add falkor.
38003 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
38004 New macro.
38005
38006 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
38007
38008 [BZ #759]
38009 * manual/setjmp.texi (getcontex): Document uc_stack value
38010 compatibility differences.
38011
38012 2017-08-08 Joseph Myers <joseph@codesourcery.com>
38013
38014 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
38015 (old_malloc_hook): Likewise.
38016 (old_memalign_hook): Likewise.
38017 (old_realloc_hook): Likewise.
38018 (struct hdr): Likewise.
38019 (flood): Likewise.
38020 (freehook): Likewise.
38021 (mallochook): Likewise.
38022 (memalignhook): Likewise.
38023 (reallochook): Likewise.
38024 (mprobe): Likewise.
38025 * malloc/mtrace.c (mallwatch): Likewise.
38026 (tr_old_free_hook): Likewise.
38027 (tr_old_malloc_hook): Likewise.
38028 (tr_old_realloc_hook): Likewise.
38029 (tr_old_memalign_hook): Likewise.
38030 (tr_where): Likewise.
38031 (lock_and_info): Likewise.
38032 (tr_freehook): Likewise.
38033 (tr_mallochook): Likewise.
38034 (tr_reallochook): Likewise.
38035 (tr_memalignhook): Likewise.
38036 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
38037 * misc/mmap.c (__mmap): Likewise.
38038 * misc/mmap64.c (__mmap64): Likewise.
38039 * misc/mprotect.c (__mprotect): Likewise.
38040 * misc/msync.c (msync): Likewise.
38041 * misc/munmap.c (__munmap): Likewise.
38042 * posix/posix_madvise.c (posix_madvise): Likewise.
38043 * socket/send.c (__send): Likewise.
38044 * socket/sendto.c (__sendto): Likewise.
38045 * socket/setsockopt.c (__setsockopt): Likewise.
38046 * string/memcmp.c (__ptr_t): Remove macro.
38047 (MEMCMP): Use void * instead of ptr_t.
38048 * string/memrchr.c (__ptr_t): Remove macro.
38049 (__memrchr): Use void * instead of ptr_t.
38050 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
38051 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
38052 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
38053 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
38054 * sysdeps/mach/msync.c (msync): Likewise.
38055 * sysdeps/mach/munmap.c (__munmap): Likewise.
38056 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
38057 Likewise.
38058 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
38059 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
38060 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
38061 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
38062 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
38063 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
38064 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
38065 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
38066 Likewise.
38067 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
38068 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
38069 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
38070 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
38071 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
38072 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
38073 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
38074 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
38075 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
38076 Likewise.
38077 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
38078 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
38079 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
38080 (MEMCMP): Use void * instead of ptr_t.
38081 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
38082 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
38083
38084 2017-08-08 Florian Weimer <fweimer@redhat.com>
38085
38086 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
38087 return statement.
38088
38089 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
38090
38091 [BZ #21913]
38092 * csu/libc-tls.c: Include <startup.h> first.
38093 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
38094 * elf/dl-tunables.c: Include <startup.h> first.
38095 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
38096 * sysdeps/generic/startup.h: New file.
38097 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
38098 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
38099 (I386_USE_SYSENTER): New. Defined to 0.
38100
38101 2017-08-08 Andreas Schwab <schwab@suse.de>
38102
38103 [BZ #21041]
38104 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
38105 * nptl/pt-system.c (system): Likewise.
38106
38107 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
38108
38109 [BZ #21780]
38110 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
38111 EOPNOTSUPP.
38112 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
38113 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
38114 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
38115 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
38116 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
38117 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
38118 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
38119
38120 2017-08-07 Joseph Myers <joseph@codesourcery.com>
38121
38122 [BZ #21899]
38123 * bits/sigaction.h (struct sigaction): Define sa_handler and
38124 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
38125 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38126 [__USE_XOPEN_EXTENDED].
38127 (SA_RESTART): Likewise.
38128 (SA_NODEFER): Likewise.
38129 (SA_RESETHAND): Likewise.
38130 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
38131 (struct sigaction): Define sa_handler and sa_sigaction using union
38132 also for [__USE_XOPEN_EXTENDED].
38133 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38134 [__USE_XOPEN_EXTENDED].
38135 (SA_RESTART): Likewise.
38136 (SA_NODEFER): Likewise.
38137 (SA_RESETHAND): Likewise.
38138 * sysdeps/unix/sysv/linux/bits/sigaction.h
38139 (struct sigaction): Define sa_handler and sa_sigaction using union
38140 also for [__USE_XOPEN_EXTENDED].
38141 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38142 [__USE_XOPEN_EXTENDED].
38143 (SA_RESTART): Likewise.
38144 (SA_NODEFER): Likewise.
38145 (SA_RESETHAND): Likewise.
38146 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
38147 (struct sigaction): Define sa_handler and sa_sigaction using union
38148 also for [__USE_XOPEN_EXTENDED].
38149 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38150 [__USE_XOPEN_EXTENDED].
38151 (SA_RESTART): Likewise.
38152 (SA_NODEFER): Likewise.
38153 (SA_RESETHAND): Likewise.
38154 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
38155 (struct sigaction): Define sa_handler and sa_sigaction using union
38156 also for [__USE_XOPEN_EXTENDED].
38157 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38158 [__USE_XOPEN_EXTENDED].
38159 (SA_RESTART): Likewise.
38160 (SA_NODEFER): Likewise.
38161 (SA_RESETHAND): Likewise.
38162 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
38163 (struct sigaction): Define sa_handler and sa_sigaction using union
38164 also for [__USE_XOPEN_EXTENDED].
38165 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38166 [__USE_XOPEN_EXTENDED].
38167 (SA_RESTART): Likewise.
38168 (SA_NODEFER): Likewise.
38169 (SA_RESETHAND): Likewise.
38170 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
38171 (struct sigaction): Define sa_handler and sa_sigaction using union
38172 also for [__USE_XOPEN_EXTENDED].
38173 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38174 [__USE_XOPEN_EXTENDED].
38175 (SA_RESTART): Likewise.
38176 (SA_NODEFER): Likewise.
38177 (SA_RESETHAND): Likewise.
38178 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
38179 (struct sigaction): Define sa_handler and sa_sigaction using union
38180 also for [__USE_XOPEN_EXTENDED].
38181 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38182 [__USE_XOPEN_EXTENDED].
38183 (SA_RESTART): Likewise.
38184 (SA_NODEFER): Likewise. Define directly rather than as alias.
38185 (SA_RESETHAND): Likewise.
38186 (SA_INTERRUPT): Define only for [__USE_MISC].
38187 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
38188 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
38189 [__USE_MISC].
38190 (SA_STACK): Define only for [__USE_MISC].
38191 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
38192 (struct sigaction): Define sa_handler and sa_sigaction using union
38193 also for [__USE_XOPEN_EXTENDED].
38194 (SA_ONSTACK): Change [__USE_UNIX98] condition to
38195 [__USE_XOPEN_EXTENDED].
38196 (SA_RESTART): Likewise.
38197 (SA_NODEFER): Likewise.
38198 (SA_RESETHAND): Likewise.
38199 (SA_NOPTRACE): Define only for [__USE_MISC].
38200
38201 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
38202 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
38203 (struct catalog_info): Likewise.
38204 * inet/htontest.c (lo): Likewise.
38205 (foo): Likewise.
38206 * inet/inet_lnaof.c (inet_lnaof): Likewise.
38207 * inet/inet_net.c (inet_network): Likewise.
38208 * inet/inet_netof.c (inet_netof): Likewise.
38209 * inet/rcmd.c (__ivaliduser): Likewise.
38210 (iruserok): Likewise.
38211 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
38212 * locale/programs/locale-spec.c (locale_special): Likewise.
38213 * nis/nis_findserv.c (struct findserv_req): Likewise.
38214 (__nis_findfastest_with_timeout): Likewise.
38215 * nss/test-netdb.c (test_network): Likewise.
38216 * resolv/inet_neta.c (inet_neta): Likewise.
38217 * resolv/ns_date.c (ns_datetosecs): Likewise.
38218 (SECS_PER_DAY): Likewise.
38219 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
38220 Likewise.
38221 * resolv/res_comp.c (__putlong): Likewise.
38222 (__putshort): Likewise.
38223 (_getlong): Likewise.
38224 (_getshort): Likewise.
38225 * resolv/res_debug.c (p_time): Likewise.
38226 (precsize_ntoa): Likewise.
38227 (precsize_aton): Likewise.
38228 (latlon2ul): Likewise.
38229 (loc_aton): Likewise.
38230 (loc_ntoa): Likewise.
38231 * resolv/res_hconf.c (struct netaddr): Likewise.
38232 (_res_hconf_reorder_addrs): Likewise.
38233 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
38234 (clnttcp_control): Likewise.
38235 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
38236 (clntudp_control): Likewise.
38237 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
38238 (clntunix_control): Likewise.
38239 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
38240 * sunrpc/rpc/auth.h (union des_block): Likewise.
38241 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
38242 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
38243 (xdrrec_create): Likewise.
38244 (xdrrec_endofrecord): Likewise.
38245 (flush_out): Likewise.
38246 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
38247 (xdrstdio_putlong): Likewise.
38248 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
38249 Likewise.
38250
38251 * misc/sys/cdefs.h (__long_double_t): Remove.
38252 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
38253 instead of __long_double_t,
38254 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
38255
38256 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
38257
38258 * benchtests/scripts/compare_strings.py: Avoid display error when
38259 running on a text terminal.
38260
38261 * benchtests/scripts/compare_strings.py (main): Add an
38262 optional -base option.
38263 (process_results): New argument base_func.
38264
38265 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
38266 hardcoding memcpy.
38267 * benchtests/bench-memcpy-large.c (test_name): Likewise.
38268 * benchtests/bench-memcpy-random.c (test_name): Likewise.
38269
38270 2017-08-07 Andreas Schwab <schwab@suse.de>
38271
38272 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
38273 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
38274 * intl/Makefile ($(objpfx)tst-gettext.out)
38275 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
38276 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
38277 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
38278 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
38279 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
38280 * posix/Makefile ($(objpfx)globtest.out)
38281 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
38282 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
38283 ($(objpfx)tst-printf.out): Likewise.
38284 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
38285 ($(objpfx)tst-setcontext3.out): Likewise.
38286
38287 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
38288
38289 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38290 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
38291 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
38292 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
38293 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
38294 and mptan-fma.
38295 (CFLAGS-doasin-fma.c): New.
38296 (CFLAGS-dosincos-fma.c): Likewise.
38297 (CFLAGS-e_asin-fma.c): Likewise.
38298 (CFLAGS-e_atan2-fma.c): Likewise.
38299 (CFLAGS-e_exp-fma.c): Likewise.
38300 (CFLAGS-e_log-fma.c): Likewise.
38301 (CFLAGS-e_pow-fma.c): Likewise.
38302 (CFLAGS-halfulp-fma.c): Likewise.
38303 (CFLAGS-mpa-fma.c): Likewise.
38304 (CFLAGS-mpatan-fma.c): Likewise.
38305 (CFLAGS-mpatan2-fma.c): Likewise.
38306 (CFLAGS-mpexp-fma.c): Likewise.
38307 (CFLAGS-mplog-fma.c): Likewise.
38308 (CFLAGS-mpsqrt-fma.c): Likewise.
38309 (CFLAGS-mptan-fma.c): Likewise.
38310 (CFLAGS-s_atan-fma.c): Likewise.
38311 (CFLAGS-sincos32-fma.c): Likewise.
38312 (CFLAGS-slowexp-fma.c): Likewise.
38313 (CFLAGS-slowpow-fma.c): Likewise.
38314 (CFLAGS-s_sin-fma.c): Likewise.
38315 (CFLAGS-s_tan-fma.c): Likewise.
38316 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
38317 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
38318 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
38319 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
38320 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
38321 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
38322 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
38323 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
38324 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
38325 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
38326 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
38327 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
38328 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
38329 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
38330 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
38331 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
38332 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
38333 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
38334 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
38335 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
38336 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
38337 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
38338 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
38339 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
38340 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
38341 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38342 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38343 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
38344 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38345 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38346 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38347
38348 2017-08-04 Joseph Myers <joseph@codesourcery.com>
38349
38350 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
38351 (min_of_type_f): New macro.
38352 (min_of_type_): Likewise.
38353 (min_of_type_l): Likewise.
38354 (min_of_type_f128): Likewise.
38355 (min_of_type): Define using __MATH_TG and taking an expression
38356 argument.
38357 (math_check_force_underflow): Pass expression instead of type to
38358 min_of_type.
38359 (math_check_force_underflow_nonneg): Likewise.
38360
38361 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38362
38363 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
38364 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
38365 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
38366
38367 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38368
38369 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38370 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
38371 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
38372 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
38373 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
38374 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
38375 memcpy_chk-nonshared, mempcpy_chk-nonshared,
38376 memmove_chk-nonshared and memset_chk-nonshared
38377 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
38378 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
38379 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
38380 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
38381 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
38382 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
38383 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
38384 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
38385 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
38386 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
38387 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
38388 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
38389 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
38390 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
38391 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
38392 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
38393 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
38394 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
38395 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
38396 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
38397 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
38398 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
38399 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
38400 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
38401 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
38402 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
38403 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
38404 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
38405 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
38406 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
38407 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
38408 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
38409 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
38410 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38411 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38412 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
38413 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
38414 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
38415 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
38416 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
38417 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
38418 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
38419 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
38420 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
38421 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
38422 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
38423 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
38424 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
38425 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
38426 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
38427 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
38428 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
38429 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
38430 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
38431 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
38432 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
38433 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
38434 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
38435 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
38436 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
38437 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
38438 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
38439 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
38440 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
38441 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
38442 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
38443 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
38444 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
38445 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
38446 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
38447 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
38448 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38449 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38450 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38451 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38452 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38453 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38454 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38455 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38456 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38457 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38458 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38459 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38460 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38461 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
38462 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
38463 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
38464 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
38465 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38466 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38467 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38468 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38469 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38470 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38471 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
38472 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
38473 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
38474 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
38475 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38476 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
38477 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38478 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38479 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38480 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38481 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38482 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38483 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38484 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38485
38486 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38487
38488 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
38489 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
38490 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
38491 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
38492 svml_d_log2_core-sse2, svml_d_log4_core-sse,
38493 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
38494 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
38495 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
38496 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
38497 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
38498 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
38499 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
38500 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
38501 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
38502 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
38503 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
38504 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
38505 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
38506 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
38507 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
38508 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
38509 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
38510 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
38511 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
38512 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
38513 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
38514 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
38515 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
38516 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
38517 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
38518 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
38519 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
38520 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
38521 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
38522 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
38523 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
38524 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
38525 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
38526 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
38527 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
38528 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
38529 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
38530 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
38531 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
38532 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
38533 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
38534 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
38535 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
38536 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
38537 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
38538 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
38539 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
38540 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
38541 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
38542 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
38543 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
38544 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
38545 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
38546 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
38547 ...
38548 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
38549 Don't include <sysdep.h> nor <init-arch.h>.
38550 (_ZGVbN2v_cos): Removed.
38551 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
38552 ...
38553 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
38554 Don't include <sysdep.h> nor <init-arch.h>.
38555 (_ZGVdN4v_cos): Removed.
38556 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
38557 ...
38558 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
38559 Don't include <sysdep.h> nor <init-arch.h>.
38560 (_ZGVeN8v_cos): Removed.
38561 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
38562 ...
38563 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
38564 Don't include <sysdep.h> nor <init-arch.h>.
38565 (_ZGVbN2v_exp): Removed.
38566 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
38567 ...
38568 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
38569 Don't include <sysdep.h> nor <init-arch.h>.
38570 (_ZGVdN4v_exp): Removed.
38571 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
38572 ...
38573 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
38574 Don't include <sysdep.h> nor <init-arch.h>.
38575 (_ZGVeN8v_exp): Removed.
38576 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
38577 ...
38578 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
38579 Don't include <sysdep.h> nor <init-arch.h>.
38580 (_ZGVbN2v_log): Removed.
38581 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
38582 ...
38583 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
38584 Don't include <sysdep.h> nor <init-arch.h>.
38585 (_ZGVdN4v_log): Removed.
38586 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
38587 ...
38588 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
38589 Don't include <sysdep.h> nor <init-arch.h>.
38590 (_ZGVeN8v_log): Removed.
38591 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
38592 ...
38593 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
38594 Don't include <sysdep.h> nor <init-arch.h>.
38595 (_ZGVbN2vv_pow): Removed.
38596 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
38597 ...
38598 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
38599 Don't include <sysdep.h> nor <init-arch.h>.
38600 (_ZGVdN4vv_pow): Removed.
38601 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
38602 ...
38603 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
38604 Don't include <sysdep.h> nor <init-arch.h>.
38605 (_ZGVeN8vv_pow): Removed.
38606 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
38607 ...
38608 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
38609 Don't include <sysdep.h> nor <init-arch.h>.
38610 (_ZGVbN2v_sin): Removed.
38611 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
38612 ...
38613 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
38614 Don't include <sysdep.h> nor <init-arch.h>.
38615 (_ZGVbN4v_sin): Removed.
38616 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
38617 ...
38618 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38619 Don't include <sysdep.h> nor <init-arch.h>.
38620 (_ZGVbN8v_sin): Removed.
38621 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38622 ...
38623 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38624 Don't include <sysdep.h> nor <init-arch.h>.
38625 (_ZGVbN2vvv_sincos): Removed.
38626 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38627 ...
38628 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38629 Don't include <sysdep.h> nor <init-arch.h>.
38630 (_ZGVdN4vvv_sincos): Removed.
38631 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38632 ...
38633 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38634 Don't include <sysdep.h> nor <init-arch.h>.
38635 (_ZGVeN8vvv_sincos): Removed.
38636 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38637 ...
38638 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38639 Don't include <sysdep.h> nor <init-arch.h>.
38640 (_ZGVeN16v_cosf): Removed.
38641 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38642 ...
38643 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38644 Don't include <sysdep.h> nor <init-arch.h>.
38645 (_ZGVbN4v_cosf): Removed.
38646 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38647 ...
38648 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38649 Don't include <sysdep.h> nor <init-arch.h>.
38650 (_ZGVdN8v_cosf): Removed.
38651 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38652 ...
38653 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38654 Don't include <sysdep.h> nor <init-arch.h>.
38655 (_ZGVeN16v_expf): Removed.
38656 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38657 ...
38658 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38659 Don't include <sysdep.h> nor <init-arch.h>.
38660 (_ZGVbN4v_expf): Removed.
38661 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38662 ...
38663 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38664 Don't include <sysdep.h> nor <init-arch.h>.
38665 (_ZGVdN8v_expf): Removed.
38666 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38667 ...
38668 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38669 Don't include <sysdep.h> nor <init-arch.h>.
38670 (_ZGVeN16v_logf): Removed.
38671 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38672 ...
38673 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38674 Don't include <sysdep.h> nor <init-arch.h>.
38675 (_ZGVbN4v_logf): Removed.
38676 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38677 ...
38678 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38679 Don't include <sysdep.h> nor <init-arch.h>.
38680 (_ZGVdN8v_logf): Removed.
38681 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38682 ...
38683 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38684 Don't include <sysdep.h> nor <init-arch.h>.
38685 (_ZGVeN16vv_powf): Removed.
38686 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38687 ...
38688 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38689 Don't include <sysdep.h> nor <init-arch.h>.
38690 (_ZGVbN4vv_powf): Removed.
38691 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38692 ...
38693 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38694 Don't include <sysdep.h> nor <init-arch.h>.
38695 (_ZGVdN8vv_powf): Removed.
38696 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38697 ...
38698 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38699 Don't include <sysdep.h> nor <init-arch.h>.
38700 (_ZGVeN16vvv_sincosf): Removed.
38701 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38702 ...
38703 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38704 Don't include <sysdep.h> nor <init-arch.h>.
38705 (_ZGVbN4vvv_sincosf): Removed.
38706 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38707 ...
38708 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38709 Don't include <sysdep.h> nor <init-arch.h>.
38710 (_ZGVdN8vvv_sincosf): Removed.
38711 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38712 ...
38713 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38714 Don't include <sysdep.h> nor <init-arch.h>.
38715 (_ZGVeN16v_sinf): Removed.
38716 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38717 ...
38718 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38719 Don't include <sysdep.h> nor <init-arch.h>.
38720 (_ZGVbN4v_sinf): Removed.
38721 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38722 ...
38723 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38724 Don't include <sysdep.h> nor <init-arch.h>.
38725 (_ZGVdN8v_sinf): Removed.
38726
38727 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38728
38729 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38730 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38731 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38732 s_rint-sse4_1 and s_rintf-sse4_1.
38733 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38734 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38735 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38736 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38737 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38738 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38739 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38740 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38741 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38742 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38743 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38744 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38745 (__ceil): Removed.
38746 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38747 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38748 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38749 (__ceilf): Removed.
38750 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38751 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38752 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38753 (__floor): Removed.
38754 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38755 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38756 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38757 (__floorf): Removed.
38758 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38759 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38760 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38761 (__nearbyint): Removed.
38762 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38763 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38764 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38765 (__nearbyintf): Removed.
38766 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38767 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38768 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38769 (__rint): Removed.
38770 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38771 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38772 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38773 (__rintf): Removed.
38774
38775 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38776
38777 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38778 SHARED. Avoid dynamic relocation against main in static PIE.
38779
38780 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38781
38782 [BZ #21815]
38783 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38784 (LDFLAGS-tst-prelink): Likewise.
38785
38786 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38787
38788 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38789 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38790 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38791 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38792 (INTERNAL_SYSCALL_NCS): Likewise.
38793 (LOADARGS_1): Likewise.
38794 (LOADARGS_5): Likewise.
38795 (RESTOREARGS_1): Likewise.
38796 (RESTOREARGS_5): Likewise.
38797
38798 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38799
38800 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38801 (MEMPCPY_SYMBOL): Likewise.
38802 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38803 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38804 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38805 in libc.a.
38806 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38807 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38808 Likewise.
38809 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38810 (__hidden_ver1): Don't use in libc.a.
38811 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38812 (__mempcpy): Don't create a weak alias in libc.a.
38813 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38814 libc.a.
38815 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38816 (__hidden_ver1): Don't use in libc.a.
38817
38818 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38819
38820 * config.make.in (have-insert): New.
38821 * configure.ac (libc_cv_insert): New. Set to yes if linker
38822 supports INSERT in linker script.
38823 (AC_SUBST(libc_cv_insert): New.
38824 * configure: Regenerated.
38825 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38826 if $(have-insert) == yes.
38827
38828 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38829
38830 * elf/Makefile (tests): Add vismain only if
38831 $(have-protected-data) == yes.
38832 (tests-pie): Likewise.
38833
38834 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38835
38836 [BZ #21871]
38837 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38838 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38839
38840 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38841
38842 [BZ #21790]
38843 * sysdeps/i386/i586/memset.S
38844 (__memset_zero_constant_len_parameter): Removed.
38845 * sysdeps/i386/i686/memset.S
38846 (__memset_zero_constant_len_parameter): Likewise.
38847 * sysdeps/i386/i686/multiarch/memset_chk.S
38848 (__memset_zero_constant_len_parameter): Likewise.
38849 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38850 Likewise.
38851
38852 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38853
38854 * stdlib/getentropy.c (getentropy): Change return type to int.
38855
38856 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38857
38858 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38859
38860 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38861
38862 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38863 u_intN_t.
38864 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38865 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38866 Likewise.
38867 (ieee_float_shape_type): Likewise.
38868 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38869 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38870 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38871 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38872 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38873 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38874 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38875 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38876 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38877 Likewise.
38878 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38879 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38880 (__ieee754_yn): Likewise.
38881 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38882 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38883 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38884 Likewise.
38885 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38886 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38887 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38888 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38889 (__erfc): Likewise.
38890 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38891 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38892 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38893 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38894 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38895 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38896 Likewise.
38897 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38898 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38899 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38900 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38901 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38902 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38903 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38904 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38905 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38906 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38907 (__issignaling): Likewise.
38908 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38909 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38910 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38911 Likewise.
38912 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38913 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38914 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38915 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38916 Likewise.
38917 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38918 Likewise.
38919 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38920 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38921 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38922 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38923 (__erfcf): Likewise.
38924 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38925 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38926 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38927 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38928 Likewise.
38929 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38930 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38931 Likewise.
38932 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38933 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38934 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38935 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38936 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38937 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38938 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38939 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38940 Likewise.
38941 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38942 Likewise.
38943 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38944 Likewise.
38945 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38946 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38947 Likewise.
38948 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38949 Likewise.
38950 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38951 (__ieee754_ynl): Likewise.
38952 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38953 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38954 Likewise.
38955 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38956 Likewise.
38957 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38958 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38959 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38960 Likewise.
38961 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38962 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38963 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38964 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38965 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38966 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38967 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38968 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38969 Likewise.
38970 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38971 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38972 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38973 Likewise.
38974 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38975 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38976 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38977 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38978 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38979 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38980 Likewise.
38981 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38982 Likewise.
38983 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38984 Likewise.
38985 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38986 Likewise.
38987 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38988 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38989 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38990 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38991 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38992 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38993 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38994 Likewise.
38995 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38996 Likewise.
38997 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38998 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38999 Likewise.
39000 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
39001 (__ieee754_remainderl): Likewise.
39002 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
39003 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
39004 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
39005 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
39006 Likewise.
39007 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
39008 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
39009 Likewise.
39010 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
39011 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
39012 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
39013 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
39014 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
39015 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
39016 Likewise.
39017 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
39018 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
39019 (__ieee754_y0l): Likewise.
39020 (pzero): Likewise.
39021 (qzero): Likewise.
39022 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
39023 (__ieee754_y1l): Likewise.
39024 (pone): Likewise.
39025 (qone): Likewise.
39026 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
39027 (__ieee754_ynl): Likewise.
39028 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
39029 (__ieee754_lgammal_r): Likewise.
39030 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
39031 Likewise.
39032 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
39033 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
39034 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
39035 (__erfcl): Likewise.
39036 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
39037 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
39038 Likewise.
39039 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
39040 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
39041 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
39042 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
39043 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
39044 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
39045 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
39046 Likewise.
39047 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
39048 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
39049 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
39050 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
39051 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
39052 Likewise.
39053 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
39054 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
39055 Likewise.
39056 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
39057 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
39058 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
39059 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
39060 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
39061
39062 2017-08-03 Florian Weimer <fweimer@redhat.com>
39063
39064 [BZ #21885]
39065 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
39066 on memory allocation failure.
39067
39068 2017-08-03 Alan Modra <amodra@gmail.com>
39069
39070 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
39071 tst-tlsopt-powerpc.c with function name change and no test harness.
39072 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
39073 Call tls_get_addr_opt_test.
39074 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
39075 (modules-names): Add mod-tlsopt-powerpc.
39076 (mod-tlsopt-powerpc.so-no-z-defs): Define.
39077 (tst-tlsopt-powerpc): Depend on .so.
39078 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
39079 define. Expand use in TLS_GD and TLS_LD.
39080
39081 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
39082
39083 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
39084 function.
39085 * sysdeps/posix/shm_open.c: Include <pthread.h>.
39086
39087 2017-08-02 Joseph Myers <joseph@codesourcery.com>
39088
39089 [BZ #21686]
39090 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
39091 comparing size with that of double.
39092 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
39093 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
39094 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
39095 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
39096 (__TGMATH_BINARY_REAL_IMAG): Likewise.
39097 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
39098 unsigned __int128 types.
39099
39100 2017-08-02 Steve Ellcey <sellcey@cavium.com>
39101
39102 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
39103 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
39104 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
39105 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
39106 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
39107
39108 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
39109
39110 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
39111
39112 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
39113
39114 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
39115 of SHARED.
39116 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
39117 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39118 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39119 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39120 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39121 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39122 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39123
39124 2017-08-02 Joseph Myers <joseph@codesourcery.com>
39125
39126 [BZ #21685]
39127 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
39128 bit-field expressions passed to sizeof or typeof.
39129 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
39130 (__TGMATH_F128): Likewise.
39131 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
39132 (__TGMATH_CF128): Likewise.
39133 (__TGMATH_UNARY_REAL_ONLY): Likewise.
39134 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
39135 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
39136 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
39137 (__TGMATH_BINARY_REAL_ONLY): Likewise.
39138 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
39139 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
39140 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
39141 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
39142 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
39143 (__TGMATH_UNARY_REAL_IMAG): Likewise.
39144 (__TGMATH_UNARY_IMAG): Likewise.
39145 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
39146 (__TGMATH_BINARY_REAL_IMAG): Likewise.
39147 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
39148 type.
39149 (define_vars_for_type): Handle bit_field type specially.
39150 (Tests.__init__): Declare structure with bit-field element.
39151
39152 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
39153
39154 [BZ #21791]
39155 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
39156 (MEMCPY_CHK): Define only if SHARED is defined.
39157 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
39158 Likewise.
39159 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
39160 Likewise.
39161
39162 See ChangeLog.18 for earlier changes.