]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Fix RISC-V vfork build with Linux 5.3 kernel headers.
[thirdparty/glibc.git] / ChangeLog
1 2019-09-18 Joseph Myers <joseph@codesourcery.com>
2
3 * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
4 <linux/sched.h>.
5 (CLONE_VM): New macro.
6 (CLONE_VFORK): Likewise.
7
8 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
9
10 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
11 Rearrange subprocesses.
12 (pldd_process): New function.
13 * support/Makefile (libsupport-routines): Add support_ptrace.
14 * support/xptrace.h: New file.
15 * support/support_ptrace.c: Likewise.
16
17 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18
19 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
20
21 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
22 (INTERNAL_VSYSCALL_CALL): Remove.
23 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
24 (INTERNAL_VSYSCALL_CALL): Likewise.
25 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
26 (INTERNAL_VSYSCALL_CALL): Likewise.
27 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
28 New macro.
29
30 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
31 defined.
32 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
33 (__get_timebase_freq): Remove use of
34 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
35 (get_timebase_freq_fallback): New symbol.
36 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
37 HAVE_GETTIMEOFDAY_VSYSCALL.
38 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
39 HAVE_TIME_VSYSCALL.
40 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
41 implementation.
42 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
43 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
44 powerpc64.
45 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
46 * .../sysv/linux/powerpc/powerpc64/sysdep.h
47 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
48 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
49 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
50
51 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
52 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
53 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
54 Likewise.
55 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
56 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
57 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
58 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
59 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
60 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
61 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
62 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
63 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
64 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
65 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
66 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
67 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
68 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
69 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
70 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
71 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
72 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
73 name.
74 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
75 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
76 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
77 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
78 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
79 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
80 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
81 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
82 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
83 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
84 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
85 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
86 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
87 HAVE_GETCPU_VSYSCALL): Likewise.
88 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
89 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
90 HAVE_GETCPU_VSYSCALL): Likewise.
91 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
92 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
93 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
94 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
95 HAVE_GETCPU_VSYSCALL): Likewise.
96 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
97 invalid names if architecture does not define them.
98 (get_vdso_mangle_symbol): New symbol.
99 * sysdeps/unix/sysv/linux/init-first.c: New file.
100 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
101 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
102 clock_gettime, clock_getres, getcpu, time): Remove declaration.
103 (__libc_vdso_platform_setup_arch): Likewise and use
104 get_vdso_mangle_symbol to setup vDSO symbols.
105 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
106 attribute_hidden.
107 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
108 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
109 definition.
110
111 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
112 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
113 Use get_vdso_symbol instead of _dl_vdso_vsym.
114 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
115 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
116 (__lookup_riscv_flush_icache): Likewise.
117 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
118 Likewise.
119 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
120 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
121 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
122 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
123 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
124 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
125 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
126 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
127 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
128 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
129 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
130 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
131 Define.
132 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
133 Likewise.
134 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
135 Likewise.
136 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
137 Likewise.
138 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
139 Likewise.
140 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
141 Likewise.
142 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
143 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
144 definition.
145 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
146 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
147 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
148 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
150 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
152 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
153 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
154 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
155 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
156 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
157 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
158 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
159 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
160 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
161 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
162 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
163 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
164 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
165 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
166 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
167 (get_vdso_symbol): New function.
168
169 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
170
171 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
172 position of string null termination.
173
174 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
175
176 [BZ #24986]
177 * sysdeps/unix/alpha/getegid.S: Move to ...
178 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
179 * sysdeps/unix/alpha/geteuid.S: Move to ...
180 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
181 * sysdeps/unix/alpha/getppid.S: Move to ...
182 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
183
184 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
185
186 Fix http: URL in 'configure'
187 * configure.ac: Add URL to AC_INIT so that it generates an
188 https: URL instead of an http: URL.
189 * configure: Regenerate.
190
191 Regenerate charmap-kw.h, locfile-kw.h
192 This propagates the recent http->https URL changes.
193 Since I used gperf 3.1 to regenerate, this is also a minor
194 internal-to-localedef API change.
195 URL problem reported by Joseph Myers in:
196 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
197 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
198 Regenerate with gperf 3.1.
199 * locale/programs/linereader.h (kw_hash_fct_t):
200 * locale/programs/repertoire.c (repertoiremap_hash):
201 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
202
203 2019-09-05 Florian Weimer <fweimer@redhat.com>
204
205 [BZ #24962]
206 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
207 (_nl_category_names_get): New function.
208 * intl/dcigettext.c (category_to_name): Call it.
209 * locale/findlocale.c (_nl_find_locale): Likewise.
210 * intl/loadlocale.c (_nl_load_locale): Likewise.
211 * locale/newlocale.c (__newlocale): Likewise.
212 * locale/setlocale.c (_nl_category_names): Adjust definition.
213 (_nl_category_name_idxs): Likewise.
214 (new_composite_name): Call _nl_category_names_get.
215 (setlocale): Likewise.
216
217 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
218
219 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
220 const attribute with pure attribute.
221
222 2019-09-04 Lukasz Majewski <lukma@denx.de>
223
224 * sysdeps/unix/sysv/linux/kernel-features.h
225 (__ASSUME_TIME64_SYSCALLS): New macro.
226
227 2019-09-04 Zack Weinberg <zackw@panix.com>
228
229 [BZ #24959]
230 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
231 * rt/clock_getres.c: Move to time/clock_getres.c.
232 * rt/clock_gettime.c: Move to time/clock_gettime.c.
233 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
234 * rt/clock_settime.c: Move to time/clock_settime.c.
235 * rt/tst-clock.c: Move to time/tst-clock.c.
236 * rt/tst-clock2.c: Move to time/tst-clock2.c.
237 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
238 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
239 * rt/clock-compat.c: Delete file.
240
241 * time/clock_getcpuclockid.c
242 * time/clock_getres.c
243 * time/clock_gettime.c
244 * time/clock_nanosleep.c
245 * time/clock_settime.c
246 * sysdeps/posix/clock_getres.c
247 * sysdeps/unix/clock_gettime.c
248 * sysdeps/unix/clock_nanosleep.c
249 * sysdeps/unix/clock_settime.c
250 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
251 * sysdeps/unix/sysv/linux/clock_getres.c
252 * sysdeps/unix/sysv/linux/clock_gettime.c
253 * sysdeps/unix/sysv/linux/clock_nanosleep.c
254 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
255 defined by this file with default symbol version GLIBC_2_17,
256 and optionally a compatibility alias at symbol version GLIBC_2_2.
257 * include/time.h: Remove internal prototypes for clock_getres,
258 clock_nanosleep, and clock_getcpuclockid.
259
260 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
261 Remove unused function realtime_gettime.
262
263 * rt/Makefile (clock-routines, routines): Remove variable.
264 (librt-routines): Remove clock-compat.
265 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
266 and tst-cpuclock1.
267 * time/Makefile (routines): Add clock_getres, clock_gettime,
268 clock_settime, clock_getcpuclockid, and clock_nanosleep.
269 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
270 and tst-cpuclock1.
271
272 * rt/Versions (libc): Remove entire stanza.
273 (librt GLIBC_2.2): Remove all clock_* functions.
274 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
275 Add clock_getres, clock_gettime, clock_settime,
276 clock_getcpuclockid, and clock_nanosleep.
277 (libc GLIBC_PRIVATE): Add __clock_gettime.
278
279 * sysdeps/mach/hurd/i386/librt.abilist
280 * sysdeps/unix/sysv/linux/alpha/librt.abilist
281 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
282 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
283 * sysdeps/unix/sysv/linux/hppa/librt.abilist
284 * sysdeps/unix/sysv/linux/i386/librt.abilist
285 * sysdeps/unix/sysv/linux/ia64/librt.abilist
286 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
287 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
288 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
289 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
290 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
291 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
294 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
295 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
296 * sysdeps/unix/sysv/linux/sh/librt.abilist
297 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
298 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
299 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
300 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
301 Remove entries for clock_getres, clock_gettime, clock_settime,
302 clock_getcpuclockid, and clock_nanosleep.
303
304 * sysdeps/mach/hurd/i386/libc.abilist
305 * sysdeps/unix/sysv/linux/alpha/libc.abilist
306 * sysdeps/unix/sysv/linux/arm/libc.abilist
307 * sysdeps/unix/sysv/linux/hppa/libc.abilist
308 * sysdeps/unix/sysv/linux/i386/libc.abilist
309 * sysdeps/unix/sysv/linux/ia64/libc.abilist
310 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
311 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
312 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
313 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
314 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
315 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
319 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
320 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
321 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
322 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
323 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
324 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
325 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
326 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
327 Add another set of entries for clock_getres, clock_gettime,
328 clock_settime, clock_getcpuclockid, and clock_nanosleep at
329 whatever version GLIBC_2.2 maps to.
330
331 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
332
333 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
334
335 2019-09-03 Florian Weimer <fweimer@redhat.com>
336
337 [BZ #24950]
338 * locale/programs/charmap.h (struct charseq): Turn bytes into a
339 flexible array member.
340 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
341 replace.
342
343 2019-09-02 Florian Weimer <fweimer@redhat.com>
344
345 * misc/tst-mntent-autofs.c: New file.
346 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
347
348 2019-09-02 Ian Kent <ikent@redhat.com>
349
350 Use autofs "ignore" mount hint in getmntent_r/getmntent.
351 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
352 getmntent_r.
353 (__getmntent_r): Call it. Filter out autofs entries with an
354 "ignore" mount option.
355
356 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
357
358 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
359 (generic_memcpy): Include generic C memcpy.
360 * benchtests/bench-memmove.c (simple_memmove): Remove.
361 (generic_memmove): Include generic C memmove.
362 * benchtests/bench-memset.c (simple_memset): Remove.
363 (generic_memset): Include generic C memset.
364 * benchtests/bench-memset-large.c (simple_memset): Remove.
365 (generic_memset): Include generic C memset.
366 * benchtests/bench-memset-walk.c (simple_memset): Remove.
367 (generic_memset): Include generic C memset.
368 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
369 * string/memset.c (MEMSET): Likewise.
370 * sysdeps/x86_64/memcopy.h: Remove empty file.
371
372 2019-08-30 Florian Weimer <fweimer@redhat.com>
373
374 nptl: Move pthread_attr_getinheritsched implementation into libc.
375 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
376 (libpthread-routines): Remove pthread_attr_getinheritsched.
377 * nptl/Versions (libpthread GLIBC_2.0): Remove
378 pthread_attr_getinheritsched.
379 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
380 * nptl/nptl-init.c (pthread_functions): Remove initializer for
381 ptr_pthread_attr_getinheritsched.
382 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
383 Remove ptr_pthread_attr_getinheritsched member.
384 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
385 Remove pthread_attr_getinheritsched.
386 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
387 Likewise.
388 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
389 Likewise.
390 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
391 Likewise.
392 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
393 Likewise.
394 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
395 Likewise.
396 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
397 Likewise.
398 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
399 Likewise.
400 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
401 (GLIBC_2.4): Likewise.
402 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
403 (GLIBC_2.0): Likewise.
404 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
405 (GLIBC_2.18): Likewise.
406 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
407 (GLIBC_2.18): Likewise.
408 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
409 (GLIBC_2.0): Likewise.
410 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
411 (GLIBC_2.0): Likewise.
412 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
413 Likewise.
414 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
415 (GLIBC_2.0): Likewise.
416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
417 (GLIBC_2.3): Likewise.
418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
419 (GLIBC_2.17): Likewise.
420 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
421 (GLIBC_2.27): Likewise.
422 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
423 (GLIBC_2.0): Likewise.
424 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
425 (GLIBC_2.2): Likewise.
426 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
427 Likewise.
428 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
429 Likewise.
430 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
431 (GLIBC_2.0): Likewise.
432 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
433 (GLIBC_2.2): Likewise.
434 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
435 (GLIBC_2.2.5): Likewise.
436 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
437 (GLIBC_2.16): Likewise.
438
439 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
440
441 * sysdeps/mach/hurd/getcwd.c
442 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
443 slash if we got an unknown root directory. (__getcwd): Do not fail with
444 EGRATUITOUS if we got an unknown root directory.
445 * hurd/hurdselect.c (SELECT_ERROR): New macro.
446 (_hurd_select):
447 - Add `error' field to `d' structures array.
448 - If a poll descriptor is bogus, set EBADF, but continue with a zero
449 timeout.
450 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
451 EBADF there is any bit set above _hurd_dtablesize.
452 - Do not request io_select on bogus descriptors (SELECT_ERROR).
453 - On io_select request error, record the error.
454 - On io_select bogus reply, use EIO error code.
455 - On io_select bogus or error reply, record the error.
456 - Do not destroy reply port for bogus FDs.
457 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
458 EBADF case, or else POLLERR.
459 - On error, make select simulated readiness.
460
461 [BZ #19903]
462 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
463 as __vm_allocate.
464
465 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
466 unlocks SS and returns to the saved PC.
467 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
468 thread stack instead of the saved PC.
469
470 2019-08-30 Richard Braun <rbraun@sceen.net>
471
472 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
473 timeout.
474 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
475 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
476 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
477 <limits.h>.
478 (_hurd_select): Replace the call to __io_select with either
479 __io_select_request or __io_select_timeout_request, depending on the
480 timeout. Count the number of ready descriptors (replies for which at
481 least one type bit is set). Implement the timeout locally when there is
482 no file descriptor.
483
484 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
485
486 * elf/dl-addr.c (determine_info): Calculate the symbol index
487 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
488 * elf/dl-lookup.c (do_lookup_x): Ditto.
489 (_dl_setup_hash): Initialize MIPS xhash translation table.
490 * elf/elf.h (SHT_MIPS_XHASH): New define.
491 (DT_MIPS_XHASH): New define.
492 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
493 define.
494 (ELF_MACHINE_HASH_SYMIDX): Ditto.
495 (ELF_MACHINE_XHASH_SETUP): Ditto.
496 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
497 define.
498 (ELF_MACHINE_HASH_SYMIDX): Ditto.
499 (ELF_MACHINE_XHASH_SETUP): Ditto.
500 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
501 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
502 version.
503 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
504
505 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
506
507 * sysdeps/sh/preconfigure.ac: New file.
508 * sysdeps/sh/preconfigure: Regenerate.
509 * sysdeps/sh/be/sh3/Implies: New file.
510 * sysdeps/sh/be/sh4/Implies: Likewise.
511 * sysdeps/sh/le/sh3/Implies: Likewise.
512 * sysdeps/sh/le/sh4/Implies: Likewise.
513 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
514 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
515 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
516 sysdeps/unix/sysv/linux/sh/le/*.abilist.
517 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
518
519 * sysdeps/microblaze/preconfigure.ac: New file.
520 * sysdeps/microblaze/preconfigure: Regenerate.
521 * sysdeps/microblaze/be/implies: New file.
522 * sysdeps/microblaze/le/implies: Likewise.
523 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
524 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
525 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
526 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
527 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
528
529 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
530 * sysdeps/arm/preconfigure: Regenerate.
531 * sysdeps/arm/be/Implies: New file.
532 * sysdeps/arm/be/armv6/Implies: Likewise.
533 * sysdeps/arm/be/armv6t2/Implies: Likewise.
534 * sysdeps/arm/be/armv7/Implies: Likewise.
535 * sysdeps/arm/le/Implies: Likewise.
536 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
537 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
538 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
539 sysdeps/unix/sysv/linux/arm/le/*.abilist.
540 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
541
542 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
543
544 Fix posix/tst-regex by using UTF-8 and own test input
545 Problem reported by Stefan Liebler in:
546 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
547 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
548 (do_test, test_expr): Adjust to the fact that this source file,
549 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
550 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
551 so that it is now UTF-8.
552
553 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
554
555 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
556 (fegetenv_status): Generate 'mffsl' unconditionally.
557
558 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
559
560 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
561 FPSCR read.
562 (_FPU_MASK_ALL): Delete.
563
564 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
565
566 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
567 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
568 if possible.
569 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
570 with simpler required steps, set fewer FPSCR bits if possible.
571
572 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
573
574 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
575 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
576 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
577 weight access to FPSCR; remove unnecessary second FPSCR read and
578 validate.
579 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
580 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
581 access to FPSCR; Use macros in fenv_libc.h in favor of local.
582
583 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
584
585 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
586 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
587 (fenv_exceptions_to_reg): New.
588 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
589 operation with call to fenv_exceptions_to_reg().
590 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
591
592 2019-08-28 Florian Weimer <fweimer@redhat.com>
593
594 * misc/mntent.c (struct mntent_buffer): Define.
595 (mntent_buffer): Adjust type to void *.
596 (allocate): Adjust for allocate_once.
597 (deallocate): New function.
598 (getmntent): Call allocate_once.
599
600 2019-08-28 Florian Weimer <fweimer@redhat.com>
601
602 nptl: Move pthread_attr_setdetachstate implementation into libc.
603 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
604 (libpthread-routines): Remove pthread_attr_setdetachstate.
605 * nptl/Versions (libpthread GLIBC_2.0): Remove
606 pthread_attr_setdetachstate.
607 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
608 * nptl/nptl-init.c (pthread_functions): Remove initializer for
609 ptr_pthread_attr_setdetachstate.
610 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
611 Remove ptr_pthread_attr_setdetachstate member.
612 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
613 Remove pthread_attr_setdetachstate.
614 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
615 Likewise.
616 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
617 Likewise.
618 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
619 Likewise.
620 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
621 Likewise.
622 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
623 Likewise.
624 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
625 Likewise.
626 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
627 (GLIBC_2.4): Likewise.
628 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
629 (GLIBC_2.0): Likewise.
630 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
631 (GLIBC_2.18): Likewise.
632 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
633 (GLIBC_2.0): Likewise.
634 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
635 (GLIBC_2.0): Likewise.
636 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
637 Likewise.
638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
639 (GLIBC_2.0): Likewise.
640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
641 (GLIBC_2.3): Likewise.
642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
643 (GLIBC_2.17): Likewise.
644 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
645 (GLIBC_2.27): Likewise.
646 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
647 (GLIBC_2.0): Likewise.
648 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
649 (GLIBC_2.2): Likewise.
650 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
651 Likewise.
652 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
653 (GLIBC_2.0): Likewise.
654 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
655 (GLIBC_2.2): Likewise.
656 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
657 (GLIBC_2.2.5): Likewise.
658 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
659 (GLIBC_2.16): Likewise.
660
661 2019-08-28 Florian Weimer <fweimer@redhat.com>
662
663 [BZ #24902]
664 * login/Makefile (tests): Add tst-pututxline-lockfail.
665 (tst-pututxline-lockfail): Link with -lpthread.
666 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
667 (__libc_getutid_r): Adjust.
668 (__libc_pututline): Likewise. Check for file_offset == -1.
669 * login/tst-pututxline-lockfail.c: New file.
670
671 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
672
673 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
674 * posix/tst-regex.input: New file.
675
676 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
677
678 [BZ #24916]
679 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
680 tst-undefined-weak.
681 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
682 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
683 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
684 * sysdeps/mips/tst-undefined-weak.c: Likewise.
685 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
686 Increment highest valid ABIVERSION value.
687
688 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
689
690 * sysdeps/unix/sysv/linux/mips/Makefile
691 (test-xfail-check-execstack):
692 Move under mips-has-gnustack != yes.
693 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
694 Apply -Wa,-execstack if mips-force-execstack == yes.
695 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
696 * sysdeps/unix/sysv/linux/mips/configure.ac
697 (mips-force-execstack): New var.
698 Set to yes for hard-float builds with minimum_kernel < 4.8.0
699 or minimum_kernel not set at all.
700 (mips-has-gnustack): New var.
701 Use value of libc_cv_as_noexecstack
702 if mips-force-execstack != yes, otherwise set to no.
703
704 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
705 Florian Weimer <fweimer@redhat.com>
706
707 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
708 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
709 Make a compat_symbol.
710 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
711 (__profil_counter_global): Likewise.
712
713 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
714 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
715 uintptr_t.
716 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
717 sigcontext_get_pc and return aligned cast to uintptr_t.
718 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
719 * sysdeps/posix/profil.c (profil_count): Change PC argument to
720 uintptr_t.
721 (__profil): Use SA_SIGINFO.
722 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
723 uintptr_t.
724 (__sprofil): Use SA_SIGINFO.
725 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
726 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
727 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
728 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
729 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
730 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
731 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
732 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
733 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
734 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
735 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
736 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
737 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
738 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
739 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
740 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
741 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
742 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
743 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
744 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
745 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
746 GET_PC, __sigaction, sigaction): Remove defines.
747 (sigcontext_get_pc): New function.
748 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
749 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
750 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
751 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
752 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
753 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
754 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
755 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
756 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
757 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
758 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
759 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
760 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
761 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
762 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
763 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
764 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
765 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
766 Handle CTX argument as ucontext_t.
767 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
768 Likewise.
769 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
770 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
771 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
772 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
773 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
774 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
775 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
776 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
777 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
778 tst-sigcontextinfo-get_pc.
779 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
780 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
781
782 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
783
784 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
785 definition.
786
787 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
788
789 [BZ #24682]
790 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
791 * localedata/locales/ug_CN (first_weekday): Likewise.
792 * localedata/locales/zh_CN (first_weekday): Likewise.
793
794 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
795
796 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
797 field name in mcontext_t struct.
798
799 2019-08-22 Joseph Myers <joseph@codesourcery.com>
800
801 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
802 unsupported with libidn2 before 2.0.5.
803 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
804
805 * manual/time.texi (strftime): Document %Ob and %OB as C2X
806 features.
807
808 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
809
810 Remove dead regex code
811 * posix/regex_internal.c (re_node_set_insert):
812 Remove unnecessary assignment. Reported by Tim Rühsen in:
813 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
814
815 Fix bad pointer / leak in regex code
816 This was found by Coverity (CID 1484201). [BZ#24844]
817 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
818 pointer and/or memory leak when storage is exhausted.
819
820 2019-08-21 Zack Weinberg <zackw@panix.com>
821
822 * misc/syslog.c (__vsyslog_internal)
823 * time/getdate.c (__getdate_r)
824 * time/tst_wcsftime.c (main):
825 Use return value of time, not its argument.
826
827 * string/strfry.c (strfry)
828 * sysdeps/mach/sleep.c (__sleep):
829 Remove unnecessary casts of NULL in calls to time.
830
831 2019-08-21 Joseph Myers <joseph@codesourcery.com>
832
833 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
834 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
835 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
836 (__TGMATH_2_NARROW_F): Likewise.
837 (__TGMATH_2_NARROW_D): New macro.
838 (__TGMATH_2_NARROW_F16): Likewise.
839 (__TGMATH_2_NARROW_F32): Likewise.
840 (__TGMATH_2_NARROW_F64): Likewise.
841 (__TGMATH_2_NARROW_F32X): Likewise.
842 (__TGMATH_2_NARROW_F64X): Likewise.
843 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
844 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
845 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
846 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
847 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
848 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
849 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
850 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
851 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
852 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
853 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
854 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
855 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
856 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
857 Likewise.
858 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
859 Likewise.
860 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
861 Likewise.
862 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
863 Likewise.
864 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
865 Likewise.
866 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
867 Likewise.
868 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
869 Likewise.
870 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
871 Likewise.
872 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
873 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
874 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
875 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
876 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
877 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
878 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
879 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
880 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
881 Likewise.
882 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
883 Likewise.
884 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
885 Likewise.
886 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
887 Likewise.
888 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
889 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
890 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
891 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
892 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
893 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
894 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
895 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
896 * math/gen-tgmath-tests.py (Type): Add members
897 non_standard_real_argument_types_list, long_double_type,
898 complex_float64_type and float32x_ext_type.
899 (Type.__init__): Set the new members.
900 (Type.floating_type): Add new argument floatn.
901 (Type.real_floating_type): Likewise.
902 (Type.can_combine_types): Likewise.
903 (Type.combine_types): Likewise.
904 (Type.init_types): Create internal Float32x_ext type.
905 (Tests.__init__): Define Float32x_ext in generated C code.
906 (Tests.add_tests): Handle narrowing functions.
907 (Tests.add_all_tests): Likewise.
908 (Tests.tests_text): Allow variation in mant_dig for narrowing
909 functions with compilers before GCC 8.
910 * math/Makefile (tgmath3-narrow-types): New variable.
911 (tgmath3-narrow-macros): Likewise.
912 (tgmath3-macros): Add $(tgmath3-narrow-macros).
913
914 2019-08-20 Andreas Schwab <schwab@suse.de>
915
916 * sysdeps/i386/fpu/libm-test-ulps: Update.
917
918 2019-08-19 Carlos O'Donell <carlos@redhat.com>
919
920 * nscd/nscd.conf: Add warning and comment about shared option.
921
922 2019-08-19 Carlos O'Donell <carlos@redhat.com>
923
924 * nss/nsswitch.conf: Expand comments, and simplify defaults.
925 * manual/nss.texi (NSS Basics): List all known databases.
926 (Services in the NSS configuration): Mention automount.
927
928 2019-08-19 Florian Weimer <fweimer@redhat.com>
929
930 Do not print backtraces on fatal errors.
931 * debug/fortify_fail.c (__libc_argv): Remove declaration.
932 (__fortify_fail_abort): Remove definition.
933 (__fortify_fail): Call __libc_message directly.
934 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
935 (__stack_chk_fail): Call __fortify_fail instead of
936 __fortify_fail_abort.
937 * include/stdio.h (__fortify_fail_abort): Remove declaration.
938 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
939 definitions.
940 (__libc_message): Do not handle do_backtrace. Do not call
941 BEFORE_ABORT.
942 (__libc_fatal): Do not pass do_backtrace to __libc_message.
943 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
944 (before_abort): Remove definitions.
945
946 2019-08-16 Florian Weimer <fweimer@redhat.com>
947
948 nptl: Move pthread_attr_getdetachstate implementation into libc.
949 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
950 (libpthread-routines): Remove pthread_attr_getdetachstate.
951 * nptl/Versions (libpthread GLIBC_2.0): Remove
952 pthread_attr_getdetachstate.
953 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
954 * nptl/nptl-init.c (pthread_functions): Remove initializer for
955 ptr_pthread_attr_getdetachstate.
956 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
957 Remove ptr_pthread_attr_getdetachstate member.
958 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
959 Remove pthread_attr_getdetachstate.
960 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
961 Likewise.
962 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
963 Likewise.
964 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
965 Likewise.
966 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
967 Likewise.
968 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
969 Likewise.
970 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
971 Likewise.
972 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
973 (GLIBC_2.4): Likewise.
974 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
975 (GLIBC_2.0): Likewise.
976 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
977 (GLIBC_2.18): Likewise.
978 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
979 (GLIBC_2.0): Likewise.
980 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
981 (GLIBC_2.0): Likewise.
982 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
983 Likewise.
984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
985 (GLIBC_2.0): Likewise.
986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
987 (GLIBC_2.3): Likewise.
988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
989 (GLIBC_2.17): Likewise.
990 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
991 (GLIBC_2.27): Likewise.
992 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
993 (GLIBC_2.0): Likewise.
994 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
995 (GLIBC_2.2): Likewise.
996 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
997 Likewise.
998 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
999 (GLIBC_2.0): Likewise.
1000 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1001 (GLIBC_2.2): Likewise.
1002 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1003 (GLIBC_2.2.5): Likewise.
1004 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1005 (GLIBC_2.16): Likewise.
1006
1007 2019-08-16 Joseph Myers <joseph@codesourcery.com>
1008
1009 * math/libm-test-compat_totalorder.inc (do_test)
1010 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1011 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1012 * math/libm-test-compat_totalordermag.inc (do_test)
1013 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1014
1015 2019-08-15 Florian Weimer <fweimer@redhat.com>
1016
1017 nptl: Move pthread_attr_init implementation into libc.
1018 * nptl/Makefile (routines): Add pthread_attr_init.
1019 (libpthread-routines): Remove pthread_attr_init.
1020 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1021 (libpthread GLIBC_2.0): Likewise.
1022 * nptl/pthread_attr_init.c: Check for libc compat version instead
1023 of libpthread compat version.
1024 * nptl/forward.c (__pthread_attr_init_2_0)
1025 (__pthread_attr_init_2_1): Remove definitions.
1026 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1027 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1028 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1029 Remove members ptr___pthread_attr_init_2_0,
1030 ptr___pthread_attr_init_2_1.
1031 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1032 Remove pthread_attr_init.
1033 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1034 Likewise.
1035 (GLIBC_2.1): Likewise.
1036 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1037 Likewise.
1038 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1039 Likewise.
1040 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1041 Likewise.
1042 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1043 Likewise.
1044 (GLIBC_2.1): Likewise.
1045 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1046 Likewise.
1047 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1048 (GLIBC_2.4): Likewise.
1049 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1050 (GLIBC_2.0): Likewise.
1051 (GLIBC_2.1): Likewise.
1052 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1053 (GLIBC_2.18): Likewise.
1054 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1055 (GLIBC_2.0): Likewise.
1056 (GLIBC_2.1): Likewise.
1057 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1058 (GLIBC_2.0): Likewise.
1059 (GLIBC_2.1): Likewise.
1060 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1061 Likewise.
1062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1063 (GLIBC_2.0): Likewise.
1064 (GLIBC_2.1): Likewise.
1065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1066 (GLIBC_2.3): Likewise.
1067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1068 (GLIBC_2.17): Likewise.
1069 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1070 (GLIBC_2.27): Likewise.
1071 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1072 (GLIBC_2.0): Likewise.
1073 (GLIBC_2.1): Likewise.
1074 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1075 (GLIBC_2.2): Likewise.
1076 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1077 Likewise.
1078 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1079 (GLIBC_2.0): Likewise.
1080 (GLIBC_2.1): Likewise.
1081 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1082 (GLIBC_2.2): Likewise.
1083 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1084 (GLIBC_2.2.5): Likewise.
1085 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1086 (GLIBC_2.16): Likewise.
1087
1088 2019-08-15 Florian Weimer <fweimer@redhat.com>
1089
1090 [BZ #24900]
1091 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1092 new object in __RTLD_OPENEXEC mode (except for the origin).
1093 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1094 check for the error message.
1095 (do_test): Call it. Add check using relative path.
1096 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1097 (tst-dlopen-aout-container): Link with libpthread.
1098 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1099
1100 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1101
1102 * math/bits/mathcalls.h
1103 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1104 (totalorder): Take pointer arguments.
1105 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1106 (totalordermag): Likewise.
1107 * manual/arith.texi (totalorder): Likewise.
1108 (totalorderf): Likewise.
1109 (totalorderl): Likewise.
1110 (totalorderfN): Likewise.
1111 (totalorderfNx): Likewise.
1112 (totalordermag): Likewise.
1113 (totalordermagf): Likewise.
1114 (totalordermagl): Likewise.
1115 (totalordermagfN): Likewise.
1116 (totalordermagfNx): Likewise.
1117 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1118 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1119 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1120 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1121 totalorderl, totalordermag, totalordermagf, totalordermagl,
1122 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1123 totalordermagf64, totalordermagf32x, totalorderf64x,
1124 totalordermagf64x, totalorderf128 and totalordermagf128.
1125 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1126 and compat_totalordermag.
1127 (libm-test-funcs-compat): New variable.
1128 (libm-tests-compat): Likewise.
1129 (tests): Do not include compat tests.
1130 (tests-internal): Add compat tests.
1131 ($(foreach t,$(libm-tests-base),
1132 $(objpfx)$(t)-compat_totalorder.o)): Depend
1133 on $(objpfx)libm-test-totalorder.c.
1134 ($(foreach t,$(libm-tests-base),
1135 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1136 $(objpfx)libm-test-totalordermag.c.
1137 (tgmath3-macros): Remove totalorder and totalordermag.
1138 * math/libm-test-compat_totalorder.inc: New file.
1139 * math/libm-test-compat_totalordermag.inc: Likewise.
1140 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1141 (RUN_TEST_fpfp_b): New macro.
1142 (RUN_TEST_LOOP_fpfp_b): Likewise.
1143 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1144 TEST_fpfp_b.
1145 (totalorder_test): Condition on [!COMPAT_TEST].
1146 (do_test): Likewise.
1147 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1148 TEST_fpfp_b.
1149 (totalordermag_test): Condition on [!COMPAT_TEST].
1150 (do_test): Likewise.
1151 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1152 totalorder and totalordermag.
1153 * math/test-tgmath.c (NCALLS): Change to 132.
1154 (F(compile_test)): Do not call totalorder or totalordermag.
1155 (F(totalorder)): Remove.
1156 (F(totalordermag)): Likewise.
1157 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1158 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1159 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1160 SJSTR_HELPER.
1161 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1162 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1163 [!_ISOMAC] (TEST_ALIGN): Likewise.
1164 [!_ISOMAC] (TEST_OFFSET): Likewise.
1165 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1166 and <first-versions.h>.
1167 (__totalorder): Take pointer arguments. Add symbol versions and
1168 compat symbols.
1169 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1170 <shlib-compat.h> and <first-versions.h>.
1171 (__totalordermag): Take pointer arguments. Add symbol versions
1172 and compat symbols.
1173 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1174 <shlib-compat.h> and <first-versions.h>.
1175 (__totalorder): Take pointer arguments. Add symbol versions and
1176 compat symbols.
1177 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1178 <shlib-compat.h> and <first-versions.h>.
1179 (__totalordermag): Take pointer arguments. Add symbol versions
1180 and compat symbols.
1181 * sysdeps/ieee754/float128/float128_private.h
1182 (__totalorder_compatl): New macro.
1183 (__totalordermag_compatl): Likewise.
1184 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1185 and <first-versions.h>.
1186 (__totalorderf): Take pointer arguments. Add symbol versions and
1187 compat symbols.
1188 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1189 <shlib-compat.h> and <first-versions.h>.
1190 (__totalordermagf): Take pointer arguments. Add symbol versions
1191 and compat symbols.
1192 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1193 <shlib-compat.h> and <first-versions.h>.
1194 (__totalorderl): Take pointer arguments. Add symbol versions and
1195 compat symbols.
1196 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1197 <shlib-compat.h> and <first-versions.h>.
1198 (__totalordermagl): Take pointer arguments. Add symbol versions
1199 and compat symbols.
1200 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1201 <shlib-compat.h>.
1202 (__totalorderl): Take pointer arguments. Add symbol versions and
1203 compat symbols.
1204 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1205 <shlib-compat.h>.
1206 (__totalordermagl): Take pointer arguments. Add symbol versions
1207 and compat symbols.
1208 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1209 <shlib-compat.h> and <first-versions.h>.
1210 (__totalorderl): Take pointer arguments. Add symbol versions and
1211 compat symbols.
1212 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1213 <shlib-compat.h> and <first-versions.h>.
1214 (__totalordermagl): Take pointer arguments. Add symbol versions
1215 and compat symbols.
1216 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1217 pointer arguments.
1218 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1219 Likewise.
1220 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1221 (do_test): Update calls to totalorderl and totalordermagl.
1222 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1223 Update calls to totalorderl and totalordermagl.
1224 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1225 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1226 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1227 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1228 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1229 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1230 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1231 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1232 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1233 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1234 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1235 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1236 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1237 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1239 Likewise.
1240 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1241 Likewise.
1242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1243 Likewise.
1244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1245 Likewise.
1246 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1247 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1248 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1249 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1250 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1251 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1252 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1253 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1254
1255 2019-08-15 Florian Weimer <fweimer@redhat.com>
1256
1257 [BZ #24899]
1258 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1259 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1260 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1261 Likewise.
1262 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1263 __attribute_nonstring__ to ut_id.
1264 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1265 Likewise.
1266
1267 2019-08-15 Florian Weimer <fweimer@redhat.com>
1268
1269 [BZ #24880]
1270 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1271 (file_locking_unlock): Likewise.
1272
1273 2019-08-15 Florian Weimer <fweimer@redhat.com>
1274
1275 [BZ #24879]
1276 login: Disarm timer after utmp lock acquisition.
1277 * login/utmp_file.c (struct file_locking): Remove.
1278 (try_file_lock): Adjust.
1279 (file_lock_restore): Remove function.
1280 (__libc_getutent_r): .
1281 (internal_getut_r): Likewise.
1282 (__libc_getutline_r): Likewise.
1283 (__libc_pututline): Likewise.
1284 (__libc_updwtmp): Likewise.
1285
1286 2019-08-15 Florian Weimer <fweimer@redhat.com>
1287
1288 nptl: Remove pthread_self compatibility symbol from libpthread.
1289 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1290 pthread_equal.
1291 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1292 * nptl/compat-pthread_self.c: Remove file.
1293 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1294 Remove pthread_self.
1295 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1296 Likewise.
1297 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1298 Likewise.
1299 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1300 Likewise.
1301 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1302 Likewise.
1303 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1304 Likewise.
1305 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1306 (GLIBC_2.4): Likewise.
1307 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1308 (GLIBC_2.0): Likewise.
1309 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1310 (GLIBC_2.18): Likewise.
1311 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1312 (GLIBC_2.0): Likewise.
1313 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1314 (GLIBC_2.0): Likewise.
1315 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1316 Likewise.
1317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1318 (GLIBC_2.0): Likewise.
1319 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1320 (GLIBC_2.3): Likewise.
1321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1322 (GLIBC_2.17): Likewise.
1323 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1324 (GLIBC_2.0): Likewise.
1325 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1326 (GLIBC_2.2): Likewise.
1327 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1328 Likewise.
1329 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1330 (GLIBC_2.0): Likewise.
1331 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1332 (GLIBC_2.2): Likewise.
1333 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1334 (GLIBC_2.2.5): Likewise.
1335 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1336 (GLIBC_2.16): Likewise.
1337
1338 2019-08-15 Florian Weimer <fweimer@redhat.com>
1339
1340 nptl: Move pthread_attr_destroy implementation into libc.
1341 * nptl/Makefile (routines): Add pthread_attr_destroy.
1342 (libpthread-routines): Remove pthread_attr_destroy.
1343 * nptl/Versions (libpthread GLIBC_2.0): Remove
1344 pthread_attr_destroy.
1345 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1346 libc compat version instead of libpthread compat version.
1347 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1348 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1349 ptr_pthread_attr_destroy.
1350 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1351 Remove ptr_pthread_attr_destroy member.
1352 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1353 Remove pthread_attr_destroy.
1354 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1355 Likewise.
1356 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1357 Likewise.
1358 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1359 Likewise.
1360 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1361 Likewise.
1362 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1363 Likewise.
1364 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1365 Likewise.
1366 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1367 (GLIBC_2.4): Likewise.
1368 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1369 (GLIBC_2.0): Likewise.
1370 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1371 (GLIBC_2.18): Likewise.
1372 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1373 (GLIBC_2.0): Likewise.
1374 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1375 (GLIBC_2.0): Likewise.
1376 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1377 Likewise.
1378 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1379 (GLIBC_2.0): Likewise.
1380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1381 (GLIBC_2.3): Likewise.
1382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1383 (GLIBC_2.17): Likewise.
1384 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1385 (GLIBC_2.27): Likewise.
1386 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1387 (GLIBC_2.0): Likewise.
1388 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1389 (GLIBC_2.2): Likewise.
1390 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1391 Likewise.
1392 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1393 (GLIBC_2.0): Likewise.
1394 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1395 (GLIBC_2.2): Likewise.
1396 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1397 (GLIBC_2.2.5): Likewise.
1398 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1399 (GLIBC_2.16): Likewise.
1400
1401 2019-08-15 Andreas Schwab <schwab@suse.de>
1402
1403 * sysdeps/i386/fpu/libm-test-ulps: Update.
1404
1405 2019-08-15 Florian Weimer <fweimer@redhat.com>
1406
1407 * malloc/Makefile (tests): Only add tst-mxfast for
1408 $(have-tunables).
1409 * malloc/tst-mxfast.c: Fix copyright year.
1410 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1411 assert for checks.
1412
1413 2019-08-15 Florian Weimer <fweimer@redhat.com>
1414
1415 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1416 descriptor.
1417 * login/Makefile (tests): Add tst-updwtmpx.
1418 * login/tst-updwtmpx.c: New file.
1419
1420 2019-08-15 Florian Weimer <fweimer@redhat.com>
1421
1422 nptl: Move pthread_equal implementation into libc.
1423 * nptl/Makefile (routines): Add pthread_equal.
1424 * nptl/forward.c (pthread_equal): Remove definition.
1425 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1426 ptr_pthread_equal.
1427 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1428 Remove ptr_pthread_equal member.
1429 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1430 Remove pthread_equal.
1431 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1432 Likewise.
1433 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1434 Likewise.
1435 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1436 Likewise.
1437 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1438 Likewise.
1439 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1440 Likewise.
1441 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1442 Likewise.
1443 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1444 (GLIBC_2.4): Likewise.
1445 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1446 (GLIBC_2.0): Likewise.
1447 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1448 (GLIBC_2.18): Likewise.
1449 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1450 (GLIBC_2.0): Likewise.
1451 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1452 (GLIBC_2.0): Likewise.
1453 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1454 Likewise.
1455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1456 (GLIBC_2.0): Likewise.
1457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1458 (GLIBC_2.3): Likewise.
1459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1460 (GLIBC_2.17): Likewise.
1461 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1462 (GLIBC_2.27): Likewise.
1463 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1464 (GLIBC_2.0): Likewise.
1465 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1466 (GLIBC_2.2): Likewise.
1467 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1468 Likewise.
1469 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1470 (GLIBC_2.0): Likewise.
1471 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1472 (GLIBC_2.2): Likewise.
1473 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1474 (GLIBC_2.2.5): Likewise.
1475 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1476 (GLIBC_2.16): Likewise.
1477
1478 2019-08-14 Florian Weimer <fweimer@redhat.com>
1479
1480 * support/support_descriptors.c: Include <support/descriptors.h>.
1481
1482 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1483
1484 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1485 Disable DC ZVA code if this macro is defined as zero.
1486 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1487 Change to zero to disable using DC ZVA.
1488
1489 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1490
1491 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1492 Update comment.
1493 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1494 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1495 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1496 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1497 Likewise.
1498
1499 2019-08-13 Florian Weimer <fweimer@redhat.com>
1500
1501 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1502 Remove macros.
1503 (struct file_locking): New.
1504 (try_file_lock, file_unlock, file_lock_restore): New functions.
1505 (__libc_getutent_r): Use the new functions.
1506 (internal_getut_r): Likewise.
1507 (__libc_getutline_r): Likewise.
1508 (__libc_pututline): Likewise.
1509 (__libc_updwtmp): Likewise.
1510
1511 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1512
1513 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1514 comment.
1515 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1516 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1517 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1518 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1519 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1520 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1521 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1522 Likewise.
1523 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1524 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1525 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1526 Likewise.
1527 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1528 Likewise.
1529 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1530 Likewise.
1531 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1532 Likewise.
1533 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1534 Likewise.
1535 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1536 Likewise.
1537 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1538 Likewise.
1539 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1540 (IEC_60559_BFP_EXT)]: Likewise.
1541 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1542 Likewise.
1543 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1544 Likewise.
1545 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1546 Likewise.
1547 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1548 Likewise.
1549 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1550 Likewise.
1551 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1552 Likewise.
1553 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1554 Likewise.
1555 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1556 Likewise.
1557 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1558 Likewise, except for totalorder, totalordermag, getpayload,
1559 setpayload and setpayloadsig.
1560 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1561 except for totalorder and totalordermag.
1562
1563 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1564 (strdup): Likewise.
1565 (strndup): Likewise.
1566
1567 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1568 Undefine and define to 1 if [_GNU_SOURCE].
1569 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1570 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1571 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1572 (__USE_ISOC99): Likewise.
1573 (__USE_ISOC95): Likewise.
1574 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1575
1576 2019-08-13 Florian Weimer <fweimer@redhat.com>
1577
1578 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1579 are always true.
1580 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1581 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1582 * login/getutmpx.c (getutmpx): Likewise.
1583 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1584 true.
1585 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1586 _HAVE_UT_TV are always true.
1587 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1588 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1589 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1590 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1591 are always true.
1592 (internal_getut_r): _HAVE_UT_TYPE is always true.
1593 (__libc_pututline): Likewise.
1594 * login/programs/utmpdump.c (print_entry): Assume that
1595 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1596 _HAVE_UT_TV are always true.
1597 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1598 _HAVE_UT_ID are always true.
1599 * sysdeps/gnu/bits/utmp.h: Move to ...
1600 * bits/utmp.h: ... here, replacing the old file.
1601
1602 2019-08-12 Florian Weimer <fweimer@redhat.com>
1603
1604 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1605 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1606 not set.
1607 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1608 (do_test): Open the executable using an absolute path. Print
1609 error message to standard output.
1610
1611 2019-08-09 DJ Delorie <dj@redhat.com>
1612
1613 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1614 * manual/tunables.texi: Document it.
1615 * malloc/malloc.c (do_set_mxfast): New.
1616 (__libc_mallopt): Call it.
1617 * malloc/arena.c: Add mxfast tunable.
1618 * malloc/tst-mxfast.c: New.
1619 * malloc/Makefile: Add it.
1620
1621 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1622 Carlos O'Donell <carlos@redhat.com>
1623
1624 [BZ #24026]
1625 * malloc/malloc.c (__malloc_info): Account for top chunk.
1626
1627 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1628
1629 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1630 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1631
1632 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1633
1634 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1635
1636 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1637
1638 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1639
1640 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1641
1642 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1643 New macro.
1644
1645 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1646
1647 [BZ #19767]
1648 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1649 Remove definition.
1650 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1651 Likewise.
1652 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1653 Likewise.
1654 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1655 Likewise.
1656 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1657 (ALWAYS_USE_VSYSCALL): Likewise.
1658 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1659 (ALWAYS_USE_VSYSCALL): Likewise.
1660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1661 (ALWAYS_USE_VSYSCALL): Likewise.
1662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1663 (ALWAYS_USE_VSYSCALL): Likewise.
1664 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1665 Likewise.
1666 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1667 (ALWAYS_USE_VSYSCALL): Likewise.
1668 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1669 (ALWAYS_USE_VSYSCALL): Likewise.
1670 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1671 Likewise.
1672 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1673 Likewise.
1674 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1675 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1676 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1677 USE_VSYSCALL): Remove defitions.
1678
1679 [BZ #19767]
1680 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1681 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1682 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1683 Define.
1684
1685 [BZ #19767]
1686 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1687 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1688 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1689 (ALWAYS_USE_VSYSCALL): Define.
1690 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1691 (ALWAYS_USE_VSYSCALL): Likewise.
1692
1693 [BZ #19767]
1694 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1695 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1696 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1697 Define.
1698
1699 * sysdeps/sh/libm-test-ulps: Update.
1700
1701 2019-08-05 Florian Weimer <fweimer@redhat.com>
1702
1703 [BZ #23518]
1704 * login/uptmp-private.h (struct ufuncs): Remove definition.
1705 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1706 (__libc_utmp_jump_table): Remove declarations.
1707 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1708 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1709 (__libc_updwtmp): Declare.
1710 * login/getutent_r.c (__libc_utmp_unknown_functions)
1711 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1712 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1713 (endutent_unknown): Remove definitions.
1714 (__setutent): Call __libc_setutent.
1715 (__getutent_r): Call __libc_getutent_r.
1716 (__pututline): Call __libc_pututline.
1717 (__endutent): Call __libc_endutent.
1718 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1719 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1720 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1721 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1722 (__libc_setutent): Rename from stetutent_file. Drop static.
1723 (maybe_setutent): New function.
1724 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1725 Check for initialization.
1726 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1727 Check for initialization.
1728 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1729 Check for initialization.
1730 (__libc_pututline): Rename from pututline_file. Drop static.
1731 Check for initialization.
1732 (__libc_endutent): Rename from endutent_file. Drop static. Check
1733 for initialization.
1734 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1735 * login/utmpname.c (__utmpname): Call __libc_endutent.
1736 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1737 __libc_getutlien_r, __libc_endutent.
1738 * manual/users.texi (Who Logged In, Manipulating the Database):
1739 Adjust.
1740
1741 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1742
1743 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1744
1745 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1746
1747 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1748
1749 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1750 kernel version number to 5.2.
1751
1752 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1753
1754 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1755 mnemonics and set .machine power8.
1756 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1757 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1758 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1759 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1760 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1761 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1762 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1763 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1764 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1765 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1766
1767 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1768
1769 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1770
1771 2019-08-01 Florian Weimer <fweimer@redhat.com>
1772
1773 [BZ #24867]
1774 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1775 whitespace.
1776
1777 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1778
1779 [BZ #15813]
1780 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1781 attempt.
1782
1783 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1784
1785 * version.h (RELEASE): Set to "stable".
1786 (VERSION): Set to "2.30".
1787 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1788
1789 * manual/install.texi: Update component versions.
1790 * INSTALL: Regenerate.
1791 * NEWS: Update.
1792
1793 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1794
1795 * po/be.po: Update translations.
1796 * po/bg.po: Likewise.
1797 * po/ca.po: Likewise.
1798 * po/cs.po: Likewise.
1799 * po/da.po: Likewise.
1800 * po/de.po: Likewise.
1801 * po/el.po: Likewise.
1802 * po/eo.po: Likewise.
1803 * po/es.po: Likewise.
1804 * po/fi.po: Likewise.
1805 * po/fr.po: Likewise.
1806 * po/gl.po: Likewise.
1807 * po/hr.po: Likewise.
1808 * po/hu.po: Likewise.
1809 * po/ia.po: Likewise.
1810 * po/id.po: Likewise.
1811 * po/it.po: Likewise.
1812 * po/ja.po: Likewise.
1813 * po/ko.po: Likewise.
1814 * po/lt.po: Likewise.
1815 * po/nb.po: Likewise.
1816 * po/nl.po: Likewise.
1817 * po/pl.po: Likewise.
1818 * po/pt_BR.po: Likewise.
1819 * po/ru.po: Likewise.
1820 * po/rw.po: Likewise.
1821 * po/sk.po: Likewise.
1822 * po/sl.po: Likewise.
1823 * po/sv.po: Likewise.
1824 * po/tr.po: Likewise.
1825 * po/uk.po: Likewise.
1826 * po/vi.po: Likewise.
1827 * po/zh_CN.po: Likewise.
1828 * po/zh_TW.po: Likewise.
1829
1830 2019-07-31 Florian Weimer <fweimer@redhat.com>
1831
1832 [BZ #24583]
1833 [BZ #24677]
1834 iconv, libio: Revert reference counting changes.
1835 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1836 free the steps array.
1837 * libio/Makefile (tests): Remove tst-wfile-gconv.
1838 (tests-container): Do not add tst-wfile-ascii.
1839 (tst-wfile-gconv-ENV): Do not set.
1840 (generated): Do not add tst-wfile-gconv.mtrace,
1841 tst-wfile-gconv.check.
1842 [($run-built-tests)] (tests-special): Do not add
1843 tst-wfile-gconv-mem.out.
1844 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1845 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1846 instead of __wcsmbs_clone_conv.
1847 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1848 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1849
1850 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1851
1852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1853 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1854
1855 2019-07-30 Florian Weimer <fweimer@redhat.com>
1856
1857 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1858 type to uintptr_t. Update comment.
1859 (check_stack_top): Adjust.
1860
1861 2019-07-29 Florian Weimer <fweimer@redhat.com>
1862
1863 Linux: Move declaration of getdents64 to <dirent.h>.
1864 * bits/dirent_ext.h: New file.
1865 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1866 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1867 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1868 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1869 declaration.
1870 * manual/filesys.texi (Low-level Directory Access): Update header
1871 to dirent.h.
1872
1873 2019-07-29 DJ Delorie <dj@redhat.com>
1874 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1875
1876 [BZ #24794]
1877 * Makeconfig (all-subdirs): Improved source comments.
1878 * Makefile (testroot.pristine/install.stamp): Pass
1879 subdirs='$(sorted-subdirs)' to make install.
1880
1881 2019-07-25 Florian Weimer <fweimer@redhat.com>
1882
1883 [BZ #24677]
1884 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1885 counter before freeing array.
1886
1887 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1888
1889 [BZ #24603]
1890 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1891 works.
1892 * sysdeps/x86_64/configure: Regenerated.
1893 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1894 to -mprefer-vector-width=128 if supported.
1895
1896 2019-07-24 Florian Weimer <fweimer@redhat.com>
1897
1898 * scripts/build-many-glibcs.py (Context.checkout): Default to
1899 Linux 5.2.
1900
1901 2019-07-24 Florian Weimer <fweimer@redhat.com>
1902
1903 [BZ #24532]
1904 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1905 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1906 (sysdep_headers): Add bits/socket-constants.h.
1907 (tests-special): Add tst-socket-consts.out.
1908 (tst-socket-consts.out): New target.
1909 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1910 around <asm/unistd.h>.
1911 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1912 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1913 <asm/socket.h>.
1914 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1915 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1916 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1917 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1918 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1919 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1920 Likewise.
1921 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1922
1923 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1924
1925 [BZ #24794]
1926 * Makefile (testroot.pristine/install.stamp): Pass
1927 subdirs='$(all-subdirs)' to make install.
1928
1929 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1930 the same arguments used in all tests.
1931
1932 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1933
1934 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1935
1936 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1937
1938 [BZ #2872]
1939 * locale/C-translit.h.in: Add Cyrillic transliteration.
1940
1941 2019-07-19 Florian Weimer <fweimer@redhat.com>
1942
1943 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1944 from Linux 5.2.
1945 (fsconfig): Add system call name.
1946 (fsmount): Likewise.
1947 (fsopen): Likewise.
1948 (fspick): Likewise.
1949 (move_mount): Likewise.
1950 (open_tree): Likewise.
1951
1952 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1953
1954 * po/libc.pot: Regenerate.
1955
1956 2019-07-18 Mike Crowe <mac@mcrowe.com>
1957
1958 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1959 functions recently added to sysdeps/nptl/pthread.h:
1960 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1961 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1962
1963 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1964 pthread_cond_clockwait forwarding functions. There are no internal
1965 users, so it is unnecessary to expose these functions in libc.so.
1966 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1967 unnecessary ptr___pthread_cond_clockwait member.
1968 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1969 removed member.
1970
1971 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1972
1973 [BZ #21897]
1974 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1975 begin with an uppercase letter now.
1976 (abmon): Likewise.
1977 (mon): Update from CLDR, reword February from "Kudo" to
1978 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1979 and August from "Liiqen" to "Leqeeni".
1980 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1981 April from "Agda Baxisso" to "Agda Baxis" and August from
1982 "Leqeeni" to "Liiqen".
1983 * localedata/locales/aa_ER@saaho (mon): Likewise.
1984 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1985 abbreviated February from "Kud" to "Nah".
1986 (mon): Update from CLDR, reword February from "Kudo" to
1987 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1988
1989 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1990
1991 [BZ #23996]
1992 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1993
1994 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1995
1996 [BZ #23996]
1997 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1998 name_mrs, name_miss, and name_ms.
1999 * localedata/locales/nl_NL (LC_NAME): Likewise.
2000
2001 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
2002
2003 [BZ #24200]
2004 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2005 * localedata/locales/en_IE (first_weekday): Likewise.
2006
2007 2019-07-12 Mike Crowe <mac@mcrowe.com>
2008
2009 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2010 that is only useful if futex_supports_exact_relative_timeouts ()
2011 returns false.
2012 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2013 Likewise.
2014 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2015 timeouts potentially being imprecise since it's no longer true.
2016 Remove declaration of futex_supports_exact_relative_timeouts.
2017 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2018 of futex_supports_exact_relative_timeouts.
2019
2020 * NEWS: Mention recently-added pthread_cond_clockwait,
2021 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2022 sem_clockwait functions.
2023
2024 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2025 works like pthread_mutex_timedlock but takes a clockid parameter to
2026 measure the abstime parameter against.
2027 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2028 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2029 * nptl/pthread_mutex_timedlock.c
2030 (__pthread_mutex_clocklock_common): Rename from
2031 __pthread_mutex_timedlock and add clockid parameter. Pass this
2032 parameter to lll_clocklock and lll_clocklock_elision in place of
2033 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2034 LIBC_PROBE and validate clockid parameter before calling
2035 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2036 implementation to add LIBC_PROBE and calls
2037 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2038 clockid.
2039 * nptl/Makefile: Add tst-mutex11.c.
2040 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2041 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2042 clockid parameters to pthread_mutex_clocklock.
2043 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2044 clockid parameter to indicate which clock to be used. Call
2045 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2046 (do_test): Call do_test_clock to separately test
2047 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2048 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2049 * nptl/tst-mutex9.c: Likewise.
2050 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2051 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2052 Likewise.
2053 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2054 Likewise.
2055 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2056 Likewise.
2057 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2058 Likewise.
2059 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2060 Likewise.
2061 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2062 Likewise.
2063 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2064 Likewise.
2065 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2066 (GLIBC_2.30): Likewise.
2067 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2068 (GLIBC_2.30): Likewise.
2069 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2070 (GLIBC_2.30): Likewise.
2071 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2072 (GLIBC_2.30): Likewise.
2073 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2074 (GLIBC_2.30): Likewise.
2075 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2076 Likewise.
2077 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2078 (GLIBC_2.30): Likewise.
2079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2080 (GLIBC_2.30): Likewise.
2081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2082 (GLIBC_2.30): Likewise.
2083 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2084 (GLIBC_2.30): Likewise.
2085 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2086 (GLIBC_2.30): Likewise.
2087 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2088 (GLIBC_2.30): Likewise.
2089 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2090 Likewise.
2091 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2092 (GLIBC_2.30): Likewise.
2093 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2094 (GLIBC_2.30): Likewise.
2095 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2096 (GLIBC_2.30): Likewise.
2097 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2098 (GLIBC_2.30): Likewise.
2099
2100 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2101 parameter to indicate the clock that the abstime parameter should
2102 be measured against in preparation for adding
2103 pthread_mutex_clocklock.
2104 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2105 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2106 from __lll_timedlock and add clockid parameter.
2107 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2108 Likewise.
2109 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2110 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2111 rather than __gettimeofday so that clockid can be used. This means
2112 that conversion from struct timeval is no longer required.
2113 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2114 Likewise.
2115 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2116 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2117 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2118 from lll_timedlock_elision, add clockid parameter and use
2119 meaningful names for other parameters. (__pthread_mutex_timedlock):
2120 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2121 lll_clocklock_elision.
2122 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2123 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2124 clockid parameter. (__lll_clocklock_elision): Rename from
2125 __lll_timedlock_elision and add clockid parameter.
2126 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2127 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2128 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2129 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2130 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2131 (LLL_LOCK): Likewise.
2132 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2133 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2134
2135 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2136 pthread_rwlock_clockwrlock which behave like
2137 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2138 respectively, except they always measure abstime against the
2139 supplied clockid. The functions currently support CLOCK_REALTIME
2140 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2141 specified.
2142 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2143 pthread_wrlock_clockwrlock.
2144 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2145 pthread_rwlock_clockwrlock.c.
2146 * nptl/pthread_rwlock_clockrdlock.c: Implement
2147 pthread_rwlock_clockrdlock.
2148 * nptl/pthread_rwlock_clockwrlock.c: Implement
2149 pthread_rwlock_clockwrlock.
2150 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2151 clockid parameter and verify that it indicates a supported clock on
2152 entry so that we fail even if it doesn't end up being used. Pass
2153 that clock on to futex_abstimed_wait when necessary.
2154 (__pthread_rwlock_wrlock_full): Likewise.
2155 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2156 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2157 be used because there's no timeout.
2158 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2159 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2160 be used because there is no timeout.
2161 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2162 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2163 uses that clock.
2164 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2165 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2166 uses that clock.
2167 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2168 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2169 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2170 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2171 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2172 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2173 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2174 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2175 (GLIBC_2.30): Likewise.
2176 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2177 (GLIBC_2.30): Likewise.
2178 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2179 (GLIBC_2.30): Likewise.
2180 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2181 (GLIBC_2.30): Likewise.
2182 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2183 (GLIBC_2.30): Likewise.
2184 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2186 (GLIBC_2.30): Likewise.
2187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2188 (GLIBC_2.30): Likewise.
2189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2190 (GLIBC_2.30): Likewise.
2191 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2192 (GLIBC_2.30): Likewise.
2193 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2194 (GLIBC_2.30): Likewise.
2195 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2196 (GLIBC_2.30): Likewise.
2197 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2198 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2199 (GLIBC_2.30): Likewise.
2200 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2201 (GLIBC_2.30): Likewise.
2202 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2203 (GLIBC_2.30): Likewise.
2204 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2205 (GLIBC_2.30): Likewise.
2206 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2207 pthread_rwlock_clockwrlock timeout tests to match the existing
2208 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2209 * nptl/tst-rwlock14.c (do_test): Likewise.
2210 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2211 ancillary output throughout. (tf): Accept thread_args structure so
2212 that rwlock, a clockid and function name can be passed to the
2213 thread. (do_test_clock): Rename from do_test. Accept clockid
2214 parameter to specify test clock. Use the magic clockid value of
2215 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2216 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2217 specified clockid to pthread_rwlock_clockrdlock and
2218 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2219 (do_test): Call do_test_clock to test each clockid in turn.
2220 * nptl/tst-rwlock7.c: Likewise.
2221 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2222 thread_args structure so that the (now int) thread number, the
2223 clockid and the function name can be passed to the thread.
2224 (do_test_clock): Renamed from do_test. Pass the necessary
2225 thread_args when creating the reader and writer threads. Use
2226 xpthread_create and xpthread_join.
2227 (do_test): Call do_test_clock to test each clockid in turn.
2228 * manual/threads.texi: Add documentation for
2229 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2230
2231 nptl: pthread_rwlock: Move timeout validation into _full functions
2232 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2233 Check validity of abstime parameter.
2234 (__pthread_rwlock_rwlock_full): Likewise.
2235 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2236 Remove check for validity of abstime parameter.
2237 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2238 Likewise.
2239
2240 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2241 like pthread_cond_timedwait except it always measures abstime
2242 against the supplied clockid.
2243 * nptl/Makefile: Add tst-cond26 and tst-cond27
2244 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2245 * sysdeps/nptl/pthread.h: Likewise
2246 * nptl/forward.c: Add __pthread_cond_clockwait
2247 * nptl/forward.c: Likewise
2248 * nptl/pthreadP.h: Likewise
2249 * sysdeps/nptl/pthread-functions.h: Likewise
2250 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2251 clockid parameter and comment describing why we don't need to check
2252 its value. Use that value when calling
2253 futex_abstimed_wait_cancelable rather than reading the clock from
2254 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2255 (__pthread_cond_timedwait): Read clock from flags and pass it to
2256 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2257 function with weak alias from pthread_cond_clockwait.
2258 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2259 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2260 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2261 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2262 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2263 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2264 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2265 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2266 (GLIBC_2.30): Likewise.
2267 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2268 (GLIBC_2.30): Likewise.
2269 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2270 (GLIBC_2.30): Likewise.
2271 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2272 (GLIBC_2.30): Likewise.
2273 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2274 (GLIBC_2.30): Likewise.
2275 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2277 (GLIBC_2.30): Likewise.
2278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2279 (GLIBC_2.30): Likewise.
2280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2281 (GLIBC_2.30): Likewise.
2282 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2283 (GLIBC_2.30): Likewise.
2284 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2285 (GLIBC_2.30): Likewise.
2286 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2287 (GLIBC_2.30): Likewise.
2288 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2289 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2290 (GLIBC_2.30): Likewise.
2291 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2292 (GLIBC_2.30): Likewise.
2293 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2294 (GLIBC_2.30): Likewise.
2295 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2296 (GLIBC_2.30): Likewise.
2297 * nptl/tst-cond11.c (run_test): Support testing
2298 pthread_cond_clockwait too by using a special magic
2299 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2300 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2301 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2302 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2303 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2304 clocks to pthread_cond_clockwait.
2305 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2306 struct timespec and pthread_cond_clockwait.
2307 * manual/threads.texi: Document pthread_cond_clockwait.
2308
2309 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2310 sem_timedwait, but measures abstime against the specified clock.
2311 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2312 clockid parameters to indicate the clock which abstime should be
2313 measured against.
2314 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2315 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2316 __new_sem_wait_slow.
2317 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2318 on sem_timedwait.c.
2319 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2320 sem_clockwait.c to match those used for sem_timedwait.c.
2321 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2322 * nptl/Versions (GLIBC_2.30): Likewise.
2323 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2324 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2325 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2326 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2327 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2328 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2329 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2330 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2331 (GLIBC_2.30): Likewise.
2332 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2333 (GLIBC_2.30): Likewise.
2334 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2335 (GLIBC_2.30): Likewise.
2336 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2337 (GLIBC_2.30): Likewise.
2338 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2339 (GLIBC_2.30): Likewise.
2340 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2342 (GLIBC_2.30): Likewise.
2343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2344 (GLIBC_2.30): Likewise.
2345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2346 (GLIBC_2.30): Likewise.
2347 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2348 (GLIBC_2.30): Likewise.
2349 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2350 (GLIBC_2.30): Likewise.
2351 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2352 (GLIBC_2.30): Likewise.
2353 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2354 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2355 (GLIBC_2.30): Likewise.
2356 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2357 (GLIBC_2.30): Likewise.
2358 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2359 (GLIBC_2.30): Likewise.
2360 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2361 (GLIBC_2.30): Likewise.
2362 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2363 sem_clockwait.
2364 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2365 tests to also test sem_clockwait.
2366 * manual/threads.texi: Document sem_clockwait.
2367
2368 nptl: Add clockid parameter to futex timed wait calls
2369 * sysdeps/nptl/lowlevellock-futex.h,
2370 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2371 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2372 takes a clockid rather than a special clockbit.
2373 * sysdeps/nptl/lowlevellock-futex.h: Add
2374 lll_futex_supported_clockid so that client functions can check
2375 whether their clockid parameter is valid even if they don't
2376 ultimately end up calling lll_futex_clock_wait_bitset.
2377 * sysdeps/nptl/futex-internal.h,
2378 sysdeps/unix/sysv/linux/futex-internal.h
2379 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2380 clockid_t parameter to indicate which clock the absolute time
2381 passed should be measured against. Pass that clockid onto
2382 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2383 returning -EINVAL.
2384 * sysdeps/nptl/futex-internal.h,
2385 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2386 futex_abstimed_supported_clockid so that client functions can check
2387 whether their clockid parameter is valid even if they don't
2388 ultimately end up calling futex_abstimed_wait.
2389 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2390 code to calculate relative timeout for
2391 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2392 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2393 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2394 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2395 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2396 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2397 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2398
2399 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2400
2401 [BZ #24699]
2402 * posix/tst-mmap-offset.c: Mention BZ #24699.
2403 (do_test_bz21270): Rename to do_test_large_offset and use
2404 mmap64_maximum_offset to check for maximum expected offset value.
2405 * sysdeps/generic/mmap_info.h: New file.
2406 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2407 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2408 __NR_mmap2 is used.
2409
2410 2019-07-10 DJ Delorie <dj@redhat.com>
2411 Sergei Trofimovich <slyfox@inbox.ru>
2412
2413 [BZ #24696]
2414 [BZ #24695]
2415 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2416 mappings.
2417 * nss/tst-nss-db-endgrent.c: New.
2418 * nss/tst-nss-db-endgrent.root: New.
2419 * nss/tst-nss-db-endpwent.c: New.
2420 * nss/tst-nss-db-endpwent.root: New.
2421 * nss/Makefile: Add new tests.
2422 * support/links-dso-program-c.c: Add selinux dependency.
2423 * support/links-dso-program.cc: Add selinux dependency.
2424 * support/Makefile: Build those with -lselinux if enabled.
2425
2426 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2427
2428 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2429 DT_AARCH64_VARIANT_PCS check.
2430 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2431 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2432 variant_pcs.
2433
2434 2019-07-10 Andreas Schwab <schwab@suse.de>
2435
2436 [BZ #23352]
2437 * malloc/malloc.h (__malloc_check_init): Don't declare.
2438 * include/malloc.h (__malloc_check_init): Likewise.
2439 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2440 * manual/memory.texi (__malloc_check_init): Don't mention it.
2441
2442 2019-07-10 Mao Han <han_mao@c-sky.com>
2443
2444 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2445
2446 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2447
2448 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2449 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2450
2451 2019-07-08 DJ Delorie <dj@redhat.com>
2452
2453 [BZ #23501]
2454 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2455 * io/tst-ftw-lnk.c: New test.
2456 * io/Makefile: Run it.
2457
2458 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2459
2460 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2461 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2462 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2463 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2464 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2465 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2466 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2467 Adjust implementation path.
2468 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2469 Adjust implementation path.
2470 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2471 Adjust implementation path.
2472 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2473 (libm-sysdep_routines): Add s_log* objects.
2474 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2475 CFLAGS-s_logb-power7.c): New fule.
2476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2477 to ...
2478 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2479 ... here.
2480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2481 to ...
2482 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2483 ... here.
2484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2485 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2487 to ...
2488 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2489 ... here.
2490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2491 to ...
2492 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2493 ... here.
2494 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2495 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2496 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2497 to ...
2498 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2499 ... here.
2500 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2501 to ...
2502 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2503 ... here.
2504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2505 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2506 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2507 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2508 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2509 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2510
2511 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2512 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2513 powerpc32 integer 0 converting to -0.
2514
2515 * benchtests/Makefile (bench-math): Add logb.
2516 * benchtests/logb-inputs: New file.
2517 * benchtests/logbf-inputs: New file.
2518
2519 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2520 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2521 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2522 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2524 Adjust include.
2525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2526 Likewise.
2527 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2528 sysdep_routines): Add s_modf* objects.
2529 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2530 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2531 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2532 to ...
2533 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2534 ... here.
2535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2536 to ...
2537 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2538 ... here.
2539 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2540 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2541 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2542 to ...
2543 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2544 ... here.
2545 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2546 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2547 ... here.
2548 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2549 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2550
2551 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2552 twoM500, twoM600, two60factor, pdnum): Remove.
2553 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2554 (__ieee754_hypot): Replace static variables with inline definition,
2555 remove ununsed branches.
2556 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2557 (libm-sysdep_routines): Remove e_hypot-* objects.
2558 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2559 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2560 file.
2561 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2562 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2563 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2564 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2565 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2566
2567 * benchtests/Makefile (bench-math): Add hypot.
2568 * benchtests/hypot-inputs: New file.
2569
2570 2019-07-08 Vincent Chen <vincentc@andestech.com>
2571
2572 * sysdeps/unix/sysv/linux/dl-vdso.h
2573 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2574
2575 2019-07-04 Andreas Schwab <schwab@suse.de>
2576
2577 [BZ #24484]
2578 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2579
2580 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2581
2582 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2583 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2584 * sysdeps/aarch64/sys/ifunc.h: New file.
2585 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2586 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2587
2588 2019-07-01 Florian Weimer <fweimer@redhat.com>
2589
2590 [BZ #20188]
2591 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2592 Replace __vfork with __libpthread_version_placeholder for
2593 GLIBC_2.1.2.
2594 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2595 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2596 libpthread-compat.
2597 * nptl/pt-vfork.c: Remove file.
2598 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2599 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2600 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2601 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2602 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2603 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2604 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2605 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2606 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2607 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2608 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2609 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2610 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2611 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2612 Remove vfork, __vfork.
2613 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2614 Remove vfork.
2615 (GLIBC_2.1.2): Replace __vfork with
2616 __libpthread_version_placeholder.
2617 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2618 Remove vfork, __vfork.
2619 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2620 Likewise.
2621 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2622 Remove vfork.
2623 (GLIBC_2.1.2): Replace __vfork with
2624 __libpthread_version_placeholder.
2625 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2626 Remove vfork.
2627 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2628 (GLIBC_2.4): Remove vfork, __vfork.
2629 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2630 (GLIBC_2.0): Remove vfork.
2631 (GLIBC_2.1.2): Replace __vfork with
2632 __libpthread_version_placeholder.
2633 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2634 (GLIBC_2.18): Remove vfork, __vfork.
2635 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2636 (GLIBC_2.0): Remove vfork.
2637 (GLIBC_2.2): Remove __vfork.
2638 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2639 (GLIBC_2.2): Remove vfork, __vfork.
2640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2641 (GLIBC_2.0): Remove vfork.
2642 (GLIBC_2.1.2): Replace __vfork with
2643 __libpthread_version_placeholder.
2644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2645 (GLIBC_2.3): Remove vfork, __vfork.
2646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2647 (GLIBC_2.17): Likewise.
2648 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2649 (GLIBC_2.0): Remove vfork.
2650 (GLIBC_2.1.2): Replace __vfork with
2651 __libpthread_version_placeholder.
2652 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2653 (GLIBC_2.2): Remove vfork, __vfork.
2654 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2655 Likewise.
2656 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2657 (GLIBC_2.0): Remove vfork.
2658 (GLIBC_2.1.2): Replace __vfork with
2659 __libpthread_version_placeholder.
2660 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2661 (GLIBC_2.2): Remove vfork, __vfork.
2662 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2663 (GLIBC_2.2.5): Likewise.
2664 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2665 (GLIBC_2.16): Likewise.
2666 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2667 Remove __errno_location.
2668
2669 2019-07-02 Florian Weimer <fweimer@redhat.com>
2670
2671 [BZ #24757]
2672 * malloc/Depend: Add nptl and htl, due to potential indirect
2673 libpthread dependency of memusagestat.
2674
2675 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2676
2677 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2678 warning.
2679
2680 2019-07-01 Florian Weimer <fweimer@redhat.com>
2681
2682 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2683 variant for arm-linux-gnueabi.
2684
2685 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2686
2687 [BZ #24259]
2688 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2689 relocation.
2690 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2691 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2692 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2693 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2694 and tst-cet-legacy-mod-6c.
2695 (CFLAGS-tst-cet-legacy-5a.c): New.
2696 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2697 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2698 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2699 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2700 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2701 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2702 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2703 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2704 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2705 ($(objpfx)tst-cet-legacy-5a): Likewise.
2706 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2707 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2708 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2709 ($(objpfx)tst-cet-legacy-5b): Likewise.
2710 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2711 (tst-cet-legacy-5b-ENV): Likewise.
2712 ($(objpfx)tst-cet-legacy-6a): Likewise.
2713 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2714 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2715 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2716 ($(objpfx)tst-cet-legacy-6b): Likewise.
2717 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2718 (tst-cet-legacy-6b-ENV): Likewise.
2719 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2720 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2721 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2722 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2723 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2724 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2725 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2726 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2727 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2728 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2729 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2730 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2731 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2732 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2733
2734 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2735
2736 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2737 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2738 (__fegetround_ISA300) New.
2739 (__fegetround_ISA2) New.
2740 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2741 (_FPU_MFFS): Move implementation...
2742 (_FPU_GETCW): Here.
2743 (_FPU_MFFSL): Move implementation....
2744 (_FPU_GET_RC_ISA300): Here. New.
2745 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2746 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2747 (fegetenv_status): New.
2748 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2749 instead of fegetenv_register().
2750 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2751
2752 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2753
2754 * benchtests/bench-math-inlines.c: Increase iterations.
2755 * benchtests/bench-memcmp.c: Likewise.
2756 * benchtests/bench-rawmemchr.c: Likewise.
2757 * benchtests/bench-strcmp.c: Likewise.
2758 * benchtests/bench-strcpy_chk.c: Likewise.
2759 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2760 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2761 (INNER_LOOP_ITERS_SMALL): Likewise.
2762 * benchtests/bench-strncat.c: Increase iterations.
2763 * benchtests/bench-strncmp.c: Increase iterations.
2764 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2765 * benchtests/bench-strrchr.c: Increase iterations.
2766 * benchtests/bench-strstr.c: Keep iterations unchanged.
2767 * benchtests/bench-strtod.c: Increase iterations.
2768
2769 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2770
2771 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2772 with INNER_LOOP_ITERS_LARGE.
2773 * benchtests/bench-memchr.c: Likewise.
2774 * benchtests/bench-rawmemchr.c: Likewise.
2775 * benchtests/bench-strcat.c: Likewise.
2776 * benchtests/bench-strchr.c: Likewise.
2777 * benchtests/bench-string.h: Likewise.
2778 * benchtests/bench-strlen.c: Likewise.
2779 * benchtests/bench-strncpy.c: Likewise.
2780 * benchtests/bench-strnlen.c: Likewise.
2781
2782 2019-06-28 Florian Weimer <fweimer@redhat.com>
2783
2784 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2785 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2786 entire allocated memory range.
2787
2788 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2789
2790 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2791 (prepare_version_base): New helper inline function.
2792 (prepare_version): New macro replacing PREPARE_VERSION.
2793 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2794
2795 2019-06-28 Florian Weimer <fweimer@redhat.com>
2796
2797 [BZ #24741]
2798 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2799 mismatch in a versioned symbol reference.
2800 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2801 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2802 tst-sonamemove-dlopen.
2803 (module-names): Add tst-sonamemove-linkmod1,
2804 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2805 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2806 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2807 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2808 (tst-sonamemove-runmod1.so): Link against
2809 tst-sonamemove-runmod2.so.
2810 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2811 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2812 tst-sonamemove-runmod2.so.
2813 (tst-sonamemove-dlopen): Link with -ldl.
2814 (tst-sonamemove-dlopen.out): Likewise.
2815 * elf/tst-sonamemove-link.c: New file.
2816 * elf/tst-sonamemove-dlopen.c: Likewise.
2817 * elf/tst-sonamemove-linkmod1.c: Likewise.
2818 * elf/tst-sonamemove-linkmod1.map: Likewise.
2819 * elf/tst-sonamemove-runmod1.c: Likewise.
2820 * elf/tst-sonamemove-runmod1.map: Likewise.
2821 * elf/tst-sonamemove-runmod2.c: Likewise.
2822 * elf/tst-sonamemove-runmod2.map: Likewise.
2823
2824 2019-06-28 Florian Weimer <fweimer@redhat.com>
2825
2826 * support/xdlfcn.h (xdlvsym): Declare function.
2827 * support/xdlfcn.c (xdlvsym): Define funciton.
2828
2829 2019-06-28 Florian Weimer <fweimer@redhat.com>
2830
2831 [BZ #24744]
2832 io: Remove the copy_file_range emulation.
2833 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2834 not define and call copy_file_range_compat.
2835 * io/Makefile (tests-static, tests-internal): Do not add
2836 tst-copy_file_range-compat.
2837 * io/copy_file_range-compat.c: Remove file.
2838 * io/copy_file_range.c (copy_file_range): Define as stub.
2839 * io/tst-copy_file_range-compat.c: Remove file.
2840 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2841 (typical_sizes): Update comment. Remove 16K sizes.
2842 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2843 Remove variables.
2844 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2845 (delayed_write_failure_beginning, delayed_write_failure_end)
2846 (cross_device_failure, enospc_failure_1, enospc_failure)
2847 (oappend_failure): Remove functions.
2848 (tests): Adjust test case list.
2849 (do_test): Remove file system search code. Check for ENOSYS from
2850 copy_file_range. Do not free xdevfile.
2851 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2852 copy_file_range. Do not document the EXDEV error, which future
2853 kernels may not report. Update the wording to reflect that
2854 further errors are possible.
2855 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2856 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2857 not undefine.
2858 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2859 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2860 Likewise.
2861 * sysdeps/unix/sysv/linux/kernel-features.h
2862 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2863 Remove definition.
2864 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2865 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2866 not undefine.
2867 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2868 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2869 Likewise.
2870
2871 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2872
2873 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2874 used as a mask for the mode argument of __vfprintf_internal.
2875 * stdio-common/printf-parse.h (printf_arg): New union member:
2876 pa_float128.
2877 * stdio-common/vfprintf-internal.c
2878 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2879 (PARSE_FLOAT_VA_ARG): Likewise.
2880 (SETUP_FLOAT128_INFO): Likewise.
2881 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2882 SETUP_FLOAT128_INFO.
2883 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2884 floating-point value to the new union member, pa_float128.
2885 (printf_positional): Zero-initialize args_value[cnt] with memset.
2886
2887 2019-06-27 Florian Weimer <fweimer@redhat.com>
2888
2889 [BZ #24740]
2890 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2891 buffer size if necessary.
2892 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2893 Likewise.
2894 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2895 New function.
2896 (large_buffer_checks): Likewise.
2897 (do_test): Call large_buffer_checks.
2898
2899 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2900
2901 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2902 * sysdeps/x86/dl-lookupcfg.h: Here.
2903 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2904
2905 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2906
2907 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2908 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2909 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2910 file.
2911 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2912 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2913 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2914 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2915 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2916
2917 * sysdeps/powerpc/powerpc32/fpu/Makefile
2918 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2919 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2920 and fctidz optimization.
2921 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2922 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2923 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2924 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2925 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2926 CFLAGS-s_lround-power5+.c): New rule.
2927 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2928 New file.
2929 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2930 Likewise.
2931 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2932 Likewise.
2933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2934 Likewise.
2935 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2936 Likewise.
2937 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2938 Remove file.
2939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2940 Likewise.
2941 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2942 Likewise.
2943 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2944 Likewise.
2945 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2946 Likewise.
2947 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2948 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2949 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2950 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2951 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2952 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2953 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2954
2955 2019-06-26 Vincent Chen <vincentc@andestech.com>
2956
2957 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2958 specific system calls, fp_udfiex_crtl and udftrap.
2959
2960 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2961
2962 * nptl/tst-eintr1.c (tf1): Add return statement.
2963 (do_test): Remove unused th variable.
2964
2965 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2966
2967 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2968 Return error if get_character fails.
2969
2970 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2971
2972 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2973
2974 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2975
2976 [BZ #24652]
2977 * localedata/locales/szl_PL (day): Use the correct Unicode
2978 sequences instead of non-ASCII characters.
2979
2980 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2981
2982 [BZ #24652]
2983 * localedata/locales/szl_PL (abday): Spelling corrections.
2984 (day): Likewise.
2985 (abmon): Likewise.
2986 (mon): Rename to...
2987 (alt_mon): This, then apply spelling corrections.
2988 (mon): New entry, month names in the genitive case.
2989
2990 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2991
2992 [BZ #23831]
2993 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2994 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2995 (thousands_sep): Likewise.
2996 (grouping): Set to 3;3.
2997
2998 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2999
3000 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3001 PREPARE_VERSION_KNOWN.
3002 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3003 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3004 define.
3005 (VDSO_HASH_LINUX_2_6_39): Likewise.
3006 (VDSO_NAME_LINUX_4_9): Likewise.
3007 (VDSO_HASH_LINUX_4_9): Likewise.
3008 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3009 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3010 (_libc_vdso_platform_setup): Likewise.
3011 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3012 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3013 Likewise.
3014 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3015 Likewise.
3016
3017 2019-06-20 Mike Crowe <mac@mcrowe.com>
3018
3019 * nptl/eintr.c: Use libsupport.
3020 * nptl/tst-eintr1.c: Likewise.
3021 * nptl/tst-eintr2.c: Likewise.
3022 * nptl/tst-eintr3.c: Likewise.
3023 * nptl/tst-eintr4.c: Likewise.
3024 * nptl/tst-eintr5.c: Likewise.
3025 * nptl/tst-mutex-errorcheck.c: Likewise.
3026 * nptl/tst-mutex5.c: Likewise.
3027
3028 * support/test-driver.h: Add verbose_printf macro.
3029
3030 * support/xtime.h: Add xclock_now() helper function.
3031
3032 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3033 Florian Weimer <fweimer@redhat.com>
3034
3035 [BZ #24228]
3036 * libio/genops.c (_IO_unbuffer_all)
3037 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3038 buffers and access _IO_FILE_complete members of legacy libio streams.
3039 * libio/tst-bz24228.c: New file.
3040 * libio/tst-bz24228.map: Likewise.
3041 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3042 [build-shared] (generated): Add tst-bz24228.mtrace and
3043 tst-bz24228.check.
3044 [run-built-tests && build-shared] (tests-special): Add
3045 $(objpfx)tst-bz24228-mem.out.
3046 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3047 ($(objpfx)tst-bz24228-mem.out): New rule.
3048
3049 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3050
3051 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3052 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3053 (__FPU_MFFSL): Likewise.
3054 (_FPU_SETCW): Likewise.
3055
3056 2019-06-19 Stan Shebs <stanshebs@google.com>
3057 Raoni Fassina Firmino <raoni@linux.ibm.com>
3058
3059 [BZ #24640]
3060 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3061 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3062 static-linking version.
3063 * sysdeps/unix/sysv/linux/powerpc/Makefile
3064 (tests-static): Add test-gettimebasefreq-static.
3065 (tests): Likewise.
3066 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3067 New file.
3068
3069 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
3070
3071 [BZ #24614]
3072 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3073 between the currency symbol and the minus sign).
3074 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3075
3076 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3077
3078 [BZ #24556]
3079 * string/test-strcasestr.c (check_result): Add NULL check.
3080 * nss/tst-field.c (check_rewrite): Likewise.
3081 * benchtests/bench-strstr.c (do_one_test): Likewise.
3082 * string/test-strstr.c (check_result): Likewise.
3083 * argp/argp-test.c (popt): Increase size of buf to 12.
3084 * benchtests/bench-malloc-simple.c (bench):
3085 Do not initialize tests array out of bounds.
3086
3087 2019-06-19 Florian Weimer <fweimer@redhat.com>
3088
3089 [BZ #24166]
3090 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3091 dls_serpath field.
3092
3093 2019-06-18 Florian Weimer <fweimer@redhat.com>
3094
3095 [BZ #24323]
3096 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3097 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3098 fail when called from dlopen.
3099 * elf/Makefile [have-fpie && build-shared] (tests): Add
3100 tst-dlopen-pie.
3101 (tst-dlopen-pie): Link with -ldl.
3102 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3103 * elf/tst-dlopen-pie.c (do_test): New file.
3104
3105 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
3106
3107 [BZ #24614]
3108 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3109 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3110 between the currency symbol and the minus sign).
3111 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3112 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3113
3114 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3115
3116 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3117 sysdep-rtld-routines): Remove rules.
3118 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3119 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3120 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3121 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3122 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3123 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3124 vDSO path for SHARED.
3125 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3126 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3127 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3128 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3129 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3130 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3131
3132 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3133 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3134 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3135 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3136 CFLAGS-s_llround-power5+.c): New rule.
3137 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3138 New file.
3139 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3140 Likewise.
3141 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3142 Likewise.
3143 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3144 Likewise.
3145 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3146 Likewise.
3147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3148 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3150 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3151 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3152 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3153 * sysdeps/powerpc/powerpc64/fpu/Makefile
3154 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3155 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3156 (libm-sysdep_routines): Remove s_llround-* objects.
3157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3158 file.
3159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3160 Likewise.
3161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3162 Likewise.
3163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3164 Likewise.
3165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3166 Likewise.
3167 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3168 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3169 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3170 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3171 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3172 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3173 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3174 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3175 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3176 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3177 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3178 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3179 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3180 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3181
3182 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3183 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3184 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3185 * sysdeps/powerpc/powerpc32/fpu/Makefile
3186 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3187 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3188 optimization.
3189 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3190 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3191 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3192 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3193 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3194 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3195 CFLAGS-s_lrint-ppc32.c): New rule.
3196 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3197 Remove file.
3198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3199 Likewise.
3200 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3201 Likewise.
3202 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3203 Likewise.
3204 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3205 Likewise.
3206 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3207 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3208 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3209 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3210 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3211 New file.
3212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3213 Likewise.
3214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3215 Likewise.
3216 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3217 Likewise.
3218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3219 Likewise.
3220
3221 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3222 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3223 s_llrint-ppc64.
3224 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3225 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3226 file.
3227 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3228 Likewise.
3229 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3230 Likewise.
3231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3232 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3233 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3234 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3236 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3237 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3238 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3239 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3240 (libm-sysdep_routines): Remove s_llrint-* objects.
3241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3242 file.
3243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3244 Likewise.
3245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3246 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3247 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3248 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3249 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3250 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3251 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3252 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3253 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3254 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3255
3256 2019-06-14 Florian Weimer <fweimer@redhat.com>
3257
3258 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3259 argument to __glibc_has_include to inhibit macro expansion.
3260
3261 2019-06-14 Florian Weimer <fweimer@redhat.com>
3262
3263 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3264 function-like macro, so that __has_include can inhibit expansion
3265 of its argument.
3266
3267 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3268
3269 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3270 New macro.
3271
3272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3273 Allow memset in libc.so.
3274
3275 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3276
3277 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3278 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3279 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3280 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3281 symbols at load time.
3282 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3283
3284 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3285
3286 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3287 (DT_AARCH64_VARIANT_PCS): Define.
3288
3289 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3290
3291 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3292 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3293 objects.
3294 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3295 Remove file.
3296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3297 Likewise.
3298 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3300 Likewise.
3301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3302 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3303 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3304 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3305 Remove s_finite* objects.
3306 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3307 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3309 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3310 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3312 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3313 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3314 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3315 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3316
3317 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3318 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3319
3320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3321 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3322 objects.
3323 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3324 Remove file.
3325 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3326 Likewise.
3327 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3329 Likewise.
3330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3331 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3332 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3333 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3334 Remove s_isinf* and s_isinf* objects.
3335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3338 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3341 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3342 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3343 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3344 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3345
3346 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3347 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3348
3349 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3350 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3351 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3353 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3354 s_isnanf-* objects.
3355 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3356 Remove file
3357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3358 Likewise.
3359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3360 Likewise.
3361 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3362 Likewise.
3363 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3364 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3365 Likewise.
3366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3367 Likewise.
3368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3369 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3370 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3371 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3372 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3373 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3374 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3375 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3376 Remove s_isnan-* and s_isnanf-* objects.
3377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3379 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3380 Likewise.
3381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3386 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3387 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3388 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3389 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3390 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3391 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3392 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3393 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3394
3395 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3396 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3397
3398 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3399 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3400 CFLAGS-bench-isfinite.c): New rule.
3401 * benchtests/isnan-input: New file.
3402 * benchtests/isinf-input: New file.
3403 * benchtests/isfinite-input: New file.
3404
3405 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3406 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3407 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3408 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3410 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3411 s_copysign-ppc32.
3412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3413 Remove file.
3414 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3415 Likewise.
3416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3417 Likewise.
3418 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3419 Likewise.
3420 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3421 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3422 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3423 Remove s_copysign-power6 s_copysign-ppc64.
3424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3425 Remove file.
3426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3427 Likewise.
3428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3430 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3431 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3432 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3433 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3434
3435 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3436 round_to_integer_float, round_mode): Add RINT handling.
3437 (reset_fenv_mode): New symbol.
3438 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3439 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3440 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3441 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3442 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3443 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3444
3445 2019-06-12 Florian Weimer <fweimer@redhat.com>
3446
3447 [BZ #24632]
3448 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3449 * libio/freopen.c (freopen): Use it.
3450
3451 2019-06-12 Florian Weimer <fweimer@redhat.com>
3452
3453 Linux: Deprecate sysctl.
3454 * include/sysctl.h (__sysctl): Remove declaration.
3455 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3456 check.
3457 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3458 (sysctl): Add deprecation attribute.
3459 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3460 directly, to avoid the deprecation warning. Do not include
3461 <string.h>.
3462 (__sysctl): Remove hidden alias.
3463
3464 2019-06-12 Florian Weimer <fweimer@redhat.com>
3465
3466 Linux: Use kernel headers for statx definitions if available.
3467 * include/bits/statx-generic.h: New file.
3468 * include/bits/types/struct_statx.h: Likewise.
3469 * include/bits/types/struct_statx_timestamp.h: Likewise.
3470 * io/Makefile (headers): Add bits/statx-generic.h.
3471 * io/bits/statx-generic.h: New file. Partly copied from
3472 io/bits/statx.h.
3473 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3474 define original_statx.
3475 * io/bits/types/struct_statx.h: Likewise.
3476 * io/bits/types/struct_statx_timestamp.h: Likewise.
3477 (statx_generic): Use original_statx.
3478 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3479 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3480
3481 2019-06-12 Florian Weimer <fweimer@redhat.com>
3482
3483 * misc/sys/cdefs.h (__glibc_has_include): Define.
3484
3485 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3486
3487 * string/memmem.c (__memmem): Rewrite to improve performance.
3488
3489 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3490
3491 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3492 warning.
3493 (two_way_long_needle): Block inlining.
3494 * string/strstr.c (strstr2): Add new function.
3495 (strstr3): Likewise.
3496 (STRSTR): Completely rewrite strstr to improve performance.
3497
3498 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3499
3500 * benchtests/bench-strstr.c (test_hard_needle): New function.
3501
3502 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3503
3504 * malloc/tst-calloc.c: Include <libc-diag.h>.
3505 (null_test): Ignore -Wunused-result around calls to calloc.
3506 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3507 (do_test): Ignore -Wunused-result around call to malloc.
3508
3509 2019-06-07 Florian Weimer <fweimer@redhat.com>
3510
3511 Linux: Add getdents64 system call.
3512 * include/dirnent.h (getdents): Add comment and change buffer
3513 argument type to void *.
3514 (getdents64): Likewise. Add hidden prototype.
3515 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3516 getdents64.
3517 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3518 Add tst-getdents64.
3519 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3520 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3521 argument type to void *.
3522 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3523 Add hidden definition and getdents64 alias.
3524 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3525 Likewise.
3526 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3527 * manual/filesys.texi (Accessing Directories): Add Low-level
3528 Directory Access node reference.
3529 (Opening a Directory): Cross-reference it.
3530 (Low-level Directory Access): New node.
3531 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3532 getdents64.
3533 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3534 Likewise.
3535 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3536 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3537 Likewise.
3538 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3539 Likewise.
3540 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3541 Likewise.
3542 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3543 Likewise.
3544 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3545 Likewise.
3546 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3547 Likewise.
3548 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3549 Likewise.
3550 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3551 (GLIBC_2.30): Likewise.
3552 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3553 (GLIBC_2.30): Likewise.
3554 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3555 (GLIBC_2.30): Likewise.
3556 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3557 (GLIBC_2.30): Likewise.
3558 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3559 Likewise.
3560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3561 (GLIBC_2.30): Likewise.
3562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3563 (GLIBC_2.30): Likewise.
3564 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3565 (GLIBC_2.30): Likewise.
3566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3567 (GLIBC_2.30): Likewise.
3568 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3569 Likewise.
3570 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3571 Likewise.
3572 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3573 Likewise.
3574 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3575 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3576 Likewise.
3577 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3578 Likewise.
3579 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3580 Likewise.
3581 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3582 Likewise.
3583
3584 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3585
3586 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3587 (__FPU_MFFS): New.
3588 (__FPU_MFFSL): New.
3589 (_FPU_GET_RC): New.
3590 (_FPU_GETCW): Use __FPU_MFFS().
3591 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3592
3593 2019-06-06 Florian Weimer <fweimer@redhat.com>
3594
3595 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3596 internal GCC preprocessor identifier __has_include__.
3597
3598 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3599
3600 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3601 with call to equivalent function.
3602
3603 2019-06-04 Florian Weimer <fweimer@redhat.com>
3604
3605 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3606 (do_release_shlib): Adjust for __twalk_r.
3607 (__gconv_release_shlib): Call __twalk_r.
3608
3609 2019-06-04 Andreas Schwab <schwab@suse.de>
3610
3611 [BZ #18830]
3612 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3613 no irreversible characters occurred.
3614 * iconv/gconv_simple.c (internal_ucs4_loop)
3615 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3616 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3617 (ucs4_internal_loop_single, internal_ucs4le_loop)
3618 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3619 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3620 (ucs4le_internal_loop_single): Add const to outend.
3621 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3622 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3623 * iconv/Makefile (tests): Add tst-iconv7.
3624 * iconv/tst-iconv7.c: New file.
3625
3626 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3627
3628 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3629
3630 2019-06-01 Florian Weimer <fweimer@redhat.com>
3631
3632 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3633 * sysdeps/unix/sysv/linux/arm/Makefile
3634 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3635 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3636 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3637 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3638 compatibility symbols.
3639
3640 2019-05-31 Florian Weimer <fweimer@redhat.com>
3641
3642 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3643 system calls for the arm architecture: breakpoint, get_tls,
3644 set_tls, usr26, usr32.
3645
3646 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3647
3648 * sysdeps/powerpc/Makefile
3649 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3650 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3651 Declare '.machine power7' to get support for ldbrx.
3652 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3653 directive based on the directory of the file.
3654 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3655 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3656 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3657 '.machine' directive.
3658 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3659 (VADDUQM_V7_V8): Remove.
3660 (__STRCASECMP): Replace macros with actual instructions.
3661 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3662 '.machine' directive.
3663 (VCLZD_V8_v7): Remove.
3664 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3665
3666 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3667
3668 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3669 Remove file.
3670 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3671
3672 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3673
3674 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3675 NEARBYINT handling.
3676 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3677 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3678 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3679 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3680 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3681 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3682
3683 2019-05-28 mansayk <6688000@gmail.com>
3684
3685 [BZ #24370]
3686 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3687
3688 2019-05-28 mansayk <6688000@gmail.com>
3689
3690 [BZ #24369]
3691 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3692 (abmon): Likewise, but remove the trailing dots.
3693
3694 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3695
3696 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3697
3698 2019-05-27 Florian Weimer <fweimer@redhat.com>
3699
3700 * nptl/nptl-init.c: Add comment.
3701
3702 2019-05-24 Florian Weimer <fweimer@redhat.com>
3703
3704 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3705 struct in_addr/struct in6_addr alignment.
3706
3707 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3708
3709 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3710 (F_SEAL_FUTURE_WRITE): New macro.
3711
3712 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3713
3714 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3715 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3716 * elf/tst-ldconfig_aux-cache.root: New directory.
3717 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3718 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3719 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3720
3721 2019-05-22 Zack Weinberg <zackw@panix.com>
3722
3723 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3724 host type.
3725 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3726 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3727
3728 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3731 Delete.
3732
3733 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3734 Issue an #error if used with a compiler in SPE-float mode.
3735 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3736 * sysdeps/powerpc/powerpc32/setjmp_common.S
3737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3743 Remove code to preserve SPE register state.
3744
3745 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3746 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3747 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3748 Remove __SPE__ ifndefs.
3749
3750 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3751
3752 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3753 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3754 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3755 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3756 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3757 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3758 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3759 (INNER_LOOP_ITERS_MEDIUM): New define.
3760 (INNER_LOOP_ITERS_SMALL): New define.
3761 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3762 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3763 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3764 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3765 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3766
3767 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3768
3769 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3770 New define.
3771 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3772 (SEMTIMEDOP_IPC_ARGS): Likewise.
3773
3774 2019-05-21 Florian Weimer <fweimer@redhat.com>
3775
3776 [BZ #24584]
3777 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3778 before updating __counter field and release it afterwards. Add
3779 overflow check.
3780 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3781 requirement for __counter member.
3782
3783 2019-05-21 Florian Weimer <fweimer@redhat.com>
3784
3785 [BZ #24583]
3786 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3787 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3788 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3789 instead of __gconv_release_step.
3790 * libio/Makefile (tests): Add tst-wfile-gconv.
3791 (tests-container): Add tst-wfile-ascii.
3792 (tst-wfile-gconv-ENV): Enable mtrace.
3793 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3794 (tests-special): Add tst-wfile-gconv-mem.out.
3795 (tst-wfile-gconv.out): Depend on locales.
3796 (tst-wfile-gconv-mem.out): Add mtrace rule.
3797 * libio/tst-wfile-ascii.c: New file.
3798 * libio/tst-wfile-gconv.c: Likewise.
3799
3800 2019-05-20 Florian Weimer <fweimer@redhat.com>
3801
3802 [BZ #24588]
3803 libio: Remove codecvt vtable.
3804 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3805 __libio_codecvt.
3806 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3807 __libio_codecvt_encoding.
3808 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3809 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3810 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3811 * libio/iofwide.c (__libio_codecvt): Remove variable.
3812 (_IO_fwide): Do not copy __libio_codecvt.
3813 (__libio_codecvt_out): Rename from do_out and export.
3814 (do_unshift): Remove function.
3815 (__libio_codecvt_in): Rename from do_in and export.
3816 (__libio_codecvt_encoding): Rename from do_encoding and export.
3817 (do_always_noconv): Remove function.
3818 (__libio_codecvt_length): Rename from do_length and export.
3819 (do_max_length): Remove function.
3820 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3821 to libioP.h.
3822 (struct _IO_codecvt): Remove fields __codecvt_destr,
3823 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3824 __codecvt_do_encoding, __codecvt_do_always_noconv,
3825 __codecvt_do_length, __codecvt_do_max_length.
3826 * libio/libioP.h (enum __codecvt_result): Define; moved from
3827 libio.h.
3828 (__libio_codecvt_out, __libio_codecvt_in)
3829 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3830 functions.
3831 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3832 (_IO_wfile_underflow): Call __libio_codecvt_in.
3833 (_IO_wfile_underflow): Likewise.
3834 (_IO_wfile_underflow_mmap): Likewise.
3835 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3836 __libio_codecvt_length.
3837 (adjust_wide_data): Call __libio_codecvt_encoding,
3838 __libio_codecvt_in.
3839 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3840 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3841 __libio_codecvt_length.
3842
3843 2019-05-20 Florian Weimer <fweimer@redhat.com>
3844
3845 * support/support.h (support_sbindir_prefix): Declare.
3846 (support_install_rootsbindir): Update comment.
3847 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3848 * support/support_paths.c (support_sbindir_prefix): Define.
3849
3850 2019-05-20 Mike Crowe <mac@mcrowe.com>
3851
3852 * support/timespec.c: Add backslash to correct newline in failure
3853 message.
3854
3855 * support/timespec.h: Correct confusing comment.
3856
3857 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3858
3859 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3860 define.
3861 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3862 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3863 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3864 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3865
3866 [BZ #24570]
3867 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3868 usage.
3869
3870 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3871
3872 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3873 (NT_ARM_PACG_KEYS): Likewise.
3874
3875 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3876
3877 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3878 (tcache_put): Remove redundant assert.
3879 (tcache_get): Remove redundant asserts.
3880 (__libc_malloc): Check tcache count is not zero.
3881 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3882
3883 2019-05-17 Florian Weimer <fweimer@redhat.com>
3884
3885 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3886
3887 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3888
3889 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3890 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3891 0x050100].
3892 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3893 Likewise.
3894 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3895 (__ASSUME_STATX): Likewise.
3896
3897 2019-05-16 Florian Weimer <fweimer@redhat.com>
3898
3899 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3900 flags argument.
3901 (LINE_PARSER): Do not map IPv4 addresses.
3902 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3903 to parse_line.
3904 (_nss_nis_gethostent_r): Always pass AF_INET to
3905 internal_nis_gethostent_r.
3906 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3907 to parse_line.
3908 (_nss_nis_gethostbyname2_r): Adjust call to
3909 internal_nis_gethostent_r.
3910 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3911 call to internal_nis_gethostent_r.
3912 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3913 from parse_line.
3914 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3915 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3916 Remove flags argument. Do not map IPv4 addresses.
3917 (internal_nisplus_gethostent_r): Adjust call to
3918 _nss_nisplus_parse_hostent.
3919 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3920 to _nss_nisplus_parse_hostent.
3921 (_nss_nisplus_gethostbyname2_r): Adjust call to
3922 internal_gethostbyname2_r.
3923 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3924 Adjust call to internal_gethostbyname2_r.
3925 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3926 _nss_nisplus_parse_hostent.
3927 (_nss_nisplus_gethostbyname4_r): Adjust call to
3928 internal_gethostbyname2_r.
3929
3930 2019-05-16 Florian Weimer <fweimer@redhat.com>
3931
3932 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3933 Remove flags.
3934 (LINE_PARSER): Remove address mapping.
3935 (EXTRA_ARGS_VALUE): Remove flags argument.
3936 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3937 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3938 gethostbyname3_multi.
3939 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3940 _nss_files_gethostbyname3_r.
3941 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3942
3943 2019-05-16 Florian Weimer <fweimer@redhat.com>
3944
3945 * support/support_test_compare_blob.c (report_blob): Report
3946 incorrect NULL blobs.
3947
3948 2019-05-15 Mark Wielaard <mark@klomp.org>
3949
3950 [BZ# 24476]
3951 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3952 __libc_once_get (once) and static_buf == NULL.
3953 (__dlerror): Check we have a valid key, set result to static_buf
3954 otherwise.
3955
3956 2019-05-15 Andreas Schwab <schwab@suse.de>
3957
3958 [BZ #20568]
3959 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3960 __codecvt_do_length.
3961 * libio/Makefile (tests): Add tst-wfile-sync.
3962 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3963 * libio/tst-wfile-sync.c: New file.
3964 * libio/tst-wfile-sync.input: New file.
3965
3966 2019-05-15 Florian Weimer <fweimer@redhat.com>
3967
3968 nss: Turn __nss_database_lookup into a compatibility symbol.
3969 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3970 __nss_database_lookup.
3971 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3972 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3973 __nss_database_lookup.
3974 (__nss_next): Move to …
3975 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3976 unconditionally.
3977 (__nss_database_lookup): New function.
3978 * nss/Versions (GLIBC_2.0): Update comment.
3979 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3980 * grp/initgroups.c (internal_getgrouplist): Call
3981 __nss_database_lookup2 instead of __nss_database_lookup.
3982 * nscd/aicache.c (addhstaiX): Likewise.
3983 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3984 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3985 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3986 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3987 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3988 Likewise.
3989 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3990 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3991 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3992
3993 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3994
3995 * support/support.h (support_install_rootsbindir): New variable.
3996 * support/support_paths.c: Likewise.
3997 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3998
3999 2019-05-15 Florian Weimer <fweimer@redhat.com>
4000
4001 * iconv/gconv.h (__gconv_transliterate): Move declaration …
4002 * iconv/gconv_int.h (__gconv_transliterate): … here.
4003 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4004 * iconv/skeleton.c: Likewise.
4005
4006 2019-05-14 Florian Weimer <fweimer@redhat.com>
4007
4008 Linux: Add the tgkill function.
4009 * bits/signal_ext.h: New file.
4010 * manual/signal.texi (Signaling Another Process): Document tgkill.
4011 * signal/Makefile (headers): Add bits/signal_ext.h.
4012 * signal/signal.h: Include <bits/signal_ext.h>.
4013 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4014 (tst-tgkill): Link with libpthread.
4015 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4016 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4017 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4018 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4019 tgkill.
4020 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4021 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4022 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4023 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4024 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4025 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4026 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4027 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4028 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4029 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4030 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4031 Likewise.
4032 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4033 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4034 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4036 Likewise.
4037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4038 Likewise.
4039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4040 Likewise.
4041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4042 Likewise.
4043 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4044 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4045 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4046 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4047 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4048 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4049 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4050 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4051
4052 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4053
4054 * manual/search.texi (Tree Search Function): Adjust twalk_r
4055 documentation.
4056
4057 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4058
4059 [BZ #24544]
4060 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4061 pre-defined value.
4062
4063 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4064 * support/support.h (support_bindir_prefix): New variable.
4065 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4066
4067 * config.make.in (bindir): New variable.
4068
4069 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4070 (lll_trylock): Call __lll_trylock.
4071 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4072 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4073 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4074 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4075 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4076 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4077 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4078 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4079 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4080 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4081 lowlevellock-futex.h.
4082
4083 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4084 initialization for LLL_LOCK_INITIALIZER different than 0.
4085 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4086 Assume LLL_LOCK_INITIALIZER being 0.
4087 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4088 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4089 Likewise.
4090 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4091 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4092
4093 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4094 Optimize futex call and add systemtap probe.
4095
4096 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4097 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4098 __libc_disable_asynccancel, __librt_enable_asynccancel,
4099 __libc_disable_asynccancel, __librt_enable_asynccancel,
4100 __librt_disable_asynccancel): Move to ...
4101 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4102 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4103 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4104 * sysdeps/generic/single-thread.h: New file.
4105 * sysdeps/unix/sysdep.h: Include single-thread.h.
4106 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4107 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4108
4109 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4110
4111 [BZ #24535]
4112 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4113 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4114 Unicode 12.1.0.
4115 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4116 * localedata/unicode-gen/PropList.txt: Likewise.
4117 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4118 * localedata/charmaps/UTF-8: Regenerate.
4119 * localedata/locales/i18n_ctype: Likewise.
4120 * localedata/locales/tr_TR: Likewise.
4121 * localedata/locales/translit_circle: Likewise.
4122 * localedata/locales/translit_cjk_compat: Likewise.
4123 * localedata/locales/translit_combining: Likewise.
4124 * localedata/locales/translit_compat: Likewise.
4125 * localedata/locales/translit_font: Likewise.
4126 * localedata/locales/translit_fraction: Likewise.
4127
4128 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4129
4130 [BZ #24531]
4131 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4132 (do_set_tcache_count): Only update if count is small enough.
4133 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4134
4135 2019-05-10 Florian Weimer <fweimer@redhat.com>
4136
4137 * nptl/sem_close.c (struct walk_closure): Define.
4138 (walker): Adjust for __twalk_r.
4139 (sem_close): Call __twalk_r.
4140
4141 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4142
4143 * support/timespec.c (test_timespec_before_impl,
4144 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4145 insted of long int.
4146
4147 2019-05-09 Mike Crowe <mac@mcrowe.com>
4148
4149 * nptl/tst-abstime.c: Use libsupport.
4150
4151 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4152 small bug where only tv.tv_usec was checked which could cause an
4153 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4154 than a second.
4155
4156 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4157 libsupport.
4158
4159 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4160 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4161
4162 * nptl/tst-cond11.c: Use libsupport.
4163
4164 * support/timespec.h: New file. Provide timespec helper functions
4165 along with macros in the style of those in check.h.
4166 * support/timespec.c: New file. Implement check functions declared
4167 in support/timespec.h.
4168 * support/timespec-add.c: New file from gnulib containing
4169 timespec_add implementation that handles overflow.
4170 * support/timespec-sub.c: New file from gnulib containing
4171 timespec_sub implementation that handles overflow.
4172 * support/README: Mention timespec.h.
4173
4174 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4175
4176 [BZ #24537]
4177 * nptl/Makefile: Move tst-eintr1 to xtests.
4178
4179 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4180
4181 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4182 TRUNC handling.
4183 (round_mode): Add definition for TRUNC.
4184 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4185 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4186 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4187 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4188 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4189 Likewise.
4190 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4191 Likewise.
4192 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4193 Likewise.
4194 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4195 Likewise.
4196 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4197 file.
4198 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4199 Likewise.
4200 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4201 Likewise.
4202 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4203 Likewise.
4204 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4205 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4206 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4207 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4208 s_truncf-power5+, and s_truncf-ppc64.
4209 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4210 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4211 file.
4212 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4214 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4215 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4216 file.
4217 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4218 Likewise.
4219 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4220 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4221 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4222 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4223 s_truncf-power5+, and s_truncf-ppc64.
4224 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4225 file.
4226 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4227 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4228 Likewise.
4229 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4230 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4231 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4232 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4233 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4234
4235 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4236 ROUND handling.
4237 (round_mode): Add definition for ROUND.
4238 (round_to_integer_float): Likewise.
4239 * sysdeps/powerpc/fpu/s_round.c: New file.
4240 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4241 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4242 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4243 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4244 Likewise.
4245 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4246 Likewise.
4247 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4248 Likewise.
4249 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4250 Likewise.
4251 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4252 file.
4253 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4254 Likewise.
4255 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4256 Likewise.
4257 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4258 Likewise.
4259 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4260 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4261 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4262 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4263 s_roundf-power5+, and s_roundf-ppc64.
4264 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4265 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4266 file.
4267 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4269 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4270 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4271 file.
4272 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4273 Likewise.
4274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4275 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4276 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4277 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4278 s_roundf-power5+, and s_roundf-ppc64.
4279 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4280 file.
4281 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4282 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4283 Likewise.
4284 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4285 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4286 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4287 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4288 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4289
4290 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4291 Add FLOOR option.
4292 (round_mode): Add definition for FLOOR.
4293 * sysdeps/powerpc/fpu/s_floor.c: New file.
4294 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4295 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4296 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4297 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4298 Remove file.
4299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4300 Likewise
4301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4302 Likewise.
4303 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4304 Likewise.
4305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4306 New file.
4307 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4308 Likewise.
4309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4310 Likewise.
4311 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4312 Likewise.
4313 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4314 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4315 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4316 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4317 s_floorf-power5+, and s_floorf-ppc64.
4318 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4319 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4320 file.
4321 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4323 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4324 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4325 file.
4326 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4327 Likewise.
4328 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4329 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4330 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4331 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4332 s_floorf-power5+, and s_floorf-ppc64.
4333 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4334 file.
4335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4336 file.
4337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4338 Likewise.
4339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4340 Likewise.
4341 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4342 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4343 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4344 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4345
4346 2019-05-08 Mike Crowe <mac@mcrowe.com>
4347
4348 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4349 clock_gettime wrapper for use in tests that fails the test rather
4350 than returning failure.
4351
4352 * support/xtime.h: New file to declare xclock_gettime.
4353
4354 * support/Makefile: Add xclock_gettime.c.
4355
4356 * support/README: Mention xtime.h.
4357
4358 2019-05-08 Florian Weimer <fweimer@redhat.com>
4359
4360 malloc/tst-mallocfork2: Use process-shared barriers.
4361 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4362 (signal_count, sigusr1_sender_pid): Remove.
4363 (iterations): Define constant.
4364 (shared): New variable.
4365 (sigusr1_received): Update comment.
4366 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4367 (signal_sender): Optional use barriers to avoid sending signals
4368 during irrelevant times.
4369 (do_it): Initialize variable shared. Use xfork for error
4370 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4371 the iteration count, independent of signal delivery. Check for
4372 deadlocks in fork. Introduce barriers for reducing signal
4373 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4374 replaced by the barriers. Count signals during fork/free/malloc
4375 and report them.
4376 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4377
4378 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4379
4380 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4381 version to 5.1.
4382 (clock_adjtime64) New syscall.
4383 (clock_getres_time64) Likewise.
4384 (clock_gettime64) Likewise.
4385 (clock_nanosleep_time64) Likewise.
4386 (clock_settime64) Likewise.
4387 (futex_time64) Likewise.
4388 (io_pgetevents_time64) Likewise.
4389 (io_uring_enter) Likewise.
4390 (io_uring_register) Likewise.
4391 (io_uring_setup) Likewise.
4392 (mq_timedreceive_time64) Likewise.
4393 (mq_timedsend_time64) Likewise.
4394 (pidfd_send_signal) Likewise.
4395 (ppoll_time64) Likewise.
4396 (pselect6_time64) Likewise.
4397 (recvmmsg_time64) Likewise.
4398 (rt_sigtimedwait_time64) Likewise.
4399 (sched_rr_get_interval_time64) Likewise.
4400 (semtimedop_time64) Likewise.
4401 (timer_gettime64) Likewise.
4402 (timer_settime64) Likewise.
4403 (timerfd_gettime64) Likewise.
4404 (timerfd_settime64) Likewise.
4405 (utimensat_time64) Likewise.
4406
4407 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4408 version to 9 branch.
4409
4410 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4411
4412 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4413 __memmove_thunderx2 to the list of implementations
4414 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4415 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4416 (__memmove_thunderx2): Rewritten using SIMD ld/st
4417 (__memcpy_thunderx2): Fixed handling overlapping cases.
4418 Used ldp/stp instead of ldr/str if possible. Made loops
4419 tails branchless.
4420
4421 2019-05-03 Florian Weimer <fweimer@redhat.com>
4422
4423 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4424
4425 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4426
4427 [BZ #24506]
4428 * elf/tst-pldd.c (in_str_list): New function.
4429 (do_test): Add default names for ld and libc as one option.
4430
4431 2019-05-02 Florian Weimer <fweimer@redhat.com>
4432
4433 misc: Add twalk_r function.
4434 * include/search.h (__twalk_r): Declare.
4435 * manual/examples/twalk.c: New file.
4436 * manual/search.texi (Tree Search Function): Document twalk_r.
4437 * misc/Versions (2.30): Export twalk_r.
4438 (GLIBC_PRIVATE): Export __twalk_r.
4439 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4440 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4441 (twalk_r): Add weak alias.
4442 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4443 (walk_trace): New variable.
4444 (struct twalk_with_twalk_r_closure): Define.
4445 (twalk_with_twalk_r_action): New function.
4446 (twalk_with_twalk_r): Likewise.
4447 (walk_action): Call walk_trace_add.
4448 (walk_tree_with): Rename from walk_tree. Add walk argument.
4449 (walk_tree): New function.
4450 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4451 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4452 Likewise.
4453 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4454 Likewise.
4455 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4456 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4457 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4458 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4459 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4460 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4461 Likewise.
4462 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4463 Likewise.
4464 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4465 Likewise.
4466 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4467 (GLIBC_2.30): Likewise.
4468 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4469 (GLIBC_2.30): Likewise.
4470 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4471 (GLIBC_2.30): Likewise.
4472 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4473 (GLIBC_2.30): Likewise.
4474 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4475 Likewise.
4476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4477 (GLIBC_2.30): Likewise.
4478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4479 (GLIBC_2.30): Likewise.
4480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4481 (GLIBC_2.30): Likewise.
4482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4483 (GLIBC_2.30): Likewise.
4484 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4485 Likewise.
4486 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4487 Likewise.
4488 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4489 Likewise.
4490 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4491 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4492 Likewise.
4493 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4494 Likewise.
4495 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4496 Likewise.
4497 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4498 Likewise.
4499
4500 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4501
4502 Make mktime etc. compatible with __time64_t
4503 Keep these functions compatible with Gnulib while adding
4504 __time64_t support. The basic idea is to move private API
4505 declarations from include/time.h to time/mktime-internal.h, since
4506 the former file cannot easily be shared with Gnulib whereas the
4507 latter can.
4508 Also, do some other minor cleanup while in the neighborhood.
4509 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4510 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4511 since Gnulib needs it.
4512 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4513 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4514 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4515 (in_time_t_range): New static function.
4516 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4517 so that glibc users are not tempted to use __time64_t.
4518 * time/mktime-internal.h: Rewrite so that it does both glibc
4519 and Gnulib work. Include time.h if not _LIBC.
4520 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4521 (__time64_t): New type or macro, moved here from
4522 posix/bits/types.h.
4523 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4524 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4525 from include/time.h.
4526 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4527 New macros, taken from GNulib.
4528 (__mktime_internal): New prototype, moved here from include/time.h.
4529 * time/mktime.c (mktime_min, mktime_max, convert_time)
4530 (ranged_convert, __mktime_internal, __mktime64):
4531 * time/timegm.c (__timegm64):
4532 Use __time64_t, not time_t.
4533 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4534 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4535 Rename from mktime.
4536 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4537 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4538 for libc_hidden_def.
4539 Include errno.h.
4540 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4541 Rename from timegm.
4542 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4543
4544 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4545
4546 [BZ #19444]
4547 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4548 from `-Wmaybe-uninitialized'.
4549 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4550
4551 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4552
4553 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4554 function.
4555 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4556 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4557 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4558 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4559 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4560 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4561 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4563 Remove file.
4564 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4565 Likewise.
4566 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4567 Likewise.
4568 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4569 Likewise.
4570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4571 New file.
4572 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4573 Likewise.
4574 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4575 Likewise.
4576 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4577 Likewise.
4578 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4579 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4580 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4581 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4582 Likewise.
4583 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4584 Likewise.
4585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4586 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4587 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4588 file.
4589 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4590 Likewise.
4591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4592 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4593 * here.
4594 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4595 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4596 s_ceilf-power5+, and s_ceilf-ppc64.
4597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4598 file.
4599 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4601 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4602 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4603 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4604 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4605 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4606
4607 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4608 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4609 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4610
4611 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4612
4613 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4614 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4615 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4616 (sem_getvalue): Likewise.
4617
4618 2019-04-26 Florian Weimer <fweimer@redhat.com>
4619
4620 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4621 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4622
4623 2019-04-26 Florian Weimer <fweimer@redhat.com>
4624
4625 Makeconfig: Move -Wl,-rpath-link options before library references.
4626 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4627 (link-libc): Remove $(link-libc-rpath-link).
4628
4629 2019-04-25 Florian Weimer <fweimer@redhat.com>
4630
4631 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4632 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4633 (+link-static-before-libc): Remove $(CC).
4634 (+link-static, +link-static-tests): Add $(CC).
4635 (+link-before-libc): Remove $(CC).
4636 (+link, +link-pie, +link-pie-printers): Add $(CC).
4637
4638 2019-04-26 Florian Weimer <fweimer@redhat.com>
4639
4640 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4641 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4642 (+link-static-before-libc): Remove $(CC).
4643 (+link-static, +link-static-tests): Add $(CC).
4644 (+link-before-libc): Remove $(CC).
4645 (+link, +link-pie, +link-pie-printers): Add $(CC).
4646
4647 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4648
4649 [BZ#24484]
4650 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4651
4652 2019-04-25 Florian Weimer <fweimer@redhat.com>
4653
4654 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4655 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4656 (bench-link-targets): New variable.
4657 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4658
4659 2019-04-25 Florian Weimer <fweimer@redhat.com>
4660
4661 Also enable BIND_NOW for programs if --enable-bind-now.
4662 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4663 (+link-pie): Use $(link-extra-flags).
4664 (+link-static): Likewise.
4665 [! $(build-pie-default)] (+link): Likewise.
4666 * manual/install.texi (Configuring and compiling): Update
4667 --enable-bind-now description.
4668 * INSTALL: Regenerated.
4669
4670 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4671
4672 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4673 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4674
4675 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4676
4677 [BZ #18465]
4678 * malloc/Makefile (others): Add memusagestat.
4679 ($(objpfx)memusagestat): Delete rule.
4680 (LDLIBS-memusagestat): New variable.
4681
4682 2019-04-24 Florian Weimer <fweimer@redhat.com>
4683
4684 * locale/Makefile (tests-special): Guard setting by
4685 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4686 to run while cross-compiling.
4687
4688 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4689
4690 [BZ #18035]
4691 * elf/Makefile (tests-container): Add tst-pldd.
4692 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4693 (E(find_maps)): Avoid use alloca, use default read file operations
4694 instead of explicit LFS names, and fix infinite loop.
4695 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4696 (get_process_info): Use _Static_assert instead of assert, use default
4697 directory operations instead of explicit LFS names, and free some
4698 leadek pointers.
4699 * elf/tst-pldd.c: New file.
4700
4701 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4702
4703 * malloc/arena.c (do_set_mallopt_check): Removed.
4704
4705 2019-04-23 Florian Weimer <fweimer@redhat.com>
4706
4707 locale: Add LOCPATH diagnostics to the locale program.
4708 * locale/programs/locale.c (setlocale_failed): New variable.
4709 (try_setlocale): New function.
4710 (quote_string): Likewise.
4711 (setlocale_diagnostics): Likewise.
4712 (main): Call try_setlocale instead of setlocale. Call
4713 setlocale_diagnostics.
4714 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4715 (tst-locale-locpath.out): New target.
4716 * locale/tst-locale-locpath.sh: New file.
4717
4718 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4719
4720 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4721 to 2.30 notes.
4722
4723 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4724
4725 [BZ #23741]
4726 * malloc/hooks.c (malloc_check, realloc_check): Use
4727 __builtin_add_overflow on overflow check and adapt to
4728 checked_request2size change.
4729 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4730 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4731 allocation size to PTRDIFF_MAX.
4732 (REQUEST_OUT_OF_RANGE): Remove macro.
4733 (checked_request2size): Change to inline function and limit maximum
4734 requested size to PTRDIFF_MAX.
4735 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4736 maximum allocation size to PTRDIFF_MAX.
4737 (_mid_memalign): Use _int_memalign call for overflow check.
4738 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4739 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4740 limit maximum requested size to PTRDIFF_MAX.
4741 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4742 valloc, pvalloc): Add __attribute_alloc_size__.
4743 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4744 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4745 larger than PTRDIFF_MAX.
4746 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4747 around tests of malloc with negative sizes.
4748 * malloc/tst-posix_memalign.c (do_test): Likewise.
4749 * malloc/tst-pvalloc.c (do_test): Likewise.
4750 * malloc/tst-valloc.c (do_test): Likewise.
4751 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4752 with resulting size allocation larger than PTRDIFF_MAX with
4753 reallocarray_nowarn.
4754 (reallocarray_nowarn): New function.
4755 * NEWS: Mention the malloc function semantic change.
4756
4757 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4758
4759 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4760 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4761
4762 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4763 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4764 * sysdeps/powerpc/fpu/s_fma.c: New file.
4765 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4766
4767 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4768 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4769
4770 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4771 the magic flag store.
4772 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4773 Likewise.
4774 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4775 Likewise.
4776 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4777 Remove rt_sigreturn call.
4778
4779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4780 Remove rt_sigreturn call.
4781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4782 Likewise.
4783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4785
4786 * support/Makefile (libsupport-routines): Add support_subprocess,
4787 xposix_spawn, xposix_spawn_file_actions_addclose, and
4788 xposix_spawn_file_actions_adddup2.
4789 (tst-support_capture_subprocess-ARGS): New rule.
4790 * support/capture_subprocess.h (support_capture_subprogram): New
4791 prototype.
4792 * support/support_capture_subprocess.c (support_capture_subprocess):
4793 Refactor to use support_subprocess and support_capture_poll.
4794 (support_capture_subprogram): New function.
4795 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4796 str_to_write_mode, test_common, parse_int, handle_restart,
4797 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4798 (do_test): Add support_capture_subprogram tests.
4799 * support/subprocess.h: New file.
4800 * support/support_subprocess.c: Likewise.
4801 * support/xposix_spawn.c: Likewise.
4802 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4803 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4804 * support/xspawn.h: Likewise.
4805
4806 2019-04-17 Mike Gerow <gerow@google.com>
4807
4808 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4809 groups limit.
4810
4811 2019-04-11 Florian Weimer <fweimer@redhat.com>
4812
4813 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4814 domain with empty string.
4815 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4816
4817 2019-04-11 Florian Weimer <fweimer@redhat.com>
4818
4819 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4820 comment.
4821 (alloc_buffer_next): Change return type to non-const. Update
4822 comment.
4823
4824 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4825
4826 * manual/time.texi (Formatting Calendar Time): Add missing percent
4827 sign to conversion specifier.
4828
4829 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4830 Kwok Cheung Yeung <kcy@codesourcery.com>
4831
4832 [BZ #16573]
4833 * malloc/mtrace.c: Define prototypes for all hooks.
4834 (set_default_hooks): New function.
4835 (set_trace_hooks): Likewise.
4836 (save_default_hooks): Likewise.
4837 (tr_freehook): Use new s*_hooks functions.
4838 (tr_mallochook): Likewise.
4839 (tr_reallochook): Likewise.
4840 (tr_memalignhook): Likewise.
4841 (mtrace): Likewise.
4842 (muntrace): Likewise.
4843
4844 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4845
4846 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4847 (generic_stpcpy): New function.
4848 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4849 (generic_stpncpy): New function.
4850 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4851 (generic_strcat): New function.
4852 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4853 (generic_strcpy): New function.
4854 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4855 (STUPID_STRNCAT): Remove function.
4856 (generic_strncat): New function.
4857 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4858 (STUPID_STRNCPY): Remove function.
4859 (generic_strncpy): New function.
4860 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4861 (generic_strnlen): New function.
4862 (memchr_strnlen): New function.
4863 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4864 (memchr_strlen): Likewise.
4865
4866 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4867
4868 * benchtests/bench-strstr.c (input): Add realistic input text.
4869 (stupid_strstr): Remove function.
4870 (basic_strstr): Add function.
4871 (twoway_strstr): Add function.
4872 (do_one_test): Add result checking.
4873 (do_test): Use new input text. Remove accidental early matches.
4874 (test_main): Improve range of tests, reduce unaligned cases.
4875
4876 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4877
4878 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4879 (basic_memmem): Add function.
4880 (twoway_memmem): Add function.
4881
4882 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4883
4884 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4885 * benchtests/bench-malloc-thread.c: Likewise.
4886 * benchtests/bench-skeleton.c: Likewise.
4887 * benchtests/bench-strtod.c: Likewise.
4888 * benchtests/bench-timing.h: Likewise.
4889
4890 2019-04-08 Florian Weimer <fweimer@redhat.com>
4891
4892 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4893 definitions.
4894 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4895 RES_INSECURE2 security checks.
4896 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4897 RES_INSECURE2 handling.
4898
4899 2019-04-08 Florian Weimer <fweimer@redhat.com>
4900
4901 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4902 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4903 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4904 GETHOSTBYNAME.
4905 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4906 (tests-internal): Update justification for tst-resolv-res_init,
4907 tst-resolv-res_init-thread.
4908 (tst-res_use_inet6): Remove target.
4909 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4910 * resolv/res_debug.c (p_option): Remove "inet6" support.
4911 * resolv/res_init.c (res_setoptions): Likewise.
4912 * resolv/res_use_inet6.h: Remove file.
4913 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4914 definition.
4915 (res_use_inet6): Always return false.
4916 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4917 * resolv/resolv_context.h: Adjust file comment.
4918 (struct resolv_context): Update comment on __next field.
4919 (__resolv_context_put): Update comment.
4920 * resolv/tst-res_use_inet6.c: Remove file.
4921 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4922 "inet6" support.
4923 (test_cases): Adjust test case.
4924 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4925 (thread_byname2_af_inet6): Use old byname_inet6 code.
4926 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4927 (gai): Remove do_inet6 argument.
4928 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4929 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4930 (thread_gai_unspec_inet6): Remove functions.
4931 (do_test): Adjust thread_funcs.
4932 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4933 RES_USE_INET6 flag.
4934 (gaih_inet): Do not disable RES_USE_INET6 flag.
4935
4936 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4937
4938 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4939 and remove redundant code.
4940
4941 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4942
4943 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4944 New rule.
4945 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4946 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4947 Likewise.
4948 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4949 Likewise.
4950 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4951 Likewise.
4952 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4953 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4954 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4955 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4956 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4957 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4958 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4959 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4960 wcsrchr-power7.
4961 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4962 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4963 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4964 Remove wcsrchr optimizations.
4965 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4966
4967 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4968 the loop unroll.
4969
4970 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4971 New rule.
4972 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4973 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4974 Likewise.
4975 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4976 Likewise.
4977 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4978 Likewise.
4979 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4980 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4981 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4982 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4983 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4984 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4985 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4986 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4987 wcschr-power7.
4988 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4989 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4990 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4991 Remove wcschr optimizations.
4992 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4993
4994 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4995 the loop unroll.
4996
4997 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4998 New rule.
4999 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5000 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5001 Likewise.
5002 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5003 Likewise.
5004 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5005 Likewise.
5006 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5007 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5008 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5009 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5010 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5011 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5012 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5013 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5014 wcscpy-power7.
5015 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5016 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5017 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5018 Remove wcscpy optimizations.
5019 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5020
5021 * include/loop_unroll.h: New file.
5022 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5023 besides generic implementation.
5024
5025 2019-04-03 DJ Delorie <dj@redhat.com>
5026
5027 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5028 snprintf truncating output.
5029
5030 2019-04-02 DJ Delorie <dj@redhat.com>
5031
5032 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5033 warning.
5034
5035 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5036
5037 [BZ #22964]
5038 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5039 era.
5040 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5041 (mkreftable): Add rules for the new Japanese era and the new dates.
5042
5043 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5044 Rafał Lużyński <digitalfreak@lingonborough.com>
5045
5046 * time/tst-strftime2.c (date_t): Explicitly define the type.
5047 (dates): Use natural month and year numbers to express a date.
5048 (is_before): New function to compare dates.
5049 (mkreftable): Minor improvements to simplify maintenance.
5050 (do_test): Reflect the changes in dates array.
5051
5052 [BZ #24293]
5053 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5054 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5055 * time/tst-strftime2.c (locales): Likewise.
5056 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5057 2010-04-01, and 2011-04-01.
5058 (mkreftable): Add rules for the new locales and the new dates.
5059
5060 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5061
5062 * localedata/locales/ja_JP: Add comments to era entries.
5063
5064 2019-04-01 DJ Delorie <dj@redhat.com>
5065
5066 [BZ #24394]
5067 * time/strptime_l.c (%Ey): Fix fencepost error.
5068 * time/tst-strftime3.c: New.
5069 * time/Makefile (tests): Add tst-strftime3.
5070
5071 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
5072
5073 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5074 conditional branch to DIVBYZERO. Fix unwind info.
5075 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5076 excb after conditional branch to $powerof2. Add missing unop
5077 instructions and .align directives and reorder instructions to
5078 match __divqu.
5079
5080 2019-04-01 Richard Henderson <rth@twiddle.net>
5081
5082 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5083 Do not redefine.
5084 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5085 Do not redefine.
5086
5087 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5088
5089 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5090 $libc_cv_riscv_float_abi in `test' invocation.
5091 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5092
5093 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5094
5095 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5096 asm with builtin.
5097 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5098 Likewise.
5099 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5100 (_GET_SI_FPSCR): Likewise.
5101 (_SET_SI_FPSCR): Likewise.
5102
5103 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5104
5105 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5106 clang 2.8.
5107 (signbit): Use builtin for clang 3.3.
5108 (isinf): Use builtin for clang 3.7.
5109
5110 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5111
5112 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5113
5114 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5115
5116 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5117 quote in printf.
5118
5119 2019-03-25 Mike Crowe <mac@mcrowe.com>
5120
5121 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5122 pthread_rwlock_timedrdlock with calls to
5123 pthread_rwlock_timedwrlock to ensure that the latter is tested
5124 too. Use new function name in diagnostic messages too.
5125
5126 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5127 (do_test) Use libsupport test macros rather than hand-coded
5128 conditionals and error messages. Ensure that sem_init returns zero
5129 rather than not -1. Use <support/test-driver.c> rather than
5130 test-skeleton.c.
5131
5132 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5133 test macros rather than hand-coded conditionals and error messages.
5134 Use <support/test-driver.c> rather than test-skeleton.c.
5135
5136 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5137
5138 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5139
5140 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5141 (NT_MIPS_MSA): Likewise.
5142
5143 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5144
5145 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5146 * benchtests/README: Update description.
5147 * benchtests/bench-timing.h: Default to hp-timing.
5148 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5149 HP_TIMING_PRINT): Remove.
5150 (HP_TIMING_NOW): Add generic implementation.
5151 (hp_timing_t): Change to uint64_t.
5152
5153 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5154 HP_TIMING_INLINE.
5155 * nptl/descr.h: Likewise.
5156 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5157 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5158 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5159 Abstract hp-timing usage with RTLD_* macros.
5160 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5161 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5162 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5163 HP_TIMING_NONAVAIL): Likewise.
5164 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5165 Likewise.
5166 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5167 HP_SMALL_TIMING_AVAIL): Likewise.
5168 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5169 HP_SMALL_TIMING_AVAIL): Likewise.
5170 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5171 HP_SMALL_TIMING_AVAIL): Likewise.
5172 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5173 HP_SMALL_TIMING_AVAIL): Likewise.
5174 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5175 Likewise.
5176 * sysdeps/generic/hp-timing-common.h: Update comment with
5177 HP_TIMING_AVAIL removal.
5178
5179 * include/random-bits.h: New file.
5180 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5181 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5182 random_bits.
5183 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5184 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5185 Likewise.
5186
5187 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5188 * rt/Makefile (clock-routines): Remove get_clockfreq.
5189 * rt/get_clockfreq.c: Remove file.
5190 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5191 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5192 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5193 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5194 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5195
5196 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5197 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5198 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5199 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5200 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5201
5202 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5203 pthread_clock_settime.
5204 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5205 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5206 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5207 * elf/rtld.c (_dl_start_final): Likewise.
5208 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5209 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5210 Remove.
5211 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5212 (_dl_cpuclock_offset): Remove.
5213 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5214 cpuclock_offset_ununsed.
5215 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5216 cpuclock_offset set.
5217 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5218 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5219 * nptl/pthread_clock_gettime.c: Remove file.
5220 * nptl/pthread_clock_settime.c: Likewise.
5221 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5222 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5223 and CLOCK_PROCESS_CPUTIME_ID support.
5224 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5225 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5226 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5227 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5228 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5229 Likewise.
5230 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5231
5232 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5233
5234 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5235 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5236 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5237 New defines.
5238 * sysdeps/s390/memmem-arch13.S: New file.
5239 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5240 if it is only used as fallback.
5241 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5242 * sysdeps/s390/multiarch/ifunc-impl-list.c
5243 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5244
5245 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5246
5247 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5248 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5249 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5250 New defines.
5251 * sysdeps/s390/multiarch/ifunc-impl-list.c
5252 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5253 * sysdeps/s390/strstr-arch13.S: New file.
5254 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5255 if it is only used as fallback.
5256 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5257
5258 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5259
5260 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5261 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5262 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5263 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5264 ifunc selector.
5265 * sysdeps/s390/multiarch/ifunc-impl-list.c
5266 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5267 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5268 S390_IS_ARCH13_MIE3): New defines.
5269
5270 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5271
5272 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5273 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5274 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5275 * sysdeps/s390/configure: Regenerated.
5276
5277 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5278
5279 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5280 Add vxe2, vxp, dflt, sort flags.
5281 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5282 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5283 capabilities.
5284 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5285 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5286 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5287 HWCAP_S390_DFLT): Define.
5288
5289 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5290
5291 [BZ #24372]
5292 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5293 of compiler warning.
5294 * locale/programs/ld-collate.c (collate_output): Likewise.
5295
5296 2019-03-21 DJ Delorie <dj@redhat.com>
5297
5298 [BZ #24372]
5299 * iconv/iconvconfig.c (write_output): Replace floating point math
5300 with integer math to avoid imprecise results.
5301 * locale/programs/ld-collate.c (collate_output): Likewise.
5302
5303 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5304
5305 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5306 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5307
5308 2019-03-20 mansayk <6688000@gmail.com>
5309
5310 [BZ #24296]
5311 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5312 (abday): Likewise, but remove the trailing dots.
5313
5314 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5315
5316 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5317 macro.
5318 (HWCAP_PACA): Likewise.
5319 (HWCAP_PACG): Likewise.
5320 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5321 Increase to 32.
5322 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5323
5324 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5325
5326 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5327 should be handled.
5328
5329 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5330
5331 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5332 version to 5.0.
5333 (old_getpagesize): New syscall.
5334
5335 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5336
5337 [BZ #24293]
5338 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5339 * localedata/locales/cmn_TW (era): Likewise.
5340 * localedata/locales/hak_TW (era): Likewise.
5341 * localedata/locales/lzh_TW (era): Likewise.
5342 * localedata/locales/nan_TW (era): Likewise.
5343
5344 2019-03-14 Adam Maris <amaris@redhat.com>
5345
5346 * malloc/malloc.c (_int_malloc): Check for large bin list
5347 corruption when inserting unsorted chunk.
5348
5349 2019-03-14 Florian Weimer <fweimer@redhat.com>
5350
5351 Remove obsolete, never-implemented XSI STREAMS declarations.
5352 * manual/terminal.texi (Allocation): Remove portability note and
5353 adjust example.
5354 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5355 _SC_STREAMS.
5356 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5357 * sysdeps/unix/inet/Subdirs (streams): Remove.
5358 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5359 (conformtest-headers-UNIX98): Likewise.
5360 (conformtest-headers-XOPEN2K): Likewise.
5361 (conformtest-headers-POSIX2008): Likewise.
5362 * posix/compat-streams.c: New file.
5363 * posix/Makefile (routines): Add it.
5364 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5365 getpmsg, isastream, putmsg, putpmsg.
5366 (GLIBC_2.30): New section.
5367 * bits/stropts.h: Remove file.
5368 * bits/xtitypes.h: Likewise.
5369 * conform/data/stropts.h-data: Likewise.
5370 * include/stropts.h: Likewise.
5371 * include/sys/stropts.h: Likewise.
5372 * include/xtitypes.h: Likewise.
5373 * streams/Makefile: Likewise.
5374 * streams/fattach.c: Likewise.
5375 * streams/fdetach.c: Likewise.
5376 * streams/getmsg.c: Likewise.
5377 * streams/getpmsg.c: Likewise.
5378 * streams/isastream.c: Likewise.
5379 * streams/putmsg.c: Likewise.
5380 * streams/putpmsg.c: Likewise.
5381 * streams/stropts.h: Likewise.
5382 * streams/sys/stropts.h: Likewise.
5383 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5384 * sysdeps/s390/bits/xtitypes.h: Likewise.
5385 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5386 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5387 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5388 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5389 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5390 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5391 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5392 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5393 * sysdeps/x86/bits/xtitypes.h: Likewise.
5394
5395 2019-03-14 Florian Weimer <fweimer@redhat.com>
5396
5397 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5398 libnss_files.
5399 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5400 but not with libnss_files.
5401 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5402
5403 2019-03-14 Zack Weinberg <zackw@panix.com>
5404
5405 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5406 Specify encoding="utf-8" when opening headers to check.
5407
5408 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5409
5410 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5411 version to 5.0.
5412 (Context.checkout_tar): Handle variable major version for Linux
5413 kernel.
5414
5415 2019-03-13 Florian Weimer <fweimer@redhat.com>
5416
5417 [BZ #24047]
5418 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5419
5420 2019-03-13 Zack Weinberg <zackw@panix.com>
5421
5422 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5423 Move to stdlib.
5424 * include/inttypes.h: Adjust to match.
5425 * include/stdint.h: New wrapper.
5426
5427 2019-03-13 Zack Weinberg <zackw@panix.com>
5428
5429 * scripts/check-obsolete-constructs.py: New test script.
5430 * scripts/check-installed-headers.sh: Remove tests for
5431 obsolete typedefs, superseded by check-obsolete-constructs.py.
5432 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5433 as a special test. Update commentary.
5434 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5435 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5436 Update commentary.
5437 * posix/sys/types.h (__u_intN_t): Remove.
5438 (u_int8_t): Typedef using __uint8_t.
5439 (u_int16_t): Typedef using __uint16_t.
5440 (u_int32_t): Typedef using __uint32_t.
5441 (u_int64_t): Typedef using __uint64_t.
5442
5443 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5444
5445 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5446 call _dl_procinfo.
5447 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5448 Ignore types other than AT_HWCAP.
5449 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5450 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5451 Likewise.
5452 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5453 in the case of falling back to generic output mechanism.
5454 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5455 Likewise.
5456
5457 2019-03-12 Florian Weimer <fweimer@redhat.com>
5458
5459 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5460
5461 2019-03-12 Florian Weimer <fweimer@redhat.com>
5462
5463 [BZ #24047]
5464 resolv: Enable full ICMP errors for UDP DNS sockets
5465 * resolv/res_enable_icmp.c: New file.
5466 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5467 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5468 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5469 socket.
5470
5471 2019-03-11 Mao Han <han_mao@c-sky.com>
5472
5473 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5474 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5475
5476 2019-03-11 Mao Han <han_mao@c-sky.com>
5477
5478 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5479 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5480 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5481
5482 2019-03-11 Mao Han <han_mao@c-sky.com>
5483
5484 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5485 directly.
5486 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5487 definition.
5488
5489 2019-03-11 Mao Han <han_mao@c-sky.com>
5490
5491 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5492 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5493 in mcontext_t
5494
5495 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5496
5497 [BZ #24307]
5498 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5499 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5500 Unicode 12.0.0.
5501 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5502 * localedata/unicode-gen/PropList.txt: Likewise.
5503 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5504 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5505 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5506 * localedata/charmaps/UTF-8: Regenerate.
5507 * localedata/locales/i18n_ctype: Likewise.
5508 * localedata/locales/tr_TR: Likewise.
5509 * localedata/locales/translit_circle: Likewise.
5510 * localedata/locales/translit_cjk_compat: Likewise.
5511 * localedata/locales/translit_combining: Likewise.
5512 * localedata/locales/translit_compat: Likewise.
5513 * localedata/locales/translit_font: Likewise.
5514 * localedata/locales/translit_fraction: Likewise.
5515
5516 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5517
5518 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5519 than after operators.
5520 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5521 (setitimer_locked): Likewise.
5522 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5523 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5524 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5525 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5526 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5527 (PPC_CPU_SUPPORTED): Likewise.
5528 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5529 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5530 (stat_overflow): Likewise.
5531 (statfs_overflow): Likewise.
5532 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5533 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5534 (eq_ttyname_r): Likewise.
5535 (run_chroot_tests): Likewise.
5536
5537 2019-03-07 Florian Weimer <fweimer@redhat.com>
5538
5539 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5540 header check.
5541
5542 2019-03-07 Martin Liska <mliska@suse.cz>
5543
5544 * math/Makefile: Change location where math-vector-fortran.h is
5545 installed.
5546 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5547 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5548 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5549 * scripts/check-installed-headers.sh: Skip Fortran header files.
5550 * scripts/check-wrapper-headers.py: Likewise.
5551
5552 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5553
5554 * nptl/nptl-init.c (__have_futex_clock_realtime,
5555 __have_futex_clock_realtime): Remove definition.
5556 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5557 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5558 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5559 __ASSUME_FUTEX_CLOCK_REALTIME support.
5560 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5561 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5562 * sysdeps/unix/sysv/linux/kernel-features.h
5563 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5564 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5565 Adjust comment.
5566
5567 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5568
5569 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5570 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5571 __GI___wcscpy and wcscpy.
5572
5573 2019-03-04 Florian Weimer <fweimer@redhat.com>
5574
5575 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5576 declaration.
5577 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5578 defined.
5579
5580 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5581
5582 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5583 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5584
5585 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5586
5587 [BZ #24162]
5588 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5589 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5590
5591 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5592
5593 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5594 tests.
5595 (do_test): Likewise.
5596 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5597 (do_test_call_varg): Likewise.
5598 (do_test_call_rarg): Likewise.
5599 * sysdeps/ieee754/ldbl-opt/Makefile
5600 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5601 tst-nldbl-error.
5602 ($(objpfx)tst-nldbl-warn.c): New rule.
5603 ($(objpfx)tst-nldbl-error.c): Likewise.
5604 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5605 New variables.
5606
5607 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5608
5609 [BZ #23984]
5610 * include/bits/error-ldbl.h: New file.
5611 * include/error.h: Include stdarg.h. Declare internal functions
5612 __error_internal and __error_at_line_internal.
5613 * misc/Makefile (headers): Add bits/error-ldbl.h.
5614 * misc/bits/error-ldbl.h: New file.
5615 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5616 avoid the inclusion of bits/error.h.
5617 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5618 and __nldbl_error_at_line.
5619 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5620 (__nldbl_error, __ndlbl_error_at_line): New functions.
5621 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5622 Redirect error and error_at_line.
5623 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5625 Likewise.
5626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5627 Likewise.
5628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5629 Likewise.
5630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5631 Likewise.
5632 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5633 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5634 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5635
5636 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5637
5638 [BZ #23984]
5639 * include/bits/err-ldbl.h: New file.
5640 * include/err.h: Add prototypes for the internal functions:
5641 __vwarnx_internal and __vwarn_internal.
5642 * misc/Makefile (headers): Add bits/err-ldbl.h.
5643 * misc/bits/err-ldbl.h: New file.
5644 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5645 defined, i.e.: when -mlong-double-64 is in use.
5646 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5647 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5648 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5649 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5650 (VA_CALL): New macro.
5651 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5652 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5653 functions.
5654 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5655 declare prototypes for the new functions.
5656 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5657 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5658 Likewise.
5659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5660 Likewise.
5661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5662 Likewise.
5663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5664 Likewise.
5665 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5666 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5667 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5668
5669 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5670
5671 * sysdeps/ieee754/ldbl-opt/Makefile
5672 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5673 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5674 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5675
5676 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5677
5678 [BZ #23983]
5679 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5680 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5681 * argp/bits/argp-ldbl.h: New file.
5682 * include/argp.h: Include stdarg.h. Add prototypes for internal
5683 functions: __argp_error_internal and __argp_failure_internal.
5684 * include/bits/argp-ldbl.h: New file.
5685 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5686 __nldbl_argp_error and __nldbl_argp_failure.
5687 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5688 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5689 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5690 Redirect argp_error and argp_failure calls.
5691 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5693 Likewise.
5694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5695 Likewise.
5696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5697 Likewise.
5698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5699 Likewise.
5700 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5701 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5702 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5703
5704 2019-03-01 Florian Weimer <fweimer@redhat.com>
5705
5706 [BZ #20419]
5707 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5708 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5709 code, to avoid creating an ABI tag note.
5710 (modules-names-nobuild): Add tst-big-note-lib.
5711
5712 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5713
5714 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5715 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5716
5717 2019-03-01 Florian Weimer <fweimer@redhat.com>
5718
5719 [BZ #20271]
5720 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5721 (__netlink_assert_response): Add additional missing newlines.
5722
5723 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5724
5725 * sysdeps/powerpc/powerpc32/dl-machine.c
5726 (__elf_machine_fixup_plt): Use space before '('.
5727 (__process_machine_rela): Likewise.
5728 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5729 Likewise.
5730 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5731 Likewise.
5732 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5733 Likewise.
5734 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5735 (pattern): Likewise.
5736 (delta): Likewise.
5737 (check_result): Likewise.
5738 (check_excepts): Likewise.
5739 (check_op): Likewise.
5740 (fail_xr): Likewise.
5741 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5742 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5743 (SCNHSZ): Likewise.
5744 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5745 Likewise.
5746 (ARGS): Likewise.
5747 (__makecontext): Likewise.
5748 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5749 Likewise.
5750
5751 2019-02-28 Florian Weimer <fweimer@redhat.com>
5752
5753 [BZ #23937]
5754 elf: Add test with a local IFUNC resolver.
5755 * elf/ifuncmain9.c: New file.
5756 * elf/ifuncmain9pic.c: Likewise.
5757 * elf/ifuncmain9picstatic.c: Likewise.
5758 * elf/ifuncmain9pie.c: Likewise.
5759 * elf/ifuncmain9static.c: Likewise.
5760 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5761 ifuncmain9static, ifuncmain9picstatic.
5762 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5763 Add ifuncmain9, ifuncmain9pic.
5764 * elf/Makefile [multi-arch && build-shared && have-fpie]
5765 (ifunc-pie-tests): Add ifuncmain9pie.
5766 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5767 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5768 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5769
5770 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5771
5772 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5773 * configure: Regenerated.
5774 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5775
5776 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5777
5778 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5779 symbol as __wcspcy instead of wcscpy.
5780
5781 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5782
5783 * include/stdio.h (__renameat2): New hidden prototype.
5784 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5785 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5786 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5787 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5788
5789 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5790
5791 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5792 if statement.
5793
5794 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5795 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5796 * benchtests/bench-strlen.c (do_test): Likewise.
5797 (test_main): Likewise.
5798 * catgets/gencat.c (read_old): Likewise.
5799 * elf/cache.c (load_aux_cache): Likewise.
5800 * iconvdata/bug-iconv8.c (do_test): Likewise.
5801 * math/test-tgmath-ret.c (do_test): Likewise.
5802 * nis/nis_call.c (rec_dirsearch): Likewise.
5803 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5804 * nptl/tst-audit-threads.c (do_test): Likewise.
5805 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5806 * nss/nss_test1.c (init): Likewise.
5807 * nss/test-netdb.c (test_hosts): Likewise.
5808 * posix/execvpe.c (maybe_script_execute): Likewise.
5809 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5810 * stdio-common/tst-printf.c (do_test): Likewise.
5811 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5812 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5813 * stdlib/qsort.c (STACK_SIZE): Likewise.
5814 * stdlib/test-canon.c (do_test): Likewise.
5815 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5816 * string/memcmp.c (OPSIZ): Likewise.
5817 * string/test-strcpy.c (do_test): Likewise.
5818 (do_random_tests): Likewise.
5819 * string/test-strlen.c (do_test): Likewise.
5820 (test_main): Likewise.
5821 * string/test-strrchr.c (do_test): Likewise.
5822 (do_random_tests): Likewise.
5823 * string/tester.c (test_memrchr): Likewise.
5824 (test_memchr): Likewise.
5825 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5826 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5827 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5828 (read_encoded_value_with_base): Likewise.
5829 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5830 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5831 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5832 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5833 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5834 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5835 Likewise.
5836 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5837 Likewise.
5838 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5839 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5840 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5841 Likewise.
5842 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5843 Likewise.
5844 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5845 Likewise.
5846 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5847 Likewise.
5848 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5849 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5850 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5851 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5852 * time/test_time.c (main): Likewise.
5853
5854 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5855
5856 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5857
5858 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5859 wmemcpy.
5860
5861 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5862 wmemcpy.
5863
5864 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5865
5866 * include/wchar.h (__wcscpy): New prototype.
5867 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5868 (__wcscpy): Route internal symbol to generic implementation.
5869 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5870 Add internal __wcscpy alias.
5871 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5872 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5873 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5874 * wcsmbs/wcscpy.c (wcscpy): Add
5875 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5876 use generic implementation.
5877 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5878
5879 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5880 wmemset.
5881
5882 * sysdeps/m68k/wcpcpy.c: Remove file.
5883 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5884
5885 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5886
5887 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5888 than after operators.
5889 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5890 * sysdeps/mach/hurd/getcwd.c
5891 (__hurd_canonicalize_directory_name_internal): Likewise.
5892 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5893 (pthread_mutex_consistent): Likewise.
5894 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5895 Likewise.
5896 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5897 (__pthread_mutex_transfer_np): Likewise.
5898 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5899 (__pthread_mutex_unlock): Likewise.
5900 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5901 (mtx_owned_p): Likewise.
5902 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5903 (pthread_mutexattr_getrobust): Likewise.
5904 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5905 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5906 Likewise.
5907 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5908 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5909 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5910 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5911 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5912 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5913 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5914 Likewise.
5915 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5916 Likewise.
5917 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5918 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5919 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5920 (____longjmp_chk): Likewise.
5921 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5922 Likewise.
5923 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5924 (INTERNAL_SYSCALL): Likewise.
5925 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5926 (INTERNAL_SYSCALL): Likewise.
5927 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5928 (__get_clockfreq_via_cpuinfo): Likewise.
5929
5930 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5931 comments.
5932 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5933 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5934 (WORD_COPY_BWD): Likewise.
5935 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5936 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5937 Likewise.
5938 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5939 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5940 comment.
5941 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5942
5943 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5944
5945 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5946 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5947 rather than after operators.
5948 * elf/cache.c (print_cache): Likewise.
5949 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5950 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5951 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5952 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5953 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5954 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5955 (reauth_proc): Likewise.
5956 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5957 (__file_name_split_at): Likewise.
5958 (__directory_name_split_at): Likewise.
5959 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5960 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5961 * iconv/gconv_dl.c (do_print): Likewise.
5962 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5963 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5964 * locale/setlocale.c (new_composite_name): Likewise.
5965 * malloc/memusagestat.c (main): Likewise.
5966 * misc/fstab.c (fstab_convert): Likewise.
5967 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5968 Likewise.
5969 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5970 (getgrent_next_file): Likewise.
5971 (internal_getgrnam_r): Likewise.
5972 (internal_getgrgid_r): Likewise.
5973 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5974 Likewise.
5975 (internal_getgrent_r): Likewise.
5976 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5977 (getpwent_next_nss): Likewise.
5978 (getpwent_next_file): Likewise.
5979 (internal_getpwnam_r): Likewise.
5980 (internal_getpwuid_r): Likewise.
5981 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5982 Likewise.
5983 (getspent_next_nss): Likewise.
5984 (internal_getspnam_r): Likewise.
5985 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5986 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5987 * string/strchr.c (STRCHR): Likewise.
5988 * string/strchrnul.c (STRCHRNUL): Likewise.
5989 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5990 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5991 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5992 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5993 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5994 Likewise.
5995 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5996 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5997 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5998 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5999 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6000 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6001 (open_file): Likewise.
6002 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6003 (pthread_mutexattr_setprotocol): Likewise.
6004 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6005 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6006 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6007 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6008 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6009 Likewise.
6010 (elf_machine_rela): Likewise.
6011 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6012 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6013 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6014 * sysdeps/posix/rename.c (rename): Likewise.
6015 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6016 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6017 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6018 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6019 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6020 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6021 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6022 Likewise.
6023 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6024 Likewise.
6025 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6026 * time/tzfile.c (__tzfile_compute): Likewise.
6027
6028 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6029
6030 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6031 rather than after operators.
6032 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6033 * crypt/md5.c (md5_finish_ctx): Likewise.
6034 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6035 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6036 * elf/cache.c (load_aux_cache): Likewise.
6037 * elf/dl-load.c (open_verify): Likewise.
6038 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6039 * elf/readelflib.c (process_elf_file): Likewise.
6040 * elf/rtld.c (dl_main): Likewise.
6041 * elf/sprof.c (generate_call_graph): Likewise.
6042 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6043 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6044 * hurd/dtable.c (reauth_dtable): Likewise.
6045 * hurd/getdport.c (__getdport): Likewise.
6046 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6047 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6048 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6049 Likewise.
6050 * hurd/hurdioctl.c (fioctl): Likewise.
6051 * hurd/hurdselect.c (_hurd_select): Likewise.
6052 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6053 (STOPSIGS): Likewise.
6054 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6055 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6056 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6057 * hurd/msgportdemux.c (msgport_server): Likewise.
6058 * hurd/setauth.c (_hurd_setauth): Likewise.
6059 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6060 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6061 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6062 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6063 * login/tst-utmp.c (do_check): Likewise.
6064 (simulate_login): Likewise.
6065 * mach/lowlevellock.h (lll_lock): Likewise.
6066 (lll_trylock): Likewise.
6067 * math/test-fenv.c (ALL_EXC): Likewise.
6068 * math/test-fenvinline.c (ALL_EXC): Likewise.
6069 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6070 * nis/nis_call.c (__do_niscall3): Likewise.
6071 * nis/nis_callback.c (cb_prog_1): Likewise.
6072 * nis/nis_defaults.c (searchaccess): Likewise.
6073 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6074 * nis/nis_ismember.c (internal_ismember): Likewise.
6075 * nis/nis_local_names.c (nis_local_principal): Likewise.
6076 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6077 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6078 Likewise.
6079 * nis/ypclnt.c (yp_match): Likewise.
6080 (yp_first): Likewise.
6081 (yp_next): Likewise.
6082 (yp_master): Likewise.
6083 (yp_order): Likewise.
6084 * nscd/hstcache.c (cache_addhst): Likewise.
6085 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6086 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6087 (internal_getpwuid_r): Likewise.
6088 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6089 * posix/glob.h (__GLOB_FLAGS): Likewise.
6090 * posix/regcomp.c (peek_token): Likewise.
6091 (peek_token_bracket): Likewise.
6092 (parse_expression): Likewise.
6093 * posix/regexec.c (sift_states_iter_mb): Likewise.
6094 (check_node_accept_bytes): Likewise.
6095 * posix/tst-spawn3.c (do_test): Likewise.
6096 * posix/wordexp-test.c (testit): Likewise.
6097 * posix/wordexp.c (parse_tilde): Likewise.
6098 (exec_comm): Likewise.
6099 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6100 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6101 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6102 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6103 * stdio-common/tst-fileno.c (do_test): Likewise.
6104 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6105 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6106 * stdlib/strtod_l.c (round_and_return): Likewise.
6107 (____STRTOF_INTERNAL): Likewise.
6108 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6109 * string/strcspn.c (STRCSPN): Likewise.
6110 * string/test-memmem.c (simple_memmem): Likewise.
6111 * termios/tcsetattr.c (tcsetattr): Likewise.
6112 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6113 * time/asctime.c (asctime_internal): Likewise.
6114 * time/strptime_l.c (__strptime_internal): Likewise.
6115 * time/sys/time.h (timercmp): Likewise.
6116 * time/tzfile.c (__tzfile_compute): Likewise.
6117
6118 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6119
6120 [BZ #21915]
6121 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6122
6123 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6124
6125 * argp/argp-help.c (__argp_error_internal): New function,
6126 renamed from __argp_error, but that takes a 'mode_flags'
6127 parameter to control the format of long double parameters.
6128 (__argp_error): Converted into a call __argp_error_internal.
6129 (__argp_failure_internal): New function, renamed from
6130 __argp_failure, but that takes a 'mode_flags' parameter.
6131 (__argp_failure): Converted into a call __argp_failure_internal.
6132 * misc/err.c (__vwarnx_internal): New function, renamed from
6133 vwarnx, but that takes a 'mode_flags' parameter.
6134 (vwarnx): Converted into a call to __vwarnx_internal.
6135 (__vwarn_internal): New function, renamed from vwarn, but that
6136 takes a 'mode_flags' parameter.
6137 (vwarn): Converted into a call to __vwarn_internal.
6138 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6139 call to __vfxprintf with 'mode_flags'.
6140 (__error_internal): New function, renamed from error, but that
6141 takes a 'mode_flags' parameter.
6142 (error): Converted into a call to __error_internal.
6143 (__error_at_line_internal): New function, renamed from
6144 error_at_line, but that takes a 'mode_flags' parameter.
6145 (error_at_line): Converted into a call to
6146 __error_at_line_internal.
6147 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6148 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6149 Likewise.
6150
6151 2019-02-20 Martin Liska <mliska@suse.cz>
6152
6153 * math/Makefile: Install math-vector-fortran.h.
6154 * bits/math-vector-fortran.h: New file.
6155 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6156
6157 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6158
6159 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6160 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6161
6162 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6163
6164 * nptl/pthread_mutex_trylock.c: Fix comment.
6165
6166 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6167
6168 * nptl/pthread_tryjoin.c: Fix comment.
6169
6170 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6171
6172 [BZ #24231]
6173 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6174 after R_SPARC_H34 case.
6175
6176 2019-02-18 Florian Weimer <fweimer@redhat.com>
6177
6178 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6179 (getanswer): Do not call Dprintf.
6180 (res_gethostbyname2_context): Likewise.
6181 (res_gethostbyaddr_context): Likewise.
6182
6183 2019-02-18 Florian Weimer <fweimer@redhat.com>
6184
6185 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6186 declaration.
6187 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6188 Remove definitions.
6189 * libio/stdfiles.c: Update comment.
6190 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6191 set _IO_stdin, _IO_stdout, _IO_stderr.
6192 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6193 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6194 inline function.
6195 (_IO_deallocate_file): New inline function.
6196 * libio/iolibio.h (_IO_vprintf): Remove definition.
6197 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6198 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6199 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6200 _IO_legacy_file.
6201 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6202 __builtin_expect. Use _IO_legacy_file.
6203
6204 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6205
6206 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6207 Initialize ctid with a known value and remove update of ctid
6208 after clone.
6209 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6210 as assumed current value of ctid_ptr.
6211
6212 2019-02-16 Florian Weimer <fweimer@redhat.com>
6213
6214 Check that non-sysdeps headers have wrapper headers.
6215 * scripts/check-wrapper-headers.py: New file.
6216 * Makefile (tests-special): Add check-wrapper-headers.out.
6217 (check-wrapper-headers.out): New target.
6218 * Rules (tests-special): Add check-wrapper-headers.out.
6219 (check-wrapper-headers.out): New target.
6220
6221 2019-02-16 Florian Weimer <fweimer@redhat.com>
6222
6223 Add missing header wrappers under include/.
6224 * include/ar.h: New file.
6225 * include/bits/mqueue2.h: Likewise.
6226 * include/bits/stdio.h: Likewise.
6227 * include/bits/stdio2.h: Likewise.
6228 * include/fstab.h: Likewise.
6229 * include/fts.h: Likewise.
6230 * include/lastlog.h: Likewise.
6231 * include/netinet/icmp6.h: Likewise.
6232 * include/netinet/igmp.h: Likewise.
6233 * include/netinet/ip6.h: Likewise.
6234 * include/re_comp.h: Likewise.
6235 * include/regexp.h: Likewise.
6236 * include/rpcsvc/bootparam.h: Likewise.
6237 * include/rpcsvc/yp_prot.h: Likewise.
6238 * include/sys/random.h: Likewise.
6239 * include/sys/stropts.h: Likewise.
6240 * include/sys/ttychars.h: Likewise.
6241 * include/sys/vfs.h: Likewise.
6242 * include/wait.h: Likewise.
6243
6244 2019-02-16 Florian Weimer <fweimer@redhat.com>
6245
6246 * nptl_db/proc_service.h: Move to ...
6247 * sysdeps/nptl/proc_service.h: ... here.
6248 * nptl_db/thread_db.h: Move to ...
6249 * sysdeps/nptl/thread_db.h: ... here.
6250 * nptl/descr.h: Include <thread_db.h>.
6251
6252 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6253
6254 * io/Makefile (tests): Add tst-lockf.
6255 * io/lockf.c (lockf): Use __fcntl and only define for
6256 !__OFF_T_MATCHES_OFF64_T.
6257 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6258 __OFF_T_MATCHES_OFF64_T case.
6259 * io/tst-lockf.c: New file.
6260 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6261 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6262 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6263 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6264 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6266 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6267 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6268 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6269
6270 2019-02-15 Florian Weimer <fweimer@redhat.com>
6271
6272 [BZ #24211]
6273 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6274 pd->result after the thread descriptor has been freed.
6275
6276 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6277
6278 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6279 from function return type.
6280
6281 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6282
6283 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6284
6285 * scripts/test_printers_common.py: Set TERM to a known harmless
6286 value.
6287
6288 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6289
6290 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6291 (xdr_u_int): Likewise.
6292 (xdr_enum): Likewise.
6293 (xdr_bytes): Reword fall-through comment.
6294 (xdr_string): Likewise.
6295
6296 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6297
6298 [BZ #2421]
6299 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6300 (tests): Add tst-join8 tst-join9.
6301 * nptl/lll_timedwait_tid.c: Remove file.
6302 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6303 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6304 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6305 * nptl/pthread_join_common.c (timedwait_tid): New function.
6306 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6307 is set.
6308 * nptl/tst-join5.c (thread_join): New function.
6309 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6310 check.
6311 * nptl/tst-join8.c: New file.
6312 * nptl/tst-join9.c: Likewise.
6313 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6314 lll_futex_timed_wait_cancel): Add generic macros.
6315 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6316 Remove definitions.
6317 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6318 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6319 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6320 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6321 Remove function.
6322 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6323 Likewise.
6324 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6325 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6326 (lll_futex_timed_wait_cancel): New macro.
6327
6328 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6329
6330 * benchtests/Makefile: Add malloc-simple benchmark.
6331 * benchtests/bench-malloc-simple.c: New benchmark.
6332
6333 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6334
6335 * benchtests/bench-memmove.c (do_one_test): Remove unused
6336 ORIG_SRC.
6337 (do_test): Adjust.
6338 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6339 ORIG_SRC.
6340 (do_test): Adjust.
6341
6342 2019-01-13 Jim Wilson <jimw@sifive.com>
6343
6344 [BZ #24040]
6345 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6346 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6347 (func): New.
6348 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6349 call func directly.
6350 * nptl/Makefile (tests): Add tst-unwind-thread.
6351 (CFLAGS-tst-unwind-thread.c): Define.
6352 * nptl/tst-unwind-thread.c: New file.
6353 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6354 as undefined.
6355
6356 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6357
6358 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6359 comment wording.
6360 * nis/nis_call.c (__do_niscall3): Likewise.
6361
6362 * catgets/gencat.c (normalize_line): Use braces around empty
6363 'else' body.
6364 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6365 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6366 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6367 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6368 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6369 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6370 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6371 definition.
6372
6373 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6374 execlp returns.
6375
6376 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6377
6378 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6379 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6380 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6381 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6382 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6383 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6384 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6385 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6386 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6387 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6388 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6389 * benchtests/bench-bcopy.c: Delete file.
6390 * benchtests/bench-bzero.c: Likewise.
6391 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6392 (simple_memccpy): Remove.
6393 (generic_memccpy): Add function.
6394 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6395 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6396 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6397 (generic_mempcpy): Add new function.
6398 * benchtests/bench-memset.c (simple_bzero): Remove.
6399 (builtin_bzero): Remove.
6400 (builtin_memset): Remove.
6401 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6402 (generic_rawmemchr): Add new function.
6403
6404 2019-02-12 Florian Weimer <fweimer@redhat.com>
6405
6406 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6407
6408 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6409
6410 [BZ #24122]
6411 * elf/Makefile (tests): Add tst-audit13.
6412 (modules-names): Add tst-audit13mod1.
6413 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6414 rule.
6415 * elf/tst-audit13.c: New file.
6416 * elf/tst-audit13mod1.c: Likewise.
6417
6418 2019-02-12 Florian Weimer <fweimer@redhat.com>
6419
6420 [BZ #24122]
6421 * elf/rtld.c (unload_audit_module): New function.
6422 (report_audit_module_load_error): Likewise.
6423 (load_audit_module): Likewise. Extracted from dl_main. Call
6424 _dl_close if the laversion symbol cannot be found. Use early
6425 returns for error handling. Add malloc error check. Check for a
6426 zero return value from la_version. Remove spurious comment about
6427 static TLS initialization. Remove useless casts.
6428 (notify_audit_modules_of_loaded_object): New function. Extracted
6429 from dl_main.
6430 (load_audit_module): Likewise.
6431 (dl_main): Call load_audit_modules.
6432
6433 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6434
6435 * elf/dl-exception.c (_dl_exception_create_format): Add
6436 fall-through comments.
6437 * elf/ldconfig.c (parse_conf_include): Likewise.
6438 * elf/rtld.c (print_statistics): Likewise.
6439 * locale/programs/charmap.c (parse_charmap): Likewise.
6440 * misc/mntent_r.c (__getmntent_r): Likewise.
6441 * posix/wordexp.c (parse_arith): Likewise.
6442 (parse_backtick): Likewise.
6443 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6444 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6445 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6446
6447 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6448
6449 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6450 Use float instead of double.
6451
6452 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6453
6454 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6455
6456 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6457
6458 * sysdeps/powerpc/bits/mathinline.h: Remove.
6459
6460 2019-02-08 Florian Weimer <fweimer@redhat.com>
6461
6462 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6463 * math/bits/math-finite.h: Move to ...
6464 * bits/math-finite.h: ... here.
6465
6466 2019-02-08 Florian Weimer <fweimer@redhat.com>
6467
6468 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6469 * bits/unistd_ext.h: here.
6470
6471 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6472
6473 [BZ #21915]
6474 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6475 * nss/tst-nss-files-hosts-long.c: New file.
6476 * nss/tst-nss-files-hosts-long.root: New directory.
6477 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6478 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6479
6480 2019-02-08 Florian Weimer <fweimer@redhat.com>
6481
6482 * include/bits/unistd_ext.h: Remove file.
6483 * posix/bits/unistd_ext.h: Move to ...
6484 * sysdeps/generic/bits/unistd_ext.h: ... here.
6485
6486 2019-02-08 Florian Weimer <fweimer@redhat.com>
6487
6488 * include/bits/unistd_ext.h: New file.
6489
6490 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6491
6492 * time/tst-strftime2.c: Use array_length macros instead of magic
6493 numbers.
6494
6495 2019-02-08 Florian Weimer <fweimer@redhat.com>
6496
6497 [BZ #24161]
6498 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6499 argument.
6500 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6501 locking if the new do_locking argument is true.
6502 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6503 __run_fork_handlers.
6504
6505 2019-02-08 Florian Weimer <fweimer@redhat.com>
6506
6507 [BZ #6399]
6508 Linux: Add gettid system call wrapper.
6509 * posix/Makefile (headers): Add bits/unistd_ext.h.
6510 * posix/bits/unistd_ext.h: New file.
6511 * posix/unistd.h: Include it.
6512 * manual/process.texi (Process Identification): Document gettid.
6513 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6514 tst-gettid, tst-gettid-kill.
6515 (tst-gettid): Link with $(shared-thread-library).
6516 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6517 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6518 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6519 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6520 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6521 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6522 Add gettid.
6523 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6524 Likewise.
6525 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6526 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6527 Likewise.
6528 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6529 Likewise.
6530 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6531 Likewise.
6532 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6533 Likewise.
6534 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6535 Likewise.
6536 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6537 Likewise.
6538 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6539 Likewise.
6540 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6541 (GLIBC_2.30): Likewise.
6542 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6543 (GLIBC_2.30): Likewise.
6544 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6545 (GLIBC_2.30): Likewise.
6546 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6547 (GLIBC_2.30): Likewise.
6548 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6549 Likewise.
6550 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6551 (GLIBC_2.30): Likewise.
6552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6553 (GLIBC_2.30): Likewise.
6554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6555 (GLIBC_2.30): Likewise.
6556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6557 (GLIBC_2.30): Likewise.
6558 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6559 Likewise.
6560 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6561 Likewise.
6562 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6563 Likewise.
6564 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6565 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6566 Likewise.
6567 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6568 Likewise.
6569 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6570 Likewise.
6571 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6572 Likewise.
6573 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6574
6575 2019-02-08 Florian Weimer <fweimer@redhat.com>
6576
6577 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6578 compatibility symbols.
6579
6580 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6581
6582 [BZ #24180]
6583 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6584 Add compiler barriers and comments.
6585
6586 2019-02-07 Florian Weimer <fweimer@redhat.com>
6587
6588 * include/array_length.h (array_length): Do not use a statement
6589 expression and _Static_assert, so that array_length can be used at
6590 file scope and as a constant expression.
6591
6592 2019-02-07 Florian Weimer <fweimer@redhat.com>
6593
6594 * support/xdlfcn.h (xdlmopen): Declare.
6595 * support/xdlmopen.c: New file.
6596 * support/Makefile (libsupport-routines): Add xdlmopen.
6597
6598 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6599
6600 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6601 before return type, without separate inline.
6602 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6603 * elf/dl-tunables.h (tunable_is_name): Likewise.
6604 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6605 (do_set_top_pad): Likewise.
6606 (do_set_mmap_threshold): Likewise.
6607 (do_set_mmaps_max): Likewise.
6608 (do_set_mallopt_check): Likewise.
6609 (do_set_perturb_byte): Likewise.
6610 (do_set_arena_test): Likewise.
6611 (do_set_arena_max): Likewise.
6612 (do_set_tcache_max): Likewise.
6613 (do_set_tcache_count): Likewise.
6614 (do_set_tcache_unsorted_limit): Likewise.
6615 * nis/nis_subr.c (count_dots): Likewise.
6616 * nptl/allocatestack.c (advise_stack_range): Likewise.
6617 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6618 (do_sin): Likewise.
6619 (reduce_sincos): Likewise.
6620 (do_sincos): Likewise.
6621 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6622 (do_set_elision_enable): Likewise.
6623 (TUNABLE_CALLBACK_FNDECL): Likewise.
6624
6625 2019-02-06 Florian Weimer <fweimer@redhat.com>
6626
6627 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6628 (xdlsym): Use dlerror to detect a NULL symbol.
6629
6630 2019-02-06 Florian Weimer <fweimer@redhat.com>
6631
6632 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6633 <stap-probe.h>.
6634 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6635
6636 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6637
6638 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6639
6640 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6641
6642 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6643 __wmemcmp and weak alias to wmemcmp.
6644
6645 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6646
6647 [BZ #23403]
6648 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6649 TLS_TCB_AT_TP tls variant.
6650 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6651 Add alignment checks.
6652 * support/Makefile (libsupport-routines): Add xposix_memalign and
6653 xpthread_setstack.
6654 * support/support.h: Add xposix_memalign.
6655 * support/xthread.h: Add xpthread_attr_setstack.
6656 * support/xposix_memalign.c: New File.
6657 * support/xpthread_attr_setstack.c: Likewise.
6658
6659 2019-02-05 Florian Weimer <fweimer@redhat.com>
6660
6661 [BZ #24164]
6662 arm: Use "nr" constraint for Systemtap probes, to avoid the
6663 compiler using memory operands for constants, due to the "o"
6664 alternative in the default "nor" constraint.
6665 * include/stap-probe.h [USE_STAP_PROBE]: Include
6666 <stap-probe-machine.h>
6667 * sysdeps/generic/stap-probe-machine.h: New file.
6668 * sysdeps/arm/stap-probe-machine.h: Likewise.
6669
6670 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6671
6672 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6673 with 0, not tcache->entries[tc_idx].
6674
6675 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6676 once.
6677
6678 2019-02-04 Andreas Schwab <schwab@suse.de>
6679
6680 [BZ #16976]
6681 [BZ #17396]
6682 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6683 looking up collating elements match against (wide) character
6684 sequence instead of name. Correct alignment adjustment.
6685 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6686 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6687 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6688 (LOCALES): Add cs_CZ.ISO-8859-2.
6689 * posix/tst-fnmatch4.c: New file.
6690 * posix/tst-fnmatch5.c: New file.
6691 * include/wchar.h (__wmemcmp): Declare.
6692 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6693 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6694 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6695 * sysdeps/s390/wmemcmp.c: Likewise.
6696
6697 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6698
6699 [BZ #24155]
6700 CVE-2019-7309
6701 * NEWS: Updated for CVE-2019-7309.
6702 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6703 upper 32 bits of RDX register for x32. Use unsigned Jcc
6704 instructions, instead of signed.
6705 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6706 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6707
6708 2019-02-04 Florian Weimer <fweimer@redhat.com>
6709
6710 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6711 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6712 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6713 Likewise.
6714 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6715 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6716 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6717 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6718 Likewise.
6719 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6720 Likewise.
6721 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6722 Likewise.
6723 (posix_spawn_file_actions_addopen): Likewise.
6724 (posix_spawn_file_actions_addclose): Likewise.
6725 (posix_spawn_file_actions_adddup2): Likewise.
6726 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6727 qualifiers.
6728 (posix_spawn_file_actions_addfchdir_np): Likewise.
6729
6730 2019-02-04 David Newall <glibc@davidnewall.com>
6731
6732 elf: Implement --preload option for the dynamic linker.
6733 * elf/rtld.c (preloadarg): New variable.
6734 (handle_preload_list): Pass through “where” argument to
6735 do_preload.
6736 (dl_main): Handle "--preload" and add second call to
6737 handle_preload_list.
6738 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6739 (tst-rtld-preload-OBJS): Set variable.
6740 (tst-rtld-preload.out): New target.
6741 * elf/tst-rtld-preload.sh: New file.
6742
6743 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6744
6745 * Makefile (testrun.sh): Exit in case of incorrect argument.
6746
6747 2019-02-04 Florian Weimer <fweimer@redhat.com>
6748
6749 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6750 alignment gaps.
6751
6752 2019-02-03 Florian Weimer <fweimer@redhat.com>
6753
6754 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6755 implicit overflow checks.
6756
6757 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6758
6759 * stdlib/isomac.c: Include <unistd.h>.
6760
6761 2019-02-03 Florian Weimer <fweimer@redhat.com>
6762
6763 * include/time.h (__tzfile_default): Use int, not long int, for
6764 the GMT offsets.
6765 * time/tzfile.c (struct ttinfo): Change type of the offset member
6766 to int.
6767 (__tzfile_read): Remove useless cast.
6768 (__tzfile_default): Adjust prototype.
6769 * time/tzset.c (tz_rule): Change type of the offset member to int.
6770 (parse_offset): Change the type of the sign variable to int.
6771
6772 2019-02-03 Florian Weimer <fweimer@redhat.com>
6773
6774 [BZ #24153]
6775 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6776 * libio/getchar.c (getchar): Likewise.
6777 * libio/getchar_u.c (getchar_unlocked): Likewise.
6778 * libio/getwchar.c (getwchar): Likewise.
6779 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6780 * libio/iogets.c (_IO_gets): Likewise.
6781 * libio/vscanf.c (_IO_vscanf): Likewise.
6782 * libio/vwscanf.c (__vwscanf): Likewise.
6783 * libio/tst-bz24153.c: New file.
6784 * libio/Makefile (tests): Add it.
6785
6786 2019-02-02 Florian Weimer <fweimer@redhat.com>
6787
6788 [BZ #14829]
6789 * manual/resource.texi (Basic Scheduling Functions): Add
6790 portability note. Change process to task throughout the section.
6791 Remove incorrect comment about sched_yield as it affects
6792 tasks/threads, not entire processes.
6793 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6794 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6795
6796 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6797
6798 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6799 * configure: Regenerated.
6800 * manual/install.texi (Tools for Compilation): Update minimum GCC
6801 version.
6802 * INSTALL: Regenerated.
6803
6804 2019-02-01 Florian Weimer <fweimer@redhat.com>
6805
6806 * support/support_test_compare_string.c
6807 (support_test_compare_string): Use "string" in error message.
6808 * support/tst-test_compare_string.c (do_test): Adjust.
6809
6810 2019-02-01 Florian Weimer <fweimer@redhat.com>
6811
6812 * support/support_format_address_family.c
6813 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6814
6815 2019-02-01 Florian Weimer <fweimer@redhat.com>
6816
6817 * manual/socket.texi (Internet Address Formats): Clarify the byte
6818 order of struct sockaddr_in, struct sockaddr_in6. Document
6819 sin6_flowinfo and sin6_scope_id.
6820
6821 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6822
6823 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6824 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6825 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6826 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6827 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6828 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6829
6830 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6831
6832 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6833 [!MEMCHR](MEMCHR): Set to __memchr.
6834 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6835 Add memchr_generic and memchr_nosimd.
6836 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6837 (__libc_ifunc_impl_list): Add memchr ifuncs.
6838 * sysdeps/aarch64/multiarch/memchr.c: New file.
6839 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6840 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6841
6842 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6843
6844 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6845 Add memset_emag.
6846 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6847 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6848 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6849 Add IS_EMAG check for ifunc dispatch.
6850 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6851 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6852
6853 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6854
6855 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6856 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6857 Add emag.
6858 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6859 New macro.
6860
6861 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6862
6863 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6864
6865 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6866
6867 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6868 syscall-template file.
6869
6870 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6871 Torvald Riegel <triegel@redhat.com>
6872 Rik Prohaska <prohaska7@gmail.com>
6873
6874 [BZ# 23844]
6875 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6876 tst-rwlock-trywrlock-stall.
6877 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6878 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6879 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6880 Set __wrphase_fute to 1 only if we started the write phase.
6881 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6882 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6883 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6884 * support/xpthread_rwlock_destroy.c: New file.
6885 * support/xthread.h: Declare xpthread_rwlock_destroy.
6886
6887 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6888
6889 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6890 version to 4.0.2.
6891
6892 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6893
6894 [BZ #24051]
6895 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6896 * libio/fileops.c (_IO_new_file_underflow): Likewise
6897 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6898 * libio/putchar.c (putchar): Likewise.
6899 * libio/putchar_u.c (putchar_unlocked): Likewise.
6900 * libio/putwchar.c (putchar): Likewise.
6901 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6902 * libio/tst-bz24051.c: New test.
6903 * libio/Makefile (tests): Add tst-bz24051
6904
6905 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6906
6907 CVE-2019-9169
6908 regex: fix read overrun [BZ #24114]
6909 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6910 https://debbugs.gnu.org/34140
6911 * posix/regexec.c (proceed_next_node):
6912 Do not read past end of input buffer.
6913
6914 2019-01-31 Florian Weimer <fweimer@redhat.com>
6915
6916 [BZ #24059]
6917 * nss/nss_files/files-alias.c (get_next_alias): Handle
6918 continuation line without newline at the end.
6919 * nss/tst-nss-files-alias-truncated.c: New file.
6920 * nss/Makefile [$(build-shared)] (tests): Add
6921 tst-nss-files-alias-truncated.
6922 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6923 * support/namespace.h (struct support_chroot_configuration): Add
6924 aliases member.
6925 (struct support_chroot): Add path_aliases member.
6926 * support/support_chroot.c (support_chroot_create): Handle
6927 aliases.
6928 (support_chroot_free): Free path_aliases.
6929
6930 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6931
6932 * version.h (RELEASE): Set to "development".
6933 (VERSION): Set to "2.29.9000".
6934 * NEWS: Add section for 2.30.
6935
6936 * version.h (RELEASE): Set to "stable".
6937 (VERSION): Set to "2.29".
6938 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6939
6940 * NEWS: Add the list of bugs fixed in 2.29.
6941 * manual/contrib.texi: Update contributors list with some more
6942 names.
6943 * manual/install.texi: Update latest versions of packages
6944 tested.
6945 * INSTALL: Regenerated.
6946
6947 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6948
6949 * po/be.po: Update translations.
6950 * po/bg.po: Likewise.
6951 * po/ca.po: Likewise.
6952 * po/cs.po: Likewise.
6953 * po/da.po: Likewise.
6954 * po/de.po: Likewise.
6955 * po/el.po: Likewise.
6956 * po/eo.po: Likewise.
6957 * po/es.po: Likewise.
6958 * po/fi.po: Likewise.
6959 * po/fr.po: Likewise.
6960 * po/gl.po: Likewise.
6961 * po/hr.po: Likewise.
6962 * po/hu.po: Likewise.
6963 * po/ia.po: Likewise.
6964 * po/id.po: Likewise.
6965 * po/it.po: Likewise.
6966 * po/ja.po: Likewise.
6967 * po/ko.po: Likewise.
6968 * po/lt.po: Likewise.
6969 * po/nb.po: Likewise.
6970 * po/nl.po: Likewise.
6971 * po/pl.po: Likewise.
6972 * po/pt_BR.po: Likewise.
6973 * po/ru.po: Likewise.
6974 * po/rw.po: Likewise.
6975 * po/sk.po: Likewise.
6976 * po/sl.po: Likewise.
6977 * po/sv.po: Likewise.
6978 * po/tr.po: Likewise.
6979 * po/uk.po: Likewise.
6980 * po/vi.po: Likewise.
6981 * po/zh_CN.po: Likewise.
6982 * po/zh_TW.po: Likewise.
6983
6984 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6985
6986 [BZ #24130]
6987 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6988 of $f3 register on $y_is_neg path.
6989
6990 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6991
6992 [BZ #24110]
6993 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6994 sigaltstack.ss_flags.
6995
6996 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6997
6998 [BZ #23758]
6999 * manual/time.texi (strftime): Document "%Ey".
7000 * time/strftime_l.c (__strftime_internal): Set the default width
7001 padding with zero of "%Ey" to 2.
7002
7003 [BZ #24096]
7004 * manual/time.texi (strftime): Document "%EC" and "%EY".
7005 * time/Makefile (tests): Add tst-strftime2.
7006 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7007 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7008 override padding for "%Ey".
7009 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7010 "%Ey" in the subformat as if decorated with that flag.
7011 * time/tst-strftime2.c: New file.
7012
7013 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7014
7015 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7016 are not defined.
7017
7018 [BZ #24122]
7019 * elf/Makefile (tests): Add tst-audit13.
7020 (modules-names): Add tst-audit13mod1.
7021 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7022 rule.
7023 * elf/rtld.c (dl_main): Handle invalid audit module version.
7024 * elf/tst-audit13.c: New file.
7025 * elf/tst-audit13mod1.c: Likewise.
7026
7027 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7028
7029 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7030 returned by __hurd_at_flags.
7031 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7032 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7033 directly instead of __hurd_file_name_lookup.
7034
7035 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7036
7037 * scripts/build-many-glibcs.py (Context.checkout): Default
7038 binutils version to 2.32 branch.
7039
7040 2019-01-21 Florian Weimer <fweimer@redhat.com>
7041
7042 [BZ #20018]
7043 CVE-2016-10739
7044 resolv: Reject trailing characters in host names
7045 * include/arpa/inet.h (__inet_aton_exact): Declare.
7046 (inet_aton): Remove hidden prototype. No longer used internally.
7047 * nscd/gai.c (__inet_aton): Do not define.
7048 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7049 * nss/digits_dots.c (__inet_aton): Likewise.
7050 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7051 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7052 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7053 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7054 (tst-resolv-trailing): Likewise.
7055 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7056 libc.
7057 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7058 Make static. Add endp parameter.
7059 (__inet_aton_exact): New function.
7060 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7061 (__inet_addr): Call inet_aton_end.
7062 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7063 not just IPv6. Call __inet_aton_exact.
7064 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7065 (tests): Make const. Add additional test cases with trailing
7066 characters.
7067 (do_test): Use array_length.
7068 * resolv/tst-inet_aton_exact.c: New file.
7069 * resolv/tst-resolv-trailing.c: Likewise.
7070 * resolv/tst-resolv-nondecimal.c: Likewise.
7071 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7072
7073 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7074
7075 [BZ# 24097]
7076 CVE-2019-6488
7077 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7078 Clear the upper 32 bits of RSI register.
7079 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7080 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7081 and tst-size_t-wcsnlen.
7082 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7083 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7084
7085 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7086
7087 [BZ# 24097]
7088 CVE-2019-6488
7089 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7090 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7091 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7092 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7093 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7094
7095 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7096
7097 [BZ# 24097]
7098 CVE-2019-6488
7099 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7100 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7101 * sysdeps/x86_64/strcmp.S: Likewise.
7102 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7103 tst-size_t-strncmp and tst-size_t-wcsncmp.
7104 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7105 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7106 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7107
7108 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7109
7110 [BZ# 24097]
7111 CVE-2019-6488
7112 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7113 RDX_LP for length. Clear the upper 32 bits of RDX register.
7114 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7115 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7116 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7117 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7118
7119 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7120
7121 [BZ# 24097]
7122 CVE-2019-6488
7123 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7124 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7125 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7126 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7127
7128 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7129
7130 [BZ# 24097]
7131 CVE-2019-6488
7132 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7133 length. Clear the upper 32 bits of RDX register.
7134 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7135 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7136 Likewise.
7137 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7138 Likewise.
7139 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7140 tst-size_t-wmemchr.
7141 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7142
7143 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7144
7145 [BZ# 24097]
7146 CVE-2019-6488
7147 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7148 length. Clear the upper 32 bits of RDX register.
7149 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7150 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7151 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7152 tst-size_t-wmemcmp.
7153 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7154 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7155
7156 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7157
7158 [BZ# 24097]
7159 CVE-2019-6488
7160 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7161 upper 32 bits of RDX register.
7162 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7163 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7164 tst-size_t-wmemchr.
7165 * sysdeps/x86_64/x32/test-size_t.h: New file.
7166 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7167 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7168
7169 2019-01-18 Florian Weimer <fweimer@redhat.com>
7170
7171 [BZ #24112]
7172 resolv: Do not send queries for non-host-names in nss_dns.
7173 * resolv/nss_dns/dns-host.c (check_name): New function.
7174 (_nss_dns_gethostbyname2_r): Use it.
7175 (_nss_dns_gethostbyname_r): Likewise.
7176 (_nss_dns_gethostbyname4_r): Likewise.
7177
7178 2019-01-21 Florian Weimer <fweimer@redhat.com>
7179
7180 * resolv/inet_addr.c: Reformat to GNU style.
7181 (__inet_addr, __inet_aton): Update comment.
7182
7183 2019-01-18 Florian Weimer <fweimer@redhat.com>
7184
7185 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7186 ("malloc: Use current (C11-style) atomics for fastbin access").
7187 This commit introduces a substantial performance regression on
7188 POWER and Aarch64.
7189 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7190 (REMOVE_FB): Define.
7191 (_int_malloc): Use it and reindent.
7192 (_int_free): Use CAS loop with
7193 catomic_compare_and_exchange_val_rel.
7194 (malloc_consolidate): Use atomic_exchange_acq.
7195
7196
7197 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7198
7199 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7200 -Wl,-z,now.
7201 (LDFLAGS-tst-minsigstksz-2): Likewise.
7202 (LDFLAGS-tst-minsigstksz-3): Likewise.
7203 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7204 (LDFLAGS-tst-minsigstksz-4): Likewise.
7205
7206 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7207
7208 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7209 than "alternate".
7210
7211 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7212
7213 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7214
7215 2019-01-16 Zack Weinberg <zackw@panix.com>
7216
7217 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7218 (xget_sigstack_location): New test support functions.
7219 * support/xsigstack.c: New file, implementing them.
7220 * support/tst-xsigstack.c: New test for them.
7221 * support/Makefile: Update.
7222
7223 * signal/tst-minsigstksz-1.c
7224 * signal/tst-minsigstksz-2.c
7225 * signal/tst-minsigstksz-3.c
7226 * signal/tst-minsigstksz-3a.c
7227 * signal/tst-minsigstksz-4.c: New tests.
7228 * signal/Makefile: Run them.
7229
7230 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7231
7232 * po/libc.pot: Regenerate.
7233
7234 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7235
7236 * math/libm-test-fma.inc (fma_test_data): Set
7237 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7238
7239 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7240
7241 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7242 (do_test): Changed __vector __int128_t to __vector unsigned int.
7243
7244 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7245
7246 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7247 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7248 stpcpy-avx2 and stpncpy-avx2.
7249 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7250 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7251 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7252 and __stpncpy_avx2.
7253 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7254 ifunc-strcpy.h}: rename header for a more generic name.
7255 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7256 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7257 AVX unaligned load is fast and vzeroupper is preferred.
7258 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7259 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7260 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7261 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7262 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7263 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7264
7265 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7266
7267 * argp/argp-help.c: Fix typo in comment.
7268 * misc/sys/cdefs.h: Likewise.
7269 * posix/regexec.c (sift_states_iter_mb): Likewise.
7270 * socket/sockatmark.c: Likewise.
7271 * socket/sys/socket.h: Likewise.
7272 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7273 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7274 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7275 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7276 * sysdeps/unix/sockatmark.c: Likewise.
7277 * time/strptime_l.c: Likewise.
7278
7279 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7280
7281 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7282 missing space after the cast of "_NL_CURRENT".
7283
7284 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7285
7286 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7287 ifdef to fix read of VSCR.
7288 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7289 tst-ucontext-ppc64-vscr.c to test list.
7290 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7291
7292 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7293
7294 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7295 fall-through.
7296
7297 2019-01-09 Jim Wilson <jimw@sifive.com>
7298
7299 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7300
7301 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7302
7303 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7304 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7305 __memcpy_falkor for ares.
7306 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7307 Add new define.
7308 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7309 Add ares cpu.
7310
7311 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7312
7313 [BZ #24066]
7314 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7315 4_FP_W_TYPEs are used for IEEE quad precision.
7316 * soft-fp/extendhftf2.c: Likewise.
7317 * soft-fp/extendsftf2.c: Likewise.
7318 * soft-fp/extendxftf2.c: Likewise.
7319 * soft-fp/trunctfdf2.c: Likewise.
7320 * soft-fp/trunctfhf2.c: Likewise.
7321 * soft-fp/trunctfsf2.c: Likewise.
7322 * soft-fp/trunctfxf2.c: Likewise.
7323 * sysdeps/alpha/ots_cvttx.c: Likewise.
7324 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7325 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7326 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7327 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7328 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7329 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7330 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7331 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7332 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7333 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7334 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7335 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7336 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7337 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7338 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7339 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7340 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7341
7342 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7343
7344 [BZ #24024]
7345 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7346 code with -fmath-errno.
7347 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7348 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7349 * string/test-strerror-errno.c: New file.
7350
7351 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7352
7353 [BZ #24046]
7354 * localedata/locales/en_US (date_fmt): Add, set to
7355 "%a %d %b %Y %r %Z".
7356
7357 2019-01-07 Florian Weimer <fweimer@redhat.com>
7358
7359 [BZ #24063]
7360 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7361 instead of @var{errno}.
7362 (Parsing of Integers): Likewise.
7363 (Parsing of Floats): Likewise.
7364 * manual/filesys.texi (Working with Directory Trees): Likewise.
7365 (Temporary Files): Likewise.
7366 * manual/job.texi (Terminal Access Functions): Likewise.
7367 * manual/llio.texi (Synchronizing I/O): Likewise.
7368 * manual/math.texi (SVID Random): Likewise.
7369 * manual/message.texi (The catgets Functions): Likewise.
7370 (Translation with gettext): Likewise.
7371 (Locating gettext catalog): Likewise.
7372 (Charset conversion in gettext): Likewise.
7373 * manual/nss.texi (NSS Module Function Internals): Likewise.
7374 * manual/search.texi (Hash Search Function): Likewise.
7375 * manual/setjmp.texi (System V contexts): Likewise.
7376 * manual/time.texi (Sleeping): Likewise.
7377 * manual/users.texi (Lookup User): Likewise.
7378 (Lookup Group): Likewise.
7379
7380 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7381
7382 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7383 fix typo.
7384
7385 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7386
7387 [BZ #19444]
7388 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7389 __builtin_unreachable for default case in switch.
7390 (__ieee754_yn): Likewise.
7391 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7392 (__ieee754_ynl): Likewise.
7393 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7394 (__ieee754_ynl): Likewise.
7395 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7396 (__ieee754_ynl): Likewise.
7397
7398 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7399
7400 * manual/maint.texi: Use @{ and @}.
7401
7402 2019-01-04 Florian Weimer <fweimer@redhat.com>
7403
7404 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7405 function.
7406 (do_in_chroot_1): Call it.
7407 (run_chroot_tests):
7408 Improve error reporting in case it is not possible to create a
7409 collision for the PTY name required by the test.
7410
7411 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7412
7413 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7414 lll_wait_tid with timeout.
7415 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7416 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7417 futex_reltimed_wait_cancelable for cancelabla mode.
7418 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7419 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7420 macros.
7421 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7422 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7423 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7424 SYSCALL_CANCEL_NCS): New macro.
7425 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7426 (lll_timedwait_tid): Remove macro.
7427 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7428 Likewise.
7429 (lll_timedwait_tid): Likewise.
7430 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7431 Likewise.
7432 (lll_timedwait_tid): Likewise.
7433 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7434 Likewise.
7435 (lll_timedwait_tid): Likewise.
7436 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7437 Use INTERNAL_SYSCALL_CANCEL.
7438 * sysdeps/unix/sysv/linux/futex-internal.h
7439 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7440 instead of __pthread_{enable,disable}_asynccancel.
7441 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7442 (lll_futex_wait_cancel): New macro.
7443
7444 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7445 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7446
7447 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7448 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7449
7450 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7451 in backtrace analysis.
7452 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7453 side-effects.
7454 (tf_send): Likewise.
7455
7456 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7457 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7458 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7459 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7460 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7461 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7462 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7463 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7464 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7465 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7466 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7467 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7468 Likewise.
7469 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7470 tst-cancel-wrappers.sh.
7471 (generated): Remove tst-cancel-wrappers.out.
7472 (tst-cancel-wrappers.out): Remove rule.
7473 * nptl/tst-cancel-wrappers.sh: Remove file.
7474
7475 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7476
7477 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7478 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7479 Update.
7480
7481 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7482
7483 [BZ #23640]
7484 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7485 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7486 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7487 close-on-exec reset for adddup2 file action.
7488 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7489
7490 2019-01-03 Zack Weinberg <zackw@panix.com>
7491
7492 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7493 parameter. Only use deprecated scanf when __USE_GNU is defined
7494 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7495 than 201103L, whichever is relevant for the language being compiled.
7496
7497 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7498 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7499 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7500 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7501 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7502
7503 * libio/iovsscanf.c
7504 * libio/fwscanf.c
7505 * libio/iovswscanf.c
7506 * libio/swscanf.c
7507 * libio/vscanf.c
7508 * libio/vwscanf.c
7509 * libio/wscanf.c
7510 * stdio-common/fscanf.c
7511 * stdio-common/scanf.c
7512 * stdio-common/vfscanf.c
7513 * stdio-common/vfwscanf.c
7514 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7515 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7516 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7517 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7518 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7519 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7520 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7521 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7522 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7523 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7524 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7525 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7526 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7527 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7528 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7529
7530 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7531 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7532 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7533 not sscanf.
7534 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7535 with a preprocessor macro.
7536
7537 * stdio-common/bug21.c, stdio-common/scanf14.c:
7538 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7539 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7540 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7541 to xscanf, xfscanf, xsscanf.
7542
7543 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7544 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7545 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7546 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7547 xfscanf, xsscanf.
7548 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7549 override feature selection macros or provide definitions of u_char etc.
7550 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7551 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7552 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7553 with -std=gnu89.
7554
7555 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7556
7557 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7558 bits/termios-misc.h.
7559 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7560 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7561 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7562 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7563 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7564 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7565
7566 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7567 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7568 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7569 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7570 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7571 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7572 termios-misc.h.
7573 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7574 (sysdep_headers): Add termios-misc.h.
7575
7576 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7577 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7578 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7579
7580 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7581 termios-tcflow.h.
7582 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7583 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7584 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7585 TCSAFLUSH): Move to termios-tcflow.h.
7586 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7587 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7588 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7589 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7590
7591 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7592 termios-c_lflag.h.
7593 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7594 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7595 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7596 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7597 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7598 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7599 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7600 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7601 Likewise.
7602 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7603 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7604 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7605 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7606
7607 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7608 termios-c_cflag.h.
7609 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7610 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7611 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7612 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7613 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7614 termios-c_cflag.h.
7615 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7616 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7617 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7618 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7619
7620 [BZ #23783]
7621 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7622 termios-baud.h.
7623 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7624 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7625 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7626 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7627 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7628 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7629 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7630 __MAX_BAUD): Move to termios-baud.h.
7631 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7632 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7633 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7634 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7635 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7636
7637 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7638 termios-c_oflag.h.
7639 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7640 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7641 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7642 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7643 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7644 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7645 termios-c_oflag.h.
7646 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7647 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7648 FFR1): Likewise.
7649 [USE_MISC] (XTABS): Likewise.
7650 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7651 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7652 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7653 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7654
7655 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7656 termios-c_iflag.h.
7657 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7658 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7659 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7660 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7661 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7662 IUTF8): Move to termios-c_iflag.h.
7663 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7664 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7665 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7666 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7667
7668 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7669 termios-cc.h.
7670 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7671 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7672 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7673 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7674 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7675 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7676 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7677 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7678 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7679 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7680 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7681 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7682
7683 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7684 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7685 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7686 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7687 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7688 termios-struct.h.
7689 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7690 termios-struct.h.
7691 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7692 Likewise.
7693 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7694 Likewise.
7695 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7696 Likewise.
7697 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7698 Likewise.
7699 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7700 _HAVE_C_OSPEED): Define.
7701 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7702 _HAVE_C_OSPEED): Likewise.
7703 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7704 _HAVE_C_OSPEED): Likewise.
7705 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7706 (cfsetospeed): Check for define value instead of existence.
7707 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7708 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7709 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7710 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7711 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7712
7713 [BZ #17783]
7714 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7715 Define.
7716 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7717 (TIOCSER_TEMT): Likewise.
7718 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7719 (TEOCSER_TEMT): Likewise.
7720
7721 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7722
7723 [BZ #24011]
7724 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7725
7726 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7727
7728 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7729
7730 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7731
7732 * sysdeps/htl/pt-barrierattr-setpshared.c
7733 (pthread_barrierattr_setpshared): Add stub warning.
7734 * sysdeps/htl/pt-condattr-setpshared.c
7735 (pthread_condattr_setpshared): Likewise.
7736 * sysdeps/htl/pt-mutexattr-setpshared.c
7737 (pthread_mutexattr_setpshared): Likewise.
7738 * sysdeps/htl/pt-rwlockattr-setpshared.c
7739 (pthread_rwlockattr_setpshared): Likewise.
7740 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7741 (pthread_mutexattr_setpshared): Likewise.
7742
7743 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7744
7745 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7746 constants to match with Linux 4.20.
7747
7748 * sysdeps/mips/mips32/libm-test-ulps: Update.
7749 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7750
7751 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7752
7753 [BZ #24034]
7754 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7755 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7756 than __typeof (...) for the a_ptr variable.
7757
7758 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7759
7760 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7761 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7762 * libio/Makefile (tests): Add tst-sprintf-ub and
7763 tst-sprintf-chk-ub.
7764 (CFLAGS-tst-sprintf-ub.c): New variable.
7765 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7766 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7767 destination buffer and check for overflows in fortified mode.
7768 * libio/libioP.h (PRINTF_CHK): New macro.
7769 * libio/tst-sprintf-chk-ub.c: New file.
7770 * libio/tst-sprintf-ub.c: Likewise.
7771
7772 2019-01-02 Florian Weimer <fweimer@redhat.com>
7773
7774 [BZ #24018]
7775 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7776 failure.
7777
7778 2019-01-02 Florian Weimer <fweimer@redhat.com>
7779
7780 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7781
7782 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7783
7784 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7785 macro.
7786
7787 * sysdeps/unix/sysv/linux/netpacket/packet.h
7788 (PACKET_IGNORE_OUTGOING): New macro.
7789
7790 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7791 macro.
7792
7793 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7794 version to 4.20.
7795 (riscv_flush_icache): New syscall.
7796
7797 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7798 trailing whitespace removed.
7799 * scripts/config.guess: Update to version 2019-01-01.
7800 * scripts/config.sub: Update to version 2019-01-01.
7801 * scripts/move-if-change: Update from gnulib.
7802
7803 * NEWS: Update copyright dates.
7804 * catgets/gencat.c (print_version): Likewise.
7805 * csu/version.c (banner): Likewise.
7806 * debug/catchsegv.sh: Likewise.
7807 * debug/pcprofiledump.c (print_version): Likewise.
7808 * debug/xtrace.sh (do_version): Likewise.
7809 * elf/ldconfig.c (print_version): Likewise.
7810 * elf/ldd.bash.in: Likewise.
7811 * elf/pldd.c (print_version): Likewise.
7812 * elf/sotruss.sh: Likewise.
7813 * elf/sprof.c (print_version): Likewise.
7814 * iconv/iconv_prog.c (print_version): Likewise.
7815 * iconv/iconvconfig.c (print_version): Likewise.
7816 * locale/programs/locale.c (print_version): Likewise.
7817 * locale/programs/localedef.c (print_version): Likewise.
7818 * login/programs/pt_chown.c (print_version): Likewise.
7819 * malloc/memusage.sh (do_version): Likewise.
7820 * malloc/memusagestat.c (print_version): Likewise.
7821 * malloc/mtrace.pl: Likewise.
7822 * manual/libc.texinfo: Likewise.
7823 * nptl/version.c (banner): Likewise.
7824 * nscd/nscd.c (print_version): Likewise.
7825 * nss/getent.c (print_version): Likewise.
7826 * nss/makedb.c (print_version): Likewise.
7827 * posix/getconf.c (main): Likewise.
7828 * scripts/test-installation.pl: Likewise.
7829 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7830
7831 * All files with FSF copyright notices: Update copyright dates
7832 using scripts/update-copyrights.
7833 * locale/programs/charmap-kw.h: Regenerated.
7834 * locale/programs/locfile-kw.h: Likewise.
7835
7836 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7837
7838 * timezone/zdump.c: Update from tzcode 2018i.
7839 * timezone/zic.c: Likewise.
7840
7841 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7842
7843 regex: improve Gnulib port to AIX
7844 From the glibc point of view, this removes duplicate macro
7845 definitions and is obviously safe.
7846 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7847 * posix/regex_internal.h:
7848 (__attribute__, __attribute_warn_unused_result__):
7849 Remove; already defined elsewhere.
7850
7851 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7852
7853 [BZ #24027]
7854 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7855 copying operation. (ncopies had the wrong type, resulting in an
7856 integer wraparound and too few elements being copied.)
7857
7858 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7859
7860 [BZ #24022]
7861 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7862 <asm/syscalls.h> exists with __has_include__ before including it.
7863
7864 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7865
7866 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7867 version to 4.20.
7868
7869 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7870
7871 * hurd/lookup-retry: Include <unistd.h>.
7872 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7873 Release it on return. Handle "pid" magical lookup retry.
7874
7875 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7876
7877 [BZ #10496]
7878 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7879 (t_fmt_ampm): Likewise.
7880 * localedata/locales/aa_ER (t_fmt): Likewise.
7881 (t_fmt_ampm): Likewise.
7882 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7883 (t_fmt_ampm): Likewise.
7884 * localedata/locales/aa_ET (t_fmt): Likewise.
7885 (t_fmt_ampm): Likewise.
7886 * localedata/locales/am_ET (t_fmt): Likewise.
7887 (t_fmt_ampm): Likewise.
7888 * localedata/locales/byn_ER (t_fmt): Likewise.
7889 (t_fmt_ampm): Likewise.
7890 * localedata/locales/om_ET (t_fmt): Likewise.
7891 (t_fmt_ampm): Likewise.
7892 * localedata/locales/sid_ET (t_fmt): Likewise.
7893 (t_fmt_ampm): Likewise.
7894 * localedata/locales/so_DJ (t_fmt): Likewise.
7895 (t_fmt_ampm): Likewise.
7896 * localedata/locales/so_ET (t_fmt): Likewise.
7897 (t_fmt_ampm): Likewise.
7898 * localedata/locales/so_SO (t_fmt): Likewise.
7899 (t_fmt_ampm): Likewise.
7900 * localedata/locales/ti_ER (t_fmt): Likewise.
7901 (t_fmt_ampm): Likewise.
7902 * localedata/locales/ti_ET (t_fmt): Likewise.
7903 (t_fmt_ampm): Likewise.
7904 * localedata/locales/tig_ER (t_fmt): Likewise.
7905 (t_fmt_ampm): Likewise.
7906 * localedata/locales/wal_ET (t_fmt): Likewise.
7907 (t_fmt_ampm): Likewise.
7908
7909 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7910 * localedata/locales/ar_IN (t_fmt): Likewise.
7911 * localedata/locales/bhb_IN (t_fmt): Likewise.
7912 * localedata/locales/bho_IN (t_fmt): Likewise.
7913 * localedata/locales/bi_VU (t_fmt): Likewise.
7914 * localedata/locales/bn_BD (t_fmt): Likewise.
7915 * localedata/locales/bn_IN (t_fmt): Likewise.
7916 * localedata/locales/brx_IN (t_fmt): Likewise.
7917 * localedata/locales/doi_IN (t_fmt): Likewise.
7918 * localedata/locales/en_HK (t_fmt): Likewise.
7919 (t_fmt_ampm): Likewise.
7920 * localedata/locales/en_IN (t_fmt): Likewise.
7921 * localedata/locales/en_PH (t_fmt): Likewise.
7922 * localedata/locales/gu_IN (t_fmt): Likewise.
7923 * localedata/locales/hi_IN (t_fmt): Likewise.
7924 * localedata/locales/hif_FJ (t_fmt): Likewise.
7925 * localedata/locales/hne_IN (t_fmt): Likewise.
7926 * localedata/locales/kn_IN (t_fmt): Likewise.
7927 * localedata/locales/kok_IN (t_fmt): Likewise.
7928 * localedata/locales/ks_IN (t_fmt): Likewise.
7929 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7930 * localedata/locales/mag_IN (t_fmt): Likewise.
7931 * localedata/locales/mai_IN (t_fmt): Likewise.
7932 * localedata/locales/mjw_IN (t_fmt): Likewise.
7933 * localedata/locales/ml_IN (t_fmt): Likewise.
7934 * localedata/locales/mni_IN (t_fmt): Likewise.
7935 * localedata/locales/mr_IN (t_fmt): Likewise.
7936 * localedata/locales/ms_MY (t_fmt): Likewise.
7937 * localedata/locales/pa_IN (t_fmt): Likewise.
7938 * localedata/locales/raj_IN (t_fmt): Likewise.
7939 * localedata/locales/sa_IN (t_fmt): Likewise.
7940 * localedata/locales/sat_IN (t_fmt): Likewise.
7941 * localedata/locales/sd_IN (t_fmt): Likewise.
7942 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7943 * localedata/locales/tcy_IN (t_fmt): Likewise.
7944 * localedata/locales/the_NP (t_fmt): Likewise.
7945 * localedata/locales/to_TO (t_fmt): Likewise.
7946 * localedata/locales/ur_IN (t_fmt): Likewise.
7947
7948 * localedata/locales/hif_FJ (d_t_fmt): Set to
7949 "%A %d %b %Y %I:%M:%S %p".
7950 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7951
7952 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7953 * localedata/locales/ar_BH (t_fmt): Likewise.
7954 * localedata/locales/ar_DZ (t_fmt): Likewise.
7955 * localedata/locales/ar_EG (t_fmt): Likewise.
7956 * localedata/locales/ar_IQ (t_fmt): Likewise.
7957 * localedata/locales/ar_JO (t_fmt): Likewise.
7958 * localedata/locales/ar_KW (t_fmt): Likewise.
7959 * localedata/locales/ar_LB (t_fmt): Likewise.
7960 * localedata/locales/ar_LY (t_fmt): Likewise.
7961 * localedata/locales/ar_OM (t_fmt): Likewise.
7962 * localedata/locales/ar_QA (t_fmt): Likewise.
7963 * localedata/locales/ar_SD (t_fmt): Likewise.
7964 * localedata/locales/ar_SS (t_fmt): Likewise.
7965 * localedata/locales/ar_SY (t_fmt): Likewise.
7966 * localedata/locales/ar_TN (t_fmt): Likewise.
7967 * localedata/locales/ar_YE (t_fmt): Likewise.
7968
7969 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7970 (t_fmt_ampm): Likewise.
7971 * localedata/locales/gez_ET (t_fmt): Likewise.
7972 (t_fmt_ampm): Likewise.
7973
7974 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7975 (t_fmt_ampm): Likewise.
7976 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7977
7978 * localedata/locales/zh_HK (t_fmt):
7979 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7980
7981 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7982 because this locale does not use the 12-hour clock.
7983 (t_fmt): Set to "%Z %H:%M:%S".
7984 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7985
7986 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7987 because this locale does not use the 12-hour clock.
7988 (t_fmt): Set to "%H:%M:%S %Z".
7989 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7990
7991 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7992 because this locale does not use the 12-hour clock.
7993 (t_fmt): Set to "%T".
7994 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7995 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7996
7997 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7998 because this locale does not use the 12-hour clock.
7999 (t_fmt): Set to "%H:%M:%S %Z".
8000 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8001
8002 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8003 because this locale does not use the 12-hour clock.
8004 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8005 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8006
8007 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
8008
8009 [BZ #10496]
8010 [BZ #23724]
8011 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8012 (t_fmt_ampm): Likewise.
8013 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8014 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8015 (d_fmt): Set to "%-d.%-m.%y".
8016
8017 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8018
8019 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8020 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8021 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8022 Likewise.
8023 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8024 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8025 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8026 function.
8027 * support/blob_repeat.c (check_mul_overflow_size_t,
8028 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8029
8030 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8031
8032 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8033
8034 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8035
8036 regex: simplify Gnulib port
8037 This simplifies the code, by removing stuff intended for porting
8038 to Gnulib but no longer needed there.
8039 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8040 uses of libc_hidden_def, weak_alias.
8041 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8042 _Restrict_ except for public-facing headers.
8043 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8044 Remove; already defined elsewhere.
8045 * posix/regex.c, posix/regex_internal.h:
8046 Use __GNUC_PREREQ instead of rolling our own.
8047 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8048
8049 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8050
8051 * benchtests/bench-strlen.c (generic_strlen): New function.
8052 (memchr_strlen): New function.
8053
8054 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8055
8056 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8057 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8058 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8059
8060 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8061
8062 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8063
8064 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8065
8066 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8067 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8068 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8069 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8070 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8071 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8072 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8073
8074 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8075
8076 [BZ #24023]
8077 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8078 PLT reference in libc.so.
8079 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8080 _Q_lltoq and _Q_qtod PLT references in libc.so.
8081
8082 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8083
8084 * benchtests/bench-memchr.c: Cleanup defines.
8085 * benchtests/bench-memcmp.c: Likewise.
8086 * benchtests/bench-memset.c: Likewise.
8087 * benchtests/bench-memset-large.c: Likewise.
8088 * benchtests/bench-memset-walk.c: Likewise.
8089 * benchtests/bench-stpcpy.c: Likewise.
8090 * benchtests/bench-stpncpy.c: Likewise.
8091 * benchtests/bench-strcat.c: Likewise.
8092 * benchtests/bench-strchr.c: Likewise.
8093 * benchtests/bench-strcmp.c: Likewise.
8094 * benchtests/bench-strcpy.c: Likewise.
8095 * benchtests/bench-strcspn.c: Likewise.
8096 * benchtests/bench-string.h: Likewise.
8097 * benchtests/bench-strlen.c: Likewise.
8098 * benchtests/bench-strncat.c: Likewise.
8099 * benchtests/bench-strncmp.c: Likewise.
8100 * benchtests/bench-strncpy.c: Likewise.
8101 * benchtests/bench-strnlen.c: Likewise.
8102 * benchtests/bench-strpbrk.c: Likewise.
8103 * benchtests/bench-strrchr.c: Likewise.
8104 * benchtests/bench-strspn.c: Likewise.
8105
8106 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8107
8108 * stdlib/longlong.h: Update from GCC.
8109
8110 [BZ #23993]
8111 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8112 * configure: Regenerated.
8113 * manual/install.texi (Tools for Compilation): Update minimum GCC
8114 version.
8115 * INSTALL: Regenerated.
8116
8117 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8118
8119 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8120
8121 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8122
8123 * malloc/malloc.c (mremap_chunk): Additional checks.
8124
8125 2018-12-21 Mao Han <han_mao@c-sky.com>
8126
8127 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8128 * scripts/build-many-glibcs.py: Add C-SKY targets.
8129 * sysdeps/csky/Implies: New file.
8130 * sysdeps/csky/Makefile: Likewise.
8131 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8132 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8133 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8134 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8135 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8136 * sysdeps/csky/abiv2/memmove.S: Likewise.
8137 * sysdeps/csky/abiv2/memset.S: Likewise.
8138 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8139 * sysdeps/csky/abiv2/start.S: Likewise.
8140 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8141 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8142 * sysdeps/csky/abiv2/strlen.S: Likewise.
8143 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8144 * sysdeps/csky/abort-instr.h: Likewise.
8145 * sysdeps/csky/atomic-machine.h: Likewise.
8146 * sysdeps/csky/bits/endian.h: Likewise.
8147 * sysdeps/csky/bits/fenv.h: Likewise.
8148 * sysdeps/csky/bits/link.h: Likewise.
8149 * sysdeps/csky/bits/setjmp.h: Likewise.
8150 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8151 * sysdeps/csky/bsd-setjmp.S: Likewise.
8152 * sysdeps/csky/configure: Likewise.
8153 * sysdeps/csky/configure.ac: Likewise.
8154 * sysdeps/csky/dl-machine.h: Likewise.
8155 * sysdeps/csky/dl-procinfo.c: Likewise.
8156 * sysdeps/csky/dl-procinfo.h: Likewise.
8157 * sysdeps/csky/dl-sysdep.h: Likewise.
8158 * sysdeps/csky/dl-tls.h: Likewise.
8159 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8160 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8161 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8162 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8163 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8164 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8165 * sysdeps/csky/fpu/fegetround.c: Likewise.
8166 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8167 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8168 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8169 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8170 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8171 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8172 * sysdeps/csky/fpu/fesetround.c: Likewise.
8173 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8174 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8175 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8176 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8177 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8178 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8179 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8180 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8181 * sysdeps/csky/fpu_control.h: Likewise.
8182 * sysdeps/csky/gccframe.h: Likewise.
8183 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8184 * sysdeps/csky/ldsodefs.h: Likewise.
8185 * sysdeps/csky/libc-tls.c: Likewise.
8186 * sysdeps/csky/linkmap.h: Likewise.
8187 * sysdeps/csky/machine-gmon.h: Likewise.
8188 * sysdeps/csky/memusage.h: Likewise.
8189 * sysdeps/csky/nofpu/Implies: Likewise.
8190 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8191 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8192 * sysdeps/csky/nptl/Makefile: Likewise.
8193 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8194 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8195 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8196 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8197 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8198 * sysdeps/csky/nptl/tls.h: Likewise.
8199 * sysdeps/csky/preconfigure: Likewise.
8200 * sysdeps/csky/sfp-machine.h: Likewise.
8201 * sysdeps/csky/sotruss-lib.c: Likewise.
8202 * sysdeps/csky/stackinfo.h: Likewise.
8203 * sysdeps/csky/sysdep.h: Likewise.
8204 * sysdeps/csky/tininess.h: Likewise.
8205 * sysdeps/csky/tst-audit.h: Likewise.
8206 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8207 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8208 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8209 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8210 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8211 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8212 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8213 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8214 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8215 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8216 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8217 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8218 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8219 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8220 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8221 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8222 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8223 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8224 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8225 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8226 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8227 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8228 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8229 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8230 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8231 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8232 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8233 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8234 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8235 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8236 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8237 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8238 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8239 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8240 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8241 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8242 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8243 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8244 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8245 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8246 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8247 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8248 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8249 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8250
8251 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8252
8253 * include/time.h (__difftime64): Add.
8254 * time/difftime.c (subtract): convert to 64-bit time.
8255 * time/difftime.c (__difftime64): Add.
8256 * time/difftime.c (__difftime): Wrap around __difftime64.
8257
8258 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8259
8260 * manual/examples/add.c: Remove redundant "if not".
8261 * manual/examples/argp-ex1.c: Likewise.
8262 * manual/examples/argp-ex2.c: Likewise.
8263 * manual/examples/argp-ex3.c: Likewise.
8264 * manual/examples/argp-ex4.c: Likewise.
8265 * manual/examples/atexit.c: Likewise.
8266 * manual/examples/db.c: Likewise.
8267 * manual/examples/dir.c: Likewise.
8268 * manual/examples/dir2.c: Likewise.
8269 * manual/examples/execinfo.c: Likewise.
8270 * manual/examples/filecli.c: Likewise.
8271 * manual/examples/filesrv.c: Likewise.
8272 * manual/examples/fmtmsgexpl.c: Likewise.
8273 * manual/examples/genpass.c: Likewise.
8274 * manual/examples/inetcli.c: Likewise.
8275 * manual/examples/inetsrv.c: Likewise.
8276 * manual/examples/isockad.c: Likewise.
8277 * manual/examples/longopt.c: Likewise.
8278 * manual/examples/memopen.c: Likewise.
8279 * manual/examples/memstrm.c: Likewise.
8280 * manual/examples/mkdirent.c: Likewise.
8281 * manual/examples/mkfsock.c: Likewise.
8282 * manual/examples/mkisock.c: Likewise.
8283 * manual/examples/mygetpass.c: Likewise.
8284 * manual/examples/pipe.c: Likewise.
8285 * manual/examples/popen.c: Likewise.
8286 * manual/examples/rprintf.c: Likewise.
8287 * manual/examples/search.c: Likewise.
8288 * manual/examples/select.c: Likewise.
8289 * manual/examples/setjmp.c: Likewise.
8290 * manual/examples/sigh1.c: Likewise.
8291 * manual/examples/sigusr.c: Likewise.
8292 * manual/examples/stpcpy.c: Likewise.
8293 * manual/examples/strdupa.c: Likewise.
8294 * manual/examples/strftim.c: Likewise.
8295 * manual/examples/subopt.c: Likewise.
8296 * manual/examples/swapcontext.c: Likewise.
8297 * manual/examples/termios.c: Likewise.
8298 * manual/examples/testopt.c: Likewise.
8299 * manual/examples/testpass.c: Likewise.
8300 * manual/examples/timeval_subtract.c: Likewise.
8301
8302 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8303
8304 * sysdeps/x86/fpu/math_private.h: New file.
8305 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8306
8307 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8308 definition.
8309 (cosh): Likewise.
8310 (tanh): Likewise.
8311
8312 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8313
8314 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8315 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8316 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8317 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8318 fields.
8319 (_dl_show_auxv): Give a special treatment to
8320 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8321 and AT_L3_CACHEGEOMETRY.
8322 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8323 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8324 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8325 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8326
8327 2018-12-19 Andreas Schwab <schwab@suse.de>
8328
8329 * nscd/connections.c (check_use): Don't abort on invalid len.
8330
8331 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8332
8333 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8334 values in the 64bit value cases.
8335
8336 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8337
8338 * include/time.h
8339 (__ctime64_r): Add.
8340 * time/ctime_r.c
8341 (__ctime64_r): Add.
8342 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8343
8344 * include/time.h
8345 (__ctime64): Add.
8346 * time/gmtime.c
8347 (__ctime64): Add.
8348 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8349
8350 * include/time.h
8351 (__gmtime64_r): Add.
8352 * time/gmtime.c
8353 (__gmtime64_r): Add.
8354 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8355
8356 * include/time.h
8357 (__gmtime64): Add.
8358 * time/gmtime.c
8359 (__gmtime64): Add.
8360 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8361
8362 * include/time.h
8363 (__localtime64_r): Add.
8364 * time/localtime.c
8365 (__localtime64_r): Add.
8366 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8367
8368 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8369
8370 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8371 kernel_sigction definition.
8372
8373 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8374
8375 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8376
8377 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8378 __syscall_rt_sigaction.
8379 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8380 (kernel_sigaction): Use Linux generic defintion.
8381 (STUB): Define.
8382 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8383 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8384 (__syscall_rt_sigaction): Remove implementation.
8385 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8386 hidden.
8387 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8388 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8389 INTERNAL_SYSCALL): Remove definitions.
8390 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8391 action and signal set size.
8392 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8393 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8394
8395 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8396 James Clarke <jrtc27@jrtc27.com>
8397
8398 [BZ #23967]
8399 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8400 Define if SA_RESTORER is defined.
8401 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8402 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8403 already defined.
8404 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8405 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8406 definitions.
8407 (HAS_SA_RESTORER): Define.
8408 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8409 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8410 (HAS_SA_RESTORER): Define.
8411 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8412 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8413 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8414 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8415 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8416
8417 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8418
8419 * sysdeps/unix/sysv/linux/kernel-features.h
8420 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8421 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8422 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8423 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8424 (__ASSUME_ST_INO_64_BIT): Likewise.
8425 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8426 <kernel-features.h>.
8427 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8428 Remove conditional code.
8429 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8430 <kernel-features.h>.
8431 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8432 Remove conditional code.
8433 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8434 <kernel-features.h>.
8435 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8436 Remove conditional code.
8437 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8438 <kernel-features.h>.
8439 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8440 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8441
8442 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8443
8444 * sysdeps/s390/multiarch/ifunc-resolve.h
8445 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8446 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8447 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8448 Delete macro definition.
8449 (s390_libc_ifunc_init): Rename to
8450 s390_libc_ifunc_expr_stfle_init.
8451 * sysdeps/s390/bzero: Use
8452 s390_libc_ifunc_expr_stfle_init instead of
8453 s390_libc_ifunc_init.
8454 * sysdeps/s390/memcmp.c: Likewise.
8455 * sysdeps/s390/memcpy.c: Likewise.
8456 * sysdeps/s390/mempcpy.c: Likewise.
8457 * sysdeps/s390/memset.c: Likewise.
8458
8459 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8460
8461 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8462 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8463
8464 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8465
8466 * sysdeps/s390/multiarch/Makefile
8467 (sysdep_routines): Remove wmemcmp variants.
8468 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8469 * sysdeps/s390/multiarch/ifunc-impl-list.c
8470 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8471 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8472 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8473 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8474 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8475 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8476 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8477 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8478
8479 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8480
8481 * sysdeps/s390/multiarch/Makefile
8482 (sysdep_routines): Remove wmemset variants.
8483 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8484 * sysdeps/s390/multiarch/ifunc-impl-list.c
8485 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8486 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8487 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8488 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8489 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8490 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8491 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8492 * sysdeps/s390/ifunc-wmemset.h: New file.
8493
8494 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8495
8496 * sysdeps/s390/multiarch/Makefile
8497 (sysdep_routines): Remove wmemchr variants.
8498 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8499 * sysdeps/s390/multiarch/ifunc-impl-list.c
8500 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8501 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8502 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8503 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8504 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8505 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8506 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8507 * sysdeps/s390/ifunc-wmemchr.h: New file.
8508
8509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8510
8511 * sysdeps/s390/multiarch/Makefile
8512 (sysdep_routines): Remove wcscspn variants.
8513 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8514 * sysdeps/s390/multiarch/ifunc-impl-list.c
8515 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8516 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8517 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8518 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8519 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8520 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8521 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8522 * sysdeps/s390/ifunc-wcscspn.h: New file.
8523
8524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8525
8526 * sysdeps/s390/multiarch/Makefile
8527 (sysdep_routines): Remove wcspbrk variants.
8528 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8529 * sysdeps/s390/multiarch/ifunc-impl-list.c
8530 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8531 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8532 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8533 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8534 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8535 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8536 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8537 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8538
8539 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8540
8541 * sysdeps/s390/multiarch/Makefile
8542 (sysdep_routines): Remove wcsspn variants.
8543 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8544 * sysdeps/s390/multiarch/ifunc-impl-list.c
8545 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8546 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8547 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8548 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8549 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8550 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8551 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8552 * sysdeps/s390/ifunc-wcsspn.h: New file.
8553
8554 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8555
8556 * sysdeps/s390/multiarch/Makefile
8557 (sysdep_routines): Remove wcsrchr variants.
8558 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8559 * sysdeps/s390/multiarch/ifunc-impl-list.c
8560 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8561 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8562 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8563 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8564 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8565 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8566 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8567 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8568
8569 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8570
8571 * sysdeps/s390/multiarch/Makefile
8572 (sysdep_routines): Remove wcschrnul variants.
8573 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8574 * sysdeps/s390/multiarch/ifunc-impl-list.c
8575 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8576 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8577 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8578 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8579 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8580 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8581 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8582 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8583
8584 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8585
8586 * sysdeps/s390/multiarch/Makefile
8587 (sysdep_routines): Remove wcschr variants.
8588 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8589 * sysdeps/s390/multiarch/ifunc-impl-list.c
8590 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8591 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8592 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8593 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8594 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8595 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8596 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8597 * sysdeps/s390/ifunc-wcschr.h: New file.
8598
8599 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8600
8601 * sysdeps/s390/multiarch/Makefile
8602 (sysdep_routines): Remove wcsncmp variants.
8603 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8604 * sysdeps/s390/multiarch/ifunc-impl-list.c
8605 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8606 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8607 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8608 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8609 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8610 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8611 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8612 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8613
8614 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8615
8616 * sysdeps/s390/multiarch/Makefile
8617 (sysdep_routines): Remove wcscmp variants.
8618 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8619 * sysdeps/s390/multiarch/ifunc-impl-list.c
8620 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8621 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8622 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8623 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8624 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8625 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8626 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8627 * sysdeps/s390/ifunc-wcscmp.h: New file.
8628
8629 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8630
8631 * sysdeps/s390/multiarch/Makefile
8632 (sysdep_routines): Remove wcsncat variants.
8633 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8634 * sysdeps/s390/multiarch/ifunc-impl-list.c
8635 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8636 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8637 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8638 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8639 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8640 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8641 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8642 * sysdeps/s390/ifunc-wcsncat.h: New file.
8643
8644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8645
8646 * sysdeps/s390/multiarch/Makefile
8647 (sysdep_routines): Remove wcscat variants.
8648 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8649 * sysdeps/s390/multiarch/ifunc-impl-list.c
8650 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8651 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8652 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8653 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8654 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8655 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8656 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8657 * sysdeps/s390/ifunc-wcscat.h: New file.
8658
8659 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8660
8661 * sysdeps/s390/multiarch/Makefile
8662 (sysdep_routines): Remove wcpncpy variants.
8663 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8664 * sysdeps/s390/multiarch/ifunc-impl-list.c
8665 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8666 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8667 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8668 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8669 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8670 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8671 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8672 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8673
8674 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8675
8676 * sysdeps/s390/multiarch/Makefile
8677 (sysdep_routines): Remove wcsncpy variants.
8678 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8679 * sysdeps/s390/multiarch/ifunc-impl-list.c
8680 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8681 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8682 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8683 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8684 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8685 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8686 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8687 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8688
8689 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8690
8691 * sysdeps/s390/multiarch/Makefile
8692 (sysdep_routines): Remove wcpcpy variants.
8693 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8694 * sysdeps/s390/multiarch/ifunc-impl-list.c
8695 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8696 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8697 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8698 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8699 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8700 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8701 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8702 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8703
8704 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8705
8706 * sysdeps/s390/multiarch/Makefile
8707 (sysdep_routines): Remove wcscpy variants.
8708 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8709 * sysdeps/s390/multiarch/ifunc-impl-list.c
8710 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8711 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8712 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8713 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8714 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8715 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8716 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8717 * sysdeps/s390/ifunc-wcscpy.h: New file.
8718
8719 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8720
8721 * sysdeps/s390/multiarch/Makefile
8722 (sysdep_routines): Remove wcsnlen variants.
8723 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8724 * sysdeps/s390/multiarch/ifunc-impl-list.c
8725 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8726 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8727 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8728 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8729 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8730 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8731 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8732 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8733
8734 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8735
8736 * sysdeps/s390/multiarch/Makefile
8737 (sysdep_routines): Remove wcslen variants.
8738 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8739 * sysdeps/s390/multiarch/ifunc-impl-list.c
8740 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8741 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8742 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8743 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8744 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8745 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8746 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8747 * sysdeps/s390/ifunc-wcslen.h: New file.
8748
8749 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8750
8751 * sysdeps/s390/multiarch/Makefile
8752 (sysdep_routines): Remove memrchr variants.
8753 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8754 * sysdeps/s390/multiarch/ifunc-impl-list.c
8755 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8756 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8757 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8758 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8759 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8760 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8761 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8762 * sysdeps/s390/ifunc-memrchr.h: New file.
8763
8764 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8765
8766 * sysdeps/s390/multiarch/Makefile
8767 (sysdep_routines): Remove memccpy variants.
8768 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8769 * sysdeps/s390/multiarch/ifunc-impl-list.c
8770 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8771 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8772 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8773 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8774 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8775 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8776 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8777 * sysdeps/s390/ifunc-memccpy.h: New file.
8778
8779 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8780
8781 * sysdeps/s390/multiarch/Makefile
8782 (sysdep_routines): Remove rawmemchr variants.
8783 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8784 * sysdeps/s390/multiarch/ifunc-impl-list.c
8785 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8786 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8787 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8788 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8789 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8790 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8791 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8792 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8793
8794 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8795
8796 * sysdeps/s390/multiarch/Makefile
8797 (sysdep_routines): Remove memchr variants.
8798 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8799 * sysdeps/s390/multiarch/ifunc-impl-list.c
8800 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8801 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8802 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8803 * sysdeps/s390/multiarch/memchr.c: Move to ...
8804 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8805 * sysdeps/s390/ifunc-memchr.h: New file.
8806 * sysdeps/s390/s390-64/memchr.S: Move to ...
8807 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8808 for 31/64bit and ifunc handling.
8809 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8810 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8811 * sysdeps/s390/s390-32/memchr.S: Likewise.
8812
8813 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8814
8815 * sysdeps/s390/multiarch/Makefile
8816 (sysdep_routines): Remove strcspn variants.
8817 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8818 * sysdeps/s390/multiarch/ifunc-impl-list.c
8819 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8820 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8821 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8822 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8823 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8824 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8825 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8826 * sysdeps/s390/ifunc-strcspn.h: New file.
8827
8828 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8829
8830 * sysdeps/s390/multiarch/Makefile
8831 (sysdep_routines): Remove strpbrk variants.
8832 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8833 * sysdeps/s390/multiarch/ifunc-impl-list.c
8834 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8835 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8836 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8837 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8838 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8839 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8840 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8841 * sysdeps/s390/ifunc-strpbrk.h: New file.
8842
8843 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8844
8845 * sysdeps/s390/multiarch/Makefile
8846 (sysdep_routines): Remove strspn variants.
8847 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8848 * sysdeps/s390/multiarch/ifunc-impl-list.c
8849 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8850 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8851 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8852 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8853 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8854 * sysdeps/s390/multiarch/strspn.c: Move to ...
8855 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8856 * sysdeps/s390/ifunc-strspn.h: New file.
8857
8858 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8859
8860 * sysdeps/s390/multiarch/Makefile
8861 (sysdep_routines): Remove strrchr variants.
8862 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8863 * sysdeps/s390/multiarch/ifunc-impl-list.c
8864 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8865 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8866 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8867 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8868 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8869 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8870 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8871 * sysdeps/s390/ifunc-strrchr.h: New file.
8872
8873 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8874
8875 * sysdeps/s390/multiarch/Makefile
8876 (sysdep_routines): Remove strchrnul variants.
8877 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8878 * sysdeps/s390/multiarch/ifunc-impl-list.c
8879 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8880 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8881 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8882 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8883 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8884 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8885 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8886 * sysdeps/s390/ifunc-strchrnul.h: New file.
8887
8888 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8889
8890 * sysdeps/s390/multiarch/Makefile
8891 (sysdep_routines): Remove strchr variants.
8892 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8893 * sysdeps/s390/multiarch/ifunc-impl-list.c
8894 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8895 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8896 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8897 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8898 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8899 * sysdeps/s390/multiarch/strchr.c: Move to ...
8900 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8901 * sysdeps/s390/ifunc-strchr.h: New file.
8902
8903 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8904
8905 * sysdeps/s390/multiarch/Makefile
8906 (sysdep_routines): Remove strncmp variants.
8907 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8908 * sysdeps/s390/multiarch/ifunc-impl-list.c
8909 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8910 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8911 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8912 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8913 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8914 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8915 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8916 * sysdeps/s390/ifunc-strncmp.h: New file.
8917
8918 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8919
8920 * sysdeps/s390/multiarch/Makefile
8921 (sysdep_routines): Remove strcmp variants.
8922 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8923 * sysdeps/s390/multiarch/ifunc-impl-list.c
8924 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8925 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8926 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8927 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8928 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8929 * sysdeps/s390/ifunc-strcmp.h: New file.
8930 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8931 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8932 for 31/64bit and ifunc handling.
8933 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8934 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8935 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8936
8937 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8938
8939 * sysdeps/s390/multiarch/Makefile
8940 (sysdep_routines): Remove strncat variants.
8941 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8942 * sysdeps/s390/multiarch/ifunc-impl-list.c
8943 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8944 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8945 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8946 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8947 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8948 * sysdeps/s390/multiarch/strncat.c: Move to ...
8949 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8950 * sysdeps/s390/ifunc-strncat.h: New file.
8951
8952 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8953
8954 * sysdeps/s390/multiarch/Makefile
8955 (sysdep_routines): Remove strcat variants.
8956 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8957 * sysdeps/s390/multiarch/ifunc-impl-list.c
8958 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8959 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8960 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8961 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8962 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8963 * sysdeps/s390/multiarch/strcat.c: Move to ...
8964 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8965 * sysdeps/s390/ifunc-strcat.h: New file.
8966
8967 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8968
8969 * sysdeps/s390/multiarch/Makefile
8970 (sysdep_routines): Remove stpncpy variants.
8971 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8972 * sysdeps/s390/multiarch/ifunc-impl-list.c
8973 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8974 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8975 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8976 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8977 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8978 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8979 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8980 * sysdeps/s390/ifunc-stpncpy.h: New file.
8981
8982 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8983
8984 * sysdeps/s390/multiarch/Makefile
8985 (sysdep_routines): Remove strncpy variants.
8986 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8987 * sysdeps/s390/multiarch/ifunc-impl-list.c
8988 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8989 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8990 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8991 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8992 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8993 * sysdeps/s390/ifunc-strncpy.h: New file.
8994 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8995 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8996 and adjust ifunc handling.
8997 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8998 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8999 and adjust ifunc handling.
9000 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9001 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9002
9003 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9004
9005 * sysdeps/s390/multiarch/Makefile
9006 (sysdep_routines): Remove stpcpy variants.
9007 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9008 * sysdeps/s390/multiarch/ifunc-impl-list.c
9009 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9010 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9011 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9012 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9013 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9014 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9015 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9016 * sysdeps/s390/ifunc-stpcpy.h: New file.
9017
9018 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9019
9020 * sysdeps/s390/multiarch/Makefile
9021 (sysdep_routines): Remove strcpy variants.
9022 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9023 * sysdeps/s390/multiarch/ifunc-impl-list.c
9024 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9025 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9026 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9027 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9028 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9029 * sysdeps/s390/ifunc-strcpy.h: New file.
9030 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9031 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9032 for 31/64bit and ifunc handling.
9033 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9034 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9035 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9036
9037 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9038
9039 * sysdeps/s390/multiarch/Makefile
9040 (sysdep_routines): Remove strnlen variants.
9041 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9042 * sysdeps/s390/multiarch/ifunc-impl-list.c
9043 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9044 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9045 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9046 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9047 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9048 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9049 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9050 * sysdeps/s390/ifunc-strnlen.h: New file.
9051
9052 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9053
9054 * sysdeps/s390/multiarch/Makefile
9055 (sysdep_routines): Remove strlen variants.
9056 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9057 * sysdeps/s390/multiarch/ifunc-impl-list.c
9058 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9059 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9060 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9061 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9062 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9063 * sysdeps/s390/multiarch/strlen.c: Move to ...
9064 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9065 * sysdeps/s390/ifunc-strlen.h: New file.
9066
9067 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9068
9069 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9070 * sysdeps/s390/multiarch/ifunc-impl-list.c
9071 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9072 * sysdeps/s390/ifunc-memmem.h: New file.
9073 * sysdeps/s390/memmem.c: Likewise.
9074 * sysdeps/s390/memmem-c.c: Likewise.
9075 * sysdeps/s390/memmem-vx.c: Likewise.
9076
9077 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9078
9079 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9080 * sysdeps/s390/multiarch/ifunc-impl-list.c
9081 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9082 * sysdeps/s390/ifunc-strstr.h: New file.
9083 * sysdeps/s390/strstr.c: Likewise.
9084 * sysdeps/s390/strstr-c.c: Likewise.
9085 * sysdeps/s390/strstr-vx.c: Likewise.
9086
9087 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9088
9089 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9090 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9091 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9092 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9093 New defines.
9094 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9095 * sysdeps/s390/memmove-c.c: New file.
9096 * sysdeps/s390/memmove.c: Likewise.
9097 * sysdeps/s390/multiarch/ifunc-impl-list.c
9098 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9099
9100 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9101
9102 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9103 * sysdeps/s390/configure.ac: Add check for z13 support.
9104 * sysdeps/s390/configure: Regenerated.
9105
9106 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9107
9108 * sysdeps/s390/memcopy.h: New file.
9109
9110 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9111
9112 * sysdeps/s390/s390-32/bcopy.S: Remove.
9113 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9114
9115 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9116
9117 * sysdeps/s390/ifunc-memcpy.h: New File.
9118 * sysdeps/s390/memcpy.S: Move to ...
9119 * sysdeps/s390/memcpy-z900.S ... here.
9120 Move implementations from memcpy-s390x.s to here.
9121 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9122 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9123 Remove memcpy/mempcpy variants.
9124 * sysdeps/s390/Makefile (sysdep_routines):
9125 Add memcpy/mempcpy variants.
9126 * sysdeps/s390/multiarch/ifunc-impl-list.c
9127 (__libc_ifunc_impl_list): Adjust ifunc variants for
9128 memcpy and mempcpy.
9129 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9130 to ...
9131 * sysdeps/s390/memcpy.c: ... here.
9132 Adjust ifunc variants for memcpy.
9133 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9134 * sysdeps/s390/mempcpy.c: ... here.
9135 Adjust ifunc variants for mempcpy.
9136 * sysdeps/s390/mempcpy.S: Delete file.
9137
9138 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9139
9140 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9141 * sysdeps/s390/memcpy.S: ... here.
9142 Adjust to be usable for 31/64bit.
9143 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9144 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9145 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9146 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9147 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9148 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9149 Adjust to be usable for 31/64bit.
9150 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9151 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9152 * sysdeps/s390/multiarch/memcpy.c: ... here.
9153 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9154
9155 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9156
9157 * sysdeps/s390/ifunc-memcmp.h: New File.
9158 * sysdeps/s390/memcmp.S: Move to ...
9159 * sysdeps/s390/memcmp-z900.S ... here.
9160 Move implementations from memcmp-s390x.s to here.
9161 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9162 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9163 Remove memcmp variants.
9164 * sysdeps/s390/Makefile (sysdep_routines):
9165 Add memcmp variants.
9166 * sysdeps/s390/multiarch/ifunc-impl-list.c
9167 (__libc_ifunc_impl_list): Adjust ifunc variants for
9168 memcmp.
9169 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9170 to ...
9171 * sysdeps/s390/memcmp.c: ... here.
9172 Adjust ifunc variants for memcmp.
9173
9174 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9175
9176 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9177 * sysdeps/s390/memcmp.S: ... here.
9178 Adjust to be usable for 31/64bit.
9179 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9180 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9181 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9182 Remove memcmp.
9183 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9184 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9185 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9186 Adjust to be usable for 31/64bit.
9187 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9188 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9189 * sysdeps/s390/multiarch/memcmp.c: ... here.
9190 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9191
9192 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9193
9194 * sysdeps/s390/s390-32/bzero.S: Delete file.
9195 * sysdeps/s390/s390-64/bzero.S: Likewise.
9196 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9197 * sysdeps/s390/bzero.c: New file.
9198 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9199 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9200 * sysdeps/s390/multiarch/ifunc-impl-list.c
9201 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9202
9203 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9204
9205 * sysdeps/s390/ifunc-memset.h: New File.
9206 * sysdeps/s390/memset.S: Move to ...
9207 * sysdeps/s390/memset-z900.S ... here.
9208 Move implementations from memset-s390x.s to here.
9209 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9210 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9211 Remove memset variants.
9212 * sysdeps/s390/Makefile (sysdep_routines):
9213 Add memset variants.
9214 * sysdeps/s390/multiarch/ifunc-impl-list.c
9215 (__libc_ifunc_impl_list): Adjust ifunc variants for
9216 memset.
9217 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9218 to ...
9219 * sysdeps/s390/memset.c: ... here.
9220 Adjust ifunc variants for memset.
9221
9222 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9223
9224 * sysdeps/s390/s390-64/memset.S: Move to ...
9225 * sysdeps/s390/memset.S: ... here.
9226 Adjust to be usable for 31/64bit.
9227 * sysdeps/s390/s390-32/memset.S: Delete File.
9228 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9229 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9230 Remove memset.
9231 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9232 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9233 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9234 Adjust to be usable for 31/64bit.
9235 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9236 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9237 * sysdeps/s390/multiarch/memset.c: ... here.
9238 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9239
9240 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9241
9242 * sysdeps/s390/multiarch/ifunc-resolve.h
9243 (s390_libc_ifunc_init, s390_libc_ifunc,
9244 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9245
9246 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9247
9248 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9249 * sysdeps/s390/configure.ac: Add check for z10 support.
9250 * sysdeps/s390/configure: Regenerated.
9251
9252 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9253
9254 * sysdeps/i386/atomic-machine.h: Merged with ...
9255 * sysdeps/x86_64/atomic-machine.h: To ...
9256 * sysdeps/x86/atomic-machine.h: This. New file.
9257
9258 2018-12-18 Florian Weimer <fweimer@redhat.com>
9259
9260 Rewrite locale/gen-translit.pl in Python.
9261 * locale/Makefile (generated): Add C-translit.h.
9262 (before-compile): Add $(objpfx)C-translit.h.
9263 (C-translit.h): Move to $(objpfx). Create target directory.
9264 Build using Python script.
9265 * locale/gen-translit.py: New file.
9266 * locale/gen-translit.pl: Remove file.
9267 * locale/C-translit.h.in: Change comment character to '#' for
9268 easier parsing without a C preprocessor.
9269 * locale/C-translit.h: Remove generated file.
9270 * manual/install.texi (Tools for Compilation): Do not mention
9271 C-translit.h.
9272 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9273 Remove locale/C-translit.h.
9274 * scripts/update-copyrights: Likewise.
9275 * INSTALL: Regenerate.
9276
9277 2018-12-18 Florian Weimer <fweimer@redhat.com>
9278
9279 [BZ #23995]
9280 * localedata/locales/bi_VU: Remove executable bit from file.
9281
9282 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9283
9284 * include/time.h
9285 (__localtime64): Add.
9286 * manual/maint.texi: Document Y2038 symbol handling.
9287 * time/localtime.c
9288 (__localtime64): Add.
9289 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9290
9291 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9292
9293 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9294 Do not clobber r12.
9295
9296 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9297 to allow extra macros from first or second sources.
9298 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9299 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9300 (tests-special): Add $(objpfx)tst-mman-consts.out.
9301 ($(objpfx)tst-mman-consts.out): New makefile target.
9302
9303 2018-12-17 Mao Han <han_mao@c-sky.com>
9304
9305 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9306 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9307 without stat64 system call support.
9308 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9309 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9310 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9311 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9312 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9313 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9314 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9315 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9316 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9317 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9318 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9319
9320 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9321
9322 regex: fix storage-exhaustion error
9323 [BZ #18040]
9324 * posix/regexec.c (get_subexp):
9325 Do not continue if storage is exhausted.
9326
9327 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9328
9329 regex: fix heap-use-after-free error
9330 [BZ #18040]
9331 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9332 https://debbugs.gnu.org/32592
9333 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9334 call extend_buffers which reallocates the re_string_t internal buffer.
9335 Local variable 'buf' was not updated in such case, resulting in
9336 use-after-free.
9337 * posix/regexec.c (get_subexp): Update 'buf' after call to
9338 get_subexp_sub.
9339
9340 2018-12-15 Florian Weimer <fweimer@redhat.com>
9341
9342 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9343 (minimum_stride_size): Use it.
9344 (support_blob_repeat_allocate): Likewise.
9345
9346 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9347
9348 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9349 definition.
9350 (acosh): Likewise.
9351 (atanh): Likewise.
9352
9353 2018-12-14 Florian Weimer <fweimer@redhat.com>
9354
9355 * manual/process.texi (Process Creation Concepts): Remove
9356 documentation of process (ID) lifetime. List more process
9357 creation functions. Reference Process Identification section.
9358 (Process Identification): Add information about process ID
9359 lifetime. Describe Linux thread/task IDs.
9360 * manual/signal.texi (Signaling Another Process): Mention that the
9361 signal is always sent to the process.
9362
9363 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9364
9365 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9366 and tst-ldbl-efgcvt.
9367 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9368 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9369 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9370 (fcvt_tests, output_error, output_r_error, do_test): Use the
9371 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9372 select the type of floating-point variables and arguments; to
9373 produce extra tests for double and conversion specifiers for
9374 printf; and to set the names of called functions.
9375 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9376 in tst-efgcvt-template.c.
9377 * misc/tst-ldbl-efgcvt.c: Likewise.
9378
9379 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9380
9381 * nss/Makefile (tst-nss-test3.out): New rule.
9382
9383 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9384
9385 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9386 clobber sp.
9387
9388 2018-12-13 fanjinke <fanjinke@hygon.cn>
9389
9390 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9391 "HygonGenuine".
9392
9393 2018-12-13 Andreas Schwab <schwab@suse.de>
9394
9395 [BZ #23861]
9396 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9397 (__pthread_rwlock_rdlock_full): Update expected value for
9398 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9399 * nptl/tst-rwlock-pwn.c: New file.
9400 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9401
9402 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9403
9404 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9405 definition.
9406
9407 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9408
9409 * benchtests/scripts/compare_bench.py (do_compare): write to
9410 stderr in casestat is not present.
9411 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9412 stderr in case timings field is not present. Also string showing
9413 the output filename goes into the stderr.
9414
9415 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9416
9417 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9418 and ZeroDivisorError exceptions.
9419 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9420 argument to loop through user provided statistics.
9421 * benchtests/scripts/compare_bench.py (main): Include the --stats
9422 argument.
9423
9424 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9425
9426 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9427 instead of return.
9428
9429 2018-12-12 Florian Weimer <fweimer@redhat.com>
9430
9431 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9432 clause to copyright header.
9433
9434 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9435
9436 [BZ #23614]
9437 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9438 registers saved in the stack frame.
9439 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9440 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9441
9442 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9443
9444 * include/bits/monetary-ldbl.h: New file.
9445 * include/bits/printf-ldbl.h: Likewise.
9446 * include/bits/stdio-ldbl.h: Likewise.
9447 * include/bits/stdlib-ldbl.h: Likewise.
9448 * include/bits/syslog-ldbl.h: Likewise.
9449 * include/bits/wchar-ldbl.h: Likewise.
9450
9451 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9452
9453 * libio/libio.h: Remove redirection for _IO_vfprintf.
9454
9455 2018-12-11 Andreas Schwab <schwab@suse.de>
9456
9457 * Makerules: Remove all references to abilist-pattern.
9458 (update-all-abi): Simplify find expression.
9459
9460 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9461
9462 [BZ #23961]
9463 * math/auto-libm-test-in: Add new test case.
9464 * math/auto-libm-test-out-pow: Regenerated.
9465 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9466
9467 2018-12-10 DJ Delorie <dj@redhat.com>
9468
9469 [BZ #23948]
9470 * support/test-container.c: Move postclean step to before we
9471 change namespaces.
9472
9473 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9474
9475 * scripts/gen-as-const.py (main): Handle --python option.
9476 * scripts/gen-py-const.awk: Remove.
9477 * Makerules (py-const-script): Use gen-as-const.py.
9478 ($(py-const)): Likewise.
9479 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9480 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9481 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9482 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9483 ~PTHREAD_MUTEX_NO_ELISION_NP.
9484 * manual/README.pretty-printers: Update reference to
9485 gen-py-const.awk.
9486
9487 * scripts/glibcextract.py: New file.
9488 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9489 or tempfile. Import glibcexctract.
9490 (compute_c_consts): Remove. Moved to glibcextract.py.
9491 (gen_test): Update reference to compute_c_consts.
9492 (main): Likewise.
9493 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9494 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9495 * sysdeps/unix/sysv/linux/Makefile
9496 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9497 Redirect stderr as well as stdout.
9498
9499 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9500
9501 [BZ #19767]
9502 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9503 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9504 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9505 ALWAYS_USE_VSYSCALL.
9506 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9507 ALWAYS_USE_VSYSCALL.
9508 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9509 ALWAYS_USE_VSYSCALL.
9510
9511 2018-12-10 Florian Weimer <fweimer@redhat.com>
9512
9513 [BZ #23972]
9514 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9515 offset instead of count for clarity. Fix typo in comment.
9516 (__old_getdents64): Keep track of previous offset. Use it to call
9517 handle_overflow.
9518 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9519 that d_off is never zero.
9520
9521 2018-12-10 Andreas Schwab <schwab@suse.de>
9522
9523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9524 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9526 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9527 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9528
9529 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9530
9531 * timezone/private.h: Update from tzcode 2018g.
9532 * timezone/tzfile.h: Likewise.
9533 * timezone/tzselect.ksh: Likewise.
9534 * timezone/zdump.c: Likewise.
9535 * timezone/zic.c: Likewise.
9536
9537 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9538
9539 [BZ #23490]
9540 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9541 (do_test): Adjust buffer size and fix format.
9542
9543 2018-12-07 DJ Delorie <dj@redhat.com>
9544
9545 [BZ #23907]
9546 * malloc/tst-tcfree3.c: New.
9547 * malloc/Makefile: Add it.
9548
9549 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9550
9551 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9552
9553 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9554
9555 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9556 used as a mask for the mode argument of __vfscanf_internal and
9557 __vfwscanf_internal.
9558 * stdio-common/vfscanf-internal.c
9559 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9560 (__strtof128_internal): Define to __wcstof128_internal.
9561 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9562 __strtof128_internal or __wcstof128_internal when the format of
9563 long double is the same as _Float128.
9564
9565 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9566
9567 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9568 * posix/confstr.c (confstr): Rename to __confstr.
9569 (__confstr): Add hidden def.
9570 (confstr): Add weak alias for __confstr.
9571 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9572 confstr.
9573
9574 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9575
9576 * NEWS: Mention getcpu.
9577 * include/sched.h (__getcpu): New libc_hidden_proto.
9578 * manual/resource.texi: Document getcpu.
9579 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9580 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9581 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9582 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9583 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9584 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9585 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9586 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9587 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9588 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9589 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9590 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9591 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9592 Likewise.
9593 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9594 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9595 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9597 Likewise.
9598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9599 Likewise.
9600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9601 Likewise.
9602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9603 Likewise.
9604 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9605 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9606 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9607 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9608 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9609 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9610 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9611 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9612 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9613 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9614 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9615 Also check getcpu.
9616
9617 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9618
9619 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9620 functions.
9621 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9622
9623 2018-12-07 Florian Weimer <fweimer@redhat.com>
9624
9625 [BZ #17405]
9626 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9627 * posix/Versions (GLIBC_2.29): Export
9628 posix_spawn_file_actions_addfchdir_np.
9629 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9630 * posix/spawn_faction_destroy.c
9631 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9632 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9633 and the field action.fchdir_action.
9634 * posix/tst-spawn-chdir.c (add_chdir): New function.
9635 (do_test): Add do_fchdir loop. Call add_chdir.
9636 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9637 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9638 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9639 posix_spawn_file_actions_addfchdir_np.
9640 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9641 Likewise.
9642 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9643 Likewise.
9644 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9645 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9646 Likewise.
9647 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9648 Likewise.
9649 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9650 Likewise.
9651 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9652 Likewise.
9653 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9654 Likewise.
9655 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9656 Likewise.
9657 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9658 (GLIBC_2.29): Likewise.
9659 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9660 (GLIBC_2.29): Likewise.
9661 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9662 (GLIBC_2.29): Likewise.
9663 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9664 (GLIBC_2.29): Likewise.
9665 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9666 Likewise.
9667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9668 (GLIBC_2.29): Likewise.
9669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9670 (GLIBC_2.29): Likewise.
9671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9672 (GLIBC_2.29): Likewise.
9673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9674 (GLIBC_2.29): Likewise.
9675 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9676 Likewise.
9677 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9678 Likewise.
9679 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9680 Likewise.
9681 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9682 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9683 Likewise.
9684 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9685 Likewise.
9686 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9687 Likewise.
9688 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9689 Likewise.
9690
9691 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9692
9693 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9694 trailing whitespace removed.
9695 * scripts/config.guess: Update to version 2018-11-28.
9696 * scripts/config.sub: Update to version 2018-11-28.
9697 * scripts/install-sh: Update to version 2018-03-11.20.
9698 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9699 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9700
9701 2018-12-07 Florian Weimer <fweimer@redhat.com>
9702
9703 [BZ #23927]
9704 CVE-2018-19591
9705 * inet/tst-if_index-long.c: New file.
9706 * inet/Makefile (tests): Add tst-if_index-long.
9707
9708 2018-12-07 Florian Weimer <fweimer@redhat.com>
9709
9710 * support/check.h (support_record_failure_is_failed): Declare.
9711 * support/descriptors.h: New file.
9712 * support/support_descriptors.c: Likewise.
9713 * support/tst-support_descriptors.c: Likewise.
9714 * support/support_record_failure.c
9715 (support_record_failure_is_failed): New function.
9716 * support/Makefile (libsupport-routines): Add support_descriptors.
9717 (tests): Add tst-support_descriptors.
9718
9719 2018-12-05 Zack Weinberg <zackw@panix.com>
9720 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9721
9722 * stdio-common/vfprintf-internal.c
9723 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9724 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9725 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9726 and __no_long_double.
9727 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9728 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9729 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9730 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9731 and __nldbl_*syslog* functions.
9732 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9733 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9734 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9735 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9736 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9737 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9738 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9739 (__nldbl_vwprintf, __nldbl_wprintf):
9740 Directly call the appropriate __v*printf_internal routine, passing
9741 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9742 variable names.
9743 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9744 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9745 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9746 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9747 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9748 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9749 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9750 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9751 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9752 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9753 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9754 (__nldbl_syslog, __nldbl_vsyslog):
9755 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9756 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9757 appropriate.
9758 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9759 appropriate.
9760
9761 2018-12-05 Zack Weinberg <zackw@panix.com>
9762 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9763
9764 [BZ #11319]
9765 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9766 Moved here from debug/vsprintf_chk.c.
9767 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9768 and completion logic for the strfile to match exactly what
9769 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9770 _IO_str_init_static_internal instead of maxlen-1.
9771 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9772 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9773 __vsprintf_internal.
9774
9775 * debug/vsprintf_chk.c (__vsprintf_chk)
9776 * debug/sprintf_chk.c (__sprintf_chk):
9777 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9778 'flags' argument is positive, and slen as maxlen. No need to lock
9779 the FILE and/or construct a temporary FILE. Minimize and normalize
9780 header inclusions and variable names. Do not libc_hidden_def anything.
9781
9782 * debug/asprintf_chk.c (__asprintf_chk)
9783 * debug/dprintf_chk.c (__dprintf_chk)
9784 * debug/fprintf_chk.c (__fprintf_chk)
9785 * debug/fwprintf_chk.c (__fwprintf_chk)
9786 * debug/printf_chk.c (__printf_chk)
9787 * debug/snprintf_chk.c (__snprintf_chk)
9788 * debug/swprintf_chk.c (__swprintf_chk)
9789 * debug/vasprintf_chk.c (__vasprintf_chk)
9790 * debug/vdprintf_chk.c (__vdprintf_chk)
9791 * debug/vfprintf_chk.c (__vfprintf_chk)
9792 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9793 * debug/vprintf_chk.c (__vprintf_chk)
9794 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9795 * debug/vswprintf_chk.c (__vswprintf_chk)
9796 * debug/vwprintf_chk.c (__vwprintf_chk)
9797 * debug/wprintf_chk.c (__wprintf_chk):
9798 Directly call the corresponding vxxprintf_internal function, passing
9799 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9800 the FILE and/or construct a temporary FILE. Minimize and normalize
9801 header inclusions and variable names. Do not libc_hidden_def anything.
9802
9803 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9804 __obstack_vprintf_internal.
9805 (__obstack_vprintf_chk): Convert into a wrapper that calls
9806 __obstack_vprintf_internal (these two functions already had the
9807 same code) and move to new file...
9808 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9809 file.
9810 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9811 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9812 * debug/Makefile (routines): Add vobprintf_chk.
9813
9814 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9815 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9816 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9817 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9818 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9819 (__nldbl___obstack_vfprintf_chk):
9820 Directly call the corresponding vxxprintf_internal function,
9821 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9822 duplicate comparison of slen with 0 or maxlen from the corresponding
9823 non-__nldbl function.
9824
9825 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9826 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9827 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9828 Remove libc_hidden_proto.
9829
9830 * stdio-common/vfprintf-internal.c
9831 (__vfprintf_internal, __vfwprintf_internal):
9832 Do not check _IO_FLAGS2_FORTIFY.
9833 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9834 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9835 a comment explaining why it has the maxlen argument.
9836 (_IO_acquire_lock_clear_flags2_fct): Remove.
9837 (_IO_acquire_lock_clear_flags2): Remove.
9838 (_IO_release_lock): Remove conditional statement which will
9839 now never execute.
9840 (_IO_acquire_lock): Remove variable which is now unused.
9841 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9842 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9843
9844 * stdio-common/Makefile (tests): Add tst-bz11319 and
9845 tst-bz11319-fortify2.
9846 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9847 * stdio-common/tst-bz11319-fortify2.c: New file.
9848 * stdio-common/tst-bz11319.c: Likewise.
9849
9850 2018-12-05 Zack Weinberg <zackw@panix.com>
9851 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9852
9853 * misc/syslog.c: Include libioP.h, not iolibio.h.
9854 (__vsyslog_internal): New function with the former body of
9855 __vsyslog_chk; takes mode_flags argument same as
9856 __v*printf_internal. Call __vfprintf_internal directly.
9857
9858 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9859 Remove libc_hidden_def.
9860 (__syslog, __syslog_chk): Use __vsyslog_internal.
9861 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9862
9863 * include/sys/syslog.h: Add multiple inclusion guard.
9864 Add prototype for __vsyslog_internal.
9865 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9866
9867 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9868 Use __vsyslog_internal.
9869
9870 2018-12-05 Zack Weinberg <zackw@panix.com>
9871 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9872
9873 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9874 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9875 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9876 New functions.
9877 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9878 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9879
9880 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9881 Include wctype.h here if COMPILE_WPRINTF is defined.
9882 Define __vfprintf_internal or __vfwprintf_internal, depending
9883 on COMPILE_WPRINTF.
9884 Temporarily, on entry to this function, update mode_flags
9885 according to the environmental settings corresponding to
9886 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9887 Throughout, check mode_flags instead of __ldbl_is_dbl and
9888 _IO_FLAGS2_FORTIFY on the destination FILE.
9889 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9890 Include vfprintf-internal.c. Don't include wctype.h.
9891 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9892 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9893 and vfprintf.
9894 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9895 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9896 and vfwprintf.
9897 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9898
9899 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9900 and add mode_flags argument; use __vfprintf_internal.
9901 (__vdprintf): New function. Alias vdprintf to this.
9902 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9903 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9904 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9905 (__obstack_printf): Use __obstack_printf_internal.
9906 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9907 public aliases __vsnprintf and vsnprintf.
9908 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9909 called internally.
9910 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9911 public aliases _IO_vsprintf and vsprintf.
9912 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9913 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9914 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9915 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9916 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9917
9918 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9919 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9920 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9921 * stdio-common/printf.c: Use __vfprintf_internal.
9922
9923 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9924 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9925 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9926
9927 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9928 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9929 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9930 __vfwprintf_internal.
9931
9932 * libio/libio.h: Remove libc_hidden_proto and declaration for
9933 _IO_vfprintf.
9934 Remove declaration of _IO_vfwprintf.
9935 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9936 _IO_vsprintf.
9937 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9938 _IO_obstack_printf.
9939 * include/stdio.h: Add prototype for __vasprintf.
9940 (__vsnprintf): Remove declaration, because there are no more
9941 internal calls.
9942 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9943 declaration, because there are no more internal calls.
9944
9945 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9946 __vsnprintf_internal, instead of _IO_vsnprintf.
9947 * argp/argp-help.c (__argp_error, __argp_failure): Use
9948 __vasprintf_internal, instead of _IO_vasprintf.
9949 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9950 redefine, because there are no more internal calls.
9951
9952 2018-12-05 Zack Weinberg <zackw@panix.com>
9953 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9954
9955 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9956 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9957 Include libio/strfile.h instead of libioP.h.
9958 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9959 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9960 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9961 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9962 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9963 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9964 necessary. Do not set __no_long_double. Normalize variable names.
9965 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9966 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9967 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9968 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9969 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9970 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9971 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9972 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9973 Do not set __no_long_double. Normalize variable names.
9974
9975 2018-12-05 Zack Weinberg <zackw@panix.com>
9976 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9977
9978 * stdio-common/isoc99_scanf.c
9979 * stdio-common/isoc99_fscanf.c
9980 * stdio-common/isoc99_sscanf.c
9981 * stdio-common/isoc99_vscanf.c
9982 * stdio-common/isoc99_vfscanf.c
9983 * stdio-common/isoc99_vsscanf.c
9984 * wcsmbs/isoc99_wscanf.c
9985 * wcsmbs/isoc99_fwscanf.c
9986 * wcsmbs/isoc99_swscanf.c
9987 * wcsmbs/isoc99_vwscanf.c
9988 * wcsmbs/isoc99_vfwscanf.c
9989 * wcsmbs/isoc99_vswscanf.c:
9990 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9991 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9992 No need to lock and unlock the FILE passed to that function.
9993
9994 * stdio-common/vfscanf-internal.c
9995 (__vfscanf_internal, __vfwscanf_internal):
9996 Don't look at _IO_FLAGS2_SCANF_STD.
9997 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9998 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9999 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10000
10001 2018-12-05 Zack Weinberg <zackw@panix.com>
10002 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10003
10004 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10005 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10006 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10007 * libio/strfile.h: Add multiple inclusion guard.
10008 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10009
10010 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10011 consistency with the other version of this file.
10012 (ldbl_compat_symbol): New macro.
10013 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10014 New macro.
10015
10016 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10017 Define __vfscanf_internal or __vfwscanf_internal, depending on
10018 COMPILE_WSCANF; don't define any other public symbols.
10019 Remove errval and code to set errp.
10020 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10021 as the mode_flags argument.
10022 (encode_error, conv_error, input_error): Don't set errval.
10023 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10024 Include vfscanf-internal.c.
10025 * stdio-common/vfscanf.c: New file defining the public entry
10026 point vfscanf, which calls __vfscanf_internal.
10027 * stdio-common/vfwscanf.c: New file defining the public entry
10028 point vfwscanf, which calls __vfwscanf_internal.
10029
10030 * stdio-common/iovfscanf.c: New file.
10031 * stdio-common/iovfwscanf.c: Likewise.
10032
10033 * stdio-common/Makefile (routines): Add vfscanf-internal,
10034 vfwscanf-internal, iovfscanf, iovfwscanf.
10035 * stdio-common/Versions: Mention GLIBC_2.29, so that
10036 it can be used in SHLIB_COMPAT expressions.
10037 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10038 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10039 Call __vfscanf_internal, instead of _IO_vfscanf.
10040 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10041 _IO_vfscanf.
10042 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10043 _IO_vfwscanf.
10044
10045 * libio/iovsscanf.c: Clean up includes, when possible. Use
10046 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10047 __vfscanf_internal or __vfwscanf_internal directly.
10048 * libio/iovswscanf.c: Likewise.
10049 * libio/swscanf.c: Likewise.
10050 * libio/vscanf.c: Likewise.
10051 * libio/vwscanf.c: Likewise.
10052 * libio/wscanf.c: Likewise.
10053 * stdio-common/isoc99_fscanf.c: Likewise.
10054 * stdio-common/isoc99_scanf.c: Likewise.
10055 * stdio-common/isoc99_sscanf.c: Likewise.
10056 * stdio-common/isoc99_vfscanf.c: Likewise.
10057 * stdio-common/isoc99_vscanf.c: Likewise.
10058 * stdio-common/isoc99_vsscanf.c: Likewise.
10059 * stdio-common/scanf.c: Likewise.
10060 * stdio-common/sscanf.c: Likewise.
10061 * wcsmbs/isoc99_fwscanf.c: Likewise.
10062 * wcsmbs/isoc99_swscanf.c: Likewise.
10063 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10064 * wcsmbs/isoc99_vswscanf.c: Likewise.
10065 * wcsmbs/isoc99_vwscanf.c: Likewise.
10066 * wcsmbs/isoc99_wscanf.c: Likewise.
10067
10068 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10069
10070 * include/time.h
10071 (__tz_compute): Replace time_t with __time64_t.
10072 (__tz_convert): Replace time_t* with __time64_t.
10073 (__offtime): Replace time_t* with __time64_t.
10074 * time/gmtime.c
10075 (__gmtime_r): Adjust call to __tz_convert.
10076 (gmtime): Likewise.
10077 * time/localtime.c
10078 (__localtime_r): Likewise.
10079 (localtime): Likewise.
10080 * time/offtime.c: Replace time_t with __time64_t.
10081 * time/tzset.c: Likewise.
10082
10083 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10084
10085 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10086 dynamic linker unless [$(run-built-tests) = yes].
10087
10088 2018-12-03 DJ Delorie <dj@delorie.com>
10089
10090 * support/test-container.c (check_for_unshare_hints): New.
10091 (main): Call it if unshare fails. Add support for "su" scriptlet
10092 command.
10093
10094 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10095
10096 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10097 'START' to indicate that start text should be output.
10098 (gen_test): Likewise.
10099 (main): Generate 'START' for first symbol or '--' line, or at end
10100 of input if not previously generated.
10101
10102 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10103
10104 [BZ #19767]
10105 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10106 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10107 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10108 ALWAYS_USE_VSYSCALL.
10109
10110 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10111
10112 [BZ #23913]
10113 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10114 new_argv by one.
10115
10116 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10117
10118 [BZ #23923]
10119 * locale/programs/localedef.c: Declare boolean hard_links default true.
10120 (options): Add --no-hard-links option.
10121 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10122 * locale/programs/localedef.h: Declare prototype for hard_links.
10123 * locale/programs/locfile.c (write_locale_data): Don't use hard
10124 links if hard_links is false.
10125
10126 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10127
10128 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10129 cpu_features_basic.
10130 (__cache_sysconf): Likewise.
10131 (init_cacheinfo): Likewise.
10132 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10133 populate COMMON_CPUID_INDEX_80000007 and
10134 COMMON_CPUID_INDEX_80000008.
10135 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10136 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10137 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10138 (init_cpu_features): Use _Static_assert on
10139 index_arch_Fast_Unaligned_Load.
10140 __get_cpuid_registers and __get_arch_feature. Updated for
10141 cpu_features_basic. Set stepping in cpu_features.
10142 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10143 (FEATURE_INDEX_2): New.
10144 (FEATURE_INDEX_MAX): Changed to enum.
10145 (COMMON_CPUID_INDEX_D_ECX_1): New.
10146 (COMMON_CPUID_INDEX_80000007): Likewise.
10147 (COMMON_CPUID_INDEX_80000008): Likewise.
10148 (cpuid_registers): Likewise.
10149 (cpu_features_basic): Likewise.
10150 (CPU_FEATURE_USABLE): Likewise.
10151 (bit_arch_XXX_Usable): Likewise.
10152 (cpu_features): Use cpuid_registers and cpu_features_basic.
10153 (bit_arch_XXX): Reweritten.
10154 (bit_cpu_XXX): Likewise.
10155 (index_cpu_XXX): Likewise.
10156 (reg_XXX): Likewise.
10157 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10158 <support/check.h>.
10159 (CHECK_CPU_FEATURE): New.
10160 (CHECK_CPU_FEATURE_USABLE): Likewise.
10161 (cpu_kinds): Likewise.
10162 (do_test): Print vendor, family, model and stepping. Check
10163 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10164 (TEST_FUNCTION): Removed.
10165 Include <support/test-driver.c> instead of
10166 "../../test-skeleton.c".
10167 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10168 Check POPCNT instead of POPCOUNT.
10169 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10170
10171 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10172
10173 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10174 there is no element in `consts'.
10175
10176 2018-12-01 Florian Weimer <fweimer@redhat.com>
10177
10178 * support/support_capture_subprocess.c
10179 (support_capture_subprocess): Check that pipe descriptors have
10180 expected values. Close original pipe descriptors in subprocess.
10181
10182 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10183
10184 [BZ #23032]
10185 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10186 attr with __pthread_default_barrierattr.
10187 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10188 attr with __pthread_default_condattr.
10189 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10190 attr with __pthread_default_mutexattr.
10191 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10192 attr with __pthread_default_rwlockattr.
10193
10194 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10195
10196 * manual/tunables.texi (POSIX Thread Tunables): New node.
10197 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10198 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10199 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10200 __pthread_tunables_init.
10201 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10202 (max_adaptive_count): Define.
10203 * nptl/pthread_mutex_conf.c: New file.
10204 * nptl/pthread_mutex_conf.h: New file.
10205 * sysdeps/generic/adaptive_spin_count.h: New file.
10206 * sysdeps/nptl/dl-tunables.list: New file.
10207 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10208 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10209 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10210 Likewise.
10211
10212 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10213
10214 [BZ #20544]
10215 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10216 * stdlib/on_exit.c (__on_exit): Likewise.
10217 * stdlib/Makefile (tests): Add tst-bz20544.
10218 * stdlib/tst-bz20544.c: New test.
10219
10220 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10221
10222 [BZ #19767]
10223 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10224 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10225 New.
10226
10227 2018-11-30 Florian Weimer <fweimer@redhat.com>
10228
10229 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10230 Extend error logging.
10231 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10232 symbol.
10233
10234 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10235
10236 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10237 __sigismember instead of sigismember.
10238 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10239 cancel_handler): New definitions.
10240 (do_system): Use posix_spawn instead of fork and execl and remove
10241 reentracy code.
10242 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10243 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10244 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10245 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10246 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10247 * sysdeps/unix/sysv/linux/system.c: Likewise.
10248
10249 [BZ #22834]
10250 [BZ #17490]
10251 * NEWS: Add new semantic for atfork with popen and system.
10252 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10253 fork and execl.
10254
10255 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10256
10257 [BZ #23690]
10258 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10259 modification order when accessing reloc_result->addr.
10260 * include/link.h (reloc_result): Add field init.
10261 * nptl/Makefile (tests): Add tst-audit-threads.
10262 (modules-names): Add tst-audit-threads-mod1 and
10263 tst-audit-threads-mod2.
10264 Add rules to build tst-audit-threads.
10265 * nptl/tst-audit-threads-mod1.c: New file.
10266 * nptl/tst-audit-threads-mod2.c: Likewise.
10267 * nptl/tst-audit-threads.c: Likewise.
10268 * nptl/tst-audit-threads.h: Likewise.
10269
10270 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10271
10272 * scripts/gen-as-const.py: New file.
10273 * scripts/gen-as-const.awk: Remove.
10274 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10275 gen-as-const.py.
10276 ($(objpfx)test-as-const-%.c): Likewise.
10277
10278 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10279
10280 * elf/dl-exception.c: Include <_itoa.h>.
10281
10282 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10283
10284 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10285 returned by __f_setlk.
10286
10287 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10288 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10289
10290 * elf/Makefile (tests-internal): Add tst-create_format1.
10291 * elf/dl-exception.c (_dl_exception_create_format): Support
10292 %x, %lx and %zx.
10293 * elf/tst-create_format1.c: New file.
10294
10295 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10296
10297 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10298 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10299 gnulib.)
10300 * argp/argp-help.c (__argp_failure): Likewise.
10301
10302 2018-11-29 Mao Han <han_mao@c-sky.com>
10303
10304 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10305 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10306 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10307 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10308 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10309 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10310 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10311 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10312 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10313 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10314 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10315 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10316 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10317 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10318 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10319 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10320 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10321 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10322 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10323 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10324 (R_CKCORE_TLS_TPOFF32): New defines.
10325
10326 2018-11-29 Florian Weimer <fweimer@redhat.com>
10327
10328 * posix/Makefile (before-compile): Remove testcases.h and
10329 ptestcases.h.
10330 (generated): Add testcases.h and ptestcases.h.
10331 (testcases.h, ptestcases.h): Move to $(objpfx).
10332 (runtests.o): Add dependency on testcases.h.
10333 (runptests.o): Add dependency on ptestcases.h.
10334 * posix/testcases.h, posix/ptestcases.h: Remove files.
10335 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10336 not touch posix/testcases.h and posix/ptestcases.h.
10337
10338 2018-11-28 Florian Weimer <fweimer@redhat.com>
10339
10340 support: Add signal support to support_capture_subprocess_check.
10341 * support/capture_subprocess.h (support_capture_subprocess_check):
10342 Adjust comment and rename parameter.
10343 * support/support_capture_subprocess_check.c
10344 (print_actual_status): New function.
10345 (support_capture_subprocess_check): Support negative
10346 status_or_signal. Call print_actual_status.
10347 * support/tst-support_capture_subprocess.c (do_test): Call
10348 support_capture_subprocess_check.
10349 * libio/tst-vtables-common.c (termination_status)
10350 (init_termination_status): Remove.
10351 (check_for_termination): Adjust support_capture_subprocess_check
10352 call.
10353 (do_test): Remove call to init_termination_status.
10354
10355 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10356
10357 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10358 source directory instead of a copy.
10359 (CommandList.create_copy_dir): Remove.
10360
10361 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10362
10363 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10364
10365 2018-11-28 Florian Weimer <fweimer@redhat.com>
10366
10367 * support/support.h (support_quote_string): Do not use str
10368 parameter name.
10369
10370 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10371
10372 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10373 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10374
10375 2018-11-27 Florian Weimer <fweimer@redhat.com>
10376
10377 * support/support.h (support_quote_string): Declare.
10378 * support/support_quote_string.c: New file.
10379 * support/tst-support_quote_string.c: Likewise.
10380 * support/Makefile (libsupport-routines): Add
10381 support_quote_string.
10382 (tests): Add tst-support_quote_string.
10383
10384 2018-11-27 Florian Weimer <fweimer@redhat.com>
10385
10386 [BZ #23927]
10387 CVE-2018-19591
10388 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10389 descriptor leak in case of ENODEV error.
10390
10391 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10392
10393 [BZ #19767]
10394 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10395 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10396 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10397
10398 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10399
10400 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10401 Error for unknown lines.
10402
10403 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10404
10405 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10406 Touch additional files.
10407
10408 2018-11-26 Florian Weimer <fweimer@redhat.com>
10409
10410 [BZ #23907]
10411 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10412 double-frees.
10413
10414 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10415
10416 [BZ #19767]
10417 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10418 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10419 SHARED. Include sysdep.h.
10420 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10421 ALWAYS_USE_VSYSCALL.
10422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10423 ALWAYS_USE_VSYSCALL.
10424
10425 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10426
10427 [BZ #19767]
10428 * nptl/Makefile (tests-static): Add tst-cond11-static.
10429 (tests): Likewise.
10430 * nptl/tst-cond11-static.c: New File.
10431 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10432 tst-affinity-static.
10433 (tests): Likewise.
10434 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10435 instead of SHARED.
10436 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10437 (USE_VSYSCALL): Likewise.
10438 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10439 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10440 instead of SHARED.
10441 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10442 SHARED.
10443 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10444 New.
10445
10446 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10447
10448 [BZ #23915]
10449 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10450 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10451 Undefine.
10452
10453 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10454
10455 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10456 (tst-cet-legacy-1a-ARGS): New.
10457 ($(objpfx)tst-cet-legacy-1a): New target.
10458 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10459
10460 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10461
10462 * conform/conformtest.py (CompileSubTest.__init__): Set
10463 self.run_early to False.
10464 (ExecuteSubTest.__init__): Likewise.
10465 (HeaderTests.run): Try running all non-optional, non-XFAILed
10466 compilation tests in a single execution of the compiler.
10467
10468 * conform/conformtest.py (CompileSubTest): New class.
10469 (ExecuteSubTest): Likewise.
10470 (ElementTest.run): Rename to gen_subtests. Append tests to
10471 self.subtests instead of running them.
10472 (ConstantTest.run): Likewise.
10473 (SymbolTest.run): Likewise.
10474 (TypeTest.run): Likewise.
10475 (TagTest.run): Likewise.
10476 (FunctionTest.run): Likewise.
10477 (VariableTest.run): Likewise.
10478 (MacroFunctionTest.run): Likewise.
10479 (MacroStrTest.run): Likewise.
10480 (HeaderTests.handle_test_line): Generate subtests for tests.
10481 (HeaderTests.run): Run subtests for tests.
10482
10483 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10484
10485 * math/Versions (GLIBC_2.29): Add pow.
10486 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10487 symbol.
10488 * math/w_pow.c: New file.
10489 * sysdeps/i386/fpu/w_pow.c: New file.
10490 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10491 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10492 and add necessary aliases.
10493 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10494 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10495 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10496 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10497 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10498 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10499 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10500 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10501 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10502 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10503 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10504 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10505 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10506 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10507 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10512 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10513 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10514 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10515 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10516 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10517 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10518 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10519 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10520 __pow.
10521 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10522 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10523 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10524
10525 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10526
10527 * math/Versions (GLIBC_2.29): Add log2.
10528 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10529 symbol.
10530 * math/w_log2.c: New file.
10531 * sysdeps/i386/fpu/w_log2.c: New file.
10532 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10533 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10534 and add necessary aliases.
10535 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10536 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10537 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10538 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10539 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10540 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10541 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10542 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10543 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10544 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10545 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10546 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10547 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10548 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10549 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10550 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10552 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10554 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10555 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10556 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10557 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10558 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10559 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10560 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10561
10562 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10563
10564 * math/Versions (GLIBC_2.29): Add log.
10565 * math/w_log_compat.c (__log_compat): Change to versioned compat
10566 symbol.
10567 * math/w_log.c: New file.
10568 * sysdeps/i386/fpu/w_log.c: New file.
10569 * sysdeps/ia64/fpu/e_log.S: Update.
10570 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10571 and add necessary aliases.
10572 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10573 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10574 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10575 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10576 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10577 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10578 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10579 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10580 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10581 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10582 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10583 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10584 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10585 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10586 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10591 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10592 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10593 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10594 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10595 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10596 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10597 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10598 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10599 __log.
10600 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10601 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10602 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10603 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10604
10605 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10606
10607 * math/Versions (GLIBC_2.29): Add exp and exp2.
10608 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10609 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10610 * math/w_exp_compat.c (__exp_compat): Likewise.
10611 * math/w_exp.c: New file.
10612 * math/w_exp2.c: New file.
10613 * sysdeps/i386/fpu/w_exp.c: New file.
10614 * sysdeps/i386/fpu/w_exp2.c: New file.
10615 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10616 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10617 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10618 and add necessary aliases.
10619 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10620 and add necessary aliases.
10621 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10622 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10623 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10624 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10625 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10626 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10627 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10628 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10629 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10630 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10631 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10632 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10633 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10634 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10635 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10636 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10637 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10642 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10643 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10644 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10645 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10646 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10647 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10648 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10649 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10650 (__ieee754_exp): Rename to __exp.
10651 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10652 (__ieee754_exp): Rename to __exp.
10653 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10654 (__ieee754_exp): Rename to __exp.
10655 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10656 __exp.
10657 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10658
10659 2018-11-20 DJ Delorie <dj@redhat.com>
10660
10661 * malloc/malloc.c (tcache_entry): Add key field.
10662 (tcache_put): Set it.
10663 (tcache_get): Likewise.
10664 (_int_free): Check for double free in tcache.
10665 * malloc/tst-tcfree1.c: New.
10666 * malloc/tst-tcfree2.c: New.
10667 * malloc/Makefile: Run the new tests.
10668 * manual/probes.texi: Document memory_tcache_double_free probe.
10669
10670 * dlfcn/dlerror.c (check_free): Prevent double frees.
10671
10672 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10673
10674 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10675
10676 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10677
10678 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10679 in tests. Use names for format arguments.
10680 (ConstantTest.run): Likewise.
10681 (SymbolTest.run): Likewise.
10682 (TypeTest.run): Likewise.
10683 (TagTest.run): Likewise.
10684 (FunctionTest.run): Likewise.
10685 (VariableTest.run): Likewise.
10686 (MacroFunctionTest.run): Likewise.
10687 (MacroStrTest.run): Likewise.
10688 (HeaderTests.__init__): Set self.num_tests.
10689 (HeaderTests.handle_test_line): Set test.num. Increment
10690 self.num_tests.
10691
10692 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10693
10694 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10695 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10696 SEEK_SET.
10697
10698 2018-11-19 Mao Han <han_mao@c-sky.com>
10699
10700 * scripts/config.guess: Update to version 2018-08-29.
10701 * scripts/config.sub: Update to version 2018-08-29.
10702
10703 2018-11-19 Florian Weimer <fweimer@redhat.com>
10704
10705 support: Print timestamps in timeout handler.
10706 * support/support_test_main.c (print_timestamp): New function.
10707 (signal_handler): Use it to print the termination time and the
10708 time of the last write to standard output.
10709
10710 2018-11-16 Zack Weinberg <zackw@panix.com>
10711 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10712
10713 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10714 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10715 argument.
10716 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10717 and add flags argument. Check flags instead of __ldbl_is_dbl when
10718 deciding whether to set is_long_double.
10719 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10720 passing zero for flags argument.
10721 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10722
10723 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10724 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10725 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10726 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10727 variable names. Remove libc_hidden_def/libc_hidden_proto from
10728 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10729 longer called from within the library.
10730 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10731 for __nldbl___vstrfmon_l, declare it explicitly.
10732
10733 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10734
10735 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10736
10737 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10738 macros
10739 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10740 F_SETLK64, F_SETLKW64, respectively.
10741 * sysdeps/mach/hurd/f_setlk.c: New file.
10742 * sysdeps/mach/hurd/f_setlk.h: New file.
10743 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10744 f_setlk.
10745 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10746 (__libc_fcntl): Move non-flock operations to...
10747 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10748 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10749
10750 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10751
10752 mktime: DEBUG_MKTIME cleanup
10753 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10754 And it’s no longer needed now that glibc and Gnulib both have
10755 their own testing mechanisms for mktime.
10756 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10757
10758 mktime: fix non-EOVERFLOW errno handling
10759 [BZ#23789]
10760 mktime was not properly reporting failures when the underlying
10761 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10762 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10763 The problem could happen on non-glibc platforms, with Gnulib.
10764 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10765 (tm_diff): ... this simpler function, which does not change errno.
10766 All callers changed to deal with errno themselves.
10767 (ranged_convert, __mktime_internal): Return failure immediately if
10768 the underlying function reports any failure other than EOVERFLOW.
10769 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10770 gap code fails.
10771
10772 mktime: fix bug with Y2038 DST transition
10773 [BZ#23789]
10774 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10775 mishandle a DST transition that jumps over the Y2038 boundary.
10776 No such DST transitions are known so this is only a theoretical
10777 bug, but we might as well do things right.
10778
10779 mktime: make more room for overflow
10780 [BZ#23789]
10781 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10782 This is so that we can add tm_diff results to a previous guess,
10783 which will be useful in a later patch.
10784
10785 mktime: simplify offset guess
10786 [BZ#23789]
10787 * time/mktime.c (__mktime_internal): Omit excess precision.
10788
10789 mktime: new test for mktime failure
10790 [BZ#23789]
10791 Based on a test suggested by Albert Aribaud in:
10792 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10793 * time/Makefile (tests): Add bug-mktime4.
10794 * time/bug-mktime4.c: New file.
10795
10796 mktime: fix EOVERFLOW bug
10797 [BZ#23789]
10798 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10799 Include libc-config.h, not config.h, for __set_errno.
10800 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10801
10802 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10803
10804 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10805 __attribute_copy__ to copy attributes from name. Drop static qualifier
10806 to avoid warnings about leaf attribute not having effect on static
10807 functions.
10808
10809 2018-11-13 Florian Weimer <fweimer@redhat.com>
10810
10811 * malloc/malloc.c (fastbin_push_entry): New function.
10812 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10813 (REMOVE_FB): Remove macro.
10814 (_int_malloc): Use fastbin_pop_entry and reindent.
10815 (_int_free): Use fastbin_push_entry.
10816 (malloc_consolidate): Use atomic_exchange_acquire.
10817
10818 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10819
10820 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10821 alias attribute, not with strong_alias.
10822
10823 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10824 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10825 with additional parameter thread.
10826 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10827 in terms of __hidden_ver2.
10828 (hidden_tls_def): New macro.
10829 (libc_hidden_tls_def): Likewise.
10830 (rtld_hidden_tls_def): Likewise.
10831 (libm_hidden_tls_def): Likewise.
10832 (libmvec_hidden_tls_def): Likewise.
10833 (libresolv_hidden_tls_def): Likewise.
10834 (librt_hidden_tls_def): Likewise.
10835 (libdl_hidden_tls_def): Likewise.
10836 (libnss_files_hidden_tls_def): Likewise.
10837 (libnsl_hidden_tls_def): Likewise.
10838 (libnss_nisplus_hidden_tls_def): Likewise.
10839 (libutil_hidden_tls_def): Likewise.
10840 (libutil_hidden_tls_def): Likweise.
10841 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10842 libc_hidden_tls_def.
10843 (__sim_disabled_exceptions_thread): Likewise.
10844 (__sim_round_mode_thread): Likewise.
10845
10846 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10847 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10848 copy attributes from name.
10849
10850 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10851
10852 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10853 Use __attribute_copy__ to copy attributes from name.
10854
10855 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10856 with __hidden_ver1 call.
10857 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10858 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10859 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10860 (__cosf): Do not declare here.
10861 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10862 (__sincosf): Do not declare here.
10863 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10864 (__sinf): Do not declare here.
10865
10866 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10867 (__BIG_ENDIAN): Likewise.
10868 (__BYTE_ORDER): Likewise.
10869 (strong_alias): Likewise.
10870 (_strong_alias): Likewise.
10871
10872 2018-11-12 Florian Weimer <fweimer@redhat.com>
10873
10874 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10875 function. Move after the definition of in_smallbin_range. Do not
10876 use __builtin_expect for paths that lead to a noreturn function.
10877 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10878 because it is unclear whether this is in fact an unlikely
10879 condition.
10880 (_int_malloc, _int_free): Adjust.
10881 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10882 variables.
10883 * malloc/arena.c (heap_trim): Likewise.
10884
10885 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10886
10887 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10888 it, free it if needed.
10889 (reauthenticate): Test and use ccwdir.
10890 (child_init_port): In non-resetids case, test and use ccwdir.
10891 (child_chdir): New nested function to set ccwdir.
10892 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10893 * hurd/hurd/port.h (_hurd_port_move): New function.
10894 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10895 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10896 * hurd/Versions (_hurd_port_move): Export function.
10897 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10898 symbol.
10899 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10900 of dtablesize for allocating dtable_cloexec.
10901
10902 2018-11-09 Martin Sebor <msebor@redhat.com>
10903
10904 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10905 it's already defined.
10906 (_strong_alias): Use __attribute_copy__.
10907 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10908 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10909 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10910 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10911 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10912 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10913 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10914 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10915 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10916 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10917 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10918 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10919 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10920 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10921 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10922 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10923 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10924 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10925 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10926
10927 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10928
10929 * misc/tst-efgcvt.c: Include support/check.h and
10930 support/test-driver.c. Do not include test-skeleton.c.
10931 (error_count): Remove.
10932 (output_error): Replace increments to error_count with calls to
10933 support_record_failure.
10934 (output_r_error): Likewise.
10935 (special): Likewise.
10936 (do_test): Unconditionally return zero.
10937 (TEST_FUNCTION): Remove.
10938
10939 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10940
10941 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10942 not $(@D)/scratch.
10943 ($(linknamespace-header-tests)): Likewise.
10944
10945 * conform/conformtest.py: New file.
10946 * conform/conformtest.pl: Remove.
10947 * conform/GlibcConform.pm: Likewise.
10948 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10949 (KEYWORDS_C99): Likewise.
10950 (KEYWORDS): Likewise.
10951 * conform/Makefile ($(conformtest-header-tests)): Use
10952 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10953 option. Use --header instead of --headers.
10954 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10955 function entries.
10956 * conform/data/spawn.h-data: Likewise.
10957 * conform/data/fcntl.h-data (openat): Add space after function
10958 name.
10959 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10960 (wcscasecmp_l): Likewise.
10961 * conform/data/termios.h-data (c_cc): Add space after element
10962 name.
10963
10964 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10965
10966 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10967 instead of manually comparing and reporting mismatching strings.
10968 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10969 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10970
10971 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10972
10973 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10974 __ASSUME_SOCKETCALL.
10975 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10976 (__ASSUME_SOCKETCALL): Remove.
10977 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10978 (__ASSUME_SOCKETCALL): Likewise.
10979 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10980 (__ASSUME_SOCKETCALL): Likewise.
10981 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10982 (__ASSUME_SOCKETCALL): Likewise.
10983 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10984 (__ASSUME_SOCKETCALL): Likewise.
10985 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10986 (__ASSUME_SOCKETCALL): Likewise.
10987 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10988 (__ASSUME_SOCKETCALL): Likewise.
10989
10990 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10991
10992 [BZ #23509]
10993 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10994 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10995 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10996 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10997 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10998 lc_unknown.
10999
11000 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
11001
11002 [BZ #17630]
11003 * resolv/tst-resolv-network.c: Add test for getnetbyname.
11004
11005 2018-11-07 Joseph Myers <joseph@codesourcery.com>
11006
11007 [BZ #23867]
11008 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11009 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11010 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11011 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11012
11013 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11014
11015 * support/support_test_compare_string.c
11016 (support_test_compare_string): Fix printf format.
11017
11018 2018-11-07 Florian Weimer <fweimer@redhat.com>
11019
11020 Implement TEST_COMPARE_STRING.
11021 * support/check.h (TEST_COMPARE_STRING): Define.
11022 (support_test_compare_string): Declare.
11023 * support/Makefile (libsupport-routines): Add
11024 support_test_compare_string.
11025 (tests): Add tst-test_compare_string.
11026 * support/support_test_compare_string.c: New file.
11027 * support/tst-test_compare_string.c: Likewise.
11028
11029 2018-11-07 Andreas Schwab <schwab@suse.de>
11030
11031 [BZ #23864]
11032 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11033 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11034 Undef.
11035
11036 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11037
11038 [BZ #23862]
11039 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11040 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11041 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11042 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11043 Likewise.
11044
11045 2018-11-06 Florian Weimer <fweimer@redhat.com>
11046
11047 [BZ #17405]
11048 * posix/Makefile (routines): Add spawn_faction_addchdir.
11049 (tests): Add tst-spawn-chdir.
11050 * posix/Versions (GLIBC_2.29): Add
11051 posix_spawn_file_actions_addchdir_np.
11052 * posix/spawn_faction_addchdir.c: New file.
11053 * posix/spawn_faction_destroy.c
11054 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11055 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11056 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11057 chdir_action.
11058 * posix/tst-spawn-chdir.c: New file.
11059 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11060 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11061 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11062 posix_spawn_file_actions_addchdir_np.
11063 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11064 Likewise.
11065 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11066 Likewise.
11067 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11068 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11069 Likewise.
11070 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11071 Likewise.
11072 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11073 Likewise.
11074 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11075 Likewise.
11076 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11077 Likewise.
11078 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11079 Likewise.
11080 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11081 (GLIBC_2.29): Likewise.
11082 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11083 (GLIBC_2.29): Likewise.
11084 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11085 (GLIBC_2.29): Likewise.
11086 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11087 (GLIBC_2.29): Likewise.
11088 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11089 Likewise.
11090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11091 (GLIBC_2.29): Likewise.
11092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11093 (GLIBC_2.29): Likewise.
11094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11095 (GLIBC_2.29): Likewise.
11096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11097 (GLIBC_2.29): Likewise.
11098 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11099 Likewise.
11100 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11101 Likewise.
11102 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11103 Likewise.
11104 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11105 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11106 Likewise.
11107 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11108 Likewise.
11109 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11110 Likewise.
11111 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11112 Likewise.
11113
11114 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11115
11116 * misc/Makefile (tests): Add tst-ldbl-error.
11117 * misc/tst-ldbl-error.c: New file.
11118
11119 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11120
11121 * misc/Makefile (tests): Add tst-ldbl-warn.
11122 * misc/tst-ldbl-warn.c: New file.
11123
11124 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11125
11126 * argp/Makefile (tests): Add tst-ldbl-argp.
11127 * argp/tst-ldbl-argp.c: New file.
11128
11129 2018-11-05 Arjun Shankar <arjun@redhat.com>
11130
11131 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11132 __gconv_path_elem and call __gconv_get_path unconditionally.
11133
11134 2018-11-05 Andreas Schwab <schwab@suse.de>
11135
11136 [BZ #22927]
11137 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11138 creating the first helper thread failed.
11139
11140 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11141
11142 * sysdeps/mach/hurd/msync.c: New file.
11143
11144 2018-11-02 Florian Weimer <fweimer@redhat.com>
11145
11146 * support/shell-container.c (copy_func): Call
11147 support_copy_file_range instead of copy_file_range to support
11148 cross-device copies.
11149
11150 2018-11-02 Florian Weimer <fweimer@redhat.com>
11151
11152 * support/test-container.c: Include <libc-pointer-arith.h> for
11153 ALIGN_UP.
11154
11155 2018-11-01 Zong Li <zong@andestech.com>
11156
11157 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11158 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11159 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11160 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11161
11162 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11163 variable to avoid overlap arguments.
11164
11165 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11166
11167 * posix/bug-regex22.c (main): Use puts with distinct error
11168 messages for unexpected success of re_compile_pattern, not printf
11169 with NULL argument to %s.
11170
11171 * stdio-common/bug22.c: Include <libc-diag.h>.
11172 (do_test): Disable -Wformat-overflow= warnings around fprintf
11173 calls outputting more than INT_MAX characters.
11174 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11175 around printf call with NULL %s argument.
11176
11177 [BZ #23848]
11178 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11179 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11180 Undefine.
11181 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11182 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11183 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11184 (__ASSUME_SENDTO_SYSCALL): Likewise.
11185 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11186 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11187 [!__arch64__].
11188 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11189 (__ASSUME_CONNECT_SYSCALL): Likewise.
11190 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11191 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11192 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11193 Define.
11194 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11195 Likewise.
11196 [__LINUX_KERNEL_VERSION >= 0x040400]
11197 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11198 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11199 Remove.
11200 (listen): Likewise.
11201 (setsockopt): Likewise.
11202
11203 2018-11-01 Fredrik Noring <noring@nocrew.org>
11204
11205 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11206 with the ISA override.
11207
11208 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11209
11210 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11211 #endif.
11212
11213 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11214
11215 * manual/errno.texi (EIEIO): Document how translators should
11216 translate the error message.
11217 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11218 printing trailing whitespaces refused by git.
11219 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11220 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11221 * hurd/Makefile (user-interfaces): Add pci.
11222
11223 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11224
11225 * conform/linknamespace.py: New file.
11226 * conform/linknamespace.pl: Remove file.
11227 * conform/Makefile ($(linknamespace-header-tests)): Use
11228 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11229 option.
11230
11231 2018-10-30 Florian Weimer <fweimer@redhat.com>
11232
11233 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11234 memory leaks.
11235
11236 2018-10-30 Florian Weimer <fweimer@redhat.com>
11237
11238 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11239
11240 2018-10-30 Florian Weimer <fweimer@redhat.com>
11241
11242 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11243 support_blob_repeat.
11244
11245 2018-10-30 Florian Weimer <fweimer@redhat.com>
11246
11247 Avoid spurious test failures in stdlib/test-bz22786.
11248 * support/Makefile (libsupport-routines): Add blob_repeat.
11249 (tests): Add tst-support_blob_repeat.
11250 * support/blob_repeat.h: New file.
11251 * support/blob_repeat.c: Likewise.
11252 * support/tst-support_blob_repeat.c: Likewise.
11253 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11254 support_blob_repeat_allocate.
11255
11256 2018-10-30 Andreas Schwab <schwab@suse.de>
11257
11258 [BZ #23125]
11259 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11260 Don't use tail call.
11261 * elf/tst-unwind-main.c: New file.
11262 * elf/Makefile (tests): Add tst-unwind-main.
11263 (CFLAGS-tst-unwind-main.c): Define.
11264
11265 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11266
11267 [BZ #23791]
11268 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11269 n_cs_precedes to 0.
11270 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11271
11272 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11273
11274 * conform/glibcconform.py: Do not import shutil.
11275 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11276 of mkdtemp.
11277
11278 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11279 critic_missing for versions before 3.4.
11280 * configure: Regenerated.
11281 * manual/install.texi (Tools for Compilation): Document
11282 requirement for Python to build glibc.
11283 * INSTALL: Regenerated.
11284 * Rules [PYTHON]: Make code unconditional.
11285 * benchtests/Makefile [PYTHON]: Likewise.
11286 * conform/Makefile [PYTHON]: Likewise.
11287 * manual/Makefile [PYTHON]: Likewise.
11288 * math/Makefile [PYTHON]: Likewise.
11289
11290 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11291
11292 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11293 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11294 answer to interrupt_operation, return EIEIO instead of EINTR.
11295 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11296 _hurd_intr_rpc_msg_about_to global point to start of controlled
11297 assembly snippet. Make it check canceled flag.
11298 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11299 the _hurd_intr_rpc_msg_about_to point.
11300 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11301 issue, remove cancel flag check.
11302
11303 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11304
11305 * scripts/build-many-glibcs.py: Remove compatibility for missing
11306 os.cpu_count and re.fullmatch.
11307
11308 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11309
11310 [BZ #23822]
11311 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11312 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11313 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11314
11315 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11316
11317 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11318 macro.
11319
11320 2018-10-25 Florian Weimer <fweimer@redhat.com>
11321
11322 [BZ #23562]
11323 [BZ #23821]
11324 XFAIL siginfo_t si_band conform test on sparc64.
11325 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11326 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11327 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11328 (conformtest-xfail-conds): Add sparc64-linux.
11329 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11330 sparc64.
11331 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11332
11333 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11334
11335 * elf/elf.h (NT_MIPS_DSP): New macro.
11336 (NT_MIPS_FP_MODE): Likewise.
11337
11338 2018-10-25 Zong Li <zong@andestech.com>
11339
11340 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11341 name by adding the file extension (.so).
11342
11343 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11344
11345 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11346 (test-xfail-ISO11/threads.h/linknamespace,
11347 test-xfail-ISO11/threads.h/conform): Add.
11348
11349 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11350
11351 * math/gen-libm-test.py: Import os.
11352 (ALL_FLOATS_MANUAL): New constant.
11353 (ALL_FLOATS_SUFFIX): Likewise.
11354 (Ulps.all_functions): New function.
11355 (real_all_ulps): Likewise.
11356 (generate_err_table_sub): Likewise.
11357 (generate_err_table): Likewise.
11358 (main): Handle -s and -m options.
11359 * manual/libm-err-tab.pl: Remove.
11360 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11361 instead of libm-err-tab.pl.
11362 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11363 != no].
11364 * manual/install.texi (Tools for Compilation): Document
11365 requirement for Python to build manual.
11366 * INSTALL: Regenerated.
11367
11368 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11369
11370 * bits/time64.h: New file.
11371 * include/time.h: Replace internal_time_t with __time64_t.
11372 * posix/bits/types (__time64_t): Add.
11373 * stdlib/Makefile: Add bits/time64.h to includes.
11374 * time/tzfile.c: Replace internal_time_t with __time64_t.
11375
11376 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11377
11378 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11379 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11380 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11381 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11382 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11383 prototype.
11384 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11385 * posix/spawn_faction_addclose.c
11386 (__posix_spawn_file_actions_addclose): Add hidden definition.
11387 * posix/spawn_faction_adddup2.c
11388 (__posix_spawn_file_actions_adddup2): Likewise.
11389 * posix/spawn_faction_destroy.c
11390 (__posix_spawn_file_actions_destroy): Likewise.
11391 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11392 Likewise.
11393 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11394 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11395 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11396 Likewise.
11397 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11398 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11399 Likewise.
11400
11401 2018-10-24 Andreas Schwab <schwab@suse.de>
11402
11403 [BZ #18093]
11404 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11405 format cache.
11406 * elf/cache.c (print_cache): Likewise.
11407
11408 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11409
11410 * bits/timesize.h: New file.
11411 * stdlib/Makefile (headers): Add bits/timesize.h.
11412 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11413 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11414 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11415 (__SEM_PAD_AFTER_TIME): Likewise.
11416 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11417 (__SHM_PAD_AFTER_TIME): Likewise.
11418 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11419 (__MSQ_PAD_BEFORE_TIME): Likewise.
11420 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11421 (__SEM_PAD_BEFORE_TIME): Likewise.
11422 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11423 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11424 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11425 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11426 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11427 (__MSQ_PAD_BEFORE_TIME): Likewise.
11428 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11429 (__SEM_PAD_BEFORE_TIME): Likewise.
11430 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11431 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11432 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11433 (__MSQ_PAD_BEFORE_TIME): Likewise.
11434 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11435 (__SEM_PAD_BEFORE_TIME): Likewise.
11436 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11437 (__SHM_PAD_BEFORE_TIME): Likewise.
11438 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11439 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11440 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11441
11442 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11443
11444 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11445 USE_RDTSCP is defined.
11446 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11447 USE_RDTSCP is defined.
11448
11449 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11450
11451 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11452 defined.
11453
11454 [BZ #23709]
11455 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11456 independently of other flags.
11457
11458 2018-10-23 Florian Weimer <fweimer@redhat.com>
11459
11460 * time/tst-mktime2.c (N_STRINGS): Remove.
11461 (set_timezone): New function.
11462 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11463 (mktime_test1): Report localtime failure and check errno value.
11464 Use TEST_COMPARE.
11465 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11466 (do_test): Remove alarm call. Use set_timezone and array_length.
11467
11468 2018-10-23 Andreas Schwab <schwab@suse.de>
11469
11470 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11471 (__start_context): Use END instead of PSEUDO_END.
11472
11473 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11474
11475 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11476 version to 4.19.
11477
11478 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11479 version to 4.19.
11480
11481 [BZ #23793]
11482 * wcsmbs/c32rtomb.c: New file.
11483 * wcsmbs/mbrtoc32.c: Likewise.
11484 * wcsmbs/tst-c32-state.c: Likewise.
11485 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11486 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11487 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11488 (tests): Add tst-c32-state.
11489 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11490 $(gen-locales).
11491
11492 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11493
11494 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11495 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11496
11497 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11498
11499 [BZ #23794]
11500 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11501 pair and return 0 in that case, and use saved character to
11502 interpret following character.
11503 * wcsmbs/tst-c16-surrogate.c: New file.
11504 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11505 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11506 Depend on $(gen-locales)
11507
11508 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11509
11510 [BZ #23562]
11511 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11512 (struct siginfo_t): Use correct type for si_band.
11513
11514 2018-10-19 Florian Weimer <fweimer@redhat.com>
11515
11516 [BZ #23689]
11517 * resource/bits/types/struct_rusage.h (struct rusage): Update
11518 comment on struct. Remove extraneous field comment.
11519
11520 2018-10-18 David S. Miller <davem@davemloft.net>
11521
11522 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11523 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11524 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11525 sysdep_routines in subdir elf.
11526 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11527 version for __vdso_clock_gettime.
11528 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11529 Define.
11530 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11531 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11532
11533 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11534
11535 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11536
11537 * sysdeps/i386/init-arch.h: Removed.
11538 * sysdeps/i386/i586/init-arch.h: Likewise.
11539 * sysdeps/i386/i686/init-arch.h: Likewise.
11540 * sysdeps/i386/i686/hp-timing.h: Likewise.
11541 * sysdeps/x86_64/hp-timing.h: Likewise.
11542 * sysdeps/i386/isa.h: New file.
11543 * sysdeps/i386/i586/isa.h: Likewise.
11544 * sysdeps/i386/i686/isa.h: Likewise.
11545 * sysdeps/x86_64/isa.h: Likewise.
11546 * sysdeps/x86/hp-timing.h: New file.
11547 * sysdeps/x86/init-arch.h: Include <isa.h>.
11548
11549 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11550
11551 * math/libm-test-pow.inc (pow_test_data): Do not allow
11552 divide-by-zero exception for pow(+/- 0, -Inf).
11553
11554 2018-10-17 Zack Weinberg <zackw@panix.com>
11555
11556 * manual/job.texi (Job Control is Optional): Remove node, as
11557 job control has not been optional in quite some time.
11558 (Job Control): Mention briefly that systems older than
11559 POSIX.1-2001 might not support job control.
11560 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11561 defined on systems conforming to POSIX.1-2001.
11562
11563 2018-10-17 Arjun Shankar <arjun@redhat.com>
11564
11565 [BZ #22062]
11566 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11567 indentation.
11568 * (__gconv_read_conf): Mark function static.
11569 * (once): New static variable.
11570 * (__gconv_load_conf): New function.
11571 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11572 * iconv/gconv_db.c (once): Remove static variable.
11573 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11574 __gconv_read_conf.
11575 * (__gconv_find_transform): Likewise.
11576 * iconv/tst-iconv-mt.c: New test.
11577 * iconv/Makefile: Add tst-iconv_mt.
11578
11579 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11580
11581 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11582 bits/shm-pad.h.
11583 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11584 (shmatt_t): Define as __syscall_ulong_t.
11585 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11586 and [__SHM_PAD_AFTER_TIME].
11587 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11588 Define shm_segsz and associated padding based on
11589 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11590 Use __syscall_ulong_t instead of unsigned long int.
11591 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11592 unsigned long int.
11593 [__USE_MISC] (struct shm_info): Likewise.
11594 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11595 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11596 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11597 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11598 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11599 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11600 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11601 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11602 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11603 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11604 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11605
11606 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11607 bits/shmlba.h.
11608 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11609 (SHMLBA): Remove macro.
11610 (__getpagesize): Remove function declaration.
11611 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11612 <bits/shmlba.h>.
11613 (SHMLBA): Remove macro.
11614 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11615 <bits/shmlba.h>.
11616 (SHMLBA): Remove macro.
11617 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11618 <bits/shmlba.h>.
11619 (SHMLBA): Remove macro.
11620 (__getpagesize): Remove function declaration.
11621 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11622 <bits/shmlba.h>.
11623 (SHMLBA): Remove macro.
11624 (__getshmlba): Remove function declaration.
11625 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11626 (SHMLBA): Remove macro.
11627 (__getpagesize): Remove function declaration.
11628 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11629 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11630 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11631 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11632 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11633 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11634 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11635 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11636 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11637 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11638
11639 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11640
11641 [BZ #23275]
11642 * nptl/tst-mutex10.c: New File.
11643 * nptl/Makefile (tests): Add tst-mutex10.
11644 (tst-mutex10-ENV): New variable.
11645 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11646 Ensure that elision path is used if elision is available.
11647 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11648 Likewise.
11649 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11650 Likewise.
11651 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11652 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11653 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11654 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11655 Likewise.
11656 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11657 (__pthread_mutex_cond_lock_adjust): Likewise.
11658 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11659 Likewise.
11660 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11661 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11662 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11663 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11664 Add comments.
11665 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11666 Use atomic_load_relaxed and atomic_store_relaxed.
11667 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11668 Use atomic_store_relaxed.
11669
11670 2018-10-17 Andreas Schwab <schwab@suse.de>
11671
11672 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11673 * crypt/badsalttest.c (TIMEOUT): Likewise.
11674 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11675 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11676 * io/test-lfs.c (TIMEOUT): Likewise.
11677 * libio/tst-atime.c (TIMEOUT): Likewise.
11678 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11679 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11680 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11681 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11682 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11683 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11684 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11685 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11686 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11687 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11688 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11689 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11690 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11691 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11692 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11693 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11694 * nptl/tst-once2.c (TIMEOUT): Likewise.
11695 * nptl/tst-once3.c (TIMEOUT): Likewise.
11696 * nptl/tst-once4.c (TIMEOUT): Likewise.
11697 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11698 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11699 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11700 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11701 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11702 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11703 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11704 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11705 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11706 * posix/tst-chmod.c (TIMEOUT): Likewise.
11707 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11708 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11709 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11710 * posix/tst-regex2.c (TIMEOUT): Likewise.
11711 * posix/tst-waitid.c (TIMEOUT): Likewise.
11712 * rt/tst-aio.c (TIMEOUT): Likewise.
11713 * rt/tst-aio10.c (TIMEOUT): Likewise.
11714 * rt/tst-aio4.c (TIMEOUT): Likewise.
11715 * rt/tst-aio5.c (TIMEOUT): Likewise.
11716 * rt/tst-aio6.c (TIMEOUT): Likewise.
11717 * rt/tst-aio64.c (TIMEOUT): Likewise.
11718 * rt/tst-aio7.c (TIMEOUT): Likewise.
11719 * rt/tst-aio9.c (TIMEOUT): Likewise.
11720 * rt/tst-clock.c (TIMEOUT): Likewise.
11721 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11722 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11723 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11724 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11725 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11726 * rt/tst-timer4.c (TIMEOUT): Likewise.
11727 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11728 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11729 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11730 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11731 * time/tst-ftime.c (TIMEOUT): Likewise.
11732 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11733
11734 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11735
11736 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11737 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11738 for thunderX2.
11739
11740 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11741
11742 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11743 bits/sem-pad.h.
11744 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11745 instead of <bits/wordsize.h>.
11746 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11747 and [__SEM_PAD_AFTER_TIME].
11748 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11749 __syscall_ulong_t instead of unsigned long int.
11750 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11751 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11752 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11753 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11754 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11755 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11756 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11757 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11758 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11759 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11760 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11761
11762 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11763
11764 regex: simplify by using intprops.h
11765 [BZ#23744]
11766 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11767 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11768 intprops.h defines them.
11769
11770 regex: __builtin_expect → __glibc_unlikely
11771 [BZ#23744]
11772 This refactoring was prompted by a problem when the regex code is
11773 used as part of Gnulib and when the builder’s compiler does not grok
11774 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11775 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11776 Although this refactoring does not fix the problem directly,
11777 we might as well have Gawk use the now-preferred glibc style for when
11778 __builtin_expect is unavailable.
11779 * posix/regex_internal.h (BE): Remove.
11780 All uses replaced by __glibc_unlikely or __glibc_likely.
11781
11782 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11783
11784 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11785 bits/msq-pad.h.
11786 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11787 instead of <bits/wordsize.h>.
11788 (msgqnum_t): Define as __syscall_ulong_t.
11789 (msglen_t): Likewise.
11790 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11791 and [__MSQ_PAD_AFTER_TIME].
11792 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11793 __syscall_ulong_t instead of unsigned long int.
11794 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11795 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11796 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11797 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11798 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11799 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11800 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11801 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11802 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11803 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11804 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11805
11806 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11807
11808 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11809 (struct shmid_ds): Condition padding after time fields on
11810 [__WORDSIZE == 32].
11811 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11812 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11813 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11814
11815 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11816 (struct semid_ds): Condition padding after time fields on
11817 [__WORDSIZE == 32].
11818 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11819 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11820 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11821 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11822
11823 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11824 (struct msqid_ds): Condition padding after time fields on
11825 [__WORDSIZE == 32].
11826 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11827 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11828 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11829 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11830
11831 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11832
11833 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11834
11835 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11836
11837 * libio/tst-readline.c (TIMEOUT): Define.
11838
11839 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11840
11841 mktime fix for Gnulib + coreutils
11842 [BZ#23745]
11843 This fix affects only Gnulib. Problem discovered when
11844 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11845 * time/mktime.c:
11846 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11847 Do not define since it is not used. Defining an unused static
11848 function prompts a warning from GCC when Coreutils is configured
11849 with --enable-gcc-warnings.
11850
11851 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11852
11853 * benchtests/scripts/compare_bench.py (main): set float type on
11854 threshold argument.
11855
11856 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11857
11858 [BZ #23740]
11859 * localedata/locales/kl_GL (mon): Update, the relative case.
11860 (alt_mon): Add, fill with month names in the nominative case.
11861 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11862 (d_fmt): Set to "%b %d %Y".
11863
11864 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11865
11866 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11867 <bits/mman-linux.h>.
11868 (PROT_READ): Don't define here.
11869 (PROT_WRITE): Likewise.
11870 (PROT_EXEC): Likewise.
11871 (PROT_NONE): Likewise.
11872 (PROT_GROWSDOWN): Likewise.
11873 (PROT_GROWSUP): Likewise.
11874 (MAP_SHARED): Likewise.
11875 (MAP_PRIVATE): Likewise.
11876 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11877 [__USE_MISC] (MAP_FILE): Likewise.
11878 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11879 [__USE_MISC] (MAP_ANON): Likewise.
11880 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11881 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11882 (MCL_CURRENT): Likewise.
11883 (MCL_FUTURE): Likewise.
11884 (MCL_ONFAULT): Likewise.
11885 [__USE_MISC] (MADV_NORMAL): Likewise.
11886 [__USE_MISC] (MADV_RANDOM): Likewise.
11887 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11888 [__USE_MISC] (MADV_WILLNEED): Likewise.
11889 [__USE_MISC] (MADV_DONTNEED): Likewise.
11890 [__USE_MISC] (MADV_FREE): Likewise.
11891 [__USE_MISC] (MADV_REMOVE): Likewise.
11892 [__USE_MISC] (MADV_DONTFORK): Likewise.
11893 [__USE_MISC] (MADV_DOFORK): Likewise.
11894 [__USE_MISC] (MADV_HWPOISON): Likewise.
11895 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11896 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11897 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11898 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11899 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11900 (__MAP_ANONYMOUS): New macro.
11901 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11902 <bits/mman-linux.h> inclusion.
11903 (MAP_FIXED): Likewise.
11904 (MS_SYNC): Likewise.
11905 (MS_ASYNC): Likewise.
11906 (MS_INVALIDATE): Likewise.
11907 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11908 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11909 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11910 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11911 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11912 [__USE_MISC] (MADV_DODUMP): Likewise.
11913 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11914 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11915
11916 [BZ #23735]
11917 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11918 Define.
11919 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11920 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11921 Add test-nldbl-redirect.
11922 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11923 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11924 $(objpfx)libnldbl_nonshared.a.
11925
11926 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11927
11928 * support/support.h (support_objdir_elf_ldso): New variable.
11929 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11930 * support/Makefile (CFLAGS-support_paths.c): Add definition
11931 for OBJDIR_ELF_LDSO_PATH.
11932 * support/test-container.c (main): Search for the ld.so
11933 which is also used by the testsuite.
11934
11935 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11936
11937 [BZ #20209]
11938 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11939 should be "sap" rather than "sab".
11940 (day): Fix spelling of Sunday, should be "sapaat" rather than
11941 "sabaat".
11942
11943 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11944
11945 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11946
11947 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11948
11949 [BZ #19444]
11950 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11951 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11952 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11953
11954 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11955
11956 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11957
11958 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11959
11960 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11961 Add -mrtm.
11962 (CFLAGS-elision-unlock.c): Likewise.
11963 (CFLAGS-elision-timed.c): Likewise.
11964 (CFLAGS-elision-trylock.c): Likewise.
11965 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11966
11967 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11968
11969 [BZ #21037]
11970 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11971 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11972 new fd_to_filename interface.
11973 * libio/freopen64.c (freopen64): Likewise.
11974 * libio/tst-memstream.h: New file.
11975 * libio/tst-memstream4.c: Likewise.
11976 * libio/tst-wmemstream4.c: Likewise.
11977 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11978 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11979 and remove internal dynamic allocation.
11980
11981 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11982
11983 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11984 (MREMAP_MAYMOVE): Do not define here.
11985 [__USE_GNU] (MREMAP_FIXED): Likewise.
11986 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11987 (MREMAP_MAYMOVE): Define here instead.
11988 [__USE_GNU] (MREMAP_FIXED): Likewise.
11989 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11990 (MREMAP_MAYMOVE): Remove.
11991 [__USE_GNU] (MREMAP_FIXED): Likewise.
11992
11993 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11994
11995 * math/fromfp.h: Do not include <math_private.h>.
11996 * math/s_cacosh_template.c: Likewise.
11997 * math/s_casin_template.c: Likewise.
11998 * math/s_casinh_template.c: Likewise.
11999 * math/s_ccos_template.c: Likewise.
12000 * math/s_cproj_template.c: Likewise.
12001 * math/s_fdim_template.c: Likewise.
12002 * math/s_fmaxmag_template.c: Likewise.
12003 * math/s_fminmag_template.c: Likewise.
12004 * math/s_iseqsig_template.c: Likewise.
12005 * math/s_ldexp_template.c: Likewise.
12006 * math/s_nextdown_template.c: Likewise.
12007 * math/w_log1p_template.c: Likewise.
12008 * math/w_scalbln_template.c: Likewise.
12009 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12010 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12011 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12012 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12013 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12014 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12015 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12016 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12017 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12018 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12019 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12020 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12021 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12022 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12023 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12024 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12025 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12026 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12027 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12028 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12029 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12030 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12031 * sysdeps/ieee754/k_standardf.c: Likewise.
12032 * sysdeps/ieee754/k_standardl.c: Likewise.
12033 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12034 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12035 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12036 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12037 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12038 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12039 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12040 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12041 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12042 * sysdeps/ieee754/s_signgam.c: Likewise.
12043 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12044 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12045 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12046 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12047 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12048 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12049 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12050 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12051 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12052 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12053 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12054 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12055 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12056 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12057 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12058 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12059 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12060 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12061 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12062 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12063 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12064 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12065 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12066 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12067 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12068 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12069 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12070 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12071 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12072 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12073 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12074 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12075 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12076 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12077 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12078 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12079 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12080 <math_private.h>.
12081 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12082
12083 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12084
12085 [BZ #23716]
12086 * sysdeps/i386/dl-cet.c: Removed.
12087 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12088 prototype.
12089 (_dl_runtime_profile_shstk): Likewise.
12090 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12091 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12092
12093 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12094
12095 [BZ #23579]
12096 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12097 do_test_with_invalid_iov): New tests.
12098 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12099 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12100 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12101 errno is ENOSYS.
12102 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12103 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12104 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12105
12106 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12107
12108 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12109 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12110 (MATH_REDIRECT_BINARY_ARGS): New macro.
12111 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12112 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12113 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12114 header inclusion.
12115 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12116 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12117 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12118 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12119 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12120 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12121 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12122 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12123 Likewise.
12124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12125 Likewise.
12126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12128 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12129 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12131 Likewise.
12132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12133 Likewise.
12134 * sysdeps/generic/math_private_calls.h
12135 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12136 Do not declare and define as an inline function.
12137 * math/divtc3.c (__divtc3): Use copysign functions instead of
12138 __copysign variants.
12139 * math/multc3.c (__multc3): Likewise.
12140 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12141 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12142 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12143 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12144 Likewise.
12145 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12146 (__ieee754_yn): Likewise.
12147 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12148 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12149 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12150 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12151 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12152 (__sin): Likewise.
12153 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12154 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12155 Likewise.
12156 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12157 Likewise.
12158 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12159 Likewise.
12160 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12161 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12162 Likewise.
12163 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12164 (__ieee754_ynf): Likewise.
12165 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12166 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12167 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12168 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12169 Likewise.
12170 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12171 (__ieee754_ynl): Likewise.
12172 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12173 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12174 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12175 Likewise.
12176 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12177 (__ieee754_ynl): Likewise.
12178 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12179 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12180 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12181 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12182 Likewise.
12183 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12184 (__ieee754_ynl)
12185 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12186 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12187 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12188 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12189 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12190
12191 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12192 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12193 using MATH_REDIRECT.
12194 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12195 header inclusion.
12196 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12197 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12198 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12199 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12200 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12201 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12202 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12203 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12204 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12207 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12208 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12209 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12210 (round): Redirect to __round.
12211 (__roundl): Call round instead of __round.
12212 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12213 Remove macro.
12214 [_ARCH_PWR5X] (__roundf): Likewise.
12215 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12216 functions instead of __round variants.
12217 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12218 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12219 Likewise.
12220 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12221 Likewise.
12222 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12223 Likewise.
12224 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12225 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12226 __lroundl.
12227 (__ieee754_expl): Call roundl instead of __roundl.
12228
12229 2018-09-27 Andreas Schwab <schwab@suse.de>
12230
12231 [BZ #23717]
12232 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12233 (do_test): Make st1 static.
12234
12235 2018-09-26 Andreas Schwab <schwab@suse.de>
12236
12237 [BZ #23707]
12238 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12239 * elf/Makefile (tests): Add tst-unwind-ctor.
12240 (modules-names): Add tst-unwind-ctor-lib.
12241 ($(objpfx)tst-unwind-ctor): Depend on
12242 $(objpfx)tst-unwind-ctor-lib.so.
12243
12244 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12245
12246 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12247 file. Most contents moved from ....
12248 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12249 and include <bits/mman-map-flags-generic.h>.
12250 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12251 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12252 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12253 <bits/mman-map-flags-generic.h>.
12254 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12255 macros defined in <bits/mman-map-flags-generic.h>.
12256 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12257 <bits/mman-map-flags-generic.h>.
12258 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12259 defined in <bits/mman-map-flags-generic.h>.
12260
12261 2018-09-26 Andreas Schwab <schwab@suse.de>
12262
12263 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12264 output.
12265
12266 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12267 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12268 Fangrui Song <maskray@google.com>
12269
12270 [BZ #20480]
12271 * config.make.in (have-textrel_ifunc): New define.
12272 * configure.ac: Add check if linker supports textrel relocation with
12273 ifunc.
12274 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12275 tst-ifunc-textrel.
12276 (CFLAGS-tst-ifunc-textrel.c): New rule.
12277 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12278 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12279 * elf/tst-ifunc-textrel.c: New file.
12280
12281 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12282
12283 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12284 <bits/procfs-prregset.h>.
12285 (prgregset_t): Define using __prgregset_t.
12286 (prfpregset_t): Define using __prfpregset_t.
12287 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12288 (sysdep_headers): Add bits/procfs-prregset.h.
12289 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12290 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12291 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12292 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12293
12294 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12295 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12296 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12297 pr_uid and pr_gid.
12298 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12299 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12300 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12301 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12302 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12303 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12304 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12305 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12306 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12307 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12308 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12309 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12310 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12311 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12312 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12313 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12314 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12315 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12316 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12317 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12318 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12319 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12320 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12321 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12322
12323 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12324 AArch64 version. Include <bits/procfs.h>.
12325 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12326 (sysdep_headers): Add bits/procfs.h.
12327 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12328 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12329 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12330 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12331 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12332 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12333 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12334 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12335 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12336 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12337 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12338 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12339 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12340 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12341 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12342 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12343 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12344
12345 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12346
12347 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12348 Use libsupport.
12349
12350 2018-09-25 Arjun Shankar <arjun@redhat.com>
12351
12352 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12353 (__gconv_max_path_elem_len): Likewise.
12354 (__gconv_nmodules): Likewise.
12355 (__gconv_get_path): Likewise.
12356 (path_elem): Move to ...
12357 * iconv/gconv_conf.c: ... here.
12358 (__gconv_get_path): Mark function static.
12359 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12360 * iconv/gconv_open.c: ... here.
12361
12362 2018-09-24 Andreas Schwab <schwab@suse.de>
12363
12364 * scripts/haveversions.awk: New file.
12365 * Makerules ($(common-objpfx)Versions.def)
12366 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12367 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12368 Move rules ...
12369 * Makeconfig ($(common-objpfx)Versions.def)
12370 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12371 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12372 ... here.
12373 ($(common-objpfx)Versions.mk): New rule. Include it.
12374 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12375 Emit error if build-obsolete-nsl = yes.
12376 * manual/install.texi (Configuring and compiling): Describe
12377 --enable-obsolete-nsl as unavaiable after version 2.28.
12378 * INSTALL: Regenerate.
12379
12380 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12381
12382 * NEWS: Add note about new TLE support on powerpc64le.
12383 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12384 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12385 __ununsed1.
12386 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12387 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12388 * sysdeps/powerpc/powerpc32/sysdep.h,
12389 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12390 ABORT_TRANSACTION): Remove macros.
12391 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12392 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12393 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12395 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12396 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12397 usage.
12398 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12399
12400 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12401
12402 [BZ #10425]
12403 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12404 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12405 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12406 which is the same as in it_IT.
12407 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12408 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12409
12410 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12411
12412 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12413 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12414 using MATH_REDIRECT.
12415 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12416 header inclusion.
12417 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12418 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12419 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12420 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12421 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12422 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12425 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12427 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12428 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12429 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12430 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12431 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12432 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12433 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12434 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12435 (ceil): Redirect to __ceil.
12436 (floor): Redirect to __floor.
12437 (trunc): Redirect to __trunc.
12438 (__truncl): Call trunc instead of __trunc.
12439 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12440 Remove macro.
12441 [_ARCH_PWR5X] (__truncf): Likewise.
12442 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12443 trunc functions instead of __trunc variants.
12444 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12445 Likewise.
12446 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12447 Likewise.
12448 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12449 Likewise.
12450 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12451 Likewise.
12452
12453 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12454 [__i586__ || __pentium__].
12455 [__i486__]: Handle explicitly.
12456 (HAS_CPUID): Define to 1 if above macros are undefined.
12457 (HAS_I586): Likewise.
12458 (HAS_I686): Likewise.
12459
12460 2018-09-20 Florian Weimer <fweimer@redhat.com>
12461
12462 * misc/tst-gethostid.c: New file.
12463 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12464 (tst-gethostid): Link with -ldl.
12465
12466 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12467
12468 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12469 value from gethostbyname_r.
12470
12471 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12472
12473 * stdlib/tst-setcontext9.c (f1): Rename to...
12474 (f1a): ... this.
12475 (f1b): New function implementing lower half of f1 in alternate stack.
12476
12477 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12478
12479 Fix mktime localtime offset confusion
12480 [BZ #23603]
12481 * include/time.h (__mktime_internal): The localtime offset is now
12482 of type long int instead of time_t. This is the longstanding type
12483 in glibc, and it is more than enough to represent difference
12484 between localtime and gmtime even if it is 32 bits and time_t is
12485 64. Changing it now will let us avoid an unnecessary change when
12486 time_t is widened to 64 bits on 32-bit platforms.
12487 * time/mktime-internal.h (mktime_offset_t): Now long int.
12488
12489 Merge mktime, timegm from upstream Gnulib
12490 [BZ #23603][BZ #16346]
12491 This fixes some obscure problems with integer overflow.
12492 Although it looks scary, it is almost all a byte-for-byte copy
12493 from Gnulib, and the Gnulib code has been tested reasonably well.
12494 * include/intprops.h: New file, copied from Gnulib.
12495 * include/verify.h, time/mktime-internal.h:
12496 New tiny files, simplified from Gnulib.
12497 * time/mktime.c: Copy from Gnulib. This has the following changes:
12498 Do not include config.h if DEBUG_MKTIME is nonzero.
12499 Include stdbool.h, intprops.h, verify.h.
12500 Include string.h only if needed.
12501 Include stdlib.h on MS-Windows.
12502 Include mktime-internal.h.
12503 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12504 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12505 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12506 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12507 simplify later conditionals; default the others to zero. Use
12508 these conditionals to express only the code needed on the current
12509 platform. In uses of these conditionals, explicitly spell out how
12510 _LIBC affects things, so it’s easier to review from a glibc
12511 viewpoint.
12512 (WRAPV): Remove; no longer needed now that we have
12513 systematic overflow checking.
12514 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12515 compartmentalize tzset issues. Move system-dependent tzsettish
12516 code here from mktime.
12517 (verify): Remove; now done by verify.h. All uses changed.
12518 (long_int): Use a more-conservative definition, to avoid
12519 integer overflow.
12520 (SHR): Remove, replacing with ...
12521 (shr): New function, which means we needn’t worry about side
12522 effects in args, and conversion analysis is simpler.
12523 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12524 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12525 (time_t_avg, time_t_add_ok): Remove.
12526 (mktime_min, mktime_max): New constants.
12527 (leapyear, isdst_differ): Use bool for booleans.
12528 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12529 Use long_int, not time_t, for mktime differences.
12530 (long_int_avg): New function, replacing time_t_avg.
12531 INT_ADD_WRAPV replaces time_t_add_ok.
12532 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12533 All uses changed.
12534 (convert_time): New function.
12535 (ranged_convert): Use it.
12536 (__mktime_internal): Last arg now points to mktime_offset_t, not
12537 time_t. All uses changed. This is a no-op on glibc, where
12538 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12539 offset guess. Directly check for integer overflow instead of
12540 using a heuristic that works only 99.9...% of the time.
12541 Access *OFFSET only once, to avoid an unlikely race if the
12542 compiler delays a load and if this cascades into a signed integer
12543 overflow.
12544 (mktime): Move tzsettish code to my_tzset, and move
12545 localtime_offset to within mktime so that it doesn’t
12546 need a separate ifdef.
12547 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12548 instead of localtime.
12549 * time/timegm.c: Copy from Gnulib. This has the following changes:
12550 Include mktime-internal.h.
12551 [!_LIBC]: Include config.h and time.h. Do not include
12552 timegm.h or time_r.h. Make __mktime_internal a macro,
12553 and include mktime-internal.h to get its declaration.
12554 (timegm): Temporary is now mktime_offset_t, not time_t.
12555 This affects only Gnulib.
12556
12557 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12558
12559 [BZ #23637]
12560 * string/test-strstr.c (pr23637): New function.
12561 (test_main): Add tests with longer needles.
12562 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12563 * string/strstr.c (AVAILABLE): Likewise.
12564
12565 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12566
12567 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12568
12569 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12570
12571 * NEWS: Mention pow improvements.
12572 * math/Makefile (type-double-routines): Add e_pow_log_data.
12573 * sysdeps/generic/math_private.h (__exp1): Remove.
12574 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12575 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12576 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12577 contraction.
12578 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12579 (exp_inline): Remove.
12580 (__ieee754_exp): Only single double input is handled.
12581 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12582 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12583 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12584 (__pow_log_data): Define.
12585 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12586 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12587 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12588 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12589 contraction.
12590 (CFLAGS-e_pow-fma4.c): Likewise.
12591
12592 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12593
12594 Simplify tzfile fstat failure code
12595 [BZ #21716]
12596 * time/tzfile.c (__tzfile_read): Simplify slightly.
12597
12598 Fix tzfile low-memory assertion failure
12599 [BZ #21716]
12600 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12601 when registering time zone abbreviations.
12602
12603 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12604
12605 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12606 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12607 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12608 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12609 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12610 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12611 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12612 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12613 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12614
12615 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12616 __ceil.
12617 (__ceill): Call ceil instead of __ceil.
12618 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12619 __floor.
12620 (__floorl): Call floor instead of __floor.
12621
12622 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12623
12624 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12625 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12626 using MATH_REDIRECT.
12627 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12628 header inclusion.
12629 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12630 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12631 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12632 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12633 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12634 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12635 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12636 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12637 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12639 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12641 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12642 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12643 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12644 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12645 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12646 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12647 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12648 Remove macro.
12649 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12650 functions instead of __ceil variants.
12651 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12652 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12653 Likewise.
12654 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12655 Likewise.
12656 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12657 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12658 Likewise.
12659 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12660 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12661
12662 [BZ #21286]
12663 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12664 constant.
12665 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12666 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12667 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12668 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12669 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12670 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12671 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12672 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12673 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12674 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12675 (ILL_BADIADDR): Remove constant.
12676 (TRAP_BRANCH): Likewise.
12677 (TRAP_HWBKPT): Likewise.
12678
12679 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12680
12681 [BZ #23656]
12682 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12683 Remove [_MIPS_SIM = _ABIN32] conditional case.
12684 (struct elf_prpsinfo): Likewise.
12685
12686 [BZ #23649]
12687 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12688 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12689 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12690 Likewise.
12691 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12692 elf_prpsinfo): Likewise.
12693 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12694 elf_prpsinfo): Likewise.
12695 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12696 Likewise.
12697
12698 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12699 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12700 using MATH_REDIRECT.
12701 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12702 header inclusion.
12703 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12704 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12705 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12706 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12707 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12708 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12709 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12710 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12711 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12712 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12713 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12714 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12715 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12716 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12717 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12718 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12719 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12720 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12721 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12723 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12724 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12725 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12726 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12727 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12728 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12729 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12730 __rint variants.
12731 * math/e_scalbf.c (invalid_fn): Likewise.
12732 * math/e_scalbl.c (invalid_fn): Likewise.
12733 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12734 Likewise.
12735 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12736 Likewise.
12737 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12738 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12739 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12740 Likewise.
12741 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12742 Likewise.
12743 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12744 Likewise.
12745 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12746 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12747
12748 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12749 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12750 New macro.
12751 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12752 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12753 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12754 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12755 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12756 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12757 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12758 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12759 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12760 && !NO_MATH_REDIRECT] (floor): Likewise.
12761 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12762 header inclusion.
12763 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12764 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12765 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12766 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12767 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12768 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12769 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12770 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12771 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12772 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12773 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12775 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12776 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12777 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12778 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12779 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12780 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12781 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12782 Remove macro.
12783 [_ARCH_PWR5X] (__floorf): Likewise.
12784 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12785 inline function.
12786 [__SSE4_1__] (__floorf): Likewise.
12787 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12788 instead of __floor variants.
12789 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12790 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12791 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12792 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12793 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12794 * math/w_tgamma_compat.c (__tgamma): Likewise.
12795 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12796 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12797 * math/w_tgammal_compat.c (__tgammal): Likewise.
12798 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12799 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12800 Likewise.
12801 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12802 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12803 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12804 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12805 Likewise.
12806 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12807 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12808 Likewise.
12809 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12810 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12811 Likewise.
12812 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12813 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12814 Likewise.
12815 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12816 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12817 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12818 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12819 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12820 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12821
12822 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12823
12824 * elf/Makefile (modules-names-tests): New variable.
12825
12826 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12827
12828 * NEWS: Mention log2 improvements.
12829 * math/Makefile (type-double-routines): Add e_log2_data.
12830 * sysdeps/i386/fpu/e_log2_data.c: New file.
12831 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12832 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12833 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12834 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12835 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12836 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12837
12838 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12839
12840 * NEWS: Mention log improvement.
12841 * math/Makefile (type-double-routines): Add e_log_data.
12842 * sysdeps/i386/fpu/e_log_data.c: New file.
12843 * sysdeps/ia64/fpu/e_log_data.c: New file.
12844 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12845 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12846 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12847 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12848 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12849 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12850
12851 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12852 Xuepeng Guo <xuepeng.guo@intel.com>
12853
12854 [BZ #23606]
12855 * sysdeps/i386/start.S: Include <sysdep.h>
12856 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12857 enabled. Add cfi_undefined (eip).
12858
12859 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12860
12861 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12862 (MOVQ): Likewise.
12863 (EXTRACT_WORDS64): Likewise.
12864 (INSERT_WORDS64): Likewise.
12865 (GET_FLOAT_WORD): Likewise.
12866 (SET_FLOAT_WORD): Likewise.
12867
12868 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12869 argument.
12870 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12871 build, but not for second build if --full-gcc. Use
12872 --enable-languages=all for second build if --full-gcc.
12873 (get_parser): Add --full-gcc option.
12874 (main): Update call to Context.
12875
12876 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12877
12878 [BZ #10797]
12879 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12880 Single Quotation Mark).
12881 (thousands_sep): Likewise.
12882 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12883 * localedata/locales/it_IT (thousands_sep): Use ".".
12884 (grouping): Use "3;3".
12885
12886 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12887
12888 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12889 x86_64 and i686 configs using --enable-obsolete-rpc
12890 --enable-obsolete-nsl.
12891
12892 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12893
12894 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12895
12896 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12897
12898 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12899 Increment size of new_argv by one.
12900
12901 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12902
12903 [BZ #17426]
12904 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12905 * localedata/locales/ar_IN (d_fmt): Likewise.
12906 * localedata/locales/bhb_IN (d_fmt): Likewise.
12907 * localedata/locales/bho_IN (d_fmt): Likewise.
12908 * localedata/locales/bn_BD (d_fmt): Likewise.
12909 * localedata/locales/bn_IN (d_fmt): Likewise.
12910 * localedata/locales/doi_IN (d_fmt): Likewise.
12911 * localedata/locales/gu_IN (d_fmt): Likewise.
12912 * localedata/locales/hi_IN (d_fmt): Likewise.
12913 * localedata/locales/hne_IN (d_fmt): Likewise.
12914 * localedata/locales/kn_IN (d_fmt): Likewise.
12915 * localedata/locales/mag_IN (d_fmt): Likewise.
12916 * localedata/locales/mai_IN (d_fmt): Likewise.
12917 * localedata/locales/mjw_IN (d_fmt): Likewise.
12918 * localedata/locales/ml_IN (d_fmt): Likewise.
12919 * localedata/locales/mni_IN (d_fmt): Likewise.
12920 * localedata/locales/mr_IN (d_fmt): Likewise.
12921 * localedata/locales/pa_IN (d_fmt): Likewise.
12922 * localedata/locales/raj_IN (d_fmt): Likewise.
12923 * localedata/locales/sat_IN (d_fmt): Likewise.
12924 * localedata/locales/sd_IN (d_fmt): Likewise.
12925 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12926 * localedata/locales/ta_IN (d_fmt): Likewise.
12927 * localedata/locales/ta_LK (d_fmt): Likewise.
12928 * localedata/locales/tcy_IN (d_fmt): Likewise.
12929 * localedata/locales/ur_IN (d_fmt): Likewise.
12930
12931 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12932 * localedata/locales/ks_IN (d_fmt): Likewise.
12933 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12934
12935 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12936 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12937 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12938 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12939
12940 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12941
12942 * NEWS: Mention exp and exp2 improvements.
12943 * math/Makefile (libm-support): Remove t_exp.
12944 (type-double-routines): Add math_err and e_exp_data.
12945 * sysdeps/aarch64/libm-test-ulps: Update.
12946 * sysdeps/arm/libm-test-ulps: Update.
12947 * sysdeps/i386/fpu/e_exp_data.c: New file.
12948 * sysdeps/i386/fpu/math_err.c: New file.
12949 * sysdeps/i386/fpu/t_exp.c: Remove.
12950 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12951 * sysdeps/ia64/fpu/math_err.c: New file.
12952 * sysdeps/ia64/fpu/t_exp.c: Remove.
12953 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12954 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12955 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12956 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12957 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12958 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12959 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12960 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12961 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12962 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12963 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12964 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12965 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12966 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12967 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12968 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12969
12970 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12971
12972 * sysdeps/alpha/fpu/math_private.h: Remove.
12973
12974 * sysdeps/generic/math_private.h
12975 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12976 Move this inline function ....
12977 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12978 * include/math.h [!_ISOMAC]: To here....
12979
12980 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12981
12982 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12983 code ....
12984 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12985 * include/fenv.h [!_ISOMAC]: ... to here.
12986 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12987 (feraiseexcept): Likewise.
12988 * math/fromfp.h: Do not include <fenv_private.h>.
12989 * math/s_cexp_template.c: Likewise.
12990 * math/s_csin_template.c: Likewise.
12991 * math/s_csinh_template.c: Likewise.
12992 * math/s_ctan_template.c: Likewise.
12993 * math/s_ctanh_template.c: Likewise.
12994 * math/s_iseqsig_template.c: Likewise.
12995 * math/w_acos_compat.c: Likewise.
12996 * math/w_acosf_compat.c: Likewise.
12997 * math/w_acosl_compat.c: Likewise.
12998 * math/w_asin_compat.c: Likewise.
12999 * math/w_asinf_compat.c: Likewise.
13000 * math/w_asinl_compat.c: Likewise.
13001 * math/w_j0_compat.c: Likewise.
13002 * math/w_j0f_compat.c: Likewise.
13003 * math/w_j0l_compat.c: Likewise.
13004 * math/w_j1_compat.c: Likewise.
13005 * math/w_j1f_compat.c: Likewise.
13006 * math/w_j1l_compat.c: Likewise.
13007 * math/w_jn_compat.c: Likewise.
13008 * math/w_jnf_compat.c: Likewise.
13009 * math/w_log10_compat.c: Likewise.
13010 * math/w_log10f_compat.c: Likewise.
13011 * math/w_log10l_compat.c: Likewise.
13012 * math/w_log2_compat.c: Likewise.
13013 * math/w_log2f_compat.c: Likewise.
13014 * math/w_log2l_compat.c: Likewise.
13015 * math/w_log_compat.c: Likewise.
13016 * math/w_logf_compat.c: Likewise.
13017 * math/w_logl_compat.c: Likewise.
13018 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13019 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13020 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13021 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13022 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13023 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13024 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13025 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13026 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13027 * sysdeps/ieee754/k_standardl.c: Likewise.
13028 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13029 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13030 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13031 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13032 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13033 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13034 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13035 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13036 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13037 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13038 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13039 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13040 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13041 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13042 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13043 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13044 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13045 * math/w_ilogb_template.c: Include <fenv.h> instead of
13046 <fenv_private.h>.
13047 * math/w_llogb_template.c: Likewise.
13048 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13049 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13050
13051 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13052
13053 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13054 * math/fromfp.h: Include <fenv_private.h>.
13055 * math/math-narrow.h: Likewise.
13056 * math/s_cexp_template.c: Likewise.
13057 * math/s_csin_template.c: Likewise.
13058 * math/s_csinh_template.c: Likewise.
13059 * math/s_ctan_template.c: Likewise.
13060 * math/s_ctanh_template.c: Likewise.
13061 * math/s_iseqsig_template.c: Likewise.
13062 * math/w_acos_compat.c: Likewise.
13063 * math/w_acosf_compat.c: Likewise.
13064 * math/w_acosl_compat.c: Likewise.
13065 * math/w_asin_compat.c: Likewise.
13066 * math/w_asinf_compat.c: Likewise.
13067 * math/w_asinl_compat.c: Likewise.
13068 * math/w_ilogb_template.c: Likewise.
13069 * math/w_j0_compat.c: Likewise.
13070 * math/w_j0f_compat.c: Likewise.
13071 * math/w_j0l_compat.c: Likewise.
13072 * math/w_j1_compat.c: Likewise.
13073 * math/w_j1f_compat.c: Likewise.
13074 * math/w_j1l_compat.c: Likewise.
13075 * math/w_jn_compat.c: Likewise.
13076 * math/w_jnf_compat.c: Likewise.
13077 * math/w_llogb_template.c: Likewise.
13078 * math/w_log10_compat.c: Likewise.
13079 * math/w_log10f_compat.c: Likewise.
13080 * math/w_log10l_compat.c: Likewise.
13081 * math/w_log2_compat.c: Likewise.
13082 * math/w_log2f_compat.c: Likewise.
13083 * math/w_log2l_compat.c: Likewise.
13084 * math/w_log_compat.c: Likewise.
13085 * math/w_logf_compat.c: Likewise.
13086 * math/w_logl_compat.c: Likewise.
13087 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13088 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13089 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13090 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13091 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13092 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13093 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13094 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13095 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13096 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13097 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13098 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13099 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13100 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13101 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13102 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13103 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13104 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13105 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13106 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13107 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13108 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13109 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13110 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13111 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13112 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13113 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13114 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13115 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13116 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13117 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13118 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13119 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13120 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13121 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13122 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13123 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13124 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13125 * sysdeps/ieee754/k_standardl.c: Likewise.
13126 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13127 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13128 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13129 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13130 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13131 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13132 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13133 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13134 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13135 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13136 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13137 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13138 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13139 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13140 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13141 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13142 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13143 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13144 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13145 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13146 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13147 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13148 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13149 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13150 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13151 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13152 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13153 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13154 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13155 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13156 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13157 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13158 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13159 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13160 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13161 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13162 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13163 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13164 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13165 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13166 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13167 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13168 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13169 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13170 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13171 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13172 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13173 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13174 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13175 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13176 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13177 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13178 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13179 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13180 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13181 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13182 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13183 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13184 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13185 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13186 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13187 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13188 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13189 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13190 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13191 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13192 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13193 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13194 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13195 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13196 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13197
13198 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13199
13200 [BZ #20271]
13201 * include/stdio.h (__libc_fatal): Mention newline in comment.
13202 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13203 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13204 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13205 * nss/nsswitch.c (__nss_next2): Likewise.
13206 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13207 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13208 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13209 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13210 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13211 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13212 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13213 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13214 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13215 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13216 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13217 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13218 (__netlink_assert_response): Likewise.
13219
13220 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13221
13222 * conform/glibcconform.py: New file.
13223 * conform/list-header-symbols.py: Likewise.
13224 * conform/list-header-symbols.pl: Remove.
13225 * conform/Makefile (tests-special): Only add linknamespace tests
13226 if [PYTHON].
13227 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13228
13229 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13230
13231 [BZ #23597]
13232 * support/Makefile (libsupport-routines): Add
13233 support_copy_file_range and xcopy_file_range.
13234 * support/support.h: Include <sys/types.h>.
13235 (support_copy_file_range): New prototype.
13236 * support/support_copy_file_range.c: New file. Copied and
13237 modified from io/copy_file_range-compat.c.
13238 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13239 instead of copy_file_range.
13240 * support/xcopy_file_range.c: New file.
13241 * support/xunistd.h (xcopy_file_range): New prototype.
13242
13243 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13244
13245 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13246 xpthread_create and xpthread_join.
13247
13248 2018-08-30 Florian Weimer <fweimer@redhat.com>
13249
13250 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13251
13252 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13253
13254 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13255 if malloc fails.
13256
13257 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13258
13259 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13260 and minus_oflow as non-finite.
13261
13262 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13263
13264 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13265 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13266 moved to fenv_private.h except for ...
13267 (TOINT_INTRINSICS): Kept in math_private.h.
13268 (roundtoint): Likewise.
13269 (converttoint): Likewise.
13270 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13271 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13272 * sysdeps/arm/math_private.h: Remove.
13273 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13274 ....
13275 * sysdeps/generic/math_private.h: ... this file. Include
13276 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13277 Include <fenv_private.h>. Remove functions and macros moved to
13278 fenv_private.h.
13279 * sysdeps/i386/fpu/math_private.h: Remove.
13280 * sysdeps/mips/math_private.h: Move to ....
13281 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13282 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13283 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13284 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13285 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13286 * sysdeps/powerpc/fpu/math_private.h: Do not include
13287 <fenv_private.h>.
13288 * sysdeps/riscv/rvf/math_private.h: Move to ....
13289 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13290 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13291 <fenv_private.h>.
13292 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13293 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13294 * sysdeps/sparc/fpu/math_private.h: Remove.
13295 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13296 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13297 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13298 <fenv_private.h>.
13299 * sysdeps/x86_64/fpu/math_private.h: Do not include
13300 <sysdeps/i386/fpu/fenv_private.h>.
13301
13302 2018-08-28 Florian Weimer <fweimer@redhat.com>
13303
13304 [BZ #23578]
13305 * posix/tst-regcomp-truncated.c: New file.
13306 * posix/Makefile (tests): Add it.
13307 (tst-regcomp-truncated.out): Depend on generated locales.
13308
13309 2018-08-28 Florian Weimer <fweimer@redhat.com>
13310
13311 * support/test-container.c (main): Treat unshare failure with
13312 EPERM as an unsupported test.
13313
13314 2018-08-28 Florian Weimer <fweimer@redhat.com>
13315
13316 [BZ #23520]
13317 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13318 * nscd/netgroupcache.c
13319 (addgetnetgrentX): Add tofreep parameter. Do not free
13320 heap-allocated buffer.
13321 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13322 (addgetnetgrentX_ignore): New function.
13323 (addgetnetgrent): Call it.
13324 (readdgetnetgrent): Likewise.
13325
13326 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13327
13328 * string/memmem.c: Use memcmp for first match.
13329
13330 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13331
13332 [BZ #17426]
13333 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13334
13335 2018-08-27 DJ Delorie <dj@redhat.com>
13336
13337 * support/Makefile (others): Don't list programs explicitly as a
13338 dependency of "others".
13339
13340 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13341
13342 * sysdeps/generic/math-tests-trap-force.h: New file.
13343 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13344 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13345 * sysdeps/powerpc/math-tests.h: Remove file.
13346 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13347
13348 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13349 Torvald Riegel <triegel@redhat.com>
13350
13351 [BZ #23538]
13352 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13353 Update r to include the set wake-request flag if waiters are
13354 remaining after spinning.
13355
13356 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13357
13358 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13359
13360 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13361
13362 [BZ #23578]
13363 regex: fix uninitialized memory access
13364 I introduced this bug into gnulib in commit
13365 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13366 eventually it was merged into glibc. The bug was found by
13367 project-repo <bugs@feusi.co> and reported here:
13368 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13369 Diagnosis and draft fix reported by Assaf Gordon here:
13370 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13371 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13372 * posix/regex_internal.c (build_wcs_upper_buffer):
13373 Fix bug when mbrtowc returns 0.
13374
13375 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13376
13377 * po/be.po: Update translation.
13378
13379 2018-08-24 DJ Delorie <dj@delorie.com>
13380
13381 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13382 $(libunwind).
13383
13384 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13385
13386 [BZ #23400]
13387 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13388 create temporary files in source tree.
13389
13390 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13391
13392 * sysdeps/generic/math-tests-trap.h: New file.
13393 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13394 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13395 * sysdeps/aarch64/math-tests.h: Remove file.
13396 * sysdeps/arm/math-tests.h: Likewise.
13397 * sysdeps/riscv/math-tests.h: Likewise.
13398 * sysdeps/aarch64/math-tests-trap.h: New file.
13399 * sysdeps/arm/math-tests-trap.h: Likewise.
13400 * sysdeps/riscv/math-tests-trap.h: Likewise.
13401
13402 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13403
13404 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13405 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13406 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13407 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13408 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13409 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13410 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13411 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13412 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13413 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13414 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13415 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13416 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13417 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13418 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13419 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13420 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13421 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13422
13423 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13424
13425 * sysdeps/generic/math-tests-exceptions.h: New file.
13426 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13427 (EXCEPTION_TESTS_float): Do not define here.
13428 (EXCEPTION_TESTS_double): Likewise.
13429 (EXCEPTION_TESTS_long_double): Likewise.
13430 (EXCEPTION_TESTS_float128): Likewise.
13431 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13432 Likewise.
13433 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13434 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13435 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13436 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13437 * sysdeps/mips/math-tests.h: Likewise.
13438 * sysdeps/nios2/math-tests.h: Likewise.
13439 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13440 (EXCEPTION_TESTS_float): Do not define here.
13441 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13442 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13443 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13444
13445 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13446
13447 * NEWS: Move optimized sinf entry to 2.29.
13448
13449 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13450
13451 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13452
13453 2018-08-22 DJ Delorie <dj@redhat.com>
13454
13455 * Makefile (testroot.pristine): New rules to initialize the
13456 test-in-container "testroot".
13457 * Makerules (all-testsuite): Add tests-container.
13458 * Rules (tests-expected): Add tests-container.
13459 (binaries-all-tests): Likewise.
13460 (tests-container): New, run these tests in the testroot container.
13461 * support/Makefile (others): Add *-container, support_paths.c,
13462 xmkdirp, and links-dso-program.
13463 * support/links-dso-program-c.c: New.
13464 * support/links-dso-program.cc: New.
13465 * support/test-container.c: New.
13466 * support/shell-container.c: New.
13467 * support/echo-container.c: New.
13468 * support/true-container.c: New.
13469 * support/xmkdirp.c: New.
13470 * support/xsymlink.c: New.
13471 * support/support_paths.c: New.
13472 * support/support.h: Add support paths prototypes.
13473 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13474
13475 * nss/tst-nss-test3.c: Convert to test-in-container.
13476 * nss/tst-nss-test3.root/: New.
13477
13478 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13479
13480 regex: port Gnulib code to z/OS POSIX environment
13481 Problem reported by Arnold Robbins in:
13482 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13483 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13484 Undef.
13485
13486 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13487
13488 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13489 (ROUNDING_TESTS_double): Remove.
13490 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13491 (ROUNDING_TESTS_double): Remove.
13492 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13493 (ROUNDING_TESTS_double): Remove.
13494 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13495 (ROUNDING_TESTS_float): Remove.
13496 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13497 (ROUNDING_TESTS_float): Remove.
13498 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13499 (ROUNDING_TESTS_float): Remove.
13500 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13501 !TEST_MATHVEC here.
13502 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13503 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13504
13505 * sysdeps/generic/math-tests-rounding.h: New file.
13506 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13507 (ROUNDING_TESTS_float): Do not define here.
13508 (ROUNDING_TESTS_double): Likewise.
13509 (ROUNDING_TESTS_long_double): Likewise.
13510 (ROUNDING_TESTS_float128): Likewise.
13511 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13512 (ROUNDING_TESTS_double): Undefine before defining.
13513 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13514 (ROUNDING_TESTS_double): Undefine before defining.
13515 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13516 (ROUNDING_TESTS_double): Undefine before defining.
13517 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13518 (ROUNDING_TESTS_float): Undefine before defining.
13519 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13520 (ROUNDING_TESTS_float): Undefine before defining.
13521 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13522 (ROUNDING_TESTS_float): Undefine before defining.
13523 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13524 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13525 not define here.
13526 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13527 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13528 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13529 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13530 (ROUNDING_TESTS_float): Do not define here.
13531 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13532 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13533 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13534 (ROUNDING_TESTS_float): Likewise.
13535 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13536 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13537 * sysdeps/mips/math-tests.h [__mips_soft_float]
13538 (ROUNDING_TESTS_float): Likewise.
13539 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13540 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13541 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13542 (ROUNDING_TESTS_double): Likewise.
13543 (ROUNDING_TESTS_long_double): Likewise.
13544
13545 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13546
13547 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13548 (PF_XDP): New macro.
13549 (AF_XDP): New macro.
13550 (SOL_XDP): New macro.
13551
13552 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13553
13554 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13555 (TCP_INQ): Likewise.
13556 (TCP_CM_INQ): Likewise.
13557 (TCP_REPAIR_ON): Likewise.
13558 (TCP_REPAIR_OFF): Likewise.
13559 (TCP_REPAIR_OFF_NO_WP): Likewise.
13560 (struct tcp_zerocopy_receive): New type.
13561
13562 2018-08-21 Florian Weimer <fweimer@redhat.com>
13563
13564 * support/support.h (support_descriptor_supports_holes): Declare.
13565 * support/Makefile (libsupport-routines): Add
13566 support_descriptor_supports_holes.
13567 * support/support_descriptor_supports_holes.c: New file.
13568 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13569 and stop testing if holes are not supported.
13570 * io/test-lfs.c (do_prepare): Likewise.
13571 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13572 Likewise.
13573 * timezone/tst-tzset.c (create_tz_file): Likewise.
13574 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13575 variable.
13576 (do_prepare): Set it.
13577 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13578
13579 2018-08-21 Florian Weimer <fweimer@redhat.com>
13580
13581 [BZ #17248]
13582 * Makeconfig (+cflags): Do not sort (and deduplicate).
13583
13584 2018-08-21 Florian Weimer <fweimer@redhat.com>
13585
13586 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13587 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13588
13589 2018-08-20 Florian Weimer <fweimer@redhat.com>
13590
13591 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13592 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13593
13594 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13595
13596 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13597 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13598 and ssi_arch members.
13599
13600 * elf/elf.c (NT_VMCOREDD): New macro.
13601 (AT_MINSIGSTKSZ): Likewise.
13602
13603 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13604
13605 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13606 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13607 s_cosf-ppc64 and s_cosf-power8.
13608 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13609 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13610 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13611 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13613 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13614 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13616 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13617 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13618 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13619 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13620
13621 2018-08-17 Florian Weimer <fweimer@redhat.com>
13622
13623 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13624
13625 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13626
13627 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13628
13629 2018-08-16 Florian Weimer <fweimer@redhat.com>
13630
13631 * configure.ac: Add --with-nonshared-cflags option.
13632 * config.make.in (extra-nonshared-cflags): Set variable.
13633 * Makeconfig (CFLAGS-.oS): Use it.
13634 * manual/install.texi (Configuring and compiling): Document
13635 --with-nonshared-cflags.
13636 * configure: Regenerate.
13637 * INSTALL: Likewise.
13638
13639 2018-08-16 Florian Weimer <fweimer@redhat.com>
13640
13641 * Makeconfig (ASFLAGS): Always append required assembler flags.
13642
13643 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13644
13645 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13646 (malloc_consolidate): Likewise.
13647
13648 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13649
13650 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13651
13652 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13653
13654 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13655 every strlen call.
13656
13657 * benchtests/bench-strlen.c: Print performance numbers in json.
13658
13659 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13660
13661 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13662 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13663 only for little endian.
13664 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13665 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13666 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13667 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13668 Add check for little endian.
13669 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13670 (__strcmp_power9): Add check for little endian.
13671 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13672 Add check for little endian.
13673 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13674 (__strncmp_power9): Add check for little endian.
13675 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13676 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13677 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13678 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13679 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13680
13681 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13682
13683 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13684 [!STRLEN](STRLEN): Set to __strlen.
13685 * sysdeps/aarch64/multiarch/strlen.c: New file.
13686 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13687 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13688 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13689 (__libc_ifunc_impl_list): Add strlen.
13690 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13691 strlen_generic and strlen_asimd.
13692
13693 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13694
13695 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13696 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13697 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13698
13699 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13700
13701 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13702
13703 2018-08-14 Florian Weimer <fweimer@redhat.com>
13704
13705 [BZ #23519]
13706 * include/stdio.h (__vfxprintf): Declare.
13707 * stdio-common/fxprintf.c (__vfxprintf): New function.
13708 (__fxprintf): Call it.
13709 * misc/err.c (convert_and_print): Remove function.
13710 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13711 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13712 * misc/Makefile (tests): Add tst-warn-wide.
13713 * misc/tst-warn-wide.c: New file.
13714
13715 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13716 Szabolcs Nagy <szabolcs.nagy@arm.com>
13717
13718 * NEWS: Mention sinf, cosf, sincosf.
13719 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13720 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13721 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13722 constants rather than including generic sincosf.h.
13723 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13724 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13725 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13726 (reduced_cos): Remove.
13727 (sinf_poly): New function.
13728 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13729
13730 2018-08-14 Florian Weimer <fweimer@redhat.com>
13731
13732 [BZ #23521]
13733 [BZ #23522]
13734 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13735 processing, bail out if no room, and close the stream before
13736 returning ERANGE.
13737 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13738 (tst-nss-files-alias-leak): Link with libdl.
13739 (tst-nss-files-alias-leak.out): Depend on nss_files.
13740
13741 * nss/tst-nss-files-alias-leak.c: New file.
13742
13743 2018-08-14 Florian Weimer <fweimer@redhat.com>
13744
13745 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13746 server_user, stat_user.
13747
13748 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13749
13750 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13751 version to 4.18.
13752 (io_pgetevents): New syscall.
13753 (rseq): Likewise.
13754
13755 * manual/install.texi (Configuring and compiling): Do not list
13756 tools used for testing pretty printers here.
13757 (Tools for Compilation): List Python, PExpect and GDB here.
13758 Update descriptions of uses of Perl and Python.
13759 * INSTALL: Regenerate.
13760
13761 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13762 version to 4.18.
13763
13764 2018-08-13 Florian Weimer <fweimer@redhat.com>
13765
13766 * misc/error.c (error): Add missing va_end call.
13767 (error_at_line): Likewise.
13768
13769 2018-08-13 Florian Weimer <fweimer@redhat.com>
13770
13771 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13772
13773 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13774
13775 * benchtests/scripts/benchout.schema.json (properties): Add
13776 new properties.
13777
13778 * benchtests/bench-skeleton.c (main): Add duration and
13779 iterations attributes.
13780
13781 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13782
13783 regex: Gnulib unibyte RRI uses bytes not chars
13784 Adjust the non-glibc code to agree with what Gawk needs for
13785 rational range interpretation (RRI) for regular expression ranges.
13786 In unibyte locales, Gawk wants ranges to use the underlying byte
13787 rather than the character code point. This change does not affect
13788 glibc proper.
13789 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13790 In unibyte locales, use the byte value rather than
13791 running it through btowc.
13792
13793 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13794
13795 * sysdeps/generic/math-tests-snan.h: New file.
13796 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13797 (SNAN_TESTS_float): Do not define here.
13798 (SNAN_TESTS_double): Likewise.
13799 (SNAN_TESTS_long_double): Likewise.
13800 (SNAN_TESTS_float128): Likewise.
13801 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13802 * sysdeps/i386/fpu/math-tests.h: Remove file.
13803 * sysdeps/ia64/math-tests-snan.h: New file.
13804 * sysdeps/ia64/math-tests.h: Remove file.
13805 * sysdeps/x86/math-tests.h: Likewise.
13806 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13807
13808 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13809 Szabolcs Nagy <szabolcs.nagy@arm.com>
13810
13811 * math/Makefile: Add s_sincosf_data.c.
13812 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13813 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13814 (sincosf_poly): Likewise.
13815 (reduce_small): Likewise.
13816 (reduce_large): Likewise.
13817 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13818 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13819 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13820 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13821
13822 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13823 Szabolcs Nagy <szabolcs.nagy@arm.com>
13824
13825 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13826 (converttoint): Use lround.
13827 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13828 document the semantics when TOINT_INTRINSICS is set.
13829 (converttoint): Likewise.
13830 (TOINT_RINT): Remove.
13831 (TOINT_SHIFT): Remove.
13832 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13833 path.
13834
13835 2018-08-10 Florian Weimer <fweimer@redhat.com>
13836
13837 [BZ #23497]
13838 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13839 function.
13840 (__old_getdents64): Use getdents64. Convert entries without
13841 moving them.
13842 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13843 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13844 tst-readdir64-compat.
13845
13846 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13847
13848 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13849 Fix unwind.
13850
13851 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13852
13853 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13854 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13855 code to s390x-mcount.h and #include it.
13856 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13857 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13858 (__fentry__): Add.
13859
13860 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13861
13862 * stdlib/Versions: Remove __fentry__.
13863 * sysdeps/i386/Versions: Add __fentry__.
13864 * sysdeps/x86_64/Versions: Add __fentry__.
13865
13866 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13867
13868 * sysdeps/s390/Makefile: Register the new tests.
13869 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13870 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13871 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13872 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13873 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13874 * sysdeps/s390/tst-dl-runtime.c: New file.
13875
13876 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13877
13878 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13879 Do not clobber R0.
13880
13881 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13882
13883 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13884 Do not clobber R0.
13885
13886 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13887
13888 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13889 Do not clobber R0.
13890
13891 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13892
13893 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13894 Do not clobber R0.
13895
13896 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13897
13898 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13899 Use symbolic offsets for stack variables.
13900
13901 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13902
13903 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13904 Use symbolic offsets for stack variables.
13905
13906 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13907
13908 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13909 Use symbolic offsets for stack variables.
13910
13911 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13912
13913 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13914 Use symbolic offsets for stack variables.
13915
13916 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13917
13918 * math/gen-libm-test.py: New file.
13919 * math/gen-libm-test.pl: Remove.
13920 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13921 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13922 gen-libm-test.pl.
13923 ($(libm-test-c-noauto-obj)): Likewise.
13924 ($(libm-test-c-auto-obj)): Likewise.
13925 ($(libm-test-c-narrow-obj)): Likewise.
13926 (regen-ulps): Likewise.
13927 * math/README.libm-test: Update references to gen-libm-test.pl.
13928 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13929 referencing gen-libm-test.pl.
13930 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13931 * math/libm-test-support.c: Likewise.
13932 * math/libm-test-support.h: Likewise.
13933 * sysdeps/generic/libm-test-ulps: Likewise.
13934
13935 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13936
13937 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13938 Fix value.
13939
13940 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13941
13942 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13943 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13944
13945 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13946
13947 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13948 symbols.
13949 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13950 __pthread_setspecific): Add hidden proto.
13951 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13952 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13953
13954 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13955
13956 * benchtests/bench-string.h (buf1_size, buf2_size): New
13957 variables.
13958 (init_sizes): New function.
13959 (test_init): Use it.
13960 (alloc_buf, exit_error): New functions.
13961 (alloc_bufs): Use ALLOC_BUF.
13962 (realloc_bufs): Remove.
13963 * benchtests/bench-memcmp.c (do_test): Adjust.
13964 * benchtests/bench-memset-large.c (do_test): Likewise.
13965 * benchtests/bench-memset-walk.c (do_test): Likewise.
13966 * benchtests/bench-memset.c (do_test): Likewise.
13967 * benchtests/bench-strncmp.c (do_test): Likewise.
13968
13969 2018-08-06 Andreas Schwab <schwab@suse.de>
13970
13971 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13972 of CONST_THREAD_AREA.
13973
13974 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13975
13976 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13977 (STATE_SAVE_MASK): Likewise.
13978 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13979 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13980 (STATE_SAVE_MASK): Likewise.
13981 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13982 instead of <cpu-features.h>.
13983
13984 2018-08-03 DJ Delorie <dj@redhat.com>
13985
13986 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13987 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13988
13989 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13990
13991 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13992
13993 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13994 after TEST_* calls.
13995 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13996 * math/libm-test-logb.inc (logb_test_data): Likewise.
13997
13998 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13999
14000 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14001 * string/strstr.c (AVAILABLE): Likewise.
14002
14003 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14004
14005 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14006 <init-arch.h>.
14007 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14008 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14009 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14010
14011 2018-08-03 Carlos O'Donell <carlos@redhat.com>
14012
14013 * po/be.po: Update translation.
14014
14015 * po/be.po: Update translation.
14016
14017 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14018
14019 * sysdeps/x86/cpu-features-offsets.sym
14020 (rtld_global_ro_offsetof): Removed.
14021 (CPU_FEATURES_SIZE): Likewise.
14022 (CPUID_OFFSET): Likewise.
14023 (CPUID_SIZE): Likewise.
14024 (CPUID_EAX_OFFSET): Likewise.
14025 (CPUID_EBX_OFFSET): Likewise.
14026 (CPUID_ECX_OFFSET): Likewise.
14027 (CPUID_EDX_OFFSET): Likewise.
14028 (FAMILY_OFFSET): Likewise.
14029 (MODEL_OFFSET): Likewise.
14030 (FEATURE_OFFSET): Likewise.
14031 (FEATURE_SIZ): Likewise.
14032 (COMMON_CPUID_INDEX_1): Likewise.
14033 (COMMON_CPUID_INDEX_7): Likewise.
14034 (FEATURE_INDEX_1): Likewise.
14035 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14036
14037 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14038
14039 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14040 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14041 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14042 (install-locales): Depend on install-locale-archive.
14043 (install-locale-archive): Define.
14044 (install-locale-files): Define.
14045 (build-one-locale): Define macro.
14046 * manual/install.texi (Running make install): Document.
14047 * manual/INSTALL: Regenerate.
14048
14049 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14050
14051 * benchtests/scripts/compare_strings.py: Import traceback.
14052 (parse_file): Pretty-print error.
14053
14054 * NEWS: Mention the change.
14055 * elf/dl-tunables.list: Rename tune namespace to cpu.
14056 * sysdeps/powerpc/dl-tunables.list: Likewise.
14057 * sysdeps/x86/dl-tunables.list: Likewise.
14058 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14059 cpu.name.
14060 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14061 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14062 * manual/README.tunables: Likewise.
14063 * manual/tunables.texi: Likewise.
14064 * sysdeps/powerpc/cpu-features.c: Likewise.
14065 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14066 (init_cpu_features): Likewise.
14067 * sysdeps/x86/cpu-features.c: Likewise.
14068 * sysdeps/x86/cpu-features.h: Likewise.
14069 * sysdeps/x86/cpu-tunables.c: Likewise.
14070 * sysdeps/x86_64/Makefile: Likewise.
14071 * sysdeps/x86/dl-cet.c: Likewise.
14072
14073 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14074
14075 [BZ #23479]
14076 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14077 [__mips_hard_float].
14078 (FE_UNDERFLOW): Likewise.
14079 (FE_OVERFLOW): Likewise.
14080 (FE_DIVBYZERO): Likewise.
14081 (FE_INVALID): Likewise.
14082 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14083 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14084 (FE_UPWARD): Likewise.
14085 (FE_DOWNWARD): Likewise.
14086 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14087 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14088 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14089 [__mips_hard_float].
14090 (FP_ROUNDMODE): Likewise.
14091 (FP_RND_NEAREST): Likewise.
14092 (FP_RND_ZERO): Likewise.
14093 (FP_RND_PINF): Likewise.
14094 (FP_RND_MINF): Likewise.
14095 (FP_EX_INVALID): Likewise.
14096 (FP_EX_OVERFLOW): Likewise.
14097 (FP_EX_UNDERFLOW): Likewise.
14098 (FP_EX_DIVZERO): Likewise.
14099 (FP_EX_INEXACT): Likewise.
14100 (FP_INIT_ROUNDMODE): Likewise.
14101 * sysdeps/mips/nofpu/fesetenv.c: New file.
14102 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14103
14104 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14105
14106 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14107 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14108 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14109 conditional on [FE_UPWARD].
14110
14111 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14112
14113 regex: fix memory leak in Gnulib
14114 Problem and fix reported by Assaf Gordon in:
14115 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14116 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14117 range_ends members too, as they are defined in 'struct
14118 re_charset_t' even if not _LIBC. This affects only Gnulib.
14119
14120 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14121
14122 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14123 ...
14124 (get_common_indices): This.
14125 (init_cpu_features): Updated.
14126
14127 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14128
14129 * sysdeps/generic/math-tests-snan-payload.h: New file.
14130 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14131 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14132 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14133 * sysdeps/generic/math-tests.h: Include
14134 <math-tests-snan-payload.h>.
14135 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14136 * sysdeps/hppa/math-tests.h: Remove file.
14137 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14138 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14139 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14140 Likewise.
14141
14142 * sysdeps/generic/math-tests-snan-cast.h: New file.
14143 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14144 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14145 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14146 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14147
14148 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14149
14150 * version.h (RELEASE): Set to "development".
14151 (VERSION): Set to "2.28.9000".
14152 * NEWS (2.29): New section.
14153
14154 * version.h (RELEASE): Set to "stable".
14155 (VERSION): Set to "2.28".
14156 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14157 * NEWS: Add the list of bugs fixed in 2.28.
14158
14159 * po/ca.po: Update to latest version.
14160 * po/cs.po: Likewise
14161 * po/da.po: Likewise
14162 * po/el.po: Likewise
14163 * po/eo.po: Likewise
14164 * po/es.po: Likewise
14165 * po/fi.po: Likewise
14166 * po/fr.po: Likewise
14167 * po/gl.po: Likewise
14168 * po/hu.po: Likewise
14169 * po/ia.po: Likewise
14170 * po/id.po: Likewise
14171 * po/it.po: Likewise
14172 * po/ja.po: Likewise
14173 * po/ko.po: Likewise
14174 * po/lt.po: Likewise
14175 * po/nb.po: Likewise
14176 * po/nl.po: Likewise
14177 * po/pt_BR.po: Likewise
14178 * po/ru.po: Likewise
14179 * po/rw.po: Likewise
14180 * po/sk.po: Likewise
14181 * po/sl.po: Likewise
14182 * po/tr.po: Likewise
14183 * po/zh_CN.po: Likewise
14184 * po/zh_TW.po: Likewise
14185
14186 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14187
14188 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14189 initialization...
14190 (init): ... before initializing libpthread.
14191
14192 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14193 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14194 (__mach_setup_tls): ... new function.
14195 (mach_setup_tls): New alias.
14196 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14197 __mach_setup_thread.
14198 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14199 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14200 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14201 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14202
14203 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14204
14205 * manual/install.texi: Update versions.
14206 * INSTALL: Regenerate.
14207
14208 * manual/contrib.texi (Contributors): Update contributions.
14209
14210 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14211
14212 * po/be.po: Update translations.
14213
14214 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14215
14216 * sysdeps/sh/libm-test-ulps: Update.
14217
14218 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14219
14220 * po/bg.po: Update translations.
14221 * po/de.po: Likewise.
14222 * po/hr.po: Likewise.
14223 * po/pt_BR.po: Likewise.
14224 * po/sv.po: Likewise.
14225 * po/vi.po: Likewise.
14226
14227 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14228
14229 [BZ #23467]
14230 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14231 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14232 (CFLAGS-tst-cet-property-1.o): New.
14233 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14234 ($(objpfx)tst-cet-property-2): Likewise.
14235 ($(objpfx)tst-cet-property-2.out): Likewise.
14236 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14237 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14238 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14239 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14240 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14241
14242 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14243
14244 [BZ #23458]
14245 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14246
14247 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14248
14249 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14250 __sbrk): Do not set attribute_hidden.
14251 * sysdeps/mach/hurd/not-errno.h: New file.
14252 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14253 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14254
14255 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14256
14257 * po/uk.po: Update translations.
14258 * po/cs.po: Likewise.
14259 * po/pl.po: Likewise.
14260
14261 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14262
14263 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14264 parse beyond the note end.
14265
14266 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14267
14268 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14269 kernel does not support OFD locks.
14270 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14271
14272 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14273
14274 * sysdeps/mach/hurd/Versions (libc): Make __access and
14275 __access_noerrno external so they can override the ld symbols.
14276 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14277 __writev, __open64, __access_noerrno extern so they can be overrided.
14278 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14279 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14280
14281 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14282
14283 * po/libc.pot: Regenerate.
14284
14285 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14286
14287 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14288
14289 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14290
14291 [BZ #23459]
14292 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14293 function.
14294 (init_cpu_features): Call get_extended_indices for both Intel
14295 and AMD CPUs.
14296 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14297 Remove "for AMD" comment.
14298
14299 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14300
14301 [BZ # 23456]
14302 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14303 COMMON_CPUID_INDEX_80000001.
14304
14305 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14306
14307 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14308 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14309
14310 2018-07-26 Florian Weimer <fweimer@redhat.com>
14311
14312 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14313 aliases for symbols not in the implementation namespace.
14314
14315 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14316
14317 [BZ #23393]
14318 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14319 lowercase in LATIN script.
14320 * localedata/Makefile (test-input): Add en_US.UTF-8.
14321 * localedata/en_US.UTF-8.in: New file.
14322 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14323 and restore old tests.
14324 * posix/tst-regexloc.c (do_test): Add back range expression test.
14325
14326 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14327
14328 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14329
14330 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14331
14332 * nptl/threads.h: Move to ...
14333 * sysdeps/nptl/threads.h: ... here.
14334 * sysdeps/hurd/stdc-predef.h: New file.
14335
14336 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14337
14338 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14339 tst-cet-setcontext-1 if CET is enabled.
14340 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14341 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14342
14343 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14344
14345 * include/threads.h: Move to ...
14346 * sysdeps/nptl/threads.h: ... here.
14347 * sysdeps/htl/threads.h: New file.
14348 * conform/Makefile (linknamespace-libs-ISO11): Use
14349 static-thread-library instead of linking libpthread.
14350 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14351
14352 2018-07-25 Florian Weimer <fweimer@redhat.com>
14353
14354 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14355 nanoseconds into seconds.
14356 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14357 (do_test): Likewise.
14358 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14359 (do_test): Likewise. Avoid nanosecond overflow and spurious
14360 timeouts due to system load.
14361 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14362 (child_wait): Increment it.
14363 (do_test): Wait as long as necessary until all expected threads
14364 have arrived.
14365
14366 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14367 H.J. Lu <hongjiu.lu@intel.com>
14368
14369 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14370 __ssp.
14371 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14372 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14373 (__push___start_context): New.
14374 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14375 <asm/prctl.h>.
14376 (__getcontext): Record the current shadow stack base. Save the
14377 caller's shadow stack pointer and base.
14378 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14379 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14380 (__push___start_context): New prototype.
14381 (__makecontext): Call __push___start_context to allocate a new
14382 shadow stack, push __start_context onto the new stack as well
14383 as the new shadow stack.
14384 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14385 <asm/prctl.h>.
14386 (__setcontext): Restore the target shadow stack.
14387 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14388 <asm/prctl.h>.
14389 (__swapcontext): Record the current shadow stack base. Save
14390 the caller's shadow stack pointer and base. Restore the target
14391 shadow stack.
14392 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14393 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14394 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14395
14396 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14397
14398 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14399 tst-setcontext8 and tst-setcontext9.
14400 * stdlib/tst-setcontext6.c: New file.
14401 * stdlib/tst-setcontext7.c: Likewise.
14402 * stdlib/tst-setcontext8.c: Likewise.
14403 * stdlib/tst-setcontext9.c: Likewise.
14404
14405 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14406
14407 * stdlib/Makefile ((tests): Add tst-setcontext5.
14408 * stdlib/tst-setcontext5.c: New file.
14409
14410 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14411
14412 * stdlib/Makefile (tests): Add tst-setcontext4.
14413 * stdlib/tst-setcontext4.c: New file.
14414
14415 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14416
14417 * stdlib/Makefile (tests): Add tst-swapcontext1.
14418 * stdlib/tst-swapcontext1.c: New test.
14419
14420 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14421
14422 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14423 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14424 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14425 and tst-cet-legacy-4c.
14426 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14427 and tst-cet-legacy-mod-4.
14428 (CFLAGS-tst-cet-legacy-2.c): New.
14429 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14430 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14431 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14432 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14433 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14434 ($(objpfx)tst-cet-legacy-1): Likewise.
14435 ($(objpfx)tst-cet-legacy-2): Likewise.
14436 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14437 ($(objpfx)tst-cet-legacy-2a): Likewise.
14438 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14439 ($(objpfx)tst-cet-legacy-4): Likewise.
14440 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14441 ($(objpfx)tst-cet-legacy-4a): Likewise.
14442 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14443 (tst-cet-legacy-4a-ENV): Likewise.
14444 ($(objpfx)tst-cet-legacy-4b): Likewise.
14445 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14446 (tst-cet-legacy-4b-ENV): Likewise.
14447 ($(objpfx)tst-cet-legacy-4c): Likewise.
14448 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14449 (tst-cet-legacy-4c-ENV): Likewise.
14450 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14451 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14452 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14453 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14454 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14455 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14456 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14457 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14458 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14459 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14460 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14461
14462 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14463
14464 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14465 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14466 with ssp_base.
14467 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14468 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14469 with ssp_base.
14470
14471 2018-07-25 Andreas Schwab <schwab@suse.de>
14472
14473 [BZ #23442]
14474 * locale/weightwc.h (findidx): Handle the case where usrc is a
14475 prefix of cp but one character too short.
14476
14477 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14478
14479 * NEWS: Add ISO C threads addition.
14480
14481 2018-07-24 Florian Weimer <fweimer@redhat.com>
14482
14483 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14484 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14485 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14486 4.13.
14487
14488 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14489
14490 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14491 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14492 <sys/prctl.h> and <asm/prctl.h>.
14493 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14494 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14495 and <asm/prctl.h>.
14496 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14497 ARCH_CET_LEGACY_BITMAP.
14498 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14499 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14500 * sysdeps/x86/libc-start.c: Include <startup.h>.
14501
14502 2018-07-24 Florian Weimer <fweimer@redhat.com>
14503
14504 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14505 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14506
14507 2018-07-24 Rical Jasan <rj@2c3t.io>
14508 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14509 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14510
14511 [BZ #14092]
14512 * manual/debug.texi: Update adjacent chapter name.
14513 * manual/probes.texi: Likewise.
14514 * manual/threads.texi (ISO C Threads): New section.
14515 (POSIX Threads): Convert to a section.
14516
14517 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14518 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14519
14520 [BZ# 14092]
14521 * nptl/Makefile (tests): Add new test files.
14522 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14523 * nptl/tst-cnd-basic.c: Likewise.
14524 * nptl/tst-cnd-broadcast.c: Likewise.
14525 * nptl/tst-cnd-timedwait.c: Likewise.
14526 * nptl/tst-mtx-basic.c: Likewise.
14527 * nptl/tst-mtx-recursive.c: Likewise.
14528 * nptl/tst-mtx-timedlock.c: Likewise.
14529 * nptl/tst-mtx-trylock.c: Likewise.
14530 * nptl/tst-thrd-basic.c: Likewise.
14531 * nptl/tst-thrd-detach.c: Likewise.
14532 * nptl/tst-thrd-sleep.c: Likewise.
14533 * nptl/tst-tss-basic.c: Likewise.
14534
14535 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14536
14537 [BZ #14092]
14538 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14539 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14540 symbols.
14541 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14542 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14543 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14544 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14545 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14546 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14547 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14548 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14549 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14550 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14551 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14552 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14554 Likewise.
14555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14556 Likewise.
14557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14558 Likewise.
14559 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14560 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14561 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14562 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14563 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14564 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14565 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14569 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14570 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14571 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14572 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14573 Likewise.
14574 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14575 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14576 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14578 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14579 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14580 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14581 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14582 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14583 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14584 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14585 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14586 ikewise.
14587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14589 Likewise.
14590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14591 Likewise.
14592 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14593 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14596 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14597 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14600
14601 [BZ #14092]
14602 * conform/data/threads.h-data (thread_local): New macro.
14603 (TSS_DTOR_ITERATIONS): Likewise.
14604 (tss_t): New type.
14605 (tss_dtor_t): Likewise.
14606 (tss_create): New function.
14607 (tss_get): Likewise.
14608 (tss_set): Likewise.
14609 (tss_delete): Likewise.
14610 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14611 tss_get, and tss_set objects.
14612 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14613 * nptl/tss_create.c: New file.
14614 * nptl/tss_delete.c: Likewise.
14615 * nptl/tss_get.c: Likewise.
14616 * nptl/tss_set.c: Likewise.
14617 * sysdeps/nptl/threads.h (thread_local): New define.
14618 (TSS_DTOR_ITERATIONS): Likewise.
14619 (tss_t): New typedef.
14620 (tss_dtor_t): Likewise.
14621 (tss_create): New prototype.
14622 (tss_get): Likewise.
14623 (tss_set): Likewise.
14624 (tss_delete): Likewise.
14625
14626 [BZ #14092]
14627 * conform/data/threads.h-data (cnd_t): New type.
14628 (cnd_init): New function.
14629 (cnd_signal): Likewise.
14630 (cnd_broadcast): Likewise.
14631 (cnd_wait): Likewise.
14632 (cnd_timedwait): Likewise.
14633 (cnd_destroy): Likewise.
14634 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14635 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14636 object.
14637 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14638 * nptl/cnd_broadcast.c: New file.
14639 * nptl/cnd_destroy.c: Likewise.
14640 * nptl/cnd_init.c: Likewise.
14641 * nptl/cnd_signal.c: Likewise.
14642 * nptl/cnd_timedwait.c: Likewise.
14643 * nptl/cnd_wait.c: Likewise.
14644 * sysdeps/nptl/threads.h (cnd_t): New type.
14645 (cnd_init): New prototype.
14646 (cnd_signa): Likewise.
14647 (cnd_broadcast): Likewise.
14648 (cnd_wait): Likewise.
14649 (cnd_timedwait): Likewise.
14650 (cnd_destroy): Likewise.
14651
14652 [BZ #14092]
14653 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14654 (once_flag): New type.
14655 (call_once): New function.
14656 * nptl/Makefile (libpthread-routines): Add call_once object.
14657 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14658 * nptl/call_once.c: New file.
14659 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14660 (once_flag): New type.
14661 (call_once): New prototype.
14662
14663 [BZ #14092]
14664 * conform/data/threads.h-data (mtx_plain): New constant.
14665 (mtx_recursive): Likewise.
14666 (mtx_timed): Likewise.
14667 (mtx_t): New type.
14668 (mtx_init): New function.
14669 (mtx_lock): Likewise.
14670 (mtx_timedlock): Likewise.
14671 (mtx_trylock): Likewise.
14672 (mtx_unlock): Likewise.
14673 (mtx_destroy): Likewise.
14674 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14675 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14676 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14677 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14678 * nptl/mtx_destroy.c: New file.
14679 * nptl/mtx_init.c: Likewise.
14680 * nptl/mtx_lock.c: Likewise.
14681 * nptl/mtx_timedlock.c: Likewise.
14682 * nptl/mtx_trylock.c: Likewise.
14683 * nptl/mtx_unlock.c: Likewise.
14684 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14685 (mtx_recursive): Likewise.
14686 (mtx_timed): Likewise.
14687 (mtx_t): New type.
14688 (mtx_init): New prototype.
14689 (mtx_lock): Likewise.
14690 (mtx_timedlock): Likewise.
14691 (mtx_trylock): Likewise.
14692 (mtx_unlock): Likewise.
14693 (mtx_destroy): Likewise.
14694
14695 [BZ #14092]
14696 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14697 (linknamespace-libs-ISO11): Add libpthread.a.
14698 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14699 functions.
14700 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14701 * nptl/Makefile (headers): Add threads.h.
14702 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14703 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14704 thrd_yield.
14705 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14706 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14707 thrd_join, thrd_sleep, and thrd_yield symbols.
14708 * nptl/descr.h (struct pthread): Add c11 field.
14709 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14710 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14711 routine with expected function prototype.
14712 (__pthread_create_2_1): Add C11 threads check based on attribute
14713 value.
14714 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14715 * nptl/thrd_create.c: New file.
14716 * nptl/thrd_current.c: Likewise.
14717 * nptl/thrd_detach.c: Likewise.
14718 * nptl/thrd_equal.c: Likewise.
14719 * nptl/thrd_exit.c: Likewise.
14720 * nptl/thrd_join.c: Likewise.
14721 * nptl/thrd_priv.h: Likewise.
14722 * nptl/thrd_sleep.c: Likewise.
14723 * nptl/thrd_yield.c: Likewise.
14724 * include/threads.h: Likewise.
14725
14726 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14727
14728 * bits/indirect-return.h: New file.
14729 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14730 * sysdeps/x86/bits/indirect-return.h: Likewise.
14731 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14732 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14733 (swapcontext): Add __INDIRECT_RETURN.
14734 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14735 (prepare_test_buffer): Use it.
14736
14737 2018-07-24 Andreas Schwab <schwab@suse.de>
14738
14739 [BZ #23448]
14740 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14741 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14742
14743 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14744
14745 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14746 Redefine if shadow stack is enabled.
14747 (SYSCALL_ERROR_LABEL): Likewise.
14748 (__vfork): Pop shadow stack and jump back to to caller directly
14749 when shadow stack is in use.
14750 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14751 Redefine if shadow stack is enabled.
14752 (SYSCALL_ERROR_LABEL): Likewise.
14753 (__vfork): Pop shadow stack and jump back to to caller directly
14754 when shadow stack is in use.
14755
14756 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14757
14758 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14759 enabled.
14760 (foo): Likewise.
14761 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14762 (foo): Likewise.
14763
14764 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14765
14766 * scripts/build-many-glibcs.py (Context.checkout): Default
14767 binutils version to 2.31 branch.
14768
14769 2018-07-20 Zong Li <zong@andestech.com>
14770
14771 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14772 URL of gcc's tarball.
14773
14774 2018-07-20 Florian Weimer <fweimer@redhat.com>
14775
14776 [BZ #23396]
14777 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14778 not compare an extra byte after the end of the weights.
14779
14780 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14781
14782 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14783 to 1.
14784 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14785 hidden prototypes.
14786 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14787 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14788 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14789 list of libraries whose stack executability is expected.
14790 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14791 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14792 variable.
14793 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14794 libc.so libpthread.so.
14795
14796 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14797
14798 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14799 SOCK_NONBLOCK.
14800 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14801 and SOCK_NONBLOCK.
14802 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14803 implement __pipe2.
14804 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14805
14806 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14807
14808 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14809 library to improve command line parsing.
14810 (__main__): make schema file as optional parameter (--schema),
14811 defaulting to benchtests/scripts/benchout.schema.json.
14812 (main): move out of the parsing stuff to __main_  and leave it
14813 only as caller of main comparison functions.
14814
14815 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14816
14817 * NEWS: Add a note for Intel CET status.
14818 * manual/install.texi: Likewise.
14819 * INSTALL: Regenerated.
14820
14821 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14822
14823 [BZ #23140]
14824 * localedata/locales/oc_FR (mon): Rename to...
14825 (alt_mon): This, then update October (typo fix).
14826 (mon): New content (genitive case, month names preceded by
14827 "de" or "d’").
14828
14829 [BZ #23422]
14830 * localedata/locales/oc_FR (abday): Update all items.
14831 (day): Update Wednesday and Saturday (typo fixes).
14832 (abmon): Update all items, except May.
14833 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14834 (LC_IDENTIFICATION): Bump the revision number and date.
14835 Keep the "category" entries in alphabetic order.
14836 (LC_ADDRESS): Remove no longer needed comment.
14837 (LC_COLLATE): Use “copy "ca_ES"”.
14838 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14839 "name_mrs".
14840
14841 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14842
14843 * grp/tst_fgetgrent.c: Include <unistd.h>.
14844 (main): Use mkstemp instead of tmpnam.
14845 * io/test-utime.c (main): Likewise.
14846 * posix/annexc.c (macrofile): Change to modifiable array.
14847 (main): Remove macrofile here.
14848 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14849 macrofile here.
14850 (check_header): Do not remove macrofile here.
14851 * posix/bug-getopt1.c: Include <stdlib.h>.
14852 (do_test): Use mkstemp instead of tmpnam.
14853 * posix/bug-getopt2.c: Include <stdlib.h>.
14854 (do_test): Use mkstemp instead of tmpnam.
14855 * posix/bug-getopt3.c: Include <stdlib.h>.
14856 (do_test): Use mkstemp instead of tmpnam.
14857 * posix/bug-getopt4.c: Include <stdlib.h>.
14858 (do_test): Use mkstemp instead of tmpnam.
14859 * posix/bug-getopt5.c: Include <stdlib.h>.
14860 (do_test): Use mkstemp instead of tmpnam.
14861 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14862 (main): Use mkstemp instead of tmpnam.
14863 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14864 (main): Use mkstemp instead of tmpnam.
14865 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14866 (main): use mkstemp instead of tmpnam.
14867 * stdlib/isomac.c (macrofile): Change to modifiable array.
14868 (main): Remove macrofile here.
14869 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14870 macrofile here.
14871 (check_header): Do not remove macrofile here.
14872
14873 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14874
14875 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14876 glibc.tune.x86_shstk.
14877
14878 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14879
14880 * NEWS: Mention --enable-cet.
14881 * manual/install.texi: Document --enable-cet.
14882 * INSTALL: Regenerated.
14883
14884 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14885
14886 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14887 Add _CET_NOTRACK before indirect jump to jump table.
14888
14889 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14890
14891 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14892 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14893 to jump table.
14894
14895 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14896
14897 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14898 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14899 to jump table.
14900
14901 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14902
14903 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14904 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14905 to jump table.
14906
14907 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14908
14909 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14910 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14911 to jump table.
14912
14913 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14914
14915 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14916 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14917 to jump table.
14918 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14919
14920 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14921
14922 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14923 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14924 to jump table.
14925
14926 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14927
14928 * sysdeps/i386/i686/multiarch/memset-sse2.S
14929 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14930 to jump table.
14931
14932 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14933
14934 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14935 indirect jump to jump table.
14936
14937 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14938
14939 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14940 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14941 to jump table.
14942 (MEMCPY): Likewise.
14943
14944 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14945
14946 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14947 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14948 to jump table.
14949 (MEMCPY): Likewise.
14950
14951 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14952
14953 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14954 _CET_NOTRACK before indirect jump to jump table.
14955
14956 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14957
14958 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14959 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14960 to jump table.
14961
14962 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14963
14964 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14965 indirect jump to jump table.
14966
14967 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14968
14969 [BZ #22241]
14970 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14971 (LOCALES): Likewise.
14972 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14973 * localedata/locales/sah_RU: New file.
14974 * localedata/sah_RU.UTF-8.in: New file.
14975
14976 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14977
14978 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14979 "sysdep.h".
14980 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14981 _CET_ENDBR to indirect jump targets and adjust jump destination
14982 for _CET_ENDBR.
14983 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14984 "sysdep.h".
14985 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14986 _CET_ENDBR to indirect jump targets and adjust jump destination
14987 for _CET_ENDBR.
14988 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14989 "sysdep.h".
14990 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14991 _CET_ENDBR to indirect jump targets and adjust jump destination
14992 for _CET_ENDBR.
14993
14994 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14995
14996 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14997 _CET_ENDBR.
14998
14999 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15000
15001 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15002 _CET_ENDBR.
15003 (_dl_tlsdesc_undefweak): Likewise.
15004 (_dl_tlsdesc_dynamic): Likewise.
15005 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15006 (_dl_tlsdesc_resolve_rel): Likewise.
15007 (_dl_tlsdesc_resolve_rela): Likewise.
15008 (_dl_tlsdesc_resolve_hold): Likewise.
15009 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15010 (_dl_tlsdesc_undefweak): Likewise.
15011 (_dl_tlsdesc_dynamic): Likewise.
15012 (_dl_tlsdesc_resolve_rela): Likewise.
15013 (_dl_tlsdesc_resolve_hold): Likewise.
15014
15015 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15016
15017 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15018 (_fini): Likewise.
15019 * sysdeps/x86_64/crti.S (_init): Likewise.
15020 (_fini): Likewise.
15021
15022 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
15023
15024 [BZ #23140]
15025 * localedata/locales/os_RU (mon): Rename to...
15026 (alt_mon): This.
15027 (mon): Import from CLDR (genitive case).
15028
15029 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15030
15031 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15032 cet-tunables.h> when CET is enabled.
15033
15034 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15035
15036 [BZ #21598]
15037 * configure.ac: Add --enable-cet.
15038 * configure: Regenerated.
15039 * elf/Makefille (all-built-dso): Add a comment.
15040 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15041 Include <dl-prop.h>.
15042 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15043 segment.
15044 * elf/dl-open.c: Include <dl-prop.h>.
15045 (dl_open_worker): Call _dl_open_check.
15046 * elf/rtld.c: Include <dl-prop.h>.
15047 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15048 _rtld_main_check.
15049 * sysdeps/generic/dl-prop.h: New file.
15050 * sysdeps/i386/dl-cet.c: Likewise.
15051 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15052 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15053 * sysdeps/x86/cet-tunables.h: Likewise.
15054 * sysdeps/x86/check-cet.awk: Likewise.
15055 * sysdeps/x86/configure: Likewise.
15056 * sysdeps/x86/configure.ac: Likewise.
15057 * sysdeps/x86/dl-cet.c: Likewise.
15058 * sysdeps/x86/dl-procruntime.c: Likewise.
15059 * sysdeps/x86/dl-prop.h: Likewise.
15060 * sysdeps/x86/libc-start.h: Likewise.
15061 * sysdeps/x86/link_map.h: Likewise.
15062 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15063 _CET_ENDBR.
15064 (_dl_runtime_profile): Likewise.
15065 (_dl_runtime_resolve_shstk): New.
15066 (_dl_runtime_profile_shstk): Likewise.
15067 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15068 if CET is enabled.
15069 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15070 (CFLAGS-.os): Likewise.
15071 (CFLAGS-.op): Likewise.
15072 (CFLAGS-.oS): Likewise.
15073 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15074 is enabled.
15075 (tests-special): Add $(objpfx)check-cet.out.
15076 (cet-built-dso): New.
15077 (+$(cet-built-dso:=.note)): Likewise.
15078 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15079 ($(objpfx)check-cet.out): New.
15080 (generated): Add check-cet.out.
15081 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15082 <cet-tunables.h>.
15083 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15084 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15085 (init_cpu_features): Call get_cet_status to check CET status
15086 and update dl_x86_feature_1 with CET status. Call
15087 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15088 (set_x86_shstk). Disable and lock CET in libc.a.
15089 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15090 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15091 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15092 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15093 (_CET_ENDBR): Define if not defined.
15094 (ENTRY): Add _CET_ENDBR.
15095 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15096 x86_shstk.
15097 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15098 _CET_ENDBR.
15099 (_dl_runtime_profile): Likewise.
15100
15101 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15102
15103 [BZ #21895]
15104 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15105 restore r2 on longjmp.
15106 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15107 test list.
15108 Added rules to build test tst-setjmp-bug21895-static.
15109 Added module setjmp-bug21895 and rules to build a shared object from it.
15110 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15111 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15112
15113 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15114
15115 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15116 * benchtests/bench-strstr.c: Likewise.
15117 * string/memmem.c (FASTSEARCH): Define.
15118 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15119 Add support for FASTSEARCH.
15120 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15121 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15122 (FASTSEARCH): Define.
15123 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15124 * string/test-strstr.c: Likewise.
15125
15126 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15127
15128 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15129 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15130
15131 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15132 H.J. Lu <hongjiu.lu@intel.com>
15133
15134 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15135 (__longjmp): Restore shadow stack pointer if shadow stack is
15136 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15137 isn't defined for __longjmp_cancel.
15138 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15139 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15140 and SHADOW_STACK_POINTER_OFFSET is defined.
15141 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15142 (setjmp): Save shadow stack pointer if shadow stack is enabled
15143 and SHADOW_STACK_POINTER_OFFSET is defined.
15144 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15145 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15146 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15147 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15148 <jmp_buf-ssp.h>.
15149 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15150 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15151 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15152 Remove jmp_buf-ssp.sym.
15153 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15154 <jmp_buf-ssp.h>.
15155 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15156 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15157 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15158 jmp_buf-ssp.sym.
15159 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15160 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15161 (__longjmp): Restore shadow stack pointer if shadow stack is
15162 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15163 isn't defined for __longjmp_cancel.
15164 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15165 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15166 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15167
15168 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15169
15170 [BZ #22563]
15171 * nptl/pthread_create.c: Include <tls-setup.h>.
15172 (__pthread_create_2_1): Call tls_setup_tcbhead.
15173 * sysdeps/generic/tls-setup.h: New file.
15174 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15175 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15176 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15177 Likewise.
15178 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15179 to feature_1.
15180 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15181 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15182 (X86_FEATURE_1_SHSTK): Likewise.
15183 (CET_ENABLED): Likewise.
15184 (IBT_ENABLED): Likewise.
15185 (SHSTK_ENABLED): Likewise.
15186
15187 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15188
15189 [BZ #23208]
15190 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15191 (LOCALES): Likewise.
15192 * localedata/dsb_DE.UTF-8.in: New file.
15193 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15194
15195 2018-07-12 Florian Weimer <fweimer@redhat.com>
15196
15197 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15198 __mprotect, not mprotect.
15199
15200 2018-07-11 Florian Weimer <fweimer@redhat.com>
15201
15202 * io/Makefile (headers): Add bits/statx.h.
15203
15204 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15205
15206 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15207 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15208 and headers.
15209 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15210 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15211 for utf8_gen.py
15212
15213 2018-07-10 Florian Weimer <fweimer@redhat.com>
15214
15215 * io/Makefile (routines): Add statx.
15216 (tests-internal): Add tst-statx.
15217 * io/Versions (GLIBC_2.28): Export statx.
15218 * io/bits/statx.h: New file.
15219 * io/sys/stat.h [__USE_GNU]: Include it.
15220 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15221 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15222 Define.
15223 * io/statx.c: New file.
15224 * io/statx_generic.: Likewise.
15225 * io/tst-statx.: Likewise.
15226 * include/bits/statx.h: Likewise.
15227 * sysdeps/unix/sysv/linux/kernel-features.h
15228 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15229 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15230 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15231 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15232 Undefine.
15233 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15234 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15235 * sysdeps/unix/sysv/linux/statx.c: New file.
15236 * manual/filesys.texi: Note that statx is undocumented.
15237 * sysdeps/**/libc*.abilist: Update.
15238
15239 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15240
15241 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15242 a kernel issue which lead to test failure in some cases.
15243
15244 2018-07-10 Florian Weimer <fweimer@redhat.com>
15245
15246 [BZ #23036]
15247 * posix/regexec.c (check_node_accept_bytes): When comparing
15248 weights, do not compare an extra byte after the end of the
15249 weights.
15250
15251 2018-07-10 Florian Weimer <fweimer@redhat.com>
15252
15253 * libio/readline.c: Fix copyright year.
15254 * libio/tst-readline.c Likewise.
15255 * nss/tst-nss-files-hosts-getent.c: Likewise.
15256
15257 2018-07-06 Florian Weimer <fweimer@redhat.com>
15258
15259 [BZ #18991]
15260 * nss/nss_files/files-XXX.c (internal_getent): Use
15261 __libc_readline_unlocked. Seek back to the start of the line if
15262 parsing failes with ERANGE.
15263 (get_contents_ret, get_contents): Remove.
15264 * nss/tst-nss-files-hosts-getent.c: New file.
15265 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15266 (tst-nss-files-hosts-getent): Link with -ldl.
15267
15268 2018-07-06 Florian Weimer <fweimer@redhat.com>
15269
15270 * include/stdio.h (__libc_readline_unlocked): Declare.
15271 (__ftello64, __fseeko64): Declare aliases.
15272 * libio/readline.c: New file.
15273 * libio/tst-readline.c: Likewise.
15274 (routines): Add readline.
15275 (tests-internal): Add tst-readlime.
15276 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15277 __libc_readline_unlocked.
15278 * libio/fseeko.c (__fseeko): Rename from fseeko.
15279 (fseeko): Add alias.
15280 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15281 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15282 (fseeko64): Add alias.
15283 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15284 * libio/ftello64.c (__ftello64): Rename from ftello64.
15285 (ftello64): Add alias.
15286
15287 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15288
15289 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15290 HWCAP_ATOMICS.
15291
15292 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15293
15294 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15295 Use dl_hwcap without masking.
15296 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15297 Remove HWCAP_CPUID.
15298
15299 2018-07-06 Florian Weimer <fweimer@redhat.com>
15300
15301 * conform/conformtest.pl (checknamespace): Escape literal braces
15302 in regular expressions.
15303
15304 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15305
15306 * sysdeps/x86/cpu-features.c (get_common_indeces):
15307 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15308 * sysdeps/x86/cpu-features.c (init_cpu_features):
15309 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15310
15311 2018-07-05 Florian Weimer <fweimer@redhat.com>
15312
15313 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15314 protector.
15315 (CFLAGS-elf-init.oS): Likewise.
15316
15317 2018-07-05 Florian Weimer <fweimer@redhat.com>
15318 Carlos O'Donell <carlos@redhat.com>
15319
15320 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15321 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15322 with stack protector enabled because there is no risk of infinite
15323 recursion.
15324
15325 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15326
15327 [BZ #19818]
15328 [BZ #23307]
15329 * libc-abis (ABSOLUTE): New ABI.
15330 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15331 * NEWS: Mention the new ABI.
15332
15333 2018-07-05 Florian Weimer <fweimer@redhat.com>
15334
15335 [BZ # 17662]
15336 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15337 (RENAME_WHITEOUT): Define.
15338 [__USE_GNU] (renameat2): Declare.
15339 * stdio-common/Makefile (routines): Add renameat2.
15340 (tests): Add tst-renameat2.
15341 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15342 * stdio-common/renameat2.c: New file.
15343 * stdio-common/tst-renameat2.c: Likewise.
15344 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15345 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15346 undocumented.
15347 * sysdeps/unix/sysv/linux/kernel-features.h
15348 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15349 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15350 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15351 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15352 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15353 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15354 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15355 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15356 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15357 * include/stdio.h (__renameat): Add alias for renameat.
15358 * stdio-common/renameat.c (__renameat): Rename from renameat.
15359 Add hidden definition and alias.
15360 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15361 * sysdeps/mach/hurd/renameat.c: Likewise.
15362 * sysdeps/**/libc*.abilist: Add renameat2.
15363
15364 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15365
15366 * posix/bug-regex33.c: Fix build after regex sync.
15367
15368 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15369
15370 [BZ #23164]
15371 * localedata/tst-langinfo-setlocale.c: New file.
15372 * localedata/tst-langinfo-setlocale-static.c: New file.
15373 * localedata/tst-langinfo-newlocale.c: New file.
15374 * localedata/tst-langinfo-newlocale-static.c: New file.
15375 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15376 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15377 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15378 (tests-static): Remove tst-langinfo-static. Add
15379 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15380 (tests-special): Remove $(objpfx)tst-langinfo.out,
15381 $(objpfx)tst-langinfo-static.out. Add
15382 $(objpfx)tst-langinfo-setlocale.out,
15383 $(objpfx)tst-langinfo-newlocale.out,
15384 $(objpfx)tst-langinfo-setlocale-static.out,
15385 $(objpfx)tst-langinfo-newlocale-static.out.
15386 ($(objpfx)tst-langinfo.out): Remove.
15387 ($(objpfx)tst-langinfo-static.out): Remove.
15388 ($(objpfx)tst-langinfo-newlocale.out): New target.
15389 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15390 (test-xfail-tst-langinfo-newlocale-static): Add.
15391 ($(objpfx)tst-langinfo-setlocale.out): New target.
15392 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15393 * localedata/tst-langinfo.c: Call test_locale.
15394 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15395 data.
15396
15397 2018-07-04 Florian Weimer <fweimer@redhat.com>
15398
15399 testrun.sh: Implement --tool=strace, --tool=valgrind
15400 * Makefile (testrun-script): Define variable.
15401 (testrun.sh): Use variable.
15402 * manual/install.texi (Tools for Compilation): make 4.0 or later
15403 is required.
15404 * configure.ac: Check for make 4.0 or later.
15405 * INSTALL: Regenerate.
15406 * configure: Likewise.
15407
15408 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15409
15410 [BZ #23233]
15411 [BZ #21163]
15412 [BZ #18986]
15413 [BZ #13762]
15414 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15415 * posix/PCRE.tests: Remove invalid test.
15416 * posix/bug-regex28.c: Fix expected values for used syntax.
15417 * posix/bug-regex37.c: New file.
15418 * posix/bug-regex38.c: Likewise.
15419 * posix/regcomp.c: Sync with gnulib.
15420 * posix/regex.c: Likewise.
15421 * posix/regex.h: Likewise.
15422 * posix/regex_internal.c: Likewise.
15423 * posix/regex_internal.h: Likewise.
15424 * posix/regexec.c: Likewise.
15425
15426 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15427
15428 [BZ #23308]
15429 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15430 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15431 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15432 * localedata/unicode-gen/PropList.txt: likewise.
15433 * localedata/unicode-gen/UnicodeData.txt: likewise.
15434 * localedata/charmaps/UTF-8: Regenerate.
15435 * localedata/locales/i18n_ctype: likewise.
15436 * localedata/locales/tr_TR: likewise.
15437 * localedata/locales/translit_circle: likewise.
15438 * localedata/locales/translit_cjk_compat: likewise.
15439 * localedata/locales/translit_combining: likewise.
15440 * localedata/locales/translit_compat: likewise.
15441 * localedata/locales/translit_font: likewise.
15442 * localedata/locales/translit_fraction: likewise.
15443
15444 2018-07-03 Florian Weimer <fweimer@redhat.com>
15445
15446 [BZ #23363]
15447 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15448 * stdio-common/tst-printf.sh: Adjust expected output.
15449 * LICENSES: Update.
15450
15451 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15452
15453 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15454 symbol.
15455
15456 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15457
15458 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15459 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15460 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15461 * stdio-common/tst-printfsz-islongdouble.c: New file.
15462 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15463 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15464 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15465 [subdir == stdio-common] (tests-internal): Add
15466 test-printf-size-ieee128, and test-printf-size-ibm128.
15467 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15468 (CFLAGS-test-printf-size-ibm128.c): New variables.
15469 [subdir == stdio-common] (tests-special): Add
15470 $(objpfx)test-printf-size-ieee128.out and
15471 $(objpfx)test-printf-size-ibm128.out.
15472 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15473 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15474 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15475 __printf_sizeieee128.
15476 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15477 New file.
15478 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15479 Likewise.
15480 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15481 Likewise.
15482
15483 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15484
15485 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15486 (exp2f_inline): Likewise.
15487 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15488 (__math_uflowf): Likewise.
15489 (__math_may_uflowf): Likewise.
15490 (__math_divzerof): Likewise.
15491 (__math_invalidf): Likewise.
15492 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15493 (__math_oflowf): Likewise.
15494 (__math_uflowf): Likewise.
15495 (__math_may_uflowf): Likewise.
15496 (__math_divzerof): Likewise.
15497 (__math_invalidf): Likewise.
15498
15499 2018-06-29 DJ Delorie <dj@redhat.com>
15500 Carlos O'Donell <carlos@redhat.com>
15501
15502 [BZ #23329]
15503 * include/libc-symbols.h: Comment the freeres framework.
15504 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15505 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15506 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15507 * dlfcn/dlerror.c: Include libc-symbols.h
15508 (__dlerror_main_freeres): New function.
15509 * dlfcn/dlfreeres.c: New file.
15510 * dlfcn/sdlfreeres.c: New file.
15511 * include/dlfcn.h: Declare __dlerror_main_freeres.
15512 * malloc/set-freeres.c: Declare __libdl_freeres, and
15513 __libpthread_freeres.
15514 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15515 the releavant libraries are loaded.
15516 * malloc/thread-freeres.c: Add comments.
15517 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15518 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15519 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15520 (__free_stacks): Rename to...
15521 (free_stacks): ...this. Mark static.
15522 (queue_stack): Call free_stacks.
15523 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15524 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15525 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15526 ptr_freeres element from struct.
15527 (pthread_functions): Remove .ptr_freeres from struct initializer.
15528 [SHARED] (nptl_freeres): Remove.
15529 * nptl/nptlfreeres.c: New file.
15530 * nptl/pthreadP.h
15531 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15532 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15533 attribute_hidden.
15534 (__free_stacks): Rename to...
15535 (__nptl_stacks_freeres): ...this.
15536 (__shm_directory_freeres): Declare.
15537 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15538 (__nptl_unwind_freeres): ...this.
15539 * resolv/res-close.c: Add comment.
15540 * resolv/resolv_conf.c: Include libc-symbols.h.
15541 * string/strerror_l.c: Include libc-symbols.h.
15542 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15543 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15544 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15545 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15546
15547 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15548
15549 * stdlib/tst-strfmon_l.c: Add tests for long double.
15550
15551 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15552
15553 [BZ #23208]
15554 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15555 * localedata/locales/dsb_DE: New file.
15556
15557 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15558
15559 [BZ #23140]
15560 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15561 genitive case).
15562 (alt_mon): New entry, import from CLDR (nominative case).
15563
15564 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15565
15566 [BZ #22996]
15567 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15568
15569 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15570
15571 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15572 Use vector registers.
15573
15574 * sysdeps/aarch64/multiarch/memmove_falkor.S
15575 (__memcpy_falkor): Use vector registers.
15576
15577 2018-06-29 Martin Sebor <msebor@redhat.com>
15578
15579 * manual/stdio.texi (Customizing Printf): Mention interaction
15580 with GCC built-ins.
15581
15582 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15583
15584 [BZ #23307]
15585 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15586 `st_value' is 0 if `st_shndx' is SHN_ABS.
15587 * elf/tst-absolute-zero.c: New file.
15588 * elf/tst-absolute-zero-lib.c: New file.
15589 * elf/tst-absolute-zero-lib.lds: New file.
15590 * elf/Makefile (tests): Add `tst-absolute-zero'.
15591 (modules-names): Add `tst-absolute-zero-lib'.
15592 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15593 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15594 ($(objpfx)tst-absolute-zero: New dependency.
15595
15596 2018-06-29 Zack Weinberg <zackw@panix.com>
15597
15598 * configure.ac: New command-line option --disable-crypt.
15599 Force --disable-nss-crypt when --disable-crypt is given, with a
15600 warning if it was explicitly enabled.
15601 * configure: Regenerate.
15602 * config.make.in: New boolean substitution variable $(build-crypt).
15603 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15604 when $(build-crypt).
15605 * manual/install.texi: Document --disable-crypt.
15606 * INSTALL: Regenerate.
15607
15608 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15609 which is never set.
15610 * conform/Makefile: Only include libcrypt.a in
15611 linknamespace-libs-xsi and linknamespace-libs-XPG4
15612 when $(build-crypt).
15613 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15614 USE_CRYPT to 1 when $(build-crypt).
15615 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15616 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15617 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15618
15619 2018-06-29 Zack Weinberg <zackw@panix.com>
15620
15621 * crypt/crypt.h, posix/unistd.h: Update comments and
15622 prototypes for crypt and crypt_r.
15623
15624 * manual/crypt.texi (Cryptographic Functions): New initial
15625 exposition.
15626 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15627 (Unpredictable Bytes): Improve initial exposition. Clarify error
15628 behavior of getentropy and getrandom.
15629 * manual/examples/genpass.c: Generate a salt using getentropy
15630 instead of the current time. Use hash $5$ (SHA-2-256).
15631 * manual/examples/testpass.c: Demonstrate validation against
15632 hashes generated with three different one-way functions.
15633
15634 * manual/intro.texi: crypt.texi does not need an overview
15635 anymore.
15636
15637 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15638 * manual/terminal.texi: Consistently refer to "passphrases"
15639 * instead of "passwords", and to the "user database" instead
15640 * of the "password database".
15641 * manual/users.texi: Similarly. Add notes about how actual
15642 passphrase hashes are now stored in the shadow database.
15643 Remove 20-year-old junk todo note.
15644
15645 2018-06-29 Zack Weinberg <zackw@panix.com>
15646
15647 * manual/crypt.texi: Use a normal top-level @node declaration.
15648 Move most of the introductory text to the 'crypt' section.
15649 Move the example programs below the @deftypefun for 'crypt_r'.
15650 Move the 'getpass' section...
15651 * manual/terminal.texi: ...here.
15652
15653 2018-06-29 Zack Weinberg <zackw@panix.com>
15654 Florian Weimer <fweimer@redhat.com>
15655
15656 * posix/unistd.h: Do not declare encrypt.
15657 (_XOPEN_CRYPT): Remove macro definition.
15658 (crypt): Declare only for _USE_MISC.
15659 * stdlib/stdlib.h: Do not declare setkey.
15660 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15661 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15662
15663 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15664 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15665 into compat symbols. Don't define initial_perm if it's not
15666 going to be used.
15667 * crypt/cert.c: Link explicitly with the expected versions for
15668 setkey and encrypt. If they are not available at all, mark
15669 the test as unsupported.
15670
15671 * sunrpc/des_crypt.c: Unconditionally block linkage with
15672 cbc_crypt and ecb_crypt for new binaries.
15673 * sunrpc/des_soft.c: Unconditionally block linkage with
15674 des_setparity for new binaries.
15675
15676 * manual/crypt.texi: Remove the entire "DES Encryption"
15677 section. Also remove the paragraph talking about FIPS 140-2
15678 from the introduction.
15679 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15680 of libgcrypt for "real" encryption, not DES.
15681 * manual/conf.texi (Constants for Sysconf): Mention that
15682 _XOPEN_CRYPT is no longer impelemented.
15683
15684 * conform/data/unistd.h-data: Remove crypt function declaration.
15685
15686 2018-06-29 Florian Weimer <fweimer@redhat.com>
15687
15688 [BZ #23351]
15689 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15690 (disallow_malloc_check): Remove variable.
15691 (__malloc_check_init): Adjust.
15692 (malloc_set_state): Update comment.
15693 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15694 declarations.
15695
15696 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15697
15698 [BZ #23140]
15699 * localedata/locales/ast_ES (mon): Rename to...
15700 (alt_mon): This.
15701 (mon): Import from CLDR (genitive case).
15702
15703 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15704 Jakub Sitnicki <jkbs@redhat.com>
15705
15706 [BZ #21812]
15707 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15708 on NLM_F_DUMP_INTR.
15709
15710 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15711
15712 * manual/llio.texi: Remove spurious space.
15713
15714 2018-06-28 Florian Weimer <fweimer@redhat.com>
15715
15716 [BZ #23349]
15717 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15718 _STRUCT_TIMESPEC.
15719
15720 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15721
15722 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15723 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15724 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15725 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15726 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15727 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15728 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15729
15730 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15731
15732 [BZ #23266]
15733 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15734 Copy and null-terminate entries that are not terminated, in
15735 addition to empty ones.
15736
15737 2018-06-27 Florian Weimer <fweimer@redhat.com>
15738
15739 [BZ #18023]
15740 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15741 (extend_alloca_account): Remove.
15742 * manual/stdio.texi (Variable Arguments Output): Update comment.
15743
15744 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15745
15746 * nptl/sockperf.c: Remove file.
15747
15748 2018-06-27 Florian Weimer <fweimer@redhat.com>
15749
15750 [BZ #18023]
15751 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15752 scratch_buffer instead of extend_alloca.
15753
15754 2018-06-27 Florian Weimer <fweimer@redhat.com>
15755
15756 [BZ #18023]
15757 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15758 scratch_buffer instead of extend_alloca. Update comments.
15759
15760 2018-06-27 Florian Weimer <fweimer@redhat.com>
15761
15762 [BZ #18023]
15763 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15764 instead of extend_alloca.
15765
15766 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15767
15768 [BZ #13888]
15769 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15770 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15771 /tmp.
15772 * scripts/test-installation.pl: Put temporary files in build
15773 directory, not /tmp.
15774 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15775 (CFLAGS-bug4.c): Likewise.
15776 (CFLAGS-bug5.c): Likewise.
15777 (CFLAGS-test-fseek.c): Likewise.
15778 (CFLAGS-test-popen.c): Likewise.
15779 (CFLAGS-test_rdwr.c): Likewise.
15780 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15781 /tmp.
15782 * stdio-common/bug4.c (main): Likewise.
15783 * stdio-common/bug5.c (main): Likewise.
15784 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15785 * stdio-common/test-popen.c (do_test): Likewise.
15786 * stdio-common/test_rdwr.c (main): Likewise.
15787
15788 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15789
15790 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15791 (sem_open): Set sem.newsem.pad to zero for valgrind.
15792
15793 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15794
15795 [BZ #20251]
15796 * NEWS: Mention fcntl64 addition.
15797 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15798 * login/utmp_file.c: Likewise.
15799 * sysdeps/posix/fdopendir.c: Likewise.
15800 * sysdeps/posix/opendir.c: Likewise.
15801 * sysdeps/unix/pt-fcntl.c: Likewise.
15802 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15803 __fcntl64_nocancel_adjusted): New prototype.
15804 (__fcntl_nocancel_adjusted): Remove prototype.
15805 * io/Makefile (routines): Add fcntl64.
15806 (CFLAGS-fcntl64.c): New rule.
15807 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15808 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15809 * io/fcntl.h (fcntl64): Add prototype and redirect if
15810 __USE_FILE_OFFSET64 is defined.
15811 * io/fcntl64.c: New file.
15812 * manual/llio.text: Add a note for which commands fcntl acts a
15813 cancellation point.
15814 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15815 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15816 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15817 New symbols.
15818 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15819 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15820 non-LFS case.
15821 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15822 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15823 to __fcntl64_nocancel.
15824 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15825 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15826 to __fcntl64_nocancel.
15827 * sysdeps/generic/not-cancel.h: Likewise.
15828 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15829 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15830 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15831 (fcntl64): New symbol.
15832 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15833 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15834 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15837 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15838 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15839 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15840 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15841 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15842 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15843 fcntl64): Likewise.
15844 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15845 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15846 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15847 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15848 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15849 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15850 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15851 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15852 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15854 Likewise.
15855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15856 Likewise.
15857 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15858 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15859 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15860
15861 2018-06-26 Florian Weimer <fweimer@redhat.com>
15862
15863 Run thread shutdown functions in an explicit order.
15864 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15865 definition.
15866 (__libc_thread_freeres): Call thread shutdown functions
15867 explicitly.
15868 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15869 * include/string.h (__strerror_thread_freeres): Declare.
15870 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15871 arena_thread_freeres. No longer static. Remove thread shutdown
15872 hook registration.
15873 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15874 Declare.
15875 * resolv/res-close.c (__res_thread_freeres): Renamed from
15876 res_thread_freeres. No longer static. Remove thread shutdown
15877 hook registration.
15878 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15879 * resolv/resolv_conf.c (freeres): Remove incorrect section
15880 attribute and use libc_freeres_fn.
15881 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15882 strerror_thread_freeres. No longer static. Remove thread
15883 shutdown hook registration.
15884 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15885 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15886 shutdown hook registration.
15887 * Makerules (shlib.lds): Do not provide section boundary symbols
15888 for __libc_thread_subfreeres.
15889 * manual/memory.texi (Basic Allocation): Update comment.
15890
15891 2018-06-26 Florian Weimer <fweimer@redhat.com>
15892
15893 Remove always-defined _RPC_THREAD_SAFE_ macro.
15894 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15895 Do not define _RPC_THREAD_SAFE_.
15896 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15897 conditional.
15898 * sunrpc/clnt_perr.c: Likewise.
15899 * sunrpc/clnt_raw.c: Likewise.
15900 * sunrpc/clnt_simp.c: Likewise.
15901 * sunrpc/key_call.c: Likewise.
15902 * sunrpc/rpc_common.c: Likewise.
15903 * sunrpc/rpc_main.c: Likewise.
15904 * sunrpc/rpc_thread.c: Likewise.
15905 * sunrpc/svc.c: Likewise.
15906 * sunrpc/svc_raw.c: Likewise.
15907 * sunrpc/svc_simple.c: Likewise.
15908 * sumrpc/svcauth_des.c: Likewise.
15909
15910 2018-06-26 Florian Weimer <fweimer@redhat.com>
15911
15912 * libio/Makefile (tests-internal): Add tst-vtables,
15913 tst-vtables-interposed.
15914 * libio/tst-vtables.c: New file.
15915 * libio/tst-vtables-common.c: Likewise.
15916 * libio/tst-vtables-interposed.c: Likewise.
15917
15918 2018-06-26 Florian Weimer <fweimer@redhat.com>
15919
15920 * support/support_test_main.c (support_test_main): Only call
15921 setvbuf if not disables.
15922 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15923 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15924
15925 2018-06-26 Florian Weimer <fweimer@redhat.com>
15926
15927 [BZ #23313]
15928 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15929
15930 2018-06-25 Florian Weimer <fweimer@redhat.com>
15931
15932 [BZ #18023]
15933 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15934 Use struct scratch_buffer instead of extend_alloca.
15935
15936 2018-06-25 Florian Weimer <fweimer@redhat.com>
15937
15938 [BZ #18023]
15939 * nss/getent.c (initgroups_keys): Use dynarray instead of
15940 extend_alloca.
15941
15942 2018-06-25 Florian Weimer <fweimer@redhat.com>
15943
15944 [BZ #18023]
15945 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15946 Use struct scratch_buffer instead of extend_alloca.
15947
15948 2018-06-25 Florian Weimer <fweimer@redhat.com>
15949
15950 [BZ #18023]
15951 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15952 back to malloc directly, without stack allocations.
15953
15954 2018-06-25 Florian Weimer <fweimer@redhat.com>
15955
15956 [BZ #18023]
15957 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15958 of extend_alloca.
15959
15960 2018-06-25 Florian Weimer <fweimer@redhat.com>
15961
15962 [BZ #18023]
15963 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15964 of extend_alloca.
15965 * nscd/hstcache.c (addhstbyX): Likewise.
15966 * nscd/pwdcache.c (addpwbyX): Likewise.
15967 * nscd/servicescache.c (addservbyX): Likewise.
15968
15969 2018-06-25 Florian Weimer <fweimer@redhat.com>
15970
15971 [BZ #18023]
15972 * nscd/connections.c (read_cmdline): New function.
15973 (restart): Use it. Update comment.
15974
15975 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15976
15977 [BZ #23140]
15978 * localedata/locales/csb_PL (mon): Rename to...
15979 (alt_mon): This.
15980 (abmon): Rename to...
15981 (ab_alt_mon): This.
15982 (mon): Add with proper genitive forms, copy from Wikipedia.
15983 (abmon): Likewise.
15984
15985 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15986
15987 [BZ #19485]
15988 * localedata/locales/csb_PL (mon): Fix typos:
15989 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15990 (yesstr): Add, value is "jo".
15991 (nostr): Add, value is "nié".
15992
15993 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15994
15995 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15996 all log1p and significand functions on m680x0.
15997 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15998 of s_significand.c..
15999 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16000 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16001 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16002 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16003 s_log1p.c and include it..
16004
16005 2018-06-21 Vincent Chen <vincentc@andestech.com>
16006
16007 * elf/elf.h (R_NDS32_NONE): New define.
16008 (R_NDS32_32_RELA): Likewise.
16009 (R_NDS32_COPY): Likewise.
16010 (R_NDS32_GLOB_DAT): Likewise.
16011 (R_NDS32_JUMP_SLOT): Likewise.
16012 (R_NDS32_RELATIVE): Likewise.
16013 (R_NDS32_TLS_TPOFF): Likewise.
16014 (R_NDS32_TLS_DESC): Likewise.
16015
16016 2018-06-21 Mark Wielaard <mark@klomp.org>
16017
16018 * elf/elf.h (R_BPF_MAP_FD): Removed.
16019 (R_BPF_64_64, R_BPF_64_32): New.
16020
16021 2018-06-21 Florian Weimer <fweimer@redhat.com>
16022
16023 [BZ #23253]
16024 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16025 Renamed from libc_feholdsetround_ctx.
16026 (default_libc_feresetround_ctx): Renamed from
16027 libc_feresetround_ctx.
16028 (default_libc_feholdsetround_noex_ctx): Renamed from
16029 libc_feholdsetround_noex_ctx.
16030 (default_libc_feresetround_noex_ctx): Renamed from
16031 libc_feresetround_noex_ctx.
16032 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16033 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16034 forwardning to the old implementations under the new names.
16035 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16036 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16037 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16038 (libc_feresetround_ctx): Forward to default implements for i386
16039 and MATH_SET_BOTH_ROUNDING_MODES.
16040 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16041 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16042
16043 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16044
16045 * string/tst-cmp.c: Include <libc-diag.h>.
16046 (strncmp_max): Disable -Wstringop-overflow= around call to
16047 strncmp.
16048 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16049 strncasecmp.
16050
16051 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16052 (main): Disable -Wunused-value around call to strpbrk.
16053 * string/bug-strspn1.c: Include <libc-diag.h>.
16054 (main): Disable -Wunused-value around call to strspn.
16055
16056 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16057 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16058
16059 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16060 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16061
16062 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16063
16064 * math/Makefile (libm-calls): Move s_significandF to...
16065 (gen-libm-calls): ... here.
16066 * math/s_significand_template.c: New file.
16067 * math/s_significand.c: Removed.
16068 * math/s_significandf.c: Removed.
16069 * math/s_significandl.c: Removed.
16070 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16071 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16072
16073 * math/e_exp2_template.c (declare_mgen_finite_alias,
16074 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16075 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16076 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16077
16078 2018-06-20 Florian Weimer <fweimer@redhat.com>
16079
16080 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16081
16082 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16083
16084 [BZ #23280]
16085 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16086 floating-point number to strtod functions rather than possibly
16087 negating result of those functions.
16088 * stdio-common/tst-scanf-round.c: New file.
16089 * stdio-common/Makefile (tests): Add tst-scanf-round.
16090 ($(objpfx)tst-scanf-round): Depend on $(libm).
16091
16092 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16093
16094 * sysdeps/mach/hurd/localplt.data: Move to...
16095 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16096 R_386_GLOB_DAT like on Linux i386.
16097
16098 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16099
16100 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16101 (SHM_STAT_ANY): New macro.
16102 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16103 (SHM_STAT_ANY): Likewise.
16104 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16105 (SHM_STAT_ANY): Likewise.
16106 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16107 (SHM_STAT_ANY): Likewise.
16108 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16109 (SHM_STAT_ANY): Likewise.
16110 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16111 (SHM_STAT_ANY): Likewise.
16112 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16113 (SHM_STAT_ANY): Likewise.
16114 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16115 (SHM_STAT_ANY): Likewise.
16116 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16117 (SHM_STAT_ANY): Likewise.
16118 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16119 (SHM_STAT_ANY): Likewise.
16120 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16121 (SHM_STAT_ANY): Likewise.
16122 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16123 (SHM_STAT_ANY): Likewise.
16124
16125 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16126 (SEM_STAT_ANY): New macro.
16127 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16128 (SEM_STAT_ANY): Likewise.
16129 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16130 (SEM_STAT_ANY): Likewise.
16131 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16132 (SEM_STAT_ANY): Likewise.
16133 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16134 (SEM_STAT_ANY): Likewise.
16135 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16136 (SEM_STAT_ANY): Likewise.
16137 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16138 (SEM_STAT_ANY): Likewise.
16139 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16140 (SEM_STAT_ANY): Likewise.
16141 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16142 (SEM_STAT_ANY): Likewise.
16143 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16144 (SEM_STAT_ANY): Likewise.
16145
16146 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16147 (MSG_STAT_ANY): New macro.
16148 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16149 (MSG_STAT_ANY): Likewise.
16150 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16151 (MSG_STAT_ANY): Likewise.
16152 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16153 (MSG_STAT_ANY): Likewise.
16154 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16155 (MSG_STAT_ANY): Likewise.
16156 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16157 (MSG_STAT_ANY): Likewise.
16158 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16159 (MSG_STAT_ANY): Likewise.
16160 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16161 (MSG_STAT_ANY): Likewise.
16162 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16163 (MSG_STAT_ANY): Likewise.
16164 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16165 (MSG_STAT_ANY): Likewise.
16166
16167 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16168 (MAP_TYPE): Change value to 0x2b.
16169
16170 2018-06-18 Florian Weimer <fweimer@redhat.com>
16171
16172 [BZ #15722]
16173 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16174 socket with SOCK_CLOEXEC.
16175
16176 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16177
16178 [BZ #23303]
16179 * sysdeps/powerpc/powerpc64/le/Makefile
16180 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16181 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16182 (gnulib-tests): Also add $(f128-loader-link) for
16183 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16184
16185 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16186
16187 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16188 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16189 of sendfile.
16190 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16191 (sendfile64): New strong alias.
16192 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16193 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16194 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16195 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16196 attribute.
16197 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16198 ___pthread_get_cleanup_stack.
16199 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16200 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16201 * mach/shortcut.awk: Make syscall stubs include
16202 <mach-shortcuts-hidden.h> and add hidden definition.
16203 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16204 (__mach_msg): Add hidden prototype.
16205 * mach/msg.c: Include <mach.h>.
16206 (__mach_msg): Add hidden definition.
16207 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16208 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16209 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16210 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16211 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16212 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16213 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16214 prototype and definition.
16215 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16216 hidden target for _hurd_self_sigstate.
16217
16218 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16219
16220 [BZ #23007]
16221 * stdlib/tst-strtod-nan-sign-main.c: New file.
16222 * stdlib/tst-strtod-nan-sign.c: Likewise.
16223 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16224 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16225 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16226 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16227 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16228
16229 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16230
16231 [BZ #23007]
16232 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16233 appropriate sign.
16234
16235 2018-06-14 Florian Weimer <fweimer@redhat.com>
16236
16237 [BZ #23290]
16238 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16239 that the result stays within the ISO-8859-1 range.
16240 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16241 characters are defined in IBM273.
16242
16243 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16244
16245 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16246 __mach_task_self): Remove attribute_hidden.
16247
16248 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16249
16250 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16251 ignore -Wrestrict for one test.
16252
16253 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16254 Szabolcs Nagy <szabolcs.nagy@arm.com>
16255
16256 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16257
16258 2018-06-14 Florian Weimer <fweimer@redhat.com>
16259
16260 * scripts/update-abilist.sh: Accept empty list of files to patch.
16261
16262 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16263
16264 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16265 test-xfail-check-abi-libmachuser): Add.
16266 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16267 __libc_read and __libc_write to __read and __write.
16268 * sysdeps/hurd/include/hurd/port.h: New file.
16269 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16270 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16271 __thread_switch, __evc_wait): Move declarations to...
16272 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16273 attribute_hidden.
16274 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16275 use PLT to call _hurd_self_sigstate.
16276
16277 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16278
16279 [BZ #23279]
16280 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16281 MAX_EXP as overflowing.
16282 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16283 overflow flag.
16284 (round_str): Output also whether result overflows in each rounding
16285 mode.
16286 * stdlib/tst-strtod-round-data: Add more tests.
16287 * stdlib/tst-strtod-round-data.h: Regenerated.
16288 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16289 (TEST): Handle extra arguments for overflow flags.
16290 (struct test_overflow): New type.
16291 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16292 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16293 (test_in_one_mode): Take argument with overflow information.
16294 (do_test): Update calls to test_in_one_mode.
16295
16296 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16297
16298 * elf/dl-load (_dl_dst_substitute): Correct comment.
16299 (_dl_dst_count): Likewise.
16300
16301 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16302 lll_futex_timed_wait.
16303
16304 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16305
16306 [BZ #23277]
16307 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16308 attribute.
16309 * math/test-nan-const.c: New file.
16310 * math/Makefile (tests): Add test-nan-const.
16311 (CFLAGS-test-nan-const.c): New variable.
16312
16313 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16314
16315 * benchtests/scripts/compare_strings.py (process_results): Add
16316 funcs argument. Compare only functions which are selected.
16317 (main): Check if base function is among selected functions.
16318 Pass selected functions to process_results.
16319 (__main__): Add -f/--functions argument.
16320
16321 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16322 Hongbo Zhang <hongbo.zhang@linaro.org>
16323
16324 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16325 __memcpy_falkor for phecda core.
16326 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16327 __memmove_falkor for phecda core.
16328 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16329 __memset_falkor for phecda core.
16330 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16331 for phecda core.
16332 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16333 macro to identify phecda core.
16334
16335 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16336 Andreas Schwab <schwab@suse.de>
16337 Dmitry V. Levin <ldv@altlinux.org>
16338 Florian Weimer <fweimer@redhat.com>
16339
16340 [BZ #23102]
16341 [BZ #21942]
16342 [BZ #18018]
16343 [BZ #23259]
16344 CVE-2011-0536
16345 * elf/dl-dst.h: Remove DL_DST_COUNT.
16346 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16347 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16348 (is_dst): Comment. Support ELF gABI.
16349 (_dl_dst_count): Comment. Simplify and count DSTs.
16350 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16351 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16352 locals.
16353
16354 2018-06-12 Zack Weinberg <zackw@panix.com>
16355
16356 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16357 * sysdeps/unix/sysv/linux/dl-sysdep.c
16358 Include not-cancel.h. Use __close_nocancel instead of __close,
16359 __open64_nocancel instead of __open, __read_nocancel instead of
16360 __libc_read, and __write_nocancel instead of __libc_write.
16361
16362 * csu/check_fds.c (check_one_fd)
16363 * sysdeps/posix/fdopendir.c (__fdopendir)
16364 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16365 instead of __fcntl and/or __libc_fcntl.
16366
16367 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16368 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16369 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16370 Use __open64_nocancel instead of __open_nocancel.
16371
16372 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16373 hidden_proto declarations to the end and issue them if either
16374 IS_IN(libc) or IS_IN(rtld).
16375 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16376 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16377 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16378 read_nocancel, waitpid_nocancel, write_nocancel.
16379
16380 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16381 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16382 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16383
16384 * nptl/pt-fcntl.c: New file.
16385 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16386 (libpthread-routines): Add pt-fcntl.
16387 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16388 (__libc_fcntl): Remove attribute_hidden.
16389 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16390 __fcntl_nocancel_adjusted, not fcntl_common.
16391 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16392 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16393 to fcntl_nocancel.c.
16394 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16397 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16398
16399 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16400 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16401 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16402 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16403 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16404 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16405 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16406 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16407 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16408 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16409 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16410 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16411 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16412 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16413 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16414 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16415 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16416 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16417 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16418 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16419
16420 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16421 libpthread-routines.
16422 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16423 defines nothing.
16424
16425 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16426 __libc_read, and __write instead of __libc_write. Define
16427 __open64 in addition to __open.
16428
16429 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16430
16431 [BZ #23250]
16432 [BZ #10686]
16433 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16434 to _private_tm[3] and add __glibc_reserved2.
16435 Add _Static_assert of offset of __private_ss == 0x30.
16436 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16437 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16438
16439 2018-06-12 Florian Weimer <fweimer@redhat.com>
16440
16441 x86: Make strncmp usable from rtld.
16442 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16443 __strncmp_ia32 if in libc (and not in rtld).
16444 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16445 strncmp if not in libc (and not to __strncmp_sse2).
16446
16447 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16448
16449 [BZ #23140]
16450 * localedata/locales/gd_GB (mon): Rename to...
16451 (alt_mon): This.
16452 (mon): Import from CLDR (genitive case).
16453 * localedata/locales/hsb_DE (mon): Rename to...
16454 (alt_mon): This.
16455 (mon): Import from CLDR (genitive case).
16456 * localedata/locales/wa_BE (mon): Rename to...
16457 (alt_mon): This.
16458 (mon): Add, fill with the proper genitive forms, but CLDR data
16459 is incomplete; completed according to the comments in this file.
16460 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16461
16462 * localedata/locales/wa_BE (country_name): Reword
16463 "Beljike" -> "Beldjike".
16464
16465 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16466
16467 [BZ #23272]
16468 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16469 cases of non-finite arguments.
16470 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16471
16472 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16473
16474 [BZ #23174]
16475 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16476
16477 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16478
16479 [BZ #23264]
16480 * include/unistd.h (__execvpex): New prototype.
16481 * posix/Makefile (tests): Add tst-spawn4.
16482 (tests-internal): Add tst-spawn4-compat.
16483 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16484 * posix/tst-spawn4-compat.c: New file.
16485 * posix/tst-spawn4.c: Likewise.
16486 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16487 binaries as shell scripts.
16488 * sysdeps/posix/spawni.c (__spawni): Likewise.
16489
16490 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16491
16492 [BZ #23145]
16493 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16494 ($(all-built-dso:=.dynsym): New target.
16495 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16496 ($(objpfx)check-initfini.out): New target.
16497 (generated): Add check-initfini.out.
16498 * scripts/check-initfini.awk: New file.
16499 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16500 (_fini): Likewise.
16501 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16502 (_fini): Likewise.
16503 * sysdeps/arm/crti.S (_init): Mark as hidden.
16504 (_fini): Likewise.
16505 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16506 (_fini): Likewise.
16507 * sysdeps/i386/crti.S (_init): Mark as hidden.
16508 (_fini): Likewise.
16509 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16510 (_fini): Likewise.
16511 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16512 (_fini): Likewise.
16513 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16514 (_fini): Likewise.
16515 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16516 (_fini): Likewise.
16517 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16518 (_fini): Likewise.
16519 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16520 (_fini): Likewise.
16521 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16522 (_fini): Likewise.
16523 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16524 (_fini): Likewise.
16525 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16526 (_fini): Likewise.
16527 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16528 (_fini): Likewise.
16529 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16530 (_fini): Likewise.
16531 * sysdeps/sh/crti.S (_init): Mark as hidden.
16532 (_fini): Likewise.
16533 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16534 (_fini): Likewise.
16535 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16536 (_fini): Likewise.
16537
16538 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16539
16540 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16541 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16542 and TF redirection to KFtype and KF only when the default
16543 long double type is not the IEEE 128-bit floating point type.
16544
16545 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16546
16547 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16548 macro.
16549 (HWCAP_USCAT): Likewise.
16550 (HWCAP_ILRCPC): Likewise.
16551 (HWCAP_FLAGM): Likewise.
16552 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16553 Increase to 28.
16554 (_dl_aarch64_cap_flags): Add new flag names.
16555
16556 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16557 (MAP_FIXED_NOREPLACE): New macro.
16558 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16559 (MAP_FIXED_NOREPLACE): Likewise.
16560 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16561 (MAP_FIXED_NOREPLACE): Likewise.
16562 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16563 (MAP_FIXED_NOREPLACE): Likewise.
16564 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16565 (MAP_FIXED_NOREPLACE): Likewise.
16566 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16567 (MAP_FIXED_NOREPLACE): Likewise.
16568 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16569 (MAP_FIXED_NOREPLACE): Likewise.
16570 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16571 (MAP_FIXED_NOREPLACE): Likewise.
16572 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16573 (MAP_FIXED_NOREPLACE): Likewise.
16574 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16575 (MAP_FIXED_NOREPLACE): Likewise.
16576 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16577 (MAP_FIXED_NOREPLACE): Likewise.
16578 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16579 (MAP_FIXED_NOREPLACE): Likewise.
16580 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16581 (MAP_FIXED_NOREPLACE): Likewise.
16582 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16583 (MAP_FIXED_NOREPLACE): Likewise.
16584 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16585 (MAP_FIXED_NOREPLACE): Likewise.
16586
16587 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16588 version to 4.17.
16589
16590 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16591
16592 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16593 version to 4.17
16594
16595 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16596
16597 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16598 int.
16599 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16600
16601 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16602
16603 * benchtests/scripts/compare_string.py: (process_results) Catch
16604 exception in non-existent base_func and catch exception in
16605 non-existent attribute.
16606 (parse_file) Catch exception if input file does not exist.
16607
16608 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16609
16610 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16611 options to avoid diff calculation and omit header, respectively.
16612 (main): process --no-diff and --no-header
16613
16614 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16615 H.J. Lu <hongjiu.lu@intel.com>
16616
16617 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16618 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16619 wcsncmp-sse2.
16620 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16621 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16622 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16623 and __wcsncmp_sse2.
16624 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16625 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16626 AVX unaligned load is fast and vzeroupper is preferred.
16627 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16628 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16629 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16630 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16631 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16632 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16633 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16634 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16635 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16636 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16637 is undefined.
16638
16639 2018-06-01 Florian Weimer <fweimer@redhat.com>
16640
16641 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16642 configuring with --disable-multi-arch, building with
16643 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16644 Haswell-era CPU.
16645
16646 2018-06-01 Florian Weimer <fweimer@redhat.com>
16647
16648 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16649 results from building with “-march=x86-64 -mtune=generic
16650 -mfpmath=sse” and running on a Haswell-era CPU.
16651
16652 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16653
16654 [BZ #18473]
16655 * soft-fp/sqrttf2.c: Remove file.
16656 * soft-fp/sqrtdf2.c: Move to ....
16657 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16658 <shlib-compat.h>.
16659 (__sqrtdf2): Make conditional on
16660 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16661 symbol.
16662 * soft-fp/sqrtsf2.c: Move to ....
16663 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16664 <shlib-compat.h>.
16665 (__sqrtsf2): Make conditional on
16666 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16667 symbol.
16668 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16669 (gcc-double-routines): Remove sqrtdf2.
16670 (gcc-quad-routines): Remove sqrttf2.
16671 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16672 Do not filter out sqrtsf2 and sqrtdf2.
16673 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16674 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16675
16676 2018-06-01 Florian Weimer <fweimer@redhat.com>
16677
16678 * sysdeps/generic/libcidn.abilist: Remove file.
16679
16680 2018-06-01 Florian Weimer <fweimer@redhat.com>
16681
16682 [BZ #23236]
16683 * libio/strfile.h (struct _IO_str_fields): Rename members to
16684 discourage their use and add comment.
16685 (_IO_STR_DYNAMIC): Remove unused macro.
16686 * libio/strops.c (_IO_str_init_static_internal): Do not use
16687 callback pointers. Call malloc and free.
16688 (_IO_str_overflow): Do not use callback pointers. Call malloc
16689 and free.
16690 (enlarge_userbuf): Likewise.
16691 (_IO_str_finish): Call free.
16692 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16693 _allocate_buffer_unused.
16694 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16695 and free.
16696 (enlarge_userbuf): Likewise.
16697 (_IO_wstr_finish): Call free.
16698 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16699 _allocate_buffer_unused, _free_buffer_unused.
16700 * libio/memstream.c (__open_memstream): Likewise.
16701 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16702 * libio/wmemstream.c (open_wmemstream): Likewise.
16703
16704 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16705
16706 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16707 AMD Ryzen 7 1800X.
16708
16709 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16710
16711 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16712 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16713 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16714 New file.
16715 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16716 Likewise.
16717 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16718
16719 2018-05-29 Florian Weimer <fweimer@redhat.com>
16720
16721 * support/Makefile (libsupport-routines): Add
16722 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16723 xpthread_barrierattr_setpshared.
16724 * support/xpthread_barrierattr_destroy.c: New file.
16725 * support/xpthread_barrierattr_init.c: Likewise.
16726 * support/xpthread_barrierattr_setpshared.c: Likewise.
16727
16728 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16729
16730 [BZ #23206]
16731 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16732 _r_debug and update DT_DEBUG for debugger.
16733
16734 2018-05-29 Florian Weimer <fweimer@redhat.com>
16735
16736 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16737 (tst-strtod5i.out): Likewise.
16738
16739 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16740
16741 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16742 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16743 (sparc64-quad-routines): New variable. Moved from ....
16744 [$(subdir) = soft-fp] (sysdep_routines): Add
16745 $(sparc64-quad-routines). Moved from ....
16746 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16747 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16748 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16749 moved from ....
16750 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16751 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16752 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16753 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16754 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16755 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16756 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16757 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16758 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16759 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16760 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16761 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16762 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16763 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16764 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16765 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16766 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16767 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16768 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16769 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16770 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16771 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16772 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16773 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16774 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16775 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16776 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16777 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16778 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16779 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16780 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16781 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16782 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16783 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16784 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16785 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16786 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16787 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16788 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16789 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16790 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16791 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16792 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16793 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16794 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16795 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16796 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16797 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16798 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16799 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16800 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16801 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16802 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16803 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16804 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16805 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16806 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16807 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16808
16809 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16810 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16811 (sparc32-quad-routines): New variable. Moved from ....
16812 [$(subdir) = soft-fp] (sysdep_routines): Add
16813 $(sparc32-quad-routines). Moved from ....
16814 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16815 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16816 moved from ....
16817 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16818 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16819 * sysdeps/sparc/sparc32/q_add.c: ... here.
16820 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16821 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16822 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16823 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16824 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16825 * sysdeps/sparc/sparc32/q_div.c: ... here.
16826 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16827 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16828 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16829 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16830 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16831 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16832 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16833 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16834 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16835 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16836 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16837 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16838 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16839 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16840 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16841 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16842 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16843 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16844 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16845 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16846 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16847 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16848 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16849 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16850 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16851 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16852 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16853 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16854 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16855 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16856 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16857 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16858 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16859 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16860 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16861 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16862 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16863 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16864 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16865 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16866 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16867 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16868 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16869 * sysdeps/sparc/sparc32/q_util.c: ... here.
16870 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16871 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16872 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16873 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16874
16875 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16876 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16877
16878 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16879 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16880 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16881 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16882
16883 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16884
16885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16886 powerpc/soft-fp.
16887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16888 Likewise.
16889 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16890 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16891
16892 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16893
16894 [BZ #23171]
16895 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16896 double version.
16897
16898 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16899
16900 * sysdeps/sh/Implies: Remove sh/soft-fp.
16901 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16902 * sysdeps/sh/sfp-machine.h: ... here.
16903
16904 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16905
16906 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16907 (__mempcpy_erms): Skip zero length.
16908 (__memmove_erms): Likewise.
16909 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16910 (__memset_erms): Likewise.
16911
16912 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16913
16914 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16915 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16916 Add functions moved from ....
16917 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16918 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16919 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16920 from ....
16921 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16922 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16923 * sysdeps/alpha/e_sqrtl.c: ... here.
16924 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16925 * sysdeps/alpha/local-soft-fp.h: ... here.
16926 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16927 * sysdeps/alpha/ots_add.c: ... here.
16928 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16929 * sysdeps/alpha/ots_cmp.c: ... here.
16930 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16931 * sysdeps/alpha/ots_cmpe.c: ... here.
16932 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16933 * sysdeps/alpha/ots_cvtqux.c: ... here.
16934 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16935 * sysdeps/alpha/ots_cvtqx.c: ... here.
16936 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16937 * sysdeps/alpha/ots_cvttx.c: ... here.
16938 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16939 * sysdeps/alpha/ots_cvtxq.c: ... here.
16940 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16941 * sysdeps/alpha/ots_cvtxt.c: ... here.
16942 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16943 * sysdeps/alpha/ots_div.c: ... here.
16944 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16945 * sysdeps/alpha/ots_mul.c: ... here.
16946 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16947 * sysdeps/alpha/ots_nintxq.c: ... here.
16948 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16949 * sysdeps/alpha/ots_sub.c: ... here.
16950 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16951 * sysdeps/alpha/sfp-machine.h: ... here.
16952
16953 2018-05-23 Florian Weimer <fweimer@redhat.com>
16954
16955 [BZ #19728]
16956 [BZ #19729]
16957 [BZ #22247]
16958 CVE-2016-6261
16959 CVE-2016-6263
16960 CVE-2017-14062
16961 Switch to extern IDNA implementation (libidn2).
16962 * libidn: Remove subdirectory.
16963 * LICENSES: Do not mention licensing conditions for the removed
16964 libidn code.
16965 * config.h.in (HAVE_LIBIDN): Remove.
16966 * include/dlfcn.h (__libc_dlopen): Update comment.
16967 * include/idna.h: Remove file.
16968 * inet/Makefile (routines): Add idna.
16969 (tests-static, tests-internal): Add tst-idna_name_classify.
16970 (LOCALES): Generate locales for tests.
16971 (tst-idna_name_classify.out): Depend on generated locales.
16972 * inet/idna_name_classify.c: New file.
16973 * inet/tst-idna_name_classify.c: Likewise.
16974 * inet/net-internal.h (__idna_to_dns_encoding)
16975 (__idna_from_dns_encoding): Declare.
16976 * inet/net-internal.h (enum idna_name_classification): Define.
16977 (__idna_name_classify): Declare.
16978 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16979 __idna_from_dns_encoding.
16980 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16981 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16982 name as a fallback in case of encoding errors.
16983 (getnameinfo): Use DEPRECATED_NI_IDN.
16984 * inet/idna.c: New file.
16985 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16986 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16987 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16988 (modules-names): Add tst-no-libidn2.
16989 (extra-test-objs): Add tst-no-libidn2.os.
16990 (LDFLAGS-tst-no-libidn2.so): Set soname.
16991 (LOCALES): Set, and generate locales.
16992 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16993 (tst-resolv-ai_idn-latin1): Likewise.
16994 (tst-resolv-ai_idn-nolibidn2): Likewise.
16995 (tst-resolv-ai_idn.out): Depend on locales.
16996 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16997 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16998 tst-no-libidn2.so.
16999 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17000 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17001 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17002 * resolv/tst-resolv-ai_idn.c: New file.
17003 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17004 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17005 * resolv/tst-no-libidn2.c: Likewise.
17006 * support/support_format_addrinfo.c (format_ai_flags): Do not
17007 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17008 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17009 (gaih_inet): Call __idna_to_dns_encoding and
17010 __idna_from_dns_encoding, and use the original (punycode) name if
17011 __idna_from_dns_encoding fails due to an encoding error.
17012 (getaddrinfo): Use DEPRECATED_AI_IDN.
17013 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17014 * sysdeps/unix/inet/configure: Remove file.
17015 * sysdeps/unix/inet/configure.ac: Likewise.
17016
17017 2018-05-23 Florian Weimer <fweimer@redhat.com>
17018
17019 Implement allocate_once.
17020 * include/allocate_once.h: New file.
17021 * misc/allocate_once.c: Likewise.
17022 * misc/tst-allocate_once.c: Likewise.
17023 * misc/Makefile (routines): Add allocate_once.
17024 (tests-internal): Add tst-allocate_once.
17025 (generated): Add tst-allocate_once.mtrace,
17026 tst-allocate_once-mem.out.
17027 (tests-special): Add tst-allocate_once-mem.out.
17028 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17029 (tst-allocate_once-mem.out): Call mtrace.
17030 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17031
17032 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17033
17034 [BZ #23196]
17035 * string/test-memcpy.c (do_test1): New function.
17036 (test_main): Call it.
17037
17038 2018-05-23 Andreas Schwab <schwab@suse.de>
17039
17040 [BZ #23196]
17041 CVE-2018-11237
17042 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17043 (L(preloop_large)): Save initial destination pointer in %r11 and
17044 use it instead of %rax after the loop.
17045 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17046
17047 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17048
17049 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17050 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17051 -I../soft-fp. Moved from ....
17052 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17053 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17054 * sysdeps/aarch64/e_sqrtl.c: ... here.
17055 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17056 * sysdeps/aarch64/sfp-machine.h: ... here.
17057
17058 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17059 -Wmaybe-uninitialized around access to fq[0].
17060 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17061 Likewise.
17062
17063 [BZ #18471]
17064 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17065 aliases for non-libc case of versioned symbols.
17066 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17067 (llseek): Define as compat symbol if
17068 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17069 with link warning.
17070 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17071 Make into a compat symbol, disabled for minimum symbol version
17072 GLIBC_2.28 and later.
17073 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17074
17075 2018-05-22 Florian Weimer <fweimer@redhat.com>
17076
17077 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17078 not add -mpreferred-stack-boundary=4.
17079 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17080 (stack-align-test-flags): Likewise.
17081 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17082 Likewise.
17083 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17084 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17085 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17086 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17087 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17088 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17089 (CFLAGS-tst-align2.c): Likewise.
17090
17091 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17092
17093 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17094 (index_arch_Prefer_FSRM): Likewise.
17095 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17096 Also check Prefer_FSRM.
17097 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17098 Also return OPTIMIZE (erms) for Prefer_FSRM.
17099
17100 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17101
17102 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17103 (index_cpu_FSRM): Likewise.
17104 (reg_FSRM): Likewise.
17105
17106 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17107
17108 * math/gen-tgmath-tests.py: Import sys.
17109 (Tests.__init__): Initialize macros_seen.
17110 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17111 if requested to do so for this macro.
17112 (Tests.add_all_tests): Take argument for macro for which to
17113 generate tests.
17114 (Tests.check_macro_list): New function.
17115 (main): Handle check-list argument and argument specifying macro
17116 for which to generate tests.
17117 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17118 [PYTHON] (tgmath3-macro-tests): Likewise.
17119 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17120 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17121 not test-tgmath3.c.
17122 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17123 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17124 to CFLAGS.
17125 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17126 [PYTHON] ($(foreach
17127 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17128 rule.
17129 [PYTHON] (tests-special): Add
17130 $(objpfx)test-tgmath3-macro-list.out.
17131 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17132
17133 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17134 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17135 later.
17136
17137 [BZ #22639]
17138 * time/tzset.c (SECSPERDAY): Cast to time_t.
17139 * time/tst-y2039.c: New file.
17140 * time/Makefile (tests): Add tst-y2039.
17141
17142 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17143
17144 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17145 (PREFETCH_ONE_SET): Remove duplicate line.
17146
17147 2018-05-17 Florian Weimer <fweimer@redhat.com>
17148
17149 * sysdeps/generic/math-type-macros-double.h: Include
17150 <math-nan-payload-double.h> after <libm-alias-double.h>.
17151 * sysdeps/generic/math-type-macros-float.h: Include
17152 <math-nan-payload-float.h> after <libm-alias-float.h>.
17153 * sysdeps/generic/math-type-macros-float128.h: Include
17154 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17155 * sysdeps/generic/math-type-macros-ldouble.h: Include
17156 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17157
17158 2018-05-17 Andreas Schwab <schwab@suse.de>
17159
17160 * resolv/res_send.c (__res_context_send): Don't set errno when
17161 returing error after malloc failure.
17162
17163 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17164
17165 * nptl/allocatestack.c (allocate_stack): Remove the
17166 !__ASSUME_PRIVATE_FUTEX paths.
17167 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17168 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17169 Likewise.
17170 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17171 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17172 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17173 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17174 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17175 !__ASSUME_PRIVATE_FUTEX path.
17176 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17177 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17178 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17179 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17180 !__ASSUME_PRIVATE_FUTEX macros.
17181 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17182 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17183 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17184 * sysdeps/unix/sysv/linux/kernel-features.h
17185 (__ASSUME_PRIVATE_FUTEX): Removed.
17186
17187 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17188
17189 * math/Makefile (libm-narrow-fns): Add div.
17190 (libm-test-funcs-narrow): Likewise.
17191 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17192 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17193 * math/gen-auto-libm-tests.c (test_functions): Add div.
17194 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17195 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17196 (NARROW_DIV_TRIVIAL): Likewise.
17197 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17198 macro.
17199 (__ddivl): Likewise.
17200 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17201 ddiv.
17202 (CFLAGS-nldbl-ddiv.c): New variable.
17203 (CFLAGS-nldbl-fdiv.c): Likewise.
17204 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17205 __nldbl_ddivl.
17206 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17207 prototype.
17208 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17209 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17210 * math/auto-libm-test-in: Add tests of div.
17211 * math/auto-libm-test-out-narrow-div: New generated file.
17212 * math/libm-test-narrow-div.inc: New file.
17213 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17214 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17215 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17216 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17217 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17218 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17219 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17220 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17221 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17222 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17223 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17224 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17225 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17226 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17227 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17228 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17229 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17230 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17231 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17232 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17233 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17234 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17235 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17236 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17237 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17238 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17239 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17240 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17241 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17242 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17243 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17244 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17246 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17249 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17250 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17251 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17252 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17253 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17254 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17255 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17256 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17257
17258 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17259
17260 [BZ #23178]
17261 * nscd/nscd-client.h (sendfileall): Remove prototype.
17262 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17263 (handle_request): Use writeall instead of sendfileall.
17264 * nscd/aicache.c (addhstaiX): Likewise.
17265 * nscd/grpcache.c (cache_addgr): Likewise.
17266 * nscd/hstcache.c (cache_addhst): Likewise.
17267 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17268 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17269 * nscd/pwdcache.c (cache_addpw): Likewise.
17270 * nscd/servicescache.c (cache_addserv): Likewise.
17271 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17272 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17273 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17274 Remove define.
17275
17276 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17277
17278 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17279 Include <string/strncat.c>.
17280 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17281 alias.
17282 (__GI___strncat): New hidden alias.
17283
17284 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17285
17286 * sysdeps/mips/mips32/libm-test-ulps: Update.
17287 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17288
17289 2018-05-16 Florian Weimer <fweimer@redhat.com>
17290
17291 * support/Makefile (libsupport-routines): Add support_quote_blob,
17292 support_test_compare_blob.
17293 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17294 * support/check.h (TEST_COMPARE_BLOB): Define.
17295 (support_test_compare_blob): Declare.
17296 * support/support.h (support_quote_blob): Declare.
17297 * support/support_quote_blob.c: New file.
17298 * support/support_test_compare_blob.c: Likewise.
17299 * support/tst-support_quote_blob.c: Likewise.
17300 * support/tst-test_compare_blob.c: Likewise.
17301
17302 2018-05-16 Florian Weimer <fweimer@redhat.com>
17303
17304 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17305 of <strtod_nan_double.h>.
17306 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17307 instead of SET_MANTISSA.
17308 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17309 of include <strtod_nan_float.h>.
17310 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17311 instead of <strtod_nan_ldouble.h>.
17312 * stdlib/strtod_nan_double.h: Move to ...
17313 * sysdeps/generic/math-nan-payload-double.h: ... here.
17314 (FLOAT): Remove definition.
17315 (SET_MANTISSA): Rename to ...
17316 (SET_NAN_PAYLOAD): ... this.
17317 * stdlib/strtod_nan_float.h: Move to ...
17318 * sysdeps/generic/math-nan-payload-float.h: ... here.
17319 (FLOAT): Remove definition.
17320 (SET_MANTISSA): Rename to ...
17321 (SET_NAN_PAYLOAD): ... this.
17322 * sysdeps/generic/math-type-macros-double.h: Include
17323 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17324 instead of <math-svid-compat.h>.
17325 * sysdeps/generic/math-type-macros-float.h: Include
17326 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17327 instead of <math-svid-compat.h>.
17328 * sysdeps/generic/math-type-macros-float128.h: Include
17329 <math-nan-payload-float128.h>.
17330 * sysdeps/generic/math-type-macros-ldouble.h: Include
17331 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17332 instead of <math-svid-compat.h>.
17333 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17334 check for definition.
17335 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17336 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17337 Include <ieee754_float128.h>.
17338 (FLOAT): Remove definition.
17339 (SET_MANTISSA): Rename to ...
17340 (SET_NAN_PAYLOAD): ... this.
17341 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17342 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17343 Do not include <float128_private.h>.
17344 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17345 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17346 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17347 (FLOAT): Remove definition.
17348 (SET_MANTISSA): Rename to ...
17349 (SET_NAN_PAYLOAD): ... this.
17350 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17351 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17352 (FLOAT): Remove definition.
17353 (SET_MANTISSA): Rename to ...
17354 (SET_NAN_PAYLOAD): ... this.
17355 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17356 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17357 (FLOAT): Remove definition.
17358 (SET_MANTISSA): Rename to ...
17359 (SET_NAN_PAYLOAD): ... this.
17360 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17361 of "../stdlib/strtod_nan_double.h".
17362 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17363 of "../stdlib/strtod_nan_float.h".
17364 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17365 instead of "../stdlib/strtod_nan_ldouble.h".
17366 * manual/arith.texi (Parsing of Floats): Adjust comment.
17367
17368 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17369
17370 * math/Makefile (libm-narrow-fns): Add mul.
17371 (libm-test-funcs-narrow): Likewise.
17372 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17373 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17374 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17375 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17376 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17377 (NARROW_MUL_TRIVIAL): Likewise.
17378 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17379 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17380 macro.
17381 (__dmull): Likewise.
17382 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17383 dmul.
17384 (CFLAGS-nldbl-dmul.c): New variable.
17385 (CFLAGS-nldbl-fmul.c): Likewise.
17386 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17387 __nldbl_dmull.
17388 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17389 prototype.
17390 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17391 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17392 * math/auto-libm-test-in: Add tests of mul.
17393 * math/auto-libm-test-out-narrow-mul: New generated file.
17394 * math/libm-test-narrow-mul.inc: New file.
17395 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17396 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17397 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17398 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17399 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17400 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17401 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17402 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17403 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17404 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17405 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17406 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17407 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17408 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17409 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17410 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17411 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17412 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17413 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17414 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17415 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17416 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17417 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17418 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17419 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17420 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17421 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17422 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17423 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17424 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17425 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17426 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17431 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17432 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17433 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17434 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17435 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17436 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17437 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17438 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17439
17440 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17441
17442 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17443 with *%eax in call.
17444
17445 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17446
17447 * sysdeps/i386/ldsodefs.h: Removed.
17448 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17449 * sysdeps/x86/ldsodefs.h: This.
17450 (La_i86_regs): New.
17451 (La_i86_retval): Likewise.
17452 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17453 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17454
17455 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17456
17457 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17458 unnecessary testl.
17459
17460 2018-05-13 Alan Modra <amodra@gmail.com>
17461
17462 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17463 R_PARISC_TLS_DTPOFF32 reloc addend.
17464
17465 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17466
17467 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17468 * math/math.h: Restrict the prototype definition for the functions
17469 issignaling(_Float128) and iszero(_Float128); and template
17470 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17471 __HAVE_FLOAT128_UNLIKE_LDBL.
17472 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17473 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17474 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17475 __f128() constants; define the type _Float128 as long double;
17476 and reuse long double in __CFLOAT128.
17477
17478 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17479
17480 * sysdeps/generic/math_private.h: Do not include
17481 <math-barriers.h>.
17482 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17483 <math_private.h>.
17484 * math/fromfp.h: Include <math-barriers.h>.
17485 * math/math-narrow.h: Likewise.
17486 * math/s_nextafter.c: Likewise.
17487 * math/s_nexttowardf.c: Likewise.
17488 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17489 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17490 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17491 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17492 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17493 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17494 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17495 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17496 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17497 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17498 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17499 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17500 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17501 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17502 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17503 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17504 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17505 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17506 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17507 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17508 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17509 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17510 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17511 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17512 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17513 * sysdeps/ieee754/k_standardl.c: Likewise.
17514 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17515 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17516 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17517 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17518 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17519 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17520 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17521 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17522 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17523 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17524 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17525 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17526 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17527 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17528 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17529 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17530 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17531 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17532 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17533 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17534 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17535 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17536
17537 2018-05-11 Florian Weimer <fweimer@redhat.com>
17538
17539 Use 64-bit epoch values in the time zone file parser.
17540 * include/time.h (internal_time_t): Define.
17541 (__tzfile_compute): Use it.
17542 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17543 member.
17544 (transitions): Switch to internal_time_t.
17545 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17546 types.
17547 (__tzfile_compute): Use internal_time_t for timer argument. Check
17548 for truncation before calling __offtime.
17549
17550 2018-05-11 Florian Weimer <fweimer@redhat.com>
17551
17552 [BZ #23166]
17553 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17554 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17555 Likewise.
17556 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17557 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17558 export without --enable-obsolete-rpc.
17559 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17560 symbol. This should not have been exported, ever.
17561
17562 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17563
17564 [BZ #23152]
17565 * localedata/locales/gd_GB (abmon): Fix typo in May:
17566 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17567
17568 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17569
17570 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17571 Use multiple registers to copy data in loop tail.
17572
17573 * sysdeps/aarch64/multiarch/memmove_falkor.S
17574 (__memmove_falkor): Use multiple registers to move data in
17575 loop tail.
17576
17577 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17578
17579 * math/math-underflow.h: New file.
17580 * sysdeps/generic/math_private.h: Do not include <float.h>.
17581 (fabs_tg): Remove macro. Moved to math-underflow.h.
17582 (min_of_type_f): Likewise.
17583 (min_of_type_): Likewise.
17584 (min_of_type_l): Likewise.
17585 (min_of_type_f128): Likewise.
17586 (min_of_type): Likewise.
17587 (math_check_force_underflow): Likewise.
17588 (math_check_force_underflow_nonneg): Likewise.
17589 (math_check_force_underflow_complex): Likewise.
17590 * math/e_exp2_template.c: Include <math-underflow.h>.
17591 * math/k_casinh_template.c: Likewise.
17592 * math/s_catan_template.c: Likewise.
17593 * math/s_catanh_template.c: Likewise.
17594 * math/s_ccosh_template.c: Likewise.
17595 * math/s_cexp_template.c: Likewise.
17596 * math/s_clog10_template.c: Likewise.
17597 * math/s_clog_template.c: Likewise.
17598 * math/s_csin_template.c: Likewise.
17599 * math/s_csinh_template.c: Likewise.
17600 * math/s_csqrt_template.c: Likewise.
17601 * math/s_ctan_template.c: Likewise.
17602 * math/s_ctanh_template.c: Likewise.
17603 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17604 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17605 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17606 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17607 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17608 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17609 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17610 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17611 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17612 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17613 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17614 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17615 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17616 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17617 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17618 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17619 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17620 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17621 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17622 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17623 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17624 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17625 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17626 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17627 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17628 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17629 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17630 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17631 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17632 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17633 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17634 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17635 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17636 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17637 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17638 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17639 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17640 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17641 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17642 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17643 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17644 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17645 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17646 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17647 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17648 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17649 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17650 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17651 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17652 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17653 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17654 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17655 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17656 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17657 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17658 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17659 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17660 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17661 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17662 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17663 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17664 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17665 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17666 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17667 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17668 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17669 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17670 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17671 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17672 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17673 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17674 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17675 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17676 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17677 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17678 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17679 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17680 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17681 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17682 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17683 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17684 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17685 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17686 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17687
17688 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17689
17690 * sysdeps/generic/math-barriers.h: New file.
17691 * sysdeps/generic/math_private.h [!math_opt_barrier]
17692 (math_opt_barrier): Move to math-barriers.h.
17693 [!math_opt_barrier] (math_force_eval): Likewise.
17694 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17695 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17696 math-barriers.h.
17697 (math_force_eval): Likewise.
17698 * sysdeps/alpha/fpu/math-barriers.h: New file.
17699 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17700 math-barriers.h.
17701 (math_force_eval): Likewise.
17702 * sysdeps/x86/fpu/math-barriers.h: New file.
17703 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17704 math-barriers.h.
17705 (math_force_eval): Likewise.
17706 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17707 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17708 multiple-include guard for rename.
17709 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17710 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17711 math-barriers.h.
17712 (math_force_eval): Likewise.
17713
17714 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17715
17716 [BZ #22786]
17717 CVE-2018-11236
17718 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17719 computation.
17720 * stdlib/Makefile (test-bz22786): New test.
17721 * stdlib/test-bz22786.c: New test.
17722
17723 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17724
17725 * include/math-narrow-eval.h: New file. Contents moved from ....
17726 * sysdeps/generic/math_private.h: ... here.
17727 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17728 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17729 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17730 * stdlib/strtod_l.c: Likewise.
17731 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17732 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17733 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17734 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17735 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17736 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17737 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17738 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17739 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17740 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17741 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17742 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17743 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17744 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17745 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17746 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17747 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17748 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17749 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17750 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17751 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17752 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17753 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17754 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17755 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17756 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17757 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17758 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17759 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17760
17761 2018-05-08 Andreas Schwab <schwab@suse.de>
17762
17763 * sysdeps/nptl/internaltypes.h: Fix comment.
17764
17765 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17766
17767 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17768 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17769 hidden.
17770
17771 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17772
17773 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17774 of I into loop header.
17775 * benchtests/bench-memmove-walk.c
17776 (test_main): Likewise.
17777
17778 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17779
17780 Revert:
17781 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17782 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17783
17784 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17785
17786 [BZ #20419]
17787 * elf/dl-load.c (open_verify): Fix stack overflow.
17788 * elf/Makefile (tst-big-note): New test.
17789 * elf/tst-big-note-lib.S: New.
17790 * elf/tst-big-note.c: New.
17791
17792 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17793
17794 * scripts/abilist.awk: Ignore absolute symbols.
17795 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17796 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17797 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17798 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17799 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17800 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17801 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17802 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17803 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17804 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17805 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17806 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17807 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17808 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17809 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17810 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17811 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17812 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17813 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17814 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17815 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17816 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17817 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17818 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17819 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17820 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17821 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17822 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17823 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17824 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17825 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17829 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17830 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17831 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17832 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17833 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17834 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17836 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17837 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17839 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17840 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17841 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17842 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17843 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17844 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17845 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17846 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17847 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17849 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17850 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17851 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17852 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17853 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17872 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17873 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17874 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17875 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17876 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17878 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17879 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17880 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17881 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17882 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17883 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17884 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17885 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17886 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17887 Likewise.
17888 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17889 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17890 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17891 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17892 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17895 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17901 Likewise.
17902 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17911 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17912 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17915 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17916 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17923 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17924 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17925 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17926 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17929 Likewise.
17930 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17933 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17943 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17950 Likewise.
17951 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17960 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17961 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17964 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17965 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17967 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17968 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17970 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17971 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17972 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17973 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17974 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17975 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17976 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17977 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17978 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17983 Likewise.
17984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17989 Likewise.
17990 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17991 Likewise.
17992 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17994 Likewise.
17995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17997 Likewise.
17998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17999 Likewise.
18000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18003 Likewise.
18004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18005 Likewise.
18006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18007 Likewise.
18008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18012 Likewise.
18013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18019 Likewise.
18020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18022 Likewise.
18023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18024 Likewise.
18025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18026 Likewise.
18027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18028 Likewise.
18029 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18032 Likewise.
18033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18034 Likewise.
18035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18036 Likewise.
18037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18040 Likewise.
18041 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18042 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18043 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18044 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18045 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18046 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18047 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18048 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18049 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18050 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18051 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18052 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18053 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18054 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18055 Likewise.
18056 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18057 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18058 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18059 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18060 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18061 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18062 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18063 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18064 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18065 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18066 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18067 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18068 Likewise.
18069 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18070 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18071 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18072 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18073 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18074 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18075 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18076 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18077 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18078 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18079 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18080 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18081 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18082 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18083 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18084 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18085 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18086 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18087 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18088 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18089 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18090 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18091 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18092 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18093 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18094 Likewise.
18095 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18096 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18097 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18098 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18099 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18100 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18101 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18102 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18103 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18104 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18105 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18106 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18107 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18108 Likewise.
18109 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18110 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18111 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18112 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18113 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18114 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18115 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18116 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18117 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18120 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18121 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18122 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18123 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18124 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18125 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18126 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18127 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18128 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18129 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18130 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18131 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18132 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18133 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18134 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18135 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18136 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18137 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18138 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18139 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18140 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18141 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18142 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18143 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18144 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18145 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18146 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18147
18148 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18149
18150 [BZ #23137]
18151 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18152 Use atomic_load_acquire to load __tid.
18153
18154 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18155
18156 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18157 Restore the pointer into %rdx, after syscall and use %rdx,
18158 instead of %rsi, to restore context.
18159
18160 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18161
18162 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18163 Pop the pointer into %rdx after syscall and use %rdx, instead
18164 of %rsi, to restore context.
18165
18166 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18167
18168 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18169 handlers after setjmp.
18170 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18171 defined.
18172 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18173 <libc-pointer-arith.h>.
18174 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18175 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18176 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18177 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18178 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18179 * sysdeps/x86/__longjmp_cancel.S: New file.
18180 * sysdeps/x86/longjmp.c: Likewise.
18181 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18182
18183 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18184
18185 * NEWS: Add ustat.h deprecation entry.
18186 * bits/ustat.h: Remove file.
18187 * misc/sys/ustat.h: Likewise.
18188 * misc/ustat.h: Likewise.
18189 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18190 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18191 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18192 compatibility mode.
18193 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18194 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18195 generic Linux implementation.
18196
18197 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18198
18199 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18200 * math/w_expl_compat.c: Likewise.
18201 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18202
18203 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18204
18205 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18206
18207 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18208
18209 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18210 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18211 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18212 Remove.
18213 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18215 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18216 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18217 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18218 and SYSCALL_LL64.
18219
18220 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18221
18222 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18223
18224 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18225 * math/w_asin_template.c: Likewise.
18226 * math/w_atanh_template.c: Likewise.
18227
18228 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18229
18230 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18231 to powerpc/powerpc64/be for big-endian.
18232 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18233 little-endian.
18234
18235 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18236 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18237 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18238 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18239 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18240 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18241 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18242 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18243 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18244 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18245 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18246 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18247 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18248 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18249 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18250 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18251 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18252 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18253 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18254 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18255 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18256 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18257 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18258 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18259 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18260 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18261 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18262 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18263 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18264 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18265 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18266 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18267
18268 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18269 adjusted to imply powerpc64 and older processors on powerpc64/be.
18270 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18271 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18272 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18273 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18274 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18275 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18276 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18277 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18278 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18279 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18280 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18281 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18282 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18283 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18284 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18285 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18286 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18287 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18288 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18289 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18290 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18291 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18292 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18293 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18294 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18295 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18296 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18297 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18298 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18299 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18300 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18301
18302 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18303 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18304 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18305 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18306
18307 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18308 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18309 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18310 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18311
18312 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18313 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18314 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18315 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18316 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18317 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18318 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18319 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18320 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18321 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18322 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18323
18324 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18325 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18326 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18327 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18328 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18329 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18330 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18331 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18332 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18333 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18334 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18335
18336 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18337 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18338 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18339 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18340 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18341 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18342 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18343 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18344 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18345 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18346 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18347 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18348
18349 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18350 and adjusted to imply olders processors.
18351 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18352 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18353 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18354 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18355 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18356 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18357 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18358 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18359 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18360 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18361 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18362
18363 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18364 powerpc64/le.
18365 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18366 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18367
18368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18369 powerpc64le.
18370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18372
18373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18374 powerpc64/be.
18375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18378
18379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18380 powerpc64 and adjusted.
18381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18384 Likewise.
18385
18386 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18387
18388 * sysdeps/tile: Remove.
18389 * sysdeps/unix/sysv/linux/tile: Likewise.
18390 * README (tilegx-*-linux-gnu): Remove from list of supported
18391 configurations.
18392 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18393 contribution of support for generic Linux kernel syscall
18394 interface.
18395 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18396 tilegx configurations.
18397 (Config.install_linux_headers): Do not handle tile.
18398 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18399 in comment.
18400 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18401 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18402 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18403 conditional undefine and redefine.
18404 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18405 in comment.
18406 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18407 conditional undefine and redefine.
18408
18409 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18410
18411 * signal/tst-sigaction.c: New file to test BZ #23069.
18412 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18413
18414 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18415
18416 [BZ #22766]
18417 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18418 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18419 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18420 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18421
18422 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18423
18424 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18425 _DIRENT_MATCHES_DIRENT64 is not defined.
18426 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18427 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18428 is defined.
18429 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18430 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18431
18432 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18433
18434 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18435 version to GCC 8 branch.
18436
18437 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18438
18439 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18440 (check_no_hidden): Use type of original function when declaring
18441 alias.
18442
18443 * sysdeps/unix/sysv/linux/sys/ptrace.h
18444 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18445 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18446 (struct __ptrace_seccomp_metadata): New type.
18447 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18448 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18449 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18450 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18451 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18452 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18453 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18454 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18455 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18456 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18457 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18458 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18459 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18460 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18461 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18462 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18463
18464 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18465
18466 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18467 defined.
18468 * dirent/versionsort.c (versionsort): Likewise.
18469 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18470 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18471 * dirent/versionsort64.c (versionsort64): Likewise.
18472 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18473 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18474 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18475 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18476 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18477 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18478 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18479 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18480 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18481 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18484 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18485 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18486
18487 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18488
18489 * elf/elf.h (NT_PPC_PKEY): New macro.
18490
18491 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18492
18493 [BZ #23094]
18494 * localedata/locales/hr_HR: fix thousands_sep and
18495 mon_thousands_sep
18496
18497 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18498
18499 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18500 (XTABS): Define to TAB3.
18501
18502 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18503
18504 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18505
18506 * dirent/scandir-tail-common.c: New file.
18507 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18508 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18509 * dirent/scandir.c: Use scandir-tail-common.c.
18510 * dirent/scandirat.c: Likewise.
18511 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18512 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18513 if _DIRENT_MATCHES_DIRENT64 is defined.
18514 * dirent/scandirat64.c (scandirat64): Likewise.
18515 * include/dirent.h (__scandir_tail): Only define iff
18516 _DIRENT_MATCHES_DIRENT64 is not defined.
18517 (__scandir64_tail): Define regardless.
18518 (__scandirat, scandirat64): Remove libc_hidden_proto.
18519 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18520 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18522 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18523 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18524 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18525 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18526
18527 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18528
18529 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18530 New macro.
18531 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18532 Increase to 24.
18533 (_dl_aarch64_cap_flags): Add asimdfhm.
18534
18535 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18536
18537 * sysdeps/nios2/libm-test-ulps: Update.
18538
18539 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18540
18541 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18542 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18543
18544 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18545 requirements.
18546 (_DIRENT_MATCHES_DIRENT64): Undef
18547 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18548 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18549 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18550 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18551 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18552 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18553 use getdents64 syscalls as base.
18554 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18555 symbol if required.
18556 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18557 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18558 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18559 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18560 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18561 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18562 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18563 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18564 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18565 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18566 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18567
18568 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18569
18570 * scripts/test_printers_common.py (init_test): Disable lock elision.
18571
18572 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18573
18574 * math/test-tgmath.c (count_double, count_float,
18575 count_ldouble, count_cdouble, count_cfloat,
18576 count_cldouble): Use volatile int.
18577
18578 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18579
18580 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18581 (conformtest-xfail-conds): Add i386-gnu.
18582 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18583 i386-gnu.
18584 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18585 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18586 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18587 msqid_ds.msg_lrpid): Likewise.
18588 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18589 Likewise.
18590 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18591 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18592 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18593 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18594 unsigned int.
18595 (struct statvfs64): Likewise.
18596 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18597 Likewise.
18598 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18599 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18600 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18601 instead of wait_queue.
18602 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18603 instead of vm_area_struct.
18604 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18605 struct sched_param definition to it.
18606 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18607 * bits/types/struct_sched_param.h: New file.
18608 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18609 <bits/types/struct_sched_param.h> instead of <sched.h>.
18610 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18611 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18612 generic version but include <bits/pthreadtypes.h> to make struct
18613 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18614 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18615 non-compliant.
18616 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18617 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18618 [__USE_XOPEN] (OFDEL): New macro.
18619 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18620 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18621 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18622 prototypes.
18623 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18624 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18625 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18626 non-compliant.
18627 * sysdeps/i386/sys/ucontext.h: Likewise.
18628 * sysdeps/m68k/sys/ucontext.h: Likewise.
18629 * sysdeps/mips/sys/ucontext.h: Likewise.
18630 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18631 * sysdeps/mach/hurd/i386/Makefile
18632 (test-xfail-POSIX/fcntl.h/conform): Add.
18633 (test-xfail-POSIX/signal.h/conform): Add.
18634 (test-xfail-POSIX/semaphore.h/conform): Add.
18635 (test-xfail-POSIX/regex.h/conform): Add.
18636 (test-xfail-POSIX/aio.h/conform): Add.
18637 (test-xfail-POSIX/mqueue.h/conform): Add.
18638 (test-xfail-POSIX/sys/types.h/conform): Add.
18639 (test-xfail-UNIX98/fcntl.h/conform): Add.
18640 (test-xfail-UNIX98/netdb.h/conform): Add.
18641 (test-xfail-UNIX98/signal.h/conform): Add.
18642 (test-xfail-UNIX98/semaphore.h/conform): Add.
18643 (test-xfail-UNIX98/regex.h/conform): Add.
18644 (test-xfail-UNIX98/aio.h/conform): Add.
18645 (test-xfail-UNIX98/ftw.h/conform): Add.
18646 (test-xfail-UNIX98/mqueue.h/conform): Add.
18647 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18648 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18649 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18650 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18651 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18652 (test-xfail-UNIX98/sys/types.h/conform): Add.
18653 (test-xfail-UNIX98/stdlib.h/conform): Add.
18654 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18655 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18656 (test-xfail-POSIX2008/netdb.h/conform): Add.
18657 (test-xfail-POSIX2008/signal.h/conform): Add.
18658 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18659 (test-xfail-POSIX2008/regex.h/conform): Add.
18660 (test-xfail-POSIX2008/aio.h/conform): Add.
18661 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18662 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18663 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18664 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18665 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18666 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18667 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18668 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18669 (test-xfail-XOPEN2K/signal.h/conform): Add.
18670 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18671 (test-xfail-XOPEN2K/regex.h/conform): Add.
18672 (test-xfail-XOPEN2K/aio.h/conform): Add.
18673 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18674 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18675 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18676 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18677 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18678 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18679 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18680 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18681 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18682 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18683 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18684 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18685 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18686 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18687 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18688 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18689 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18690 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18691 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18692 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18693 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18694 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18695 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18696 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18697 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18698 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18699 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18700 i386-gnu.
18701 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18702 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18703
18704 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18705
18706 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18707 --enable-obsolete for powerpc-linux-gnuspe.
18708
18709 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18710
18711 * conform/data/sys/un.h-data: Allow sun_ prefix.
18712 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18713 prototypes.
18714 * sysdeps/mach/include/mach.h: Likewise.
18715 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18716 * sysdeps/mach/include/mach_error.h: Likewise.
18717
18718 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18719
18720 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18721 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18722 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18723 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18724
18725 2018-04-16 Andreas Schwab <schwab@suse.de>
18726
18727 [BZ #19527]
18728 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18729
18730 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18731
18732 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18733 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18734
18735 2018-04-12 DJ Delorie <dj@redhat.com>
18736
18737 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18738 version to 4.16.
18739
18740 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18741
18742 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18743 (struct kernel_sigaction): Use the same definition on 31bit as is used
18744 on 64bit.
18745
18746 2018-04-09 Florian Weimer <fweimer@redhat.com>
18747
18748 [BZ #23037]
18749 * resolv/res_send.c (send_dg): Use designated initializers instead
18750 of assignment to zero-initialize other fields of struct mmsghdr.
18751
18752 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18753
18754 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18755 __READDIR_ALIAS): Undefine after usage.
18756 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18757 __READDIR_R_ALIAS): Likewise.
18758 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18759 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18760 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18761 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18762 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18763 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18764 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18765 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18766 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18767 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18768 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18769 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18770 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18771 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18772 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18773 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18774 * sysdeps/unix/sysv/linux/readdir.c: New file.
18775 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18776 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18777 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18778
18779 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18780
18781 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18782
18783 * manual/charset.texi (Converting a Character): Fix typo.
18784
18785 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18786
18787 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18788
18789 * sysdeps/arm/libm-test-ulps: Update.
18790
18791 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18792 as base implementation.
18793 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18794 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18795 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18796 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18797 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18798 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18799 remove unrequired definitions and update comments.
18800 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18801 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18802 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18803 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18804 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18805 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18806 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18807 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18808 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18809 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18810 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18811 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18812 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18813 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18814 and RESET_SA_RESTORER hooks.
18815
18816 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18817
18818 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18819
18820 2018-04-05 Florian Weimer <fweimer@redhat.com>
18821
18822 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18823 integer overflow, memory leak on error, and indeterminate errno
18824 value. Add a null wide character to terminate the result string.
18825 * manual/charset.texi (Converting a Character): Mention embedded
18826 null bytes in the mbrtowc input string. Explain what happens in
18827 the -2 result case. Do not claim that mbrtowc is simple or
18828 obvious to use. Adjust the description of the code example. Use
18829 @code, not @var, for concrete variables.
18830
18831 2018-04-05 Florian Weimer <fweimer@redhat.com>
18832
18833 * manual/examples/mbstouwcs.c: New file.
18834 * manual/charset.texi (Converting a Character): Include it.
18835
18836 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18837
18838 * include/dirent.h (dirfd): Add hidden proto.
18839 * dirent/dirfd.c (dirfd): Add hidden def.
18840 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18841 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18842
18843 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18844
18845 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18846 sin, cos and sincos to 1 ULP.
18847
18848 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18849
18850 [BZ #19818]
18851 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18852 symbols.
18853 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18854 * elf/tst-absolute-sym.c: New file.
18855 * elf/tst-absolute-sym-lib.c: New file.
18856 * elf/tst-absolute-sym-lib.lds: New file.
18857 * elf/Makefile (tests): Add `tst-absolute-sym'.
18858 (modules-names): Add `tst-absolute-sym-lib'.
18859 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18860 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18861 ($(objpfx)tst-absolute-sym): New dependency.
18862
18863 [BZ #19818]
18864 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18865 parameter.
18866 (SYMBOL_ADDRESS): New macro.
18867 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18868 SYMBOL_ADDRESS for symbol address calculation.
18869 * elf/dl-runtime.c (_dl_fixup): Likewise.
18870 (_dl_profile_fixup): Likewise.
18871 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18872 * elf/rtld.c (dl_main): Likewise.
18873 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18874 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18875 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18876 (elf_machine_rela): Likewise.
18877 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18878 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18879 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18880 (elf_machine_rela): Likewise.
18881 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18882 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18883 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18884 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18885 Likewise.
18886 (elf_machine_reloc): Likewise.
18887 (elf_machine_got_rel): Likewise.
18888 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18889 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18890 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18891 Likewise.
18892 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18893 Likewise.
18894 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18895 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18896 Likewise.
18897 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18898 Likewise.
18899 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18900 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18901 Likewise.
18902 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18903 Likewise.
18904 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18905 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18906
18907 2018-04-04 Zack Weinberg <zackw@panix.com>
18908
18909 * sysdeps/generic/internal-signals.h: Include signal.h,
18910 sigsetops.h, and stdbool.h.
18911 (__libc_signal_block_all): Actually block all signals.
18912 (__libc_signal_block_app): Likewise.
18913 (__libc_signal_restore_set): Actually restore the signal mask.
18914
18915 2018-04-04 Florian Weimer <fweimer@redhat.com>
18916
18917 inet: Actually build and run tst-deadline.
18918 * inet/Makefile (tests-internal): Add tst-deadline and do not
18919 overwrite the variable.
18920 (tests-static-internal): Remove variable.
18921
18922 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18923
18924 [BZ #22947]
18925 * bits/uio-ext.h (RWF_APPEND): New.
18926 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18927 * manual/llio.texi: Document RWF_APPEND.
18928 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18929 (RWF_SUPPORTED): Add RWF_APPEND.
18930
18931 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18932
18933 [BZ #22391]
18934 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18935 check for internal nptl signals.
18936 * nptl/sigaction.c (__sigaction): Likewise.
18937 * signal/sigaddset.c (sigaddset): Likewise.
18938 * signal/sigdelset.c (sigdelset): Likewise.
18939 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18940 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18941 value.
18942 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18943 to filter out internal nptl signals.
18944 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18945 also check realtime signals using standard macros.
18946 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18947 __is_internal_signal, __libc_signal_block_all,
18948 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18949 * sysdeps/nptl/sigfillset.c: Remove file.
18950 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18951 Change return to bool.
18952 (__clear_internal_signals): Remove SIGTIMER clean since it is
18953 equal to SIGCANEL on Linux.
18954 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18955 signal set was constructed using standard functions.
18956
18957 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18958
18959 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18960 ifname is too long.
18961 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18962 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18963 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18964 hidden def.
18965 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18966 * signal/sigaddset.c: Include <sigsetopts.h>.
18967 * signal/sigdelset.c: Likewise.
18968
18969 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18970
18971 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18972 (__cos): Likewise.
18973 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18974 logic as sin and cos.
18975
18976 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18977
18978 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18979 inputs. Return correct sign.
18980 (do_sincos): Remove small input check before do_sin, let do_sin set
18981 the sign.
18982 (__sin): Likewise.
18983 (__cos): Likewise.
18984
18985 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18986
18987 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18988 (do_cos_slow): Likewise.
18989 (do_sin_slow): Likewise.
18990 (reduce_and_compute): Likewise.
18991 (slow): Likewise.
18992 (slow1): Likewise.
18993 (slow2): Likewise.
18994 (sloww): Likewise.
18995 (sloww1): Likewise.
18996 (sloww2): Likewise.
18997 (bslow): Likewise.
18998 (bslow1): Likewise.
18999 (bslow2): Likewise.
19000 (cslow2): Likewise.
19001
19002 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19003
19004 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19005 (do_cos): Remove corp parameter and calculations.
19006 (do_sin): Likewise.
19007 (do_sincos): Remove cor variable.
19008 (__sin): Use do_sincos for huge inputs.
19009 (__cos): Likewise.
19010 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19011 (reduce_and_compute_sincos): Remove unused function.
19012
19013 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19014
19015 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19016 reduce_sincos, improve accuracy to 136 bits.
19017 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19018 (__sin): Use improved reduction and simplified do_sincos calculation.
19019 (__cos): Likewise.
19020 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19021
19022 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19023
19024 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19025 (do_sincos_2): Likewise.
19026 (__sin): Remove middle range reduction case.
19027 (__cos): Likewise.
19028 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19029 reduction case.
19030
19031 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19032
19033 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19034 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19035 inputs.
19036 (__cos): Likewise.
19037 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19038
19039 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19040
19041 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19042 version to 4.16
19043
19044 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19045
19046 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19047 Remove definitions.
19048 (opendir_oflags): Use O_DIRECTORY regardless.
19049 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19050 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19051
19052 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19053
19054 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19055 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19056 macros.
19057 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19058 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19059 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19060 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19061 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19062 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19063
19064 * htl/Makefile: Bump licence to LGPL 2.1+.
19065 * htl/alloca_cutoff.c: Likewise.
19066 * htl/cthreads-compat.c: Likewise.
19067 * htl/lockfile.c: Likewise.
19068 * htl/pt-alloc.c: Likewise.
19069 * htl/pt-cancel.c: Likewise.
19070 * htl/pt-cleanup.c: Likewise.
19071 * htl/pt-create.c: Likewise.
19072 * htl/pt-dealloc.c: Likewise.
19073 * htl/pt-detach.c: Likewise.
19074 * htl/pt-exit.c: Likewise.
19075 * htl/pt-getattr.c: Likewise.
19076 * htl/pt-initialize.c: Likewise.
19077 * htl/pt-internal.h: Likewise.
19078 * htl/pt-join.c: Likewise.
19079 * htl/pt-self.c: Likewise.
19080 * htl/pt-setcancelstate.c: Likewise.
19081 * htl/pt-setcanceltype.c: Likewise.
19082 * htl/pt-sigmask.c: Likewise.
19083 * htl/pt-spin-inlines.c: Likewise.
19084 * htl/pt-testcancel.c: Likewise.
19085 * htl/pt-yield.c: Likewise.
19086 * htl/tests/test-1.c: Likewise.
19087 * htl/tests/test-10.c: Likewise.
19088 * htl/tests/test-11.c: Likewise.
19089 * htl/tests/test-12.c: Likewise.
19090 * htl/tests/test-13.c: Likewise.
19091 * htl/tests/test-14.c: Likewise.
19092 * htl/tests/test-15.c: Likewise.
19093 * htl/tests/test-16.c: Likewise.
19094 * htl/tests/test-17.c: Likewise.
19095 * htl/tests/test-2.c: Likewise.
19096 * htl/tests/test-3.c: Likewise.
19097 * htl/tests/test-4.c: Likewise.
19098 * htl/tests/test-5.c: Likewise.
19099 * htl/tests/test-6.c: Likewise.
19100 * htl/tests/test-7.c: Likewise.
19101 * htl/tests/test-8.c: Likewise.
19102 * htl/tests/test-9.c: Likewise.
19103 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19104 * sysdeps/htl/bits/cancelation.h: Likewise.
19105 * sysdeps/htl/bits/pthread-np.h: Likewise.
19106 * sysdeps/htl/bits/pthread.h: Likewise.
19107 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19108 * sysdeps/htl/bits/semaphore.h: Likewise.
19109 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19110 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19111 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19112 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19113 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19114 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19115 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19116 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19117 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19118 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19119 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19120 * sysdeps/htl/old_pt-atfork.c: Likewise.
19121 * sysdeps/htl/pt-atfork.c: Likewise.
19122 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19123 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19124 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19125 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19126 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19127 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19128 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19129 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19130 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19131 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19132 * sysdeps/htl/pt-attr-init.c: Likewise.
19133 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19134 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19135 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19136 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19137 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19138 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19139 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19140 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19141 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19142 * sysdeps/htl/pt-attr.c: Likewise.
19143 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19144 * sysdeps/htl/pt-barrier-init.c: Likewise.
19145 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19146 * sysdeps/htl/pt-barrier.c: Likewise.
19147 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19148 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19149 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19150 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19151 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19152 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19153 * sysdeps/htl/pt-cond-init.c: Likewise.
19154 * sysdeps/htl/pt-cond-signal.c: Likewise.
19155 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19156 * sysdeps/htl/pt-cond-wait.c: Likewise.
19157 * sysdeps/htl/pt-cond.c: Likewise.
19158 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19159 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19160 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19161 * sysdeps/htl/pt-condattr-init.c: Likewise.
19162 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19163 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19164 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19165 * sysdeps/htl/pt-equal.c: Likewise.
19166 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19167 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19168 * sysdeps/htl/pt-getschedparam.c: Likewise.
19169 * sysdeps/htl/pt-getspecific.c: Likewise.
19170 * sysdeps/htl/pt-init-specific.c: Likewise.
19171 * sysdeps/htl/pt-key-create.c: Likewise.
19172 * sysdeps/htl/pt-key-delete.c: Likewise.
19173 * sysdeps/htl/pt-key.h: Likewise.
19174 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19175 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19176 * sysdeps/htl/pt-mutex-init.c: Likewise.
19177 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19178 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19179 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19180 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19181 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19182 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19183 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19184 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19185 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19186 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19187 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19188 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19189 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19190 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19191 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19192 * sysdeps/htl/pt-mutexattr.c: Likewise.
19193 * sysdeps/htl/pt-once.c: Likewise.
19194 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19195 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19196 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19197 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19198 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19199 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19200 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19201 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19202 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19203 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19204 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19205 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19206 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19207 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19208 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19209 * sysdeps/htl/pt-setschedparam.c: Likewise.
19210 * sysdeps/htl/pt-setschedprio.c: Likewise.
19211 * sysdeps/htl/pt-setspecific.c: Likewise.
19212 * sysdeps/htl/pt-spin.c: Likewise.
19213 * sysdeps/htl/pt-startup.c: Likewise.
19214 * sysdeps/htl/pthread.h: Likewise.
19215 * sysdeps/htl/sem-close.c: Likewise.
19216 * sysdeps/htl/sem-destroy.c: Likewise.
19217 * sysdeps/htl/sem-getvalue.c: Likewise.
19218 * sysdeps/htl/sem-init.c: Likewise.
19219 * sysdeps/htl/sem-open.c: Likewise.
19220 * sysdeps/htl/sem-post.c: Likewise.
19221 * sysdeps/htl/sem-timedwait.c: Likewise.
19222 * sysdeps/htl/sem-trywait.c: Likewise.
19223 * sysdeps/htl/sem-unlink.c: Likewise.
19224 * sysdeps/htl/sem-wait.c: Likewise.
19225 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19226 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19227 * sysdeps/mach/htl/pt-block.c: Likewise.
19228 * sysdeps/mach/htl/pt-spin.c: Likewise.
19229 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19230 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19231 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19232 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19233 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19234 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19235 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19236 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19237 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19238 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19239 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19240 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19241 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19242 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19243 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19244 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19245 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19246 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19247 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19248 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19249 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19250 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19251 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19252 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19253 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19254 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19255 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19256 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19257 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19258 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19259 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19260 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19261 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19262 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19263 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19264 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19265 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19266 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19267 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19268 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19269 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19270 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19271 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19272
19273 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19274 * README: Remove the mention of out-of-tree patches needed for
19275 GNU/Hurd.
19276
19277 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19278 (UTIME_NOW, UTIME_OMIT): Define macros.
19279
19280 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19281 instead of pthread_detach.
19282 (__cthread_fork): Call __pthread_create instead of pthread_create.
19283 (__cthread_keycreate): Call __pthread_key_create instead of
19284 pthread_key_create.
19285 (__cthread_getspecific): Call __pthread_getspecific instead of
19286 pthread_getspecific.
19287 (__cthread_setspecific): Call __pthread_setspecific instead of
19288 pthread_setspecific.
19289 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19290 __pthread_mutex_unlock instead of pthread_mutex_lock and
19291 pthread_mutex_unlock.
19292 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19293 ___pthread_get_cleanup_stack.
19294 (__pthread_get_cleanup_stack): New strong alias.
19295 * htl/pt-create.c: Include <pthreadP.h>.
19296 (entry_point): Call __pthread_exit instead of pthread_exit.
19297 (pthread_create): Rename to __pthread_create.
19298 (pthread_create): New strong alias.
19299 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19300 (pthread_detach): New strong alias.
19301 (__pthread_detach): Call __pthread_cond_broadcast instead of
19302 pthread_cond_broadcast.
19303 * htl/pt-exit.c: Include <pthreadP.h>.
19304 (__pthread_exit): Call __pthread_setcancelstate and
19305 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19306 __pthread_get_cleanup_stack.
19307 * htl/pt-testcancel.c: Include <pthreadP.h>.
19308 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19309 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19310 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19311 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19312 pthread_attr_getstacksize.
19313 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19314 Rename to __pthread_attr_getstackaddr.
19315 (pthread_attr_getstackaddr): New strong alias.
19316 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19317 Rename to __pthread_attr_getstacksize.
19318 (pthread_attr_getstacksize): New strong alias.
19319 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19320 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19321 (pthread_attr_setstack): New strong alias.
19322 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19323 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19324 pthread_attr_getstacksize, pthread_attr_setstacksize and
19325 pthread_attr_setstackaddr.
19326 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19327 Rename to __pthread_attr_setstackaddr.
19328 (pthread_attr_setstackaddr): New strong alias.
19329 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19330 Rename to __pthread_attr_setstacksize.
19331 (pthread_attr_setstacksize): New strong alias.
19332 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19333 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19334 pthread_exit.
19335 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19336 (__pthread_key_create): New hidden def.
19337 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19338 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19339 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19340 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19341 __pthread_setspecific, __pthread_setcancelstate,
19342 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19343 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19344 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19345 declarations.
19346 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19347 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19348 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19349 (pthread_attr_setstackaddr): New strong alias.
19350 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19351 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19352 (pthread_attr_setstacksize): New strong alias.
19353 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19354 (call_exit): Call __pthread_exit instead of pthread_exit.
19355 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19356 (_pthread_mutex_init): New hidden definition.
19357 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19358 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19359 instead of pthread_attr_init and pthread_attr_setstack.
19360
19361 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19362 __vm_deallocate instead of vm_allocate and vm_deallocate.
19363 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19364 setenv.
19365 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19366 of geteuid.
19367 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19368 strdup.
19369 * hurd/siginfo.c: Include <libioP.h>.
19370 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19371 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19372 munmap.
19373 * mach/devstream.c: Include <libioP.h>.
19374 (dealloc_ref): Call __mach_port_deallocate instead of
19375 mach_port_deallocate.
19376 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19377 Call __mach_port_deallocate instead of mach_port_deallocate.
19378 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19379 pathconf.
19380 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19381 munmap.
19382 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19383 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19384 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19385 of munmap.
19386 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19387 of close.
19388 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19389 instead of sysconf.
19390 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19391 __clock_gettime instead of clock_gettime.
19392 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19393 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19394 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19395 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19396 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19397 tcgetattr.
19398 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19399 __clock_gettime and __nanosleep instead of clock_gettime and
19400 nanosleep.
19401 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19402 __hurd_catch_signal.
19403 (hurd_catch_signal): New strong alias.
19404 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19405 __hurd_catch_signal instead of hurd_catch_signal.
19406 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19407 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19408 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19409 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19410 (_hurd_thread_sigstate): Add hidden def.
19411 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19412 mutex_unlock.
19413 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19414 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19415 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19416 __hurd_file_name_path_lookup.
19417 (hurd_file_name_path_lookup): New strong alias.
19418 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19419 hurd_file_name_path_lookup.
19420 * mach/errstring.c (mach_error_type): Add hidden def.
19421 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19422 * mach/mutex-init.c (__mutex_init): Add hidden def.
19423 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19424 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19425 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19426 * sysdeps/mach/hurd/getcwd.c
19427 (_hurd_canonicalize_directory_name_internal): Rename to
19428 __hurd_canonicalize_directory_name_internal.
19429 (_hurd_canonicalize_directory_name_internal): New strong alias.
19430 (__canonicalize_directory_name_internal, __getcwd): Call
19431 __hurd_canonicalize_directory_name_internal instead of
19432 _hurd_canonicalize_directory_name_internal.
19433 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19434 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19435 hidden defs.
19436 * sysdeps/hurd/include/hurd.h: New file.
19437 * sysdeps/hurd/include/hurd/fd.h: New file.
19438 * sysdeps/hurd/include/hurd/signal.h: New file.
19439 * sysdeps/mach/include/lock-intern.h: New file.
19440 * sysdeps/mach/include/mach.h: New file.
19441 * sysdeps/mach/include/mach/mig_support.h: New file.
19442 * sysdeps/mach/include/mach_error.h: New file.
19443 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19444 prototype.
19445 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19446 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19447 _HEADER_H_HIDDEN_DEF macro.
19448 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19449 _hurd_fd_error_signal): Add hidden prototype.
19450 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19451 hidden def.
19452 * libio/iolibio.h (_IO_puts): New hidden prototype.
19453 * libio/ioputs.c (_IO_puts): New hidden def.
19454 * sysdeps/mach/hurd/localplt.data: New file.
19455
19456 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19457 Amos Jeffries <squid3@treenet.co.nz>
19458 David Michael <fedora.dm0@gmail.com>
19459 Marco Gerards <marco@gnu.org>
19460 Marcus Brinkmann <marcus@gnu.org>
19461 Neal H. Walfield <neal@gnu.org>
19462 Pino Toscano <toscano.pino@tiscali.it>
19463 Richard Braun <rbraun@sceen.net>
19464 Roland McGrath <roland@gnu.org>
19465 Samuel Thibault <samuel.thibault@ens-lyon.org>
19466 Thomas DiModica <ricinwich@yahoo.com>
19467 Thomas Schwinge <tschwinge@gnu.org>
19468
19469 * htl: New directory.
19470 * sysdeps/htl: New directory.
19471 * sysdeps/hurd/htl: New directory.
19472 * sysdeps/i386/htl: New directory.
19473 * sysdeps/mach/htl: New directory.
19474 * sysdeps/mach/hurd/htl: New directory.
19475 * sysdeps/mach/hurd/i386/htl: New directory.
19476 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19477 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19478 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19479
19480 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19481
19482 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19483 signals in thread created for runing timers.
19484
19485 2018-04-01 Florian Weimer <fweimer@redhat.com>
19486
19487 * support/support_format_addrinfo.c (support_format_addrinfo):
19488 Include unknown error number in formatted result.
19489
19490 2018-03-29 Florian Weimer <fweimer@redhat.com>
19491
19492 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19493 capture SIGBUS.
19494
19495 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19496
19497 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19498 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19499 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19500 (__ASSUME_CLONE_BACKWARDS): Define.
19501
19502 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19503
19504 [BZ #23024]
19505 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19506 early when linux sentinel value is set.
19507
19508 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19509
19510 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19511
19512 2018-03-27 Andreas Schwab <schwab@suse.de>
19513
19514 [BZ #23005]
19515 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19516 allocation of private copy of nsaddr_list fails.
19517
19518 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19519
19520 [BZ #16552]
19521 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19522 * sysdeps/unix/sysv/linux/umount.c: ... here.
19523 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19524 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19525 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19526 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19528 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19529 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19530
19531 2018-03-26 Andreas Schwab <schwab@suse.de>
19532
19533 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19534 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19535 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19536 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19537 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19538 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19539 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19540 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19541 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19542 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19543 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19544 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19545 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19546 (R_RISCV_NUM): Define.
19547
19548 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19549
19550 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19551 TLS declaration of errno.
19552 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19553 __libc_setup_tls.
19554 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19555 (ARCH_SETUP_TLS): Likewise.
19556 * sysdeps/mach/hurd/libc-start.h: New file copied from
19557 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19558 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19559 instead of __libc_setup_tls.
19560 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19561 __libc_setup_tls before initializing libpthread and running _hurd_init
19562 which starts the signal thread.
19563 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19564 Declare function.
19565 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19566
19567 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19568
19569 [BZ #22998]
19570 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19571 after it is defined.
19572
19573 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19574 Max Horn <max@quendi.de>
19575
19576 [BZ #22644]
19577 CVE-2017-18269
19578 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19579 branch conditions.
19580 * string/test-memmove.c (do_test2): New testcase.
19581
19582 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19583
19584 * sysdeps/generic/frame.h: Remove file.
19585 * sysdeps/arm/frame.h: Likewise.
19586 * sysdeps/hppa/frame.h: Likewise.
19587 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19588 macro.
19589 (GET_FRAME): Likewise.
19590 (GET_STACK): Likewise.
19591 (CALL_SIGHANDLER): Likewise.
19592 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19593 Likewise.
19594 (GET_FRAME): Likewise.
19595 (GET_STACK): Likewise.
19596 (CALL_SIGHANDLER): Likewise.
19597 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19598 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19599 (GET_FRAME): Likewise.
19600 (GET_STACK): Likewise.
19601 (CALL_SIGHANDLER): Likewise.
19602 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19603 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19604 (GET_FRAME): Likewise.
19605 (GET_STACK): Likewise.
19606 (ADVANCE_STACK_FRAME): Likewise.
19607 (CALL_SIGHANDLER): Likewise.
19608 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19609 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19610 (GET_FRAME): Likewise.
19611 (GET_STACK): Likewise.
19612 (CALL_SIGHANDLER): Likewise.
19613 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19614 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19615 (GET_FRAME): Likewise.
19616 (GET_STACK): Likewise.
19617 (CALL_SIGHANDLER): Likewise.
19618 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19619 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19620 (GET_FRAME): Likewise.
19621 (GET_STACK): Likewise.
19622 (CALL_SIGHANDLER): Likewise.
19623 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19624 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19625 (GET_FRAME): Likewise.
19626 (GET_STACK): Likewise.
19627 (CALL_SIGHANDLER): Likewise.
19628 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19629 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19630 (GET_FRAME): Likewise.
19631 (GET_STACK): Likewise.
19632 (CALL_SIGHANDLER): Likewise.
19633 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19634 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19635 (GET_FRAME): Likewise.
19636 (GET_STACK): Likewise.
19637 (CALL_SIGHANDLER): Likewise.
19638 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19639 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19640 (GET_FRAME): Likewise.
19641 (GET_STACK): Likewise.
19642 (CALL_SIGHANDLER): Likewise.
19643 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19644 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19645 (GET_FRAME): Likewise.
19646 (GET_STACK): Likewise.
19647 (CALL_SIGHANDLER): Likewise.
19648 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19649 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19650 (GET_FRAME): Likewise.
19651 (GET_STACK): Likewise.
19652 (CALL_SIGHANDLER): Likewise.
19653 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19654 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19655 (FIRST_FRAME_POINTER): Likewise.
19656 (ADVANCE_STACK_FRAME): Likewise.
19657 (GET_STACK): Likewise.
19658 (GET_FRAME): Likewise.
19659 (CALL_SIGHANDLER): Likewise.
19660 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19661 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19662 (ADVANCE_STACK_FRAME): Likewise.
19663 (GET_STACK): Likewise.
19664 (GET_FRAME): Likewise.
19665 (CALL_SIGHANDLER): Likewise.
19666 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19667 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19668 (GET_FRAME): Likewise.
19669 (GET_STACK): Likewise.
19670 (CALL_SIGHANDLER): Likewise.
19671 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19672 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19673 (GET_FRAME): Likewise.
19674 (GET_STACK): Likewise.
19675 (CALL_SIGHANDLER): Likewise.
19676
19677 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19678
19679 * sysdeps/x86_64/backtrace.c: Move to ....
19680 * debug/backtrace.c: ... here.
19681 * sysdeps/aarch64/backtrace.c: Remove file.
19682 * sysdeps/alpha/backtrace.c: Likewise.
19683 * sysdeps/hppa/backtrace.c: Likewise.
19684 * sysdeps/ia64/backtrace.c: Likewise.
19685 * sysdeps/mips/backtrace.c: Likewise.
19686 * sysdeps/nios2/backtrace.c: Likewise.
19687 * sysdeps/riscv/backtrace.c: Likewise.
19688 * sysdeps/sh/backtrace.c: Likewise.
19689 * sysdeps/tile/backtrace.c: Likewise.
19690
19691 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19692
19693 [BZ #22987]
19694 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19695 function.
19696 (fdimf): Likewise.
19697 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19698
19699 [BZ #17343]
19700 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19701 possibly overflowing computations.
19702
19703 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19704
19705 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19706 values from Linux-specific section now that it is in the GNU section.
19707 * sysdeps/gnu/errlist.c: Regenerate.
19708
19709 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19710
19711 * math/Makefile (libm-narrow-fns): Add sub.
19712 (libm-test-funcs-narrow): Likewise.
19713 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19714 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19715 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19716 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19717 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19718 (NARROW_SUB_TRIVIAL): Likewise.
19719 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19720 macro.
19721 (__dsubl): Likewise.
19722 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19723 dsub.
19724 (CFLAGS-nldbl-dsub.c): New variable.
19725 (CFLAGS-nldbl-fsub.c): Likewise.
19726 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19727 __nldbl_dsubl.
19728 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19729 prototype.
19730 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19731 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19732 * math/auto-libm-test-in: Add tests of sub.
19733 * math/auto-libm-test-out-narrow-sub: New generated file.
19734 * math/libm-test-narrow-sub.inc: New file.
19735 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19736 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19737 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19738 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19739 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19740 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19741 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19742 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19743 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19744 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19745 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19746 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19747 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19748 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19749 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19750 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19751 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19752 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19753 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19754 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19755 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19756 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19757 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19758 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19759 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19760 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19761 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19762 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19763 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19764 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19765 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19766 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19767 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19771 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19772 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19773 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19774 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19775 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19776 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19777 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19778 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19779 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19780 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19781
19782 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19783
19784 [BZ #20079]
19785 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19786
19787 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19788
19789 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19790
19791 2018-03-18 Richard Braun <rbraun@sceen.net>
19792
19793 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19794 thread reference.
19795
19796 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19797
19798 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19799 (__libc_cleanup_fct): Define function.
19800 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19801 __libc_cleanup_end): Rewrite implementation using
19802 __attribute__ ((__cleanup__)).
19803 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19804 * hurd/Makefile (routines): Add hurdlock.
19805 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19806 interface.
19807 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19808 * hurd/hurdpid.c: Include <lowlevellock.h>
19809 (_S_msg_proc_newids): Use lll_wait to synchronize.
19810 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19811 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19812 * mach/Makefile (lock-headers): Remove machine-lock.h.
19813 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19814 <machine-lock.h>.
19815 (__spin_lock_t): New type.
19816 (__SPIN_LOCK_INITIALIZER): New macro.
19817 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19818 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19819 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19820 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19821 (__mutex_init): Initialize with lll.
19822 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19823 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19824 needing lll.
19825 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19826 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19827 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19828 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19829 (__setpgid): Use lll for synchronization.
19830 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19831 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19832 instead of <cthreads.h>.
19833 (_IO_lock_inexpensive): New macro
19834 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19835 (__libc_lock_self0): New declaration.
19836 (__libc_lock_owner_self): New macro.
19837 (__libc_key_t): Remove type.
19838 (_LIBC_LOCK_INITIALIZER): New macro.
19839 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19840 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19841 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19842 __libc_lock_define_initialized_recursive,
19843 __rtld_lock_define_initialized_recursive,
19844 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19845 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19846 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19847 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19848 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19849 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19850 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19851 New macros.
19852 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19853 * hurd/hurdlock.c: New file.
19854 * hurd/hurdlock.h: New file.
19855 * mach/lowlevellock.h: New file
19856
19857 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19858
19859 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19860 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19861 when opening a symlink with O_NOFOLLOW.
19862 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19863 path when flags contains O_NOFOLLOW.
19864 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19865 if flags contains O_DIRECTORY and the result is a directory.
19866 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19867 oneself when the pointer given in D is nul (as set by ext2fs).
19868 * sysdeps/mach/hurd/mlockall.c: New file.
19869 * sysdeps/mach/hurd/munlockall.c: New file.
19870
19871 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19872
19873 * hurd/hurdsig.c: Include <pthread.h>.
19874 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19875 get the signal thread stack layout.
19876 * hurd/Makefile (headers): Remove threadvar.h.
19877 (inline-headers): Remove threadvar.h.
19878 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19879 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19880 __hurd_threadvar_max, __hurd_errno_location.
19881 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19882 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19883 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19884 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19885 unless TLS is not initialized yet, in which case we do not need a
19886 critical section yet anyway.
19887 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19888 <machine-sp.h>.
19889 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19890 declarations.
19891 (__hurd_threadvar_index): Remove enum.
19892 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19893 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19894 inlines.
19895 (__hurd_reply_port0): New variable declaration.
19896 (__hurd_local_reply_port): New macro.
19897 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19898 (interrupted_reply_port_location): Add thread_t parameter. Use it
19899 with THREAD_TCB to access thread-local variables.
19900 (_hurdsig_abort_rpcs): Pass ss->thread to
19901 interrupted_reply_port_location.
19902 (_hurd_internal_post_signal): Likewise.
19903 (_hurdsig_init): Use presence of cthread_fork instead of
19904 __hurd_threadvar_stack_mask to start signal thread by hand.
19905 Remove signal thread threadvar initialization.
19906 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19907 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19908 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19909 of threadvar.
19910 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19911 __libc_lock_self0.
19912 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19913 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19914 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19915 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19916 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19917 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19918 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19919 define variables.
19920 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19921 <hurd/threadvar.h>.
19922 [IS_IN(rtld)] (rtld_errno): New variable.
19923 [IS_IN(rtld)] (__errno_location): New weak function.
19924 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19925 * sysdeps/mach/hurd/errno.c: Remove file.
19926 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19927 (__fork): Remove THREADVAR_SPACE macro and its use.
19928 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19929 variable.
19930 (init): Do not initialize threadvar.
19931 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19932 symbol.
19933 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19934 __hurd_local_reply_port instead of threadvar.
19935 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19936 _hurd_sigstate fields.
19937 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19938 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19939 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19940 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19941 instead of threadvar.
19942 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19943 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19944 (use_threadvar, global_reply_port): Remove variables.
19945 (__hurd_reply_port0): New variable.
19946 (__mig_get_reply_port): Use __hurd_local_reply_port and
19947 __hurd_reply_port0 instead of threadvar.
19948 (__mig_dealloc_reply_port): Likewise.
19949 (__mig_init): Do not initialize threadvar.
19950 * sysdeps/mach/hurd/profil.c: Fix comment.
19951 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19952 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19953 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19954 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19955 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19956 __cthread_setspecific.
19957 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19958 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19959 __cthread_t instead of cthread_fork, cthread_detach,
19960 pthread_getattr_np, pthread_attr_getstack.
19961 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19962 __cthread_keycreate.
19963 (cthread_getspecific): Rename to __cthread_getspecific.
19964 (cthread_setspecific): Rename to __cthread_setspecific.
19965 (__libc_getspecific): Use __cthread_getspecific instead of
19966 cthread_getspecific.
19967 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19968 __cthread_keycreate instead of cthread_keycreate.
19969 (__libc_setspecific): Use __cthread_setspecific instead of
19970 cthread_setspecific.
19971 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19972 Likewise.
19973 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19974 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19975 testing whether it is defined.
19976
19977 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19978
19979 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19980 Define macro.
19981 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19982 * sysdeps/mach/i386/thread_state.h
19983 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19984 i386_THREAD_STATE.
19985 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19986 i386_THREAD_STATE.
19987 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19988
19989 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19990 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19991
19992 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19993 macros.
19994 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19995 descriptor instead of creating a new one.
19996 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19997
19998 * mach/setup-thread.c: Include <ldsodefs.h>.
19999 (__mach_setup_thread): Call _dl_allocate_tls, pass
20000 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20001 MACHINE_THREAD_STATE_FLAVOR, before getting
20002 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20003 MACHINE_THREAD_STATE_FLAVOR with the result.
20004 * hurd/hurdfault.c (_hurdsig_fault_init): Call
20005 MACHINE_THREAD_STATE_FIX_NEW.
20006 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20007 too. Add original thread parameter.
20008
20009 2018-03-16 Joseph Myers <joseph@codesourcery.com>
20010
20011 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20012 Remove inline function.
20013
20014 * sysdeps/i386/fpu/libm-test-ulps: Update.
20015 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20016
20017 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20018
20019 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20020 commit.
20021
20022 2018-03-15 Joseph Myers <joseph@codesourcery.com>
20023
20024 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20025 (__sincos_code): Remove define and undefine.
20026 [__FAST_MATH__] (__sincos): Remove inline function.
20027 [__FAST_MATH__] (__sincosf): Remove inline function.
20028 [__FAST_MATH__] (__sincosl): Remove inline function.
20029 (__atan2l): Remove inline functions.
20030 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20031 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20032 function.
20033 (floor): Remove inline function.
20034 (ceil): Likewise.
20035 [__FAST_MATH__] (__ldexp_code): Remove macro.
20036 [__FAST_MATH__] (ldexp): Remove inline function.
20037 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20038 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20039 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20040 [__USE_ISOC99] (__lrint_code): Remove macro.
20041 [__USE_ISOC99] (__llrint_code): Likewise.
20042 [__USE_ISOC99] (lrintf): Remove inline function.
20043 [__USE_ISOC99] (lrint): Likewise.
20044 [__USE_ISOC99] (lrintl): Likewise.
20045 [__USE_ISOC99] (llrint): Likewise.
20046 [__USE_ISOC99] (llrintf): Likewise.
20047 [__USE_ISOC99] (llrintl): Likewise.
20048
20049 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20050
20051 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20052 (__ieee754_sqrtf): Remove.
20053 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20054 (__ieee754_sqrtf): Remove.
20055 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20056 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20057 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20058 (__ieee754_sqrtf): Remove.
20059 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20060 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20061 (sqrtf): Remove.
20062 (sqrtl): Remove.
20063 (__ieee754_sqrt): Remove.
20064 (__ieee754_sqrtf): Remove.
20065 (__ieee754_sqrtl): Remove.
20066 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20067 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20068 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20069 (__ieee754_sqrtf): Remove.
20070 (__ieee754_sqrtl): Remove.
20071
20072 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20073
20074 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20075 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20076 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20077 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20078 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20079 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20080 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20081 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20082 Likewise.
20083 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20084 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20085 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20086 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20087 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20088 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20089 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20090 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20091 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20092 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20093 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20094 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20095 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20096 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20097 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20098 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20099 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20100 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20101 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20102 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20103 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20104 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20105 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20106 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20107 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20108 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20109 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20110 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20111 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20112 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20113 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20114 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20115 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20116 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20117 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20118 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20119 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20120 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20121 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20122 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20123
20124 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20125
20126 * include/math.h (sqrt): Declare with asm redirect.
20127 (sqrtf): Likewise.
20128 (sqrtl): Likewise.
20129 (sqrtf128): Likewise.
20130 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20131 nonlib and libnldbl with -fmath-errno.
20132 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20133 * math/w_sqrt_template.c: Likewise.
20134 * math/w_sqrtf_compat.c: Likewise.
20135 * math/w_sqrtl_compat.c: Likewise.
20136 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20137 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20138 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20139 complex.h.
20140
20141 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20142
20143 * benchtests/Makefile: Define _ISOMAC.
20144 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20145 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20146 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20147 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20148 * benchtests/bench-timing.h: Define attribute_hidden.
20149
20150 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20151
20152 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20153 mov + lsr.
20154
20155 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20156
20157 [BZ #22963]
20158 * localedata/locales/cs_CZ (mon): Rename to...
20159 (alt_mon): This.
20160 (mon): Import from CLDR (genitive case).
20161
20162 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20163
20164 [BZ #22937]
20165 * localedata/locales/el_CY (abmon): Rename to...
20166 (ab_alt_mon): This.
20167 (abmon): Import from CLDR (abbreviated genitive case).
20168 * localedata/locales/el_GR (abmon): Rename to...
20169 (ab_alt_mon): This.
20170 (abmon): Import from CLDR (abbreviated genitive case).
20171
20172 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20173
20174 [BZ #22932]
20175 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20176
20177 2018-03-15 Robert Buj <robert.buj@gmail.com>
20178
20179 [BZ #22848]
20180 * localedata/locales/ca_ES (abmon): Rename to...
20181 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20182 (mon): Rename to...
20183 (alt_mon): This.
20184 (abmon): Import from CLDR (genitive case, month names preceded by
20185 "de" or "d’").
20186 (mon): Likewise.
20187 (abday): Synchronize with CLDR.
20188 (d_t_fmt): Likewise.
20189 (d_fmt): Likewise.
20190 (am_pm): Likewise.
20191
20192 (LC_TIME): Improve indentation.
20193 (LC_TELEPHONE): Likewise.
20194 (LC_NAME): Likewise.
20195 (LC_ADDRESS): Likewise.
20196
20197 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20198
20199 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20200 (lrintf): Remove definitions used only with old GCC.
20201 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20202 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20203 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20204 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20205 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20206 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20207 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20208 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20209 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20210 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20211 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20212 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20213 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20214 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20215 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20216 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20217 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20218 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20219 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20220 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20221 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20222 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20223 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20224 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20225 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20226 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20227 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20228 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20229
20230 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20231
20232 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20233 instruction to unbreak builds with binutils 2.26 and older.
20234
20235 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20236
20237 * sysdeps/aarch64/strncmp.S (count): New macro.
20238 (strncmp): Store misaligned length in SRC1 in COUNT.
20239 (mutual_align): Adjust.
20240 (misaligned8): Load dword at a time when it is safe.
20241
20242 2018-03-12 Zack Weinberg <zackw@panix.com>
20243
20244 [BZ #1190]
20245 [BZ #19476]
20246 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20247 if the _IO_EOF_SEEN bit is already set; update commentary.
20248 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20249 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20250
20251 * support/support_openpty.c, support/tty.h: New files.
20252 * support/Makefile (libsupport-routines): Add support_openpty.
20253
20254 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20255 New test cases.
20256 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20257 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20258
20259 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20260
20261 * po/pt_BR.po: Update translations.
20262
20263 2018-03-12 David Michael <fedora.dm0@gmail.com>
20264
20265 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20266 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20267 get a port to the startup server.
20268
20269 2018-03-11 Zack Weinberg <zackw@panix.com>
20270
20271 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20272 before nldbl-compat.h.
20273
20274 2018-03-10 Zack Weinberg <zackw@panix.com>
20275
20276 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20277 math.h or math_private.h.
20278
20279 * sysdeps/alpha/fpu/s_isnan.c
20280 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20281 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20282 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20283 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20284 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20285 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20286 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20287 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20288 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20289 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20290 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20291 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20292 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20293 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20294 Include math_private.h.
20295
20296 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20297 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20298 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20299 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20300 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20301 * sysdeps/powerpc/power7/fpu/s_logb.c:
20302 Include math.h and math_private.h.
20303
20304 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20305 uses of $at in .set noat / .set at.
20306
20307 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20308
20309 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20310 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20311 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20312 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20313 Likewise.
20314
20315 2018-03-09 Florian Weimer <fweimer@redhat.com>
20316
20317 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20318 in comment.
20319
20320 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20321
20322 [BZ #22919]
20323 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20324 Add nop before __startcontext, add explaining comments.
20325
20326 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20327
20328 [BZ #22926]
20329 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20330 empty for __SPE__.
20331 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20332 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20333 Do not build hardware transactional code for __SPE__.
20334 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20335 (__lll_trylock_elision): Likewise.
20336 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20337 (__lll_unlock_elision): Likewise.
20338
20339 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20340 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20341 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20342 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20343 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20344 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20345 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20346 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20347 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20348 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20349 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20350 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20351 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20352 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20353 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20354 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20355 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20356 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20357 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20358 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20359 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20360 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20361 (__ASSUME_CLONE_BACKWARDS): Define.
20362 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20363 __clone2 if __NR_clone2 is defined.
20364 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20365 (__ASSUME_CLONE_BACKWARDS): Likewise.
20366 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20367 (__ASSUME_CLONE_BACKWARDS): Likewise.
20368 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20369 (__ASSUME_CLONE2): Likewise.
20370 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20371 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20372 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20373 variants and the define architecture can use.
20374 (__ASSUME_CLONE_DEFAULT): Define as default.
20375 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20376 (__ASSUME_CLONE_BACKWARDS): Likewise.
20377 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20378 (__ASSUME_CLONE_BACKWARDS): Likewise.
20379 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20380 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20381
20382 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20383
20384 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20385
20386 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20387 time.
20388
20389 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20390 (do_test_limit): Likewise.
20391
20392 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20393 for every implementation.
20394 (do_test): Likewise.
20395
20396 * benchtests/bench-strncmp.c: Convert output to json.
20397
20398 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20399
20400 * io/futimens.c: Add missing start-of-file descriptive comment.
20401 * io/utime.c: Likewise.
20402 * misc/futimesat.c: Likewise.
20403 * misc/utimes.c: Likewise.
20404 * sysdeps/mach/hurd/futimesat.c: Likewise.
20405 * sysdeps/mach/hurd/utimes.c: Likewise.
20406 * sysdeps/posix/utime.c: Likewise.
20407 * sysdeps/posix/utimes.c: Likewise.
20408 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20409 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20410 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20411 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20412
20413 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20414
20415 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20416 hurd_futimes.
20417 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20418 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20419 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20420 (__futimens): Move implementation to...
20421 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20422 utime_tvalue_from_tspec): ... new helper functions.
20423 (hurd_futimens): New function.
20424 * sysdeps/mach/hurd/futimesat.c: New file.
20425 * sysdeps/mach/hurd/utimensat.c: New file.
20426
20427 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20428
20429 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20430 UTIME_OMIT): New macros.
20431 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20432 before reverting to converting time spec to time value and calling
20433 __file_utimes.
20434 * sysdeps/mach/hurd/utime-helper.c: New file.
20435 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20436 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20437 reverting to utime_tvalue_from_tval and __file_utimes.
20438 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20439 (__lutimes): Just call hurd_futimens after lookup.
20440 * sysdeps/mach/hurd/utimes.c: Likewise.
20441
20442 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20443
20444 * bits/sigaction.h: Add include guard.
20445 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20446 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20447 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20448 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20449 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20450 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20451 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20452 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20453 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20454
20455 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20456
20457 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20458 -Wmaybe-uninitialized for -Os.
20459 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20460 this disabling.
20461
20462 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20463
20464 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20465 __INO_T_MATCHES_INO64_T is defined.
20466 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20467 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20468 of definition.
20469 * dirent/alphasort64.c: Likewise.
20470 * dirent/scandir.c: Likewise.
20471 * dirent/scandir64-tail.c: Likewise.
20472 * dirent/scandir64.c: Likewise.
20473 * dirent/scandirat.c: Likewise.
20474 * dirent/scandirat64.c: Likewise.
20475 * dirent/versionsort.c: Likewise.
20476 * dirent/versionsort64.c: Likewise.
20477 * include/dirent.h: Likewise.
20478
20479 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20480 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20481 for socketpair endpoint.
20482 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20483 WRITE_BUFFER_SIZE as buffer size for sending socket.
20484 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20485 issue on system where send is implemented with sendto syscall.
20486 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20487 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20488 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20489 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20490
20491 [BZ #21269]
20492 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20493 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20494 sa_restorer for vDSO case.
20495 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20496
20497 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20498
20499 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20500 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20501 * hurd/hurd/ioctl.h: Include <mach/port.h>
20502 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20503 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20504 <mach/mach_types.h> and <mach/message.h>.
20505 (headers): Move mach/param.h to bits/mach/param.h.
20506 * sysdeps/mach/i386/mach/param.h: Move file to ...
20507 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20508 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20509 of <mach/param.h>.
20510 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20511 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20512 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20513 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20514 trivial, for C++ conformity.
20515 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20516 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20517 Process mig output through $(migheadersed).
20518 * hurd/Makefile (migheadersed): Define variable.
20519 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20520 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20521 headers.
20522 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20523 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20524 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20525 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20526 <bits/types/sigset_t.h>.
20527 [!defined __USE_GNU]: Do not #error out.
20528 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20529 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20530 Include <stddef.h> and <bits/types/sigset_t.h>
20531 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20532 instead of sighandler_t.
20533 * stdlib/errno.h (error_t): Move definition to...
20534 * bits/types/error_t.h: ... new header.
20535 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20536 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20537 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20538 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20539 * hurd/hurd.h: Include <bits/types/error_t.h>
20540 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20541 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20542 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20543 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20544 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20545 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20546 * sysdeps/mach/hurd/futimens.c: New file.
20547
20548 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20549
20550 [BZ #22918]
20551 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20552 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20553 * nscd/gai.c (__nss_hosts_database): Readd definition.
20554 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20555 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20556 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20557
20558 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20559
20560 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20561 (ifunc_one): Likewise.
20562
20563 2018-03-01 DJ Delorie <dj@delorie.com>
20564
20565 [BZ #22342]
20566 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20567 key value.
20568
20569 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20570
20571 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20572 `match_pid' parameter.
20573 (td_ta_thr_iter): Update accordingly.
20574
20575 2018-03-01 Florian Weimer <fweimer@redhat.com>
20576
20577 * nptl/Makefile (install-lib-ldscripts): Remove.
20578 (install): Remove rule.
20579 ($(inst_libdir)/libpthread.so): Likewise.
20580
20581 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20582
20583 [BZ #22896]
20584 * localedata/locales/an_ES: update month and day names,
20585 improve d_fmt, improve postal_fmt, add country_post,
20586 add country_isbn
20587
20588 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20589
20590 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20591 Ukrainian instead of Bulgarian.
20592
20593 2018-03-01 Florian Weimer <fweimer@redhat.com>
20594
20595 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20596 reference.
20597
20598 2018-03-01 Florian Weimer <fweimer@redhat.com>
20599
20600 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20601 * nptl/Makefile (routines): Add pthread_atfork.
20602 (static-only-routines): Set to pthread_atfork.
20603 (libpthread-routines): Remove pthread_atfork.
20604 (libpthread-static-only-routines): Remove.
20605 (install): Update comment.
20606 (libpthread.so): Do not install libpthread_nonshared.a.
20607 (tests): Do not link with libpthread_nonshared.a.
20608 (generated): Remove libpthread_nonshared.a.
20609 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20610 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20611 with libpthread_nonshared.a.
20612
20613 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20614
20615 [BZ #22902]
20616 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20617 (libc_feholdexcept_setroundf128): New macro.
20618 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20619
20620 [BZ #15105]
20621 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20622 libc_hidden_def.
20623 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20624 * include/inttypes.h: New file.
20625
20626 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20627
20628 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20629 -Os in two more places.
20630
20631 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20632
20633 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20634 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20635 be sorted correctly at the moment because of a bug.
20636
20637 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20638
20639 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20640 treat ñ as a primary different character, sync the collation
20641 for Spanish with CLDR.
20642 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20643 * localedata/Makefile: Add new test files.
20644 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20645 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20646 collation order.
20647 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20648 * localedata/am_ET.UTF-8.in: New test file.
20649 * localedata/az_AZ.UTF-8.in: Likewise.
20650 * localedata/be_BY.UTF-8.in: Likewise.
20651 * localedata/ber_DZ.UTF-8.in: Likewise.
20652 * localedata/ber_MA.UTF-8.in: Likewise.
20653 * localedata/bg_BG.UTF-8.in: Likewise.
20654 * localedata/br_FR.UTF-8.in: Likewise.
20655 * localedata/cmn_TW.UTF-8.in: Likewise.
20656 * localedata/crh_UA.UTF-8.in: Likewise.
20657 * localedata/csb_PL.UTF-8.in: Likewise.
20658 * localedata/cv_RU.UTF-8.in: Likewise.
20659 * localedata/cy_GB.UTF-8.in: Likewise.
20660 * localedata/dz_BT.UTF-8.in: Likewise.
20661 * localedata/eo.UTF-8.in: Likewise.
20662 * localedata/es_ES.UTF-8.in: Likewise.
20663 * localedata/fa_IR.UTF-8.in: Likewise.
20664 * localedata/fi_FI.UTF-8.in: Likewise.
20665 * localedata/fil_PH.UTF-8.in: Likewise.
20666 * localedata/fur_IT.UTF-8.in: Likewise.
20667 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20668 * localedata/ha_NG.UTF-8.in: Likewise.
20669 * localedata/ig_NG.UTF-8.in: Likewise.
20670 * localedata/ik_CA.UTF-8.in: Likewise.
20671 * localedata/kk_KZ.UTF-8.in: Likewise.
20672 * localedata/ku_TR.UTF-8.in: Likewise.
20673 * localedata/ky_KG.UTF-8.in: Likewise.
20674 * localedata/ln_CD.UTF-8.in: Likewise.
20675 * localedata/mi_NZ.UTF-8.in: Likewise.
20676 * localedata/ml_IN.UTF-8.in: Likewise.
20677 * localedata/mn_MN.UTF-8.in: Likewise.
20678 * localedata/mr_IN.UTF-8.in: Likewise.
20679 * localedata/mt_MT.UTF-8.in: Likewise.
20680 * localedata/nb_NO.UTF-8.in: Likewise.
20681 * localedata/om_KE.UTF-8.in: Likewise.
20682 * localedata/os_RU.UTF-8.in: Likewise.
20683 * localedata/ps_AF.UTF-8.in: Likewise.
20684 * localedata/ro_RO.UTF-8.in: Likewise.
20685 * localedata/ru_RU.UTF-8.in: Likewise.
20686 * localedata/sc_IT.UTF-8.in: Likewise.
20687 * localedata/se_NO.UTF-8.in: Likewise.
20688 * localedata/sq_AL.UTF-8.in: Likewise.
20689 * localedata/sv_SE.UTF-8.in: Likewise.
20690 * localedata/szl_PL.UTF-8.in: Likewise.
20691 * localedata/tg_TJ.UTF-8.in: Likewise.
20692 * localedata/tk_TM.UTF-8.in: Likewise.
20693 * localedata/tt_RU.UTF-8.in: Likewise.
20694 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20695 * localedata/ug_CN.UTF-8.in: Likewise.
20696 * localedata/uz_UZ.UTF-8.in: Likewise.
20697 * localedata/vi_VN.UTF-8.in: Likewise.
20698 * localedata/yi_US.UTF-8.in: Likewise.
20699 * localedata/yo_NG.UTF-8.in: Likewise.
20700 * localedata/zh_CN.UTF-8.in: Likewise.
20701 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20702 file and fix bugs in the collation.
20703 * localedata/locales/az_AZ: Likewise.
20704 * localedata/locales/be_BY: Likewise.
20705 * localedata/locales/ber_DZ: Likewise.
20706 * localedata/locales/ber_MA: Likewise.
20707 * localedata/locales/bg_BG: Likewise.
20708 * localedata/locales/br_FR: Likewise.
20709 * localedata/locales/br_FR@euro: Likewise.
20710 * localedata/locales/ca_ES: Likewise.
20711 * localedata/locales/cns11643_stroke: Likewise.
20712 * localedata/locales/crh_UA: Likewise.
20713 * localedata/locales/cs_CZ: Likewise.
20714 * localedata/locales/csb_PL: Likewise.
20715 * localedata/locales/cv_RU: Likewise.
20716 * localedata/locales/cy_GB: Likewise.
20717 * localedata/locales/da_DK: Likewise.
20718 * localedata/locales/dz_BT: Likewise.
20719 * localedata/locales/en_CA: Likewise.
20720 * localedata/locales/eo: Likewise.
20721 * localedata/locales/es_CU: Likewise.
20722 * localedata/locales/es_EC: Likewise.
20723 * localedata/locales/es_ES: Likewise.
20724 * localedata/locales/es_US: Likewise.
20725 * localedata/locales/et_EE: Likewise.
20726 * localedata/locales/fa_IR: Likewise.
20727 * localedata/locales/fi_FI: Likewise.
20728 * localedata/locales/fil_PH: Likewise.
20729 * localedata/locales/fur_IT: Likewise.
20730 * localedata/locales/gez_ER@abegede: Likewise.
20731 * localedata/locales/ha_NG: Likewise.
20732 * localedata/locales/hr_HR: Likewise.
20733 * localedata/locales/hsb_DE: Likewise.
20734 * localedata/locales/hu_HU: Likewise.
20735 * localedata/locales/ig_NG: Likewise.
20736 * localedata/locales/ik_CA: Likewise.
20737 * localedata/locales/is_IS: Likewise.
20738 * localedata/locales/iso14651_t1_pinyin: Likewise.
20739 * localedata/locales/kk_KZ: Likewise.
20740 * localedata/locales/ku_TR: Likewise.
20741 * localedata/locales/ky_KG: Likewise.
20742 * localedata/locales/ln_CD: Likewise.
20743 * localedata/locales/lt_LT: Likewise.
20744 * localedata/locales/lv_LV: Likewise.
20745 * localedata/locales/mi_NZ: Likewise.
20746 * localedata/locales/ml_IN: Likewise.
20747 * localedata/locales/mn_MN: Likewise.
20748 * localedata/locales/mr_IN: Likewise.
20749 * localedata/locales/mt_MT: Likewise.
20750 * localedata/locales/nb_NO: Likewise.
20751 * localedata/locales/om_KE: Likewise.
20752 * localedata/locales/os_RU: Likewise.
20753 * localedata/locales/pl_PL: Likewise.
20754 * localedata/locales/ps_AF: Likewise.
20755 * localedata/locales/ro_RO: Likewise.
20756 * localedata/locales/ru_RU: Likewise.
20757 * localedata/locales/ru_UA: Likewise.
20758 * localedata/locales/sc_IT: Likewise.
20759 * localedata/locales/se_NO: Likewise.
20760 * localedata/locales/si_LK: Likewise.
20761 * localedata/locales/sq_AL: Likewise.
20762 * localedata/locales/sv_FI: Likewise.
20763 * localedata/locales/sv_FI@euro: Likewise.
20764 * localedata/locales/sv_SE: Likewise.
20765 * localedata/locales/szl_PL: Likewise.
20766 * localedata/locales/tg_TJ: Likewise.
20767 * localedata/locales/ti_ER: Likewise.
20768 * localedata/locales/tk_TM: Likewise.
20769 * localedata/locales/tl_PH: Likewise.
20770 * localedata/locales/tr_TR: Likewise.
20771 * localedata/locales/tt_RU: Likewise.
20772 * localedata/locales/tt_RU@iqtelif: Likewise.
20773 * localedata/locales/ug_CN: Likewise.
20774 * localedata/locales/uk_UA: Likewise.
20775 * localedata/locales/uz_UZ: Likewise.
20776 * localedata/locales/uz_UZ@cyrillic: Likewise.
20777 * localedata/locales/vi_VN: Likewise.
20778 * localedata/locales/yi_US: Likewise.
20779 * localedata/locales/yo_NG: Likewise.
20780
20781 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20782
20783 * gen-locales.mk: Make test files which contain @ modifiers in their
20784 name work.
20785 * localedata/gen-locale.sh: Likewise.
20786
20787 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20788
20789 * posix/tst-fnmatch.input: Fix results for range expressions
20790 for non C locales.
20791 * posix/tst-regexloc.c: Do not use a range expression for
20792 de_DE.ISO-8859-1 locale.
20793
20794 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20795
20796 * posix/bug-regex5.c: Fix test case because with the new
20797 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20798 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20799 file.
20800
20801 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20802
20803 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20804 downloaded from ISO, the collation order of @-. and space has changed.
20805 Therefore, this test file needed to be adapted.
20806 * localedata/fr_CA.UTF-8.in: Likewise.
20807 * localedata/fr_FR.UTF-8.in: Likewise.
20808 * localedata/uk_UA.UTF-8.in: Likewise.
20809
20810 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20811
20812 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20813 order of ȥ in the new iso14651_t1_common file.
20814 * localedata/pl_PL.UTF-8.in: Likewise.
20815
20816 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20817
20818 * localedata/locales/iso14651_t1_common: Add sections for various
20819 scripts to the iso14651_t1_common file.
20820
20821 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20822
20823 * localedata/locales/iso14651_t1_common: Use the code point of a
20824 character in the fourth collation level instead of IGNORE for all
20825 entries which have IGNORE on all 4 levels.
20826
20827 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20828
20829 * localedata/locales/iso14651_t1_common: Add some convenient collation
20830 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20831 rules similar to those in CLDR.
20832
20833 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20834
20835 * localedata/locales/iso14651_t1_common: The new version of this
20836 file downloaded from ISO contained several syntax errors which
20837 are fixed by this patch.
20838
20839 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20840
20841 * localedata/locales/iso14651_t1_common: replace all <U.....>
20842 with <U000.....> because glibc understands only 4 digit or 8 digit
20843
20844 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20845
20846 * localedata/locales/iso14651_t1_common: Necessary changes
20847 to make the file downloaded from ISO usable by glibc.
20848
20849 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20850
20851 [BZ #14095]
20852 * localedata/locales/iso14651_t1_common: Update file to
20853 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20854
20855 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20856
20857 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20858 of <nptl/pthreadP.h>
20859 (thread_attr_compare): Move function to...
20860 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20861 * sysdeps/nptl/timer_routines.h: ... new header.
20862 * sysdeps/mach/hurd/gai_misc.h: New file.
20863
20864 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20865
20866 * string/strcoll_l.c: Include <libc-diag.h>.
20867 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20868 declarations of seq1 and seq2.
20869
20870 [BZ #15105]
20871 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20872 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20873
20874 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20875
20876 [BZ #22433]
20877 [BZ #22807]
20878 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20879 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20880 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20881 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20882 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20883 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20884
20885 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20886
20887 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20888 macros used in __ptrace_request.
20889
20890 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20891
20892 [BZ #22792]
20893 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20894 to $(CC).
20895 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20896 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20897 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20898 <tcb-offsets.h>.
20899
20900 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20901
20902 [BZ #15105]
20903 * ctype/ctype.c (tolower): Use libc_hidden_def.
20904 (toupper): Likewise.
20905 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20906 [!_ISOMAC] (toupper): Likewise.
20907
20908 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20909
20910 * localedata/Makefile: Remove --quiet argument when
20911 installing locales
20912
20913 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20914
20915 [BZ #17438]
20916 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20917 in d_fmt.
20918 * localedata/locales/pt_PT (LC_TIME): likewise
20919
20920 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20921
20922 [BZ #22646]
20923 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20924 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20925 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20926
20927 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20928
20929 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20930
20931 * nptl/Makefile (routines): Remove unregister-atfork.
20932 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20933 (fork_handler_alloc): Remove function.
20934 (fork_handlers, fork_handler_init): New variables.
20935 (__fork_lock): Rename to atfork_lock.
20936 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20937 to use a dynamic array to add/remove atfork handlers.
20938 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20939 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20940 Remove declaration.
20941 (fork_handler): Remove next, refcntr, and need_signal member.
20942 (__run_fork_handler_type): New enum.
20943 (__run_fork_handlers): New prototype.
20944 * nptl/register-atfork.c: Remove file.
20945 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20946
20947 * sysdeps/nptl/nptl-signals.h: Move to ...
20948 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20949 comments.
20950 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20951 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20952 unnecessary check for SIGTIMER.
20953 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20954 remove unnecessary removal of SIGTIMER.
20955 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20956 include-signals.h rename.
20957 * nptl/pthreadP.h: Likewise.
20958 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20959 __is_internal_signal instead of __nptl_is_internal_signal.
20960
20961 2018-02-22 Andrew Waterman <andrew@sifive.com>
20962
20963 [BZ # 22884]
20964 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20965 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20966 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20967 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20968
20969 2018-02-22 DJ Delorie <dj@delorie.com>
20970
20971 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20972
20973 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20974
20975 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20976 do_misaligned, not misaligned8.
20977
20978 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20979
20980 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20981 Add memcpy_thunderx2.
20982 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20983 Increment to 4.
20984 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20985 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20986 and IS_THUNDERX2PA checks.
20987 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20988 Use macro to set name appropriately.
20989 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20990 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20991 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20992 New macro.
20993 (IS_THUNDERX2): New macro.
20994
20995 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20996
20997 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20998
20999 2018-02-21 Zack Weinberg <zackw@panix.com>
21000
21001 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21002 Define here, unconditionally.
21003 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21004 * libio/libioP.h: Remove #if 0 blocks.
21005 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21006 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21007 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21008
21009 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21010 Assume weak_alias is always defined.
21011
21012 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21013 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21014 Remove #if 0 and #ifdef TODO blocks.
21015 Assume text_set_element is always defined.
21016
21017 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21018 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21019 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21020
21021 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21022 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21023 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21024 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21025 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21026 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21027 Reformat bit flags for _flags field to make occupancy clearer.
21028 Update commentary.
21029 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21030 Keep definitions consistent with those in libio/libio.h.
21031
21032 * libio/libio.h (_IO_file_flags): Remove macro.
21033 All uses changed to _flags.
21034
21035 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21036 (__HAVE_COLUMN, _IO_BE): Don't define.
21037 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21038 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21039 * libio/libioP.h (EOF): Don't define.
21040 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21041 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21042 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21043 testing _IO_UNIFIED_JUMPTABLES.
21044
21045 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21046 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21047 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21048 (_IO_size_t): Delete; all uses changed to size_t.
21049 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21050 (_IO_off_t): Delete; all uses changed to off_t.
21051 (_IO_off64_t): Delete; all uses changed to off64_t.
21052 (_IO_pid_t): Delete; all uses changed to pid_t.
21053 (_IO_uid_t): Delete; all uses changed to uid_t.
21054 (_IO_wint_t): Delete; all uses changed to wint_t.
21055 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21056 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21057 (_IO_cookie_io_functions_t): Delete; all uses changed to
21058 cookie_io_functions_t.
21059 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21060 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21061 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21062 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21063
21064 * libio/iofopncook.c: Remove unnecessary forward declarations.
21065 * libio/iolibio.h: Correct outdated commentary.
21066 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21067 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21068 Remove unnecessary casts.
21069 * stdio-common/getline.c: Use _IO_getdelim directly.
21070 Don't redefine ssize_t.
21071 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21072 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21073 Remove outdated comments.
21074 * stdio-common/vfscanf.c: Don't redefine va_list.
21075
21076 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21077 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21078 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21079 which are always true, and __cplusplus, which is always false.
21080
21081 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21082
21083 [BZ #15105]
21084 [BZ #19463]
21085 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21086 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21087 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21088 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21089 libc_hidden_proto.
21090 [!_ISOMAC] (putc_unlocked): Likewise.
21091 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21092 define inline if [__USE_EXTERN_INLINES].
21093 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21094 putc_unlocked.
21095
21096 [BZ #15105]
21097 [BZ #19463]
21098 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21099 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21100 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21101 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21102 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21103 getc_unlocked.
21104 * time/tzfile.c (__tzfile_read): Likewise.
21105
21106 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21107
21108 [BZ #22517]
21109 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21110
21111 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21112
21113 * io/fcntl.h: Fix a typo in a comment.
21114
21115 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21116
21117 [BZ #22862]
21118 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21119 define _DEFAULT_SOURCE.
21120 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21121
21122 2018-02-21 Florian Weimer <fweimer@redhat.com>
21123
21124 [BZ #20890]
21125 * elf/cache.c (save_cache): Call fsync on temporary file before
21126 renaming it.
21127 (save_aux_cache): Call fdatasync on temporary file before renaming
21128 it.
21129
21130 2018-02-21 Florian Weimer <fweimer@redhat.com>
21131
21132 [BZ #22787]
21133 * include/caller.h: Remove file.
21134 * elf/dl-caller.c: Likewise.
21135 * elf/Makefile (dl-routines): Remove dl-caller.
21136 (shared-only-routines): Do not add dl-caller.
21137 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21138 __check_caller.
21139 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21140 member.
21141 (dl_open_worker): Do not call __check_caller.
21142 (_dl_open): Do not set caller_dl_open member.
21143 * elf/rtld.c (_rtld_global_ro): Do not initialize
21144 _dl_check_caller member.
21145 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21146 _dl_check_caller member.
21147 (_dl_check_caller): Remove declaration.
21148 * sysdeps/unix/sysv/linux/dl-execstack.c
21149 (_dl_make_stack_executable): Do not call __check_caller.
21150
21151 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21152
21153 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21154 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21155
21156 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21157
21158 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21159 description.
21160
21161 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21162
21163 [BZ #16335]
21164 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21165 of 199606L, 200112L, and 200809L.
21166 (_XOPEN_SOURCE): Document special values of 600 and 700.
21167 (_ISOC11_SOURCE): Document macro.
21168 (_ATFILE_SOURCE): Likewise.
21169 (_FORTIFY_SOURCE): Likewise.
21170
21171 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21172
21173 [BZ #15105]
21174 [BZ #19463]
21175 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21176 and define as weak alias of __ferror_unlocked. Use
21177 libc_hidden_weak.
21178 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21179 libc_hidden_proto.
21180 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21181 function if [__USE_EXTERN_INLINES].
21182 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21183 ferror_unlocked.
21184
21185 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21186
21187 [BZ #6889]
21188 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21189
21190 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21191
21192 [BZ #22818]
21193 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21194 the GLIBC_2.1 version.
21195
21196 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21197
21198 [BZ #21508]
21199 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21200 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21201 intl/tst-gettext-de.po from po/de.po by removing the
21202 POT-Creation-Date line.
21203 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21204 ../po/de.po.
21205 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21206 ../po/de.po.
21207
21208 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21209
21210 * mach/Makefile (headers): Add mach/param.h.
21211 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21212 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21213 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21214 (__ptsname_r): Move implementation to...
21215 (__ptsname_internal): ... new function. Add filling the STP
21216 structure.
21217
21218 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21219
21220 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21221 idouble to 1 ULP.
21222
21223 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21224
21225 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21226 syntax.
21227
21228 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21229
21230 * nptl/Makefile (tst-mutex8-ENV): Delete.
21231 * nptl/tst-mutex8.c (check_type):
21232 Add runtime check if mutex will be elided.
21233
21234 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21235
21236 [BZ #20980]
21237 [BZ #21234]
21238 * manual/install.texi (Configuring and compiling): Describe
21239 passing CC and CFLAGS on configure command line, not as
21240 environment variables. Use @code markup on those variables.
21241 Specify what options go in CC and what go in CFLAGS. Note the
21242 requirement to compile with optimization.
21243 * INSTALL: Regenerated.
21244
21245 [BZ #18124]
21246 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21247 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21248 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21249 __sigprocmask instead of sigprocmask.
21250 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21251 Likewise.
21252 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21253 __sigsetjmp and sigprocmask.
21254
21255 [BZ #15105]
21256 * include/argz.h (argz_next): Use libc_hidden_proto.
21257 (__argz_next): Likewise.
21258 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21259 (argz_next): Use libc_hidden_weak.
21260
21261 [BZ #15105]
21262 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21263 libc_hidden_proto.
21264 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21265 libc_hidden_def.
21266
21267 [BZ #15105]
21268 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21269 libc_hidden_proto.
21270 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21271
21272 [BZ #15105]
21273 [BZ #19463]
21274 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21275 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21276 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21277 (__feof_unlocked): New declaration, and inline function if
21278 [__USE_EXTERN_INLINES].
21279 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21280 instead of feof_unlocked.
21281 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21282 * nss/nsswitch.c (nss_parse_file): Likewise.
21283 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21284 Likewise.
21285 * time/getdate.c (__getdate_r): Likewise.
21286 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21287 Define as macro to call __feof_unlocked.
21288
21289 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21290
21291 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21292
21293 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21294
21295 * math/Makefile: Remove mpexp.c and mplog.c
21296 * sysdeps/i386/fpu/mpexp.c: Delete file.
21297 * sysdeps/i386/fpu/mplog.c: Likewise.
21298 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21299 * sysdeps/ia64/fpu/mplog.c: Likewise.
21300 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21301 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21302 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21303 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21304 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21305 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21306 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21307 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21308 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21309 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21310 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21311 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21312 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21313 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21314 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21315 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21316
21317 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21318
21319 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21320
21321 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21322
21323 * sysdeps/sh/libm-test-ulps: Update.
21324
21325 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21326
21327 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21328 idouble to 1 ULP.
21329
21330 2018-02-12 Zack Weinberg <zackw@panix.com>
21331
21332 [BZ #19239]
21333 * posix/sys/types.h: Don't include sys/sysmacros.h.
21334 * misc/sys/sysmacros.h: Remove the conditional deprecation
21335 warnings for the macros defined by this header.
21336
21337 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21338
21339 * manual/probes.texi: Remove slowexp probes.
21340 * math/Makefile: Remove slowexp.
21341 * sysdeps/generic/math_private.h (__slowexp): Remove.
21342 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21343 document error bounds.
21344 * sysdeps/i386/fpu/slowexp.c: Remove.
21345 * sysdeps/ia64/fpu/slowexp.c: Remove.
21346 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21347 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21348 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21349 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21350 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21351 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21352 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21353 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21354 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21355 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21356 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21357
21358 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21359
21360 [BZ #13932]
21361 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21362 * benchtests/pow-inputs: Update comment for slow path cases.
21363 * manual/probes.texi (slowpow_p10): Delete removed probe.
21364 (slowpow_p10): Likewise.
21365 * math/Makefile: Remove halfulp.c and slowpow.c.
21366 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21367 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21368 (__halfulp): Remove.
21369 (__slowpow): Remove.
21370 * sysdeps/i386/fpu/halfulp.c: Delete file.
21371 * sysdeps/i386/fpu/slowpow.c: Likewise.
21372 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21373 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21374 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21375 improve comments and add error analysis.
21376 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21377 (power1): Remove function:
21378 (log1): Remove error argument, add error analysis.
21379 (my_log2): Remove function.
21380 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21381 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21382 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21383 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21384 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21385 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21386 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21387 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21388 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21389 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21390 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21391 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21392 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21393 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21394
21395 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21396
21397 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21398 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21399
21400 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21401
21402 [BZ #22433]
21403 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21404 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21405 and PTRACE_SETHBPREGS.
21406
21407 2018-02-10 Zack Weinberg <zackw@panix.com>
21408
21409 [BZ #22830]
21410 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21411 correctly.
21412 * malloc/tst-malloc-stats-cancellation.c: New test case.
21413 * malloc/Makefile: Add new test case.
21414
21415 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21416
21417 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21418
21419 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21420
21421 * math/Makefile (libm-narrow-fns): Add add.
21422 (libm-test-funcs-narrow): Likewise.
21423 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21424 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21425 * math/gen-auto-libm-tests.c (test_functions): Add add.
21426 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21427 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21428 (NARROW_ADD_TRIVIAL): Likewise.
21429 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21430 macro.
21431 (__daddl): Likewise.
21432 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21433 dadd.
21434 (CFLAGS-nldbl-dadd.c): New variable.
21435 (CFLAGS-nldbl-fadd.c): Likewise.
21436 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21437 __nldbl_daddl.
21438 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21439 prototype.
21440 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21441 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21442 * math/auto-libm-test-in: Add tests of add.
21443 * math/auto-libm-test-out-narrow-add: New generated file.
21444 * math/libm-test-narrow-add.inc: New file.
21445 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21446 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21447 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21448 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21449 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21450 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21451 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21452 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21453 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21454 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21455 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21456 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21457 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21458 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21459 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21460 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21461 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21462 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21463 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21464 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21465 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21466 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21467 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21468 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21469 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21470 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21471 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21472 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21473 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21474 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21475 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21476 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21481 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21482 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21483 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21484 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21485 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21486 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21487 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21488 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21489 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21490 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21491
21492 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21493 (f128-pairs): New variable.
21494 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21495 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21496 to CFLAGS.
21497 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21498 Also make tests add $(f128-loader-link) to gnulib-tests.
21499
21500 2018-02-09 DJ Delorie <dj@redhat.com>
21501
21502 [BZ #22827]
21503 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21504 64-bit ELF type for 64-bit ELF objects.
21505
21506 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21507
21508 * math/libm-test-driver.c (snan_tests_arg): New variable.
21509 * math/libm-test-support.h (snan_tests_arg): New declaration.
21510 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21511
21512 * math/Makefile (test-type-pairs): New variable.
21513 (test-type-pairs-f64xf128-yes): Likewise.
21514 (tests): Add test-narrow-macros.
21515 (libm-test-funcs-narrow): New variable.
21516 (libm-test-c-narrow): Likewise.
21517 (generated): Add $(libm-test-c-narrow).
21518 (libm-tests-base-narrow): New variable.
21519 (libm-tests-narrow): Likewise.
21520 (libm-tests): Add $(libm-tests-narrow).
21521 (libm-tests-for-type): Handle $(libm-tests-narrow).
21522 (libm-test-c-narrow-obj): New variable.
21523 ($(libm-test-c-narrow-obj)): New rule.
21524 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21525 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21526 $(o-iterator) to set dependencies and CFLAGS.
21527 * math/gen-auto-libm-tests.c: Document use for narrowing
21528 functions.
21529 (output_for_one_input_case): Take argument NARROW.
21530 (generate_output): Likewise. Update call to
21531 output_for_one_input_case.
21532 (main): Take --narrow option. Update call to generate_output.
21533 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21534 (apply_lit): Update call to _apply_lit.
21535 (apply_arglit): New function.
21536 (parse_args): Handle "a" arguments.
21537 (parse_auto_input): Handle format names using ":".
21538 * math/README.libm-test: Document "a" parameter type.
21539 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21540 (ARG_TYPE_TRUE_MIN): Likewise.
21541 (ARG_TYPE_MAX): Likwise.
21542 (ARG_MIN_EXP): Likewise.
21543 (ARG_MAX_EXP): Likewise.
21544 (ARG_MANT_DIG): Likewise.
21545 (TEST_COND_arg_ibm128): Likewise.
21546 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21547 (TEST_COND_arg_fmt): New macro.
21548 (init_max_error): Update prototype.
21549 * math/libm-test-support.c (test_ibm128): New variable.
21550 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21551 instead of using [TEST_COND_ibm128] conditional.
21552 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21553 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21554 [TEST_NARROW] (TEST_MSG): New definition.
21555 (arg_plus_zero): New macro.
21556 (arg_minus_zero): Likewise.
21557 (arg_plus_infty): Likewise.
21558 (arg_minus_infty): Likewise.
21559 (arg_qnan_value_pl): Likewise.
21560 (arg_qnan_value): Likewise.
21561 (arg_snan_value_pl): Likewise.
21562 (arg_snan_value): Likewise.
21563 (arg_max_value): Likewise.
21564 (arg_min_value): Likewise.
21565 (arg_min_subnorm_value): Likewise.
21566 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21567 (RUN_TEST_LOOP_aa_f): New macro.
21568 (TEST_SUFF): New macro.
21569 (TEST_SUFF_STR): Likewise.
21570 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21571 (TEST_COND_any_ibm128): New macro.
21572 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21573 this_func. Update call to init_max_error.
21574 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21575 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21576 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21577 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21578 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21579 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21580 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21581 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21582 * math/test-math-vector.h (TEST_NARROW): Likewise.
21583 * math/test-arg-double.h: New file.
21584 * math/test-arg-float128.h: Likewise.
21585 * math/test-arg-float32x.h: Likewise.
21586 * math/test-arg-float64.h: Likewise.
21587 * math/test-arg-float64x.h: Likewise.
21588 * math/test-arg-ldouble.h: Likewise.
21589 * math/test-math-narrow.h: Likewise.
21590 * math/test-narrow-macros.c: Likewise.
21591 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21592 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21593 test-narrow-macros-ldbl-64.
21594 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21595
21596 * math/bits/mathcalls-narrow.h: New file.
21597 * include/bits/mathcalls-narrow.h: Likewise.
21598 * math/math-narrow.h: Likewise.
21599 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21600 (__MATHCALL_NARROW_ARGS_2): Likewise.
21601 (__MATHCALL_NARROW_ARGS_3): Likewise.
21602 (__MATHCALL_NARROW_NORMAL): Likewise.
21603 (__MATHCALL_NARROW_REDIR): Likewise.
21604 (__MATHCALL_NARROW): Likewise.
21605 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21606 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21607 defined.
21608 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21609 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21610 (libm-narrow-fns): New variable.
21611 (libm-narrow-types-basic): Likewise.
21612 (libm-narrow-types-ldouble-yes): Likewise.
21613 (libm-narrow-types-float128-yes): Likewise.
21614 (libm-narrow-types-float128-alias-yes): Likewise.
21615 (libm-narrow-types): Likewise.
21616 (libm-routines): Add narrowing functions.
21617 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21618 (libc_feholdexcept_setroundf128): New macro.
21619 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21620 * sysdeps/ieee754/float128/float128_private.h: Include
21621 <math/math-narrow.h>.
21622 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21623 Undefine and redefine.
21624 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21625 (libm_alias_float_ldouble): Undefine and redefine.
21626 (libm_alias_double_ldouble): Likewise.
21627
21628 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21629
21630 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21631
21632 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21633 FPCR/FPSR.
21634
21635 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21636
21637 * manual/creature.texi: Convert references to gcc.info to gcc.
21638 * manual/stdio.texi: Likewise.
21639 * manual/string.texi: Likewise.
21640
21641 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21642
21643 [BZ #17979]
21644 * posix/bits/types.h (__int_least8_t): New typedef.
21645 (__uint_least8_t): Likewise.
21646 (__int_least16_t): Likewise.
21647 (__uint_least16_t): Likewise.
21648 (__int_least32_t): Likewise.
21649 (__uint_least32_t): Likewise.
21650 (__int_least64_t): Likewise.
21651 (__uint_least64_t): Likewise.
21652 * sysdeps/generic/stdint.h (int_least8_t): Define using
21653 __int_least8_t.
21654 (int_least16_t): Define using __int_least16_t.
21655 (int_least32_t): Define using __int_least32_t.
21656 (int_least64_t): Define using __int_least64_t.
21657 (uint_least8_t): Define using __uint_least8_t.
21658 (uint_least16_t): Define using __uint_least16_t.
21659 (uint_least32_t): Define using __uint_least32_t.
21660 (uint_least64_t): Define using __uint_least64_t.
21661 * wcsmbs/uchar.h: Include <bits/types.h>.
21662 (char16_t): Define using __uint_least16_t conditional only on
21663 [!__USE_ISOCXX11].
21664 (char32_t): Define using __uint_least32_t conditional only on
21665 [!__USE_ISOCXX11].
21666 * wcsmbs/test-char-types.c: New file.
21667 * wcsmbs/Makefile (tests): Add test-char-types.
21668
21669 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21670 version to 4.0.1.
21671
21672 2018-02-07 Zack Weinberg <zackw@panix.com>
21673
21674 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21675 Delete all contents except for definitions of _G_HAVE_MMAP and
21676 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21677 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21678 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21679 change as above.
21680
21681 * libio/libio.h: Don't include bits/_G_config.h here.
21682 Include stddef.h with __need_wchar_t defined. Include
21683 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21684 Define _IO_iconv_t here, directly.
21685 Don't define _IO_HAVE_ST_BLKSIZE.
21686 * libio/libioP.h: Include _G_config.h here. Move include of
21687 shlib-compat.h up with rest of includes. Simplify conditionals
21688 controlling definition of _IO_JUMPS_OFFSET.
21689
21690 * csu/init.c: Remove always-true #if around entire file.
21691 Don't include stdio.h. Set _IO_stdin_used to hardwired
21692 constant 0x20001, and update commentary.
21693 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21694 Replace all uses of _G_va_list with __gnuc_va_list.
21695 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21696 instead of #if _IO_HAVE_ST_BLKSIZE.
21697 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21698 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21699 not #ifdef.
21700
21701 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21702 multiple-include guard to match.
21703 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21704 into this file.
21705 Remove preprocessor conditionals that are always true and/or
21706 redundant to other preprocessor conditionals in the same nest.
21707 Include shlib-compat.h unconditionally.
21708 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21709 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21710 defined after including stdio.h.
21711 Use __BEGIN_DECLS/__END_DECLS.
21712
21713 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21714 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21715 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21716
21717 2018-02-07 Zack Weinberg <zackw@panix.com>
21718
21719 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21720 New single-type headers split from _G_config.h.
21721 * libio/bits/types/cookie_io_functions_t.h
21722 * libio/bits/types/struct_FILE.h
21723 New single-type headers split from libio.h.
21724
21725 * libio/Makefile: Install the above new headers. Don't install
21726 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21727 bits/libio-ldbl.h.
21728 * libio/_G_config.h, libio/libio.h: Delete file.
21729
21730 * libio/bits/libio.h: Remove improper-inclusion guard.
21731 Include stdio.h and don't repeat anything that it does.
21732 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21733 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21734 __io_read_fn as cookie_read_function_t,
21735 __io_write_fn as cookie_write_function_t,
21736 __io_seek_fn as cookie_seek_function_t,
21737 __io_close_fn as cookie_close_function_t,
21738 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21739 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21740 here, in the "compatibility defines" section. Remove an #if 0
21741 block. Use the "body" macros from bits/types/struct_FILE.h to
21742 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21743 and _IO_ferror_unlocked.
21744 Move prototypes of __uflow and __overflow...
21745
21746 * libio/stdio.h: ...here. Don't include bits/libio.h.
21747 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21748 directly from stdarg.h. Include bits/types/__fpos_t.h,
21749 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21750 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21751 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21752 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21753 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21754 __ssize_t, not _IO_ssize_t. Unconditionally define
21755 BUFSIZ as 8192 and EOF as (-1).
21756
21757 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21758 macros from bits/types/struct_FILE.h instead of _IO_* macros
21759 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21760 instead of _IO_ssize_t.
21761 * libio/bits/stdio2.h: Similarly.
21762
21763 * libio/iolibio.h: Add multiple-include guard.
21764 Include bits/libio.h after stdio.h.
21765 * libio/libioP.h: Add multiple-include guard.
21766 Include stdio.h and bits/libio.h before iolibio.h.
21767
21768 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21769 * include/bits/types/cookie_io_functions_t.h
21770 * include/bits/types/struct_FILE.h: New wrappers.
21771
21772 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21773 Get definitions of _G_fpos_t and _G_fpos64_t from
21774 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21775 respectively. Remove improper-inclusion guards.
21776
21777 * conform/data/stdio.h-data: Update expectations of va_list.
21778 * scripts/check-installed-headers.sh: Remove special case for
21779 libio.h and _G_config.h.
21780
21781 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21782
21783 [BZ #15105]
21784 [BZ #19463]
21785 * include/sys/sysmacros.h [!_ISOMAC]
21786 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21787 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21788 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21789 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21790 libc_hidden_proto.
21791 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21792 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21793 Likewise.
21794 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21795 Undefine and redefine to add use __gnu_dev_ prefix.
21796 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21797 Likewise.
21798 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21799 and define as hidden inline function.
21800 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21801 Likewise.
21802 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21803 Likewise.
21804 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21805 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21806 (gnu_dev_minor): Likewise.
21807 (gnu_dev_makedev): Likewise.
21808 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21809 makedev.
21810 * posix/wordexp.c (exec_comm_child): Likewise.
21811 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21812 instead of minor and __gnu_dev_major instead of major.
21813 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21814 __gnu_dev_major instead of major.
21815 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21816 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21817 instead of gnu_dev_minor.
21818 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21819 (SLAVE_P): Likewise.
21820 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21821 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21822 instead of major.
21823
21824 [BZ #21313]
21825 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21826 in another place.
21827 * locale/weightwc.h (findidx): Likewise.
21828
21829 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21830
21831 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21832 (slowlog_inexact): Likewise
21833 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21834 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21835
21836 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21837
21838 [BZ #22797]
21839 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21840 missing second underscore to parameter name.
21841
21842 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21843
21844 [BZ #14508]
21845 [BZ #15512]
21846 [BZ #17082]
21847 [BZ #20530]
21848 * bits/byteswap.h: Update file comment. Do not include
21849 <bits/byteswap-16.h>.
21850 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21851 constant.
21852 (__bswap_16): Define as inline function.
21853 (__bswap_constant_32): Reformat definition.
21854 (__bswap_32): Always define as inline function, not macro, using
21855 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21856 otherwise __bswap_constant_32.
21857 (__bswap_constant_64): Reformat definition. Do not use
21858 __extension__ here.
21859 (__bswap_64): Always define as inline function, not macro. Use
21860 __extension__ on function definition. Use __builtin_bswap64 if
21861 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21862 * string/test-endian-file-scope.c: New file.
21863 * string/test-endian-sign-conversion.c: Likewise.
21864 * string/Makefile (headers): Remove bits/byteswap-16.h.
21865 (tests): Add test-endian-file-scope and
21866 test-endian-sign-conversion.
21867 (CFLAGS-test-endian-sign-conversion.c): New variable.
21868 * bits/byteswap-16.h: Remove file.
21869 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21870 * sysdeps/ia64/bits/byteswap.h: Likewise.
21871 * sysdeps/m68k/bits/byteswap.h: Likewise.
21872 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21873 * sysdeps/s390/bits/byteswap.h: Likewise.
21874 * sysdeps/tile/bits/byteswap.h: Likewise.
21875 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21876 * sysdeps/x86/bits/byteswap.h: Likewise.
21877
21878 [BZ #17721]
21879 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21880 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21881 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21882 199901L] (__restrict): Define to restrict.
21883
21884 [BZ #19667]
21885 * string/testcopy.c: Include <support/support.h>. Do not include
21886 <malloc.h>. Use <support/test-driver.c>.
21887 (main): Rename to do_test. Make static. Use xmalloc instead of
21888 malloc.
21889
21890 [BZ #13575]
21891 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21892 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21893 (SSIZE_MAX): Define to INT_MAX.
21894 * posix/test-ssize-max.c: New file.
21895 * posix/Makefile (tests): Add test-ssize-max.
21896
21897 [BZ #19668]
21898 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21899 <support/support.h>. Do not include <malloc.h>.
21900 (query_auxv): Use xmalloc instead of malloc.
21901
21902 [BZ #14553]
21903 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21904 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21905 instead of loff_t.
21906
21907 2018-02-06 Florian Weimer <fweimer@redhat.com>
21908
21909 [BZ #18023]
21910 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21911 Use scratch_buffer instead of extend_alloca.
21912
21913 2018-02-06 Zack Weinberg <zackw@panix.com>
21914
21915 * libio/stdio.h: Don't define getc or putc as macros.
21916 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21917 not _IO_getc and _IO_putc.
21918
21919 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21920 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21921
21922 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21923
21924 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21925 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21926
21927 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21928
21929 [BZ #14890]
21930 * elf/elf.h (NT_PRFPREG): New macro.
21931 (NT_S390_VXRS_LOW): Likewise.
21932 (NT_S390_VXRS_HIGH): Likewise.
21933 (NT_S390_GS_CB): Likewise.
21934 (NT_S390_GS_BC): Likewise.
21935 (NT_S390_RI_CB): Likewise.
21936
21937 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21938 (MAP_SYNC): New macro.
21939 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21940 Likewise.
21941 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21942 (MAP_SYNC): Likewise.
21943 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21944 (MAP_SYNC): Likewise.
21945 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21946 (MAP_SYNC): Likewise.
21947 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21948 (MAP_SYNC): Likewise.
21949 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21950 (MAP_SYNC): Likewise.
21951 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21952 (MAP_SYNC): Likewise.
21953 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21954 Likewise.
21955 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21956 Likewise.
21957
21958 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21959 (MAP_SHARED_VALIDATE): New macro.
21960 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21961 (MAP_SHARED_VALIDATE): Likewise.
21962
21963 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21964
21965 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21966 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21967 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21968
21969 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21970
21971 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21972 (DT_NUM): Updated to 35.
21973
21974 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21975
21976 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21977 __builtin_expect with __glibc_likely and __glibc_unlikely.
21978 (elf_machine_rela): Likewise.
21979 (elf_machine_lazy_rel): Likewise.
21980
21981 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21982
21983 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21984 __builtin_expect with __glibc_likely and __glibc_unlikely.
21985 (elf_machine_lazy_rel): Likewise.
21986
21987 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21988
21989 [BZ #22638]
21990 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21991 SHARED.
21992 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21993
21994 2018-02-05 Andreas Schwab <schwab@suse.de>
21995
21996 [BZ #22761]
21997 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21998 string.
21999
22000 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
22001
22002 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22003 not check against PTHREAD_STACK_MIN.
22004
22005 2018-02-02 Sean McKean <smckean83@gmail.com>
22006
22007 [BZ #22735]
22008 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22009
22010 2018-02-02 Florian Weimer <fweimer@redhat.com>
22011
22012 [BZ #22753]
22013 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22014 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22015 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22016 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22017 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22018 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22019 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22020 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22021 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22022 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22023 * misc/tst-preadvwritev2.c (do_test): Call it.
22024 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22025
22026 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22027
22028 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22029
22030 * benchtests/bench-memcmp.c: Print json instead of plain text.
22031
22032 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22033 every test run.
22034
22035 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22036
22037 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22038 version to 4.15.
22039 (s390_sthyi): New syscall.
22040
22041 * sysdeps/generic/ldbl-classify-compat.h: New file.
22042 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22043 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22044 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22045 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22046 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22047 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22048 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22049 <ldbl-classify-compat.h>.
22050 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22051 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22052 <ldbl-classify-compat.h>.
22053 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22054 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22055 <ldbl-classify-compat.h>.
22056 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22057 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22058 <ldbl-classify-compat.h>.
22059 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22060 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22061 <ldbl-classify-compat.h>.
22062 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22063 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22064 <ldbl-classify-compat.h>.
22065 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22066 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22067 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22068 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22069 * sysdeps/microblaze/math_private.h: Likewise.
22070 * sysdeps/nios2/math_private.h: Likewise.
22071 * sysdeps/sh/math_private.h: Likewise.
22072
22073 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22074 * sysdeps/m68k/coldfire/math_private.h: ... here.
22075 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22076 * sysdeps/tile/math_private.h: Likewise.
22077 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22078 Remove macro.
22079 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22080 Likewise.
22081
22082 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22083 Remove macro.
22084 (libc_fetestexcept): Likewise.
22085 (libc_feupdateenv_test): Likewise.
22086 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22087 (libc_fetestexcept): Likewise.
22088 (libc_feupdateenv_test): Likewise.
22089 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22090 (libc_fetestexcept): Likewise.
22091 (libc_feupdateenv_test): Likewise.
22092 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22093 (libc_fetestexcept): Likewise.
22094 (libc_feupdateenv_test): Likewise.
22095
22096 * sysdeps/generic/math_private.h
22097 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22098 New inline function.
22099 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22100 Likewise.
22101
22102 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22103 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22104 * sysdeps/generic/math_private.h
22105 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22106 inline function.
22107 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22108 Likewise.
22109 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22110 Likewise.
22111 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22112 Likewise.
22113 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22114 Likewise.
22115 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22116 Likewise.
22117 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22118 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22119 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22120 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22121 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22122 (__fegetenv): Likewise.
22123 (fesetenv): Likewise.
22124 (__fesetenv): Likewise.
22125 (feupdateenv): Likewise.
22126 (__feupdateenv): Likewise.
22127 (fegetround): Likewise.
22128 (__fegetround): Likewise.
22129 (fesetround): Likewise.
22130 (__fesetround): Likewise.
22131
22132 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22133 (feraiseexcept): New macro.
22134 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22135 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22136 Remove macro.
22137 (__feraiseexcept): Likewise.
22138 (feclearexcept): Likewise.
22139 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22140 (__feraiseexcept): Likewise.
22141 (feclearexcept): Likewise.
22142 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22143 (__feraiseexcept): Likewise.
22144 (feclearexcept): Likewise.
22145 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22146 (__feraiseexcept): Likewise.
22147 (feclearexcept): Likewise.
22148 (fetestexcept): Likewise.
22149
22150 * sysdeps/m68k/coldfire/math-tests.h: New file.
22151
22152 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22153 * sysdeps/m68k/bits/fenv.h: ... here.
22154 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22155 not define.
22156 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22157 Likewise.
22158 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22159 Likewise.
22160 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22161 Likewise.
22162 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22163 Likewise.
22164 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22165 Define to 0.
22166 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22167 (__FE_UNDEFINED): New enum constant.
22168 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22169 Do not define.
22170 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22171 Likewise.
22172 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22173 Likewise.
22174 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22175 to match generic bits/fenv.h.
22176 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22177 Do not define.
22178
22179 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22180 packed on bits.
22181 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22182 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22183 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22184 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22185
22186 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22187 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22188 Joseph Myers <joseph@codesourcery.com>
22189
22190 [BZ #21314]
22191 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22192 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22193 computation using c.
22194 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22195 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22196 computation using c.
22197
22198 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22199
22200 * version.h (RELEASE): Set to "development".
22201 (VERSION): Set to "2.27.9000".
22202 * NEWS (2.28): New section.
22203
22204 * version.h (RELEASE): Set to "stable".
22205 (VERSION): Set to "2.27".
22206 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22207
22208 * NEWS: Add the list of bugs fixed in 2.27.
22209
22210 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22211
22212 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22213 against PTHREAD_STACK_MIN.
22214
22215 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22216
22217 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22218 New entries.
22219 (Rafał Lużyński, Andreas Schwab): Update.
22220
22221 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22222
22223 [BZ #10871]
22224 * NEWS: List the languages which actually use the alternative
22225 months feature in this release. Also explain that "alt_mon" and
22226 "ab_alt_mon" are optional.
22227
22228 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22229
22230 [BZ #22765]
22231 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22232
22233 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22234
22235 * manual/install.texi (Tools for Compilation): Update the newest
22236 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22237 * INSTALL: Regenerated.
22238
22239 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22240
22241 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22242 instead of __builtin_expect.
22243
22244 2018-01-30 Florian Weimer <fweimer@redhat.com>
22245
22246 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22247 data.
22248 * nss/tst-nss-getpwent.c (do_test): Likewise.
22249
22250 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22251
22252 [BZ #10871]
22253 * localedata/locales/hr_HR (mon): Rename to...
22254 (alt_mon): This.
22255 (mon): Import from CLDR (genitive case).
22256 (d_t_fmt): Update the comment.
22257
22258 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22259
22260 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22261 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22262 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22263
22264 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22265
22266 * mach/Versions: Fix version when __mach_host_self_ was added.
22267 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22268 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22269 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22270 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22271 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22272 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22273 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22274 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22275 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22276 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22277 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22278 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22279 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22280 || to respect codestyle.
22281 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22282 (do_test_bz20181): Rename accordingly.
22283 * malloc/malloc.c: Include <assert.h>.
22284 (assert): Do not define.
22285 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22286 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22287 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22288 * sysdeps/mach/hurd/hp-timing.h: New file.
22289 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22290
22291 2018-01-29 Darius Rad <darius@bluespec.com>
22292
22293 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22294
22295 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22296
22297 * sysdeps/init_array/crti.S (.section .init_array): Add
22298 PREINIT_FUNCTION when defined.
22299 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22300 * config.h.in: Regenerate.
22301 * manual/platform.texi: Add RISC-V documenation for
22302 __riscv_flush_icache.
22303 * sysdeps/riscv/__longjmp.S: New file.
22304 * sysdeps/riscv/backtrace.c: Likewise.
22305 * sysdeps/riscv/bits/endian.h: Likewise.
22306 * sysdeps/riscv/bits/setjmp.h: Likewise.
22307 * sysdeps/riscv/bits/wordsize.h: Likewise.
22308 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22309 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22310 * sysdeps/riscv/dl-trampoline.S: Likewise.
22311 * sysdeps/riscv/gccframe.h: Likewise.
22312 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22313 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22314 * sysdeps/riscv/machine-gmon.h: Likewise.
22315 * sysdeps/riscv/memusage.h: Likewise.
22316 * sysdeps/riscv/setjmp.S: Likewise.
22317 * sysdeps/riscv/sys/asm.h: Likewise.
22318 * sysdeps/riscv/tls-macros.h: Likewise.
22319 * sysdeps/riscv/dl-tls.h: New file.
22320 * sysdeps/riscv/libc-tls.c: Likewise.
22321 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22322 * sysdeps/riscv/nptl/tls.h: Likewise.
22323 * sysdeps/riscv/stackinfo.h: Likewise.
22324 * sysdeps/riscv/bits/fenv.h: New file.
22325 * sysdeps/riscv/e_sqrtl.c: Likewise.
22326 * sysdeps/riscv/fpu_control.h: Likewise.
22327 * sysdeps/riscv/math-tests.h: Likewise.
22328 * sysdeps/riscv/nofpu/Implies: Likewise.
22329 * sysdeps/riscv/sfp-machine.h: Likewise.
22330 * sysdeps/riscv/tininess.h: Likewise.
22331 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22332 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22333 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22334 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22335 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22336 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22337 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22338 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22339 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22340 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22341 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22342 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22343 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22344 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22345 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22346 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22347 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22348 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22349 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22350 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22351 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22352 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22353 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22354 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22355 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22356 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22357 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22358 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22359 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22360 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22361 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22362 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22363 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22364 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22365 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22366 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22367 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22368 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22369 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22370 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22371 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22372 * sysdeps/riscv/rvf/math_private.h: Likewise.
22373 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22374 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22375 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22376 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22377 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22378 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22379 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22380 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22381 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22382 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22383 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22384 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22385 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22386 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22387 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22388 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22389 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22390 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22391 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22392 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22393 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22394 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22395 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22396 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22397 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22398 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22399 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22400 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22401 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22402 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22403 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22404 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22405 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22406 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22407 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22408 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22409 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22410 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22411 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22412 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22413 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22414 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22415 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22416 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22417 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22418 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22419 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22420 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22421 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22422 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22423 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22424 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22425 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22426 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22427 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22428 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22429 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22430 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22431 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22432 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22433 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22434 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22435 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22436 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22437 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22438 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22439 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22440 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22441 * sysdeps/riscv/Implies: New file.
22442 * sysdeps/riscv/Makefile: Likewise.
22443 * sysdeps/riscv/configure: Likewise.
22444 * sysdeps/riscv/configure.ac: Likewise.
22445 * sysdeps/riscv/nptl/Makefile: Likewise.
22446 * sysdeps/riscv/preconfigure: Likewise.
22447 * sysdeps/riscv/rv64/Implies-after: Likewise.
22448 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22449 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22450 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22451 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22452 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22453 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22454 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22455 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22456 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22457 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22458 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22459 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22460 (Config): Likewise.
22461
22462 2018-01-29 Florian Weimer <fweimer@redhat.com>
22463
22464 [BZ #22701]
22465 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22466 libnsl_hidden_proto.
22467 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22468 libnsl_hidden_proto.
22469 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22470 * nis/Makefile (libnsl-routines): Add nss-default only for
22471 build-obsolete-nsl.
22472 * nis/nis_defaults.c (__nis_default_ttl): Add
22473 libnsl_hidden_nolink_def.
22474 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22475 declaration.
22476 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22477 * nis/ypclnt.c (yp_maplist): Likewise.
22478
22479 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22480
22481 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22482 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22483
22484 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22485
22486 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22487 clean -dxfq for git updates when replacing sources.
22488
22489 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22490 --disable-libcilkrts unconditionally, not just for the final GCC
22491 build for Hurd.
22492
22493 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22494 version to 4.15.
22495
22496 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22497
22498 [BZ #10871]
22499 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22500 case).
22501
22502 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22503
22504 [BZ #10871]
22505 * localedata/locales/be_BY (mon): Rename to...
22506 (alt_mon): This, then synchronize with CLDR (nominative case).
22507 (abmon): Rename to...
22508 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22509 (mon): Import from CLDR (genitive case).
22510 (abmon): Likewise.
22511 * localedata/locales/be_BY@latin (mon): Rename to...
22512 (alt_mon): This.
22513 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22514
22515 * localedata/locales/be_BY@latin (lang_name): Reworded to
22516 "biełaruskaja mova".
22517
22518 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22519
22520 [BZ #10871]
22521 * localedata/locales/el_CY (mon): Renamed to...
22522 (alt_mon): This.
22523 (mon): Import from CLDR (genitive case).
22524 * localedata/locales/el_GR: Likewise.
22525
22526 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22527
22528 [BZ #10871]
22529 * localedata/locales/ru_RU (mon): Rename to...
22530 (alt_mon): This.
22531 (abmon): Rename to...
22532 (ab_alt_mon): This.
22533 (mon): Import from CLDR (genitive case).
22534 (abmon): Copy from the old content except the 5th month which is
22535 now in the genitive case, even when abbreviated.
22536 * localedata/locales/ru_UA: Likewise.
22537 * time/tst-strptime.c (day_tests): Add an actual example of
22538 a difference between %b and %Ob in Russian.
22539
22540 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22541
22542 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22543 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22544 a `c' variable.
22545 * resolv/res-close.c: Include <stdlib.h>.
22546 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22547 <sys/wait.h>, <time.h>, <sys/uio.h>.
22548 (NOT_CANCEL_H): Add inclusion guard.
22549 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22550 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22551 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22552 return 0.
22553 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22554 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22555 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22556 instead of void *.
22557 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22558 timer_ptr2id to cast struct timer_node * to void *.
22559 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22560 --disable-libcilkrts to gcc configure.
22561 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22562 and make them the default for now.
22563 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22564 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22565 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22566 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22567 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22568 MACH_IPC_COMPAT.
22569 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22570 __task_terminate would ever return successfully.
22571 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22572 to global scope.
22573 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22574 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22575 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22576 critical section to make code simpler and avoid warning.
22577 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22578 critical section to make code simpler and avoid warning.
22579 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22580 const char * instead of char *.
22581 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22582 __hurd_file_name_split, hurd_file_name_split,
22583 __hurd_directory_name_split, hurd_directory_name_split,
22584 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22585 hurd_file_name_path_lookup): Make lookup function parameter take a
22586 const char *name instead of char *name.
22587 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22588 __hurd_directory_name_split): Likewise.
22589 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22590 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22591 * sysdeps/mach/hurd/check_native.c: New file.
22592 * sysdeps/mach/hurd/check_pf.c: New file.
22593 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22594 (__freeifaddrs): Define macro to freeifaddrs.
22595 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22596 * sysdeps/mach/libmachuser.abilist: New file.
22597 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22598 (do_test_bz20181): Rename accordingly.
22599 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22600 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22601 <sys/mount.h>.
22602 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22603 version only if __USE_EXTERN_INLINES is defined.
22604 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22605 __hurd_sockfail): Likewise.
22606 (_hurd_fd_get): Always declare functions, and provide inline versions
22607 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22608 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22609 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22610 _hurd_port_set): Always declare functions, and provide inline versions
22611 only if __USE_EXTERN_INLINES and _LIBC are defined and
22612 IS_IN(libc).
22613 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22614 _hurd_critical_section_unlock): Likewise.
22615 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22616 * __hurd_threadvar_location): Likewise.
22617 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22618 _hurd_userlink_clear): Likewise.
22619 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22620 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22621 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22622 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22623 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22624 __spin_lock_locked): Likewise.
22625 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22626 __spin_lock_locked): Likewise.
22627 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22628 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22629 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22630 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22631 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22632 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22633 _POSIX_NO_TRUNC): Define to 0.
22634 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22635 check size against PTHREAD_STACK_MIN.
22636 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22637 IS_IN(libpthread)]: Include <sigsetops.h>.
22638 * mach/Makefile (user-interfaces): Add mach/gnumach.
22639 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22640 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22641 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22642 instead of invalid -1.
22643 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22644 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22645 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22646 <net/ppp_defs.h>.
22647
22648 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22649
22650 * hurd/fcntl-internal.h: New file.
22651
22652 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22653
22654 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22655
22656 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22657
22658 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22659
22660 [BZ #22701]
22661 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22662 Build only shared objects.
22663
22664 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22665
22666 * README: Update for hppa.
22667
22668 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22669
22670 * sysdeps/sparc/fpu/libm-test-ulps: Update
22671 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22672
22673 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22674
22675 Revert:
22676
22677 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22678
22679 [BZ #22563]
22680 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22681 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22682 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22683 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22684 to feature_1.
22685
22686 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22687
22688 [BZ #22563]
22689 * bits/types/__cancel_jmp_buf_tag.h: New file.
22690 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22691 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22692 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22693 * nptl/Makefile (headers): Add
22694 bits/types/__cancel_jmp_buf_tag.h.
22695 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22696 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22697 * sysdeps/nptl/pthread.h: Include
22698 <bits/types/__cancel_jmp_buf_tag.h>.
22699 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22700 __cancel_jmp_buf.
22701 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22702
22703 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22704
22705 [BZ #10871]
22706 * localedata/locales/uk_UA (mon): Renamed to...
22707 (alt_mon): This.
22708 (alt_digits): "0" removed and then renamed to...
22709 (mon): This.
22710 (date_fmt): Definition changed not to use the alternative
22711 digits hack.
22712
22713 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22714
22715 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22716 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22717 * elf/elf.h (EF_RISCV_RVC): New define.
22718 (EF_RISCV_FLOAT_ABI): Likewise.
22719 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22720 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22721 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22722 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22723 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22724 define.
22725 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22726
22727 2018-01-25 Andreas Schwab <schwab@suse.de>
22728
22729 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22730 single quotes.
22731 * sysdeps/gnu/configure: Regenerate.
22732 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22733 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22734 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22735 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22736 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22737 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22738 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22739 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22740
22741 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22742
22743 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22744 URL, and run autoconf, make it the default for now.
22745
22746 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22747
22748 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22749 soft-float ColdFire configuration.
22750
22751 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22752 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22753 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22754
22755 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22756 MicroBlaze file.
22757
22758 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22759 ....
22760 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22761 ... here.
22762 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22763 New file.
22764
22765 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22766 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22767 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22768 file.
22769
22770 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22771
22772 [BZ #22742]
22773 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22774 Rename to __reserved and add comment.
22775 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22776 Rename to __reserved.
22777
22778 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22779
22780 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22781 i686-gnu configurations.
22782 (Context.run_builds): Include mig, gnumach and hurd in components
22783 considered.
22784 (Context.checkout): Add mig, gnumach and hurd to components.
22785 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22786 hurd.
22787 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22788 (Config.build): Install gnumach headers, build mig and install
22789 hurd headers for 'gnu' OS.
22790 (Config.install_gnumach_headers): New function.
22791 (Config.install_hurd_headers): Likewise.
22792 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22793 when building for 'gnu' OS.
22794
22795 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22796
22797 * manual/tunables.texi (Hardware Capability Tunables): Fix
22798 spelling.
22799
22800 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22801
22802 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22803 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22804 (ALTMON_11, ALTMON_12): Improve documentation.
22805 * manual/time.texi (strftime): Likewise.
22806
22807 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22808
22809 [BZ #10871]
22810 * localedata/locales/pl_PL: Alternative month names added,
22811 primary month names are genitive now.
22812 * time/tst-strptime.c (day_tests): Actually use a genitive case
22813 of a month name in Polish language.
22814
22815 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22816
22817 [BZ #10871]
22818 * manual/locale.texi: Document ALTMON_1..12 constants for
22819 nl_langinfo. Specify when to use ALTMON instead of MON.
22820 * manual/time.texi (strftime, strptime): Document GNU extension
22821 permitting O modifier with %B and %b. Specify when to use
22822 %OB instead of %B.
22823
22824 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22825
22826 [BZ #10871]
22827 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22828 names, define them as the same as abbreviated month names explicitly.
22829 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22830 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22831 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22832 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22833 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22834 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22835 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22836 _NL_WABALTMON_12): New enum constants.
22837 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22838 wab_alt_mon, and ab_alt_mon_defined members.
22839 (time_output): Output ab_alt_mon and wab_alt_mon members.
22840 (time_read): Read them, initialize them as copies of abmon and wabmon
22841 respectively if they are missing, initialize ab_alt_mon_defined.
22842 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22843 * locale/programs/locfile-kw.h: Regenerate.
22844 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22845 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22846 and ru_RU.UTF-8.
22847 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22848 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22849 (__strftime_internal): Handle %Ob and %Oh formats.
22850 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22851 (__strptime_internal): Handle %Ob and %Oh formats.
22852 * time/tst-strptime.c (day_tests): Add more tests to parse different
22853 forms of month names including the new %Ob format specifier.
22854
22855 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22856
22857 [BZ #10871]
22858 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22859 define them as the same as primary full month names explicitly.
22860 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22861 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22862 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22863 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22864 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22865 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22866 _NL_WALTMON_12): New enum constants.
22867 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22868 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22869 macros.
22870 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22871 walt_mon, and alt_mon_defined members.
22872 (time_output): Output alt_mon and walt_mon members.
22873 (time_read): Read them, initialize them as copies of mon and wmon
22874 respectively if they are missing, initialize alt_mon_defined.
22875 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22876 * locale/programs/locfile-kw.h: Regenerate.
22877 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22878 * localedata/tst-langinfo.c (map): Add tests for the new constants
22879 ALTMON_1 .. ALTMON_12.
22880 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22881 and pl_PL.UTF-8.
22882 * time/strftime_l.c (f_altmonth): New macro.
22883 (__strftime_internal): Handle %OB format.
22884 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22885 (__strptime_internal): Handle %OB format.
22886 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22887 of month names including the new %OB format specifier.
22888
22889 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22890
22891 [BZ #22685]
22892 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22893 from ABORT_TRANSACTION.
22894 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22895 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22896 ABORT_TRANSACTION_IMPL): Likewise.
22897 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22898 Linux code, but remove the code that aborts transactions.
22899
22900 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22901
22902 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22903
22904 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22905
22906 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22907 in date: "2004-14-09" should be "2004-09-14".
22908 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22909 "2003-15-09" should be "2003-09-15".
22910
22911 2018-01-18 Arjun Shankar <arjun@redhat.com>
22912
22913 [BZ #22343]
22914 [BZ #22774]
22915 CVE-2018-6485
22916 CVE-2018-6551
22917 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22918 after padding.
22919 (_int_memalign): check for integer overflow before calling
22920 _int_malloc.
22921 * malloc/tst-malloc-too-large.c: New test.
22922 * malloc/Makefile: Add tst-malloc-too-large.
22923
22924 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22925
22926 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22927 in date: "2017-24-07" should be "2017-07-24".
22928 * localedata/locales/mai_IN: Likewise.
22929 * localedata/locales/mai_NP: Likewise.
22930
22931 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22932
22933 * po/ru.po: Update translations.
22934
22935 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22936
22937 [BZ #22719]
22938 * sysdeps/hppa/backtrace.c: New file.
22939
22940 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22941
22942 [BZ #22715]
22943 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22944 align La_x86_64_retval to VEC_SIZE.
22945
22946 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22947
22948 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22949 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22950
22951 2018-01-16 Florian Weimer <fweimer@redhat.com>
22952
22953 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22954 Move tst-thread-exit-clobber ...
22955 [$(CXX)] (tests-unsupported): ... to here.
22956
22957 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22958
22959 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22960 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22961 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22962 (_dl_aarch64_cap_flags): Update.
22963 (_DL_HWCAP_COUNT): Update.
22964
22965 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22966
22967 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22968 (_DL_HWCAP_LAST): Remove.
22969 (_DL_HWCAP_COUNT): Move to ...
22970 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22971 (_DL_HWCAP_COUNT): ... here.
22972
22973 2018-01-16 Florian Weimer <fweimer@redhat.com>
22974
22975 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22976 mode with GNU extensions.
22977
22978 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22979
22980 * elf/elf.h (NT_ARM_SVE): Define.
22981
22982 2018-01-15 Florian Weimer <fweimer@redhat.com>
22983
22984 [BZ #22636]
22985 * nptl/tst-minstack-throw.cc: New file.
22986 * nptl/Makefile (tests): Add tst-minstack-throw.
22987 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22988 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22989
22990 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22991
22992 * scripts/build-many-glibcs.py (Context.checkout): Default
22993 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22994 version to 1.1.0.
22995
22996 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22997
22998 [BZ #22707]
22999 * elf/elf.h (DF_1_STUB): Define.
23000 (DF_1_PIE): Define.
23001
23002 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23003
23004 [BZ #22697]
23005 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23006 Do not add 0.5 to integer or out-of-range arguments.
23007
23008 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23009
23010 * po/bg.po: Update translations.
23011 * po/cs.po: Likewise.
23012 * po/de.po: Likewise.
23013 * po/ko.po: Likewise.
23014 * po/pl.po: Likewise.
23015 * po/sv.po: Likewise.
23016 * po/uk.po: Likewise.
23017 * po/vi.po: Likewise.
23018
23019 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23020
23021 * aarch64/start.S (_start): Use __wrap_main.
23022 (__wrap_main): New local symbol.
23023
23024 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23025
23026 [BZ #22679]
23027 CVE-2018-1000001
23028 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23029 generic_getcwd if the path returned by getcwd syscall is not absolute.
23030 * io/tst-getcwd-abspath.c: New test.
23031 * io/Makefile (tests): Add tst-getcwd-abspath.
23032
23033 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23034
23035 * malloc/malloc.c (malloc_consolidate): Add size check.
23036
23037 2018-01-12 Florian Weimer <fweimer@redhat.com>
23038
23039 * support/write_message.c (write_message): Preserve errno.
23040 * support/check.c (print_failure): Likewise.
23041 * support/support_test_verify_impl.c (support_test_verify_impl):
23042 Likewise.
23043 * support/support_test_compare_failure.c
23044 (support_test_compare_failure): Likewise.
23045
23046 2018-01-12 Florian Weimer <fweimer@redhat.com>
23047
23048 [BZ #22701]
23049 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23050 Prevent installation of libnsl.so.
23051 (libnsl-inhibit-o): Do not build (or install) static libraries.
23052
23053 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23054
23055 [BZ #22657]
23056 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23057 before the day number which may produce a double space.
23058 (date_fmt): Likewise.
23059
23060 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23061
23062 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23063 instead of fegetenv.
23064
23065 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23066
23067 [BZ #22702]
23068 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23069 comment to say exceptions are discarded.
23070 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23071 __fegetenv.
23072 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23073 be enabled.
23074
23075 2018-01-11 Florian Weimer <fweimer@redhat.com>
23076
23077 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23078 and error message.
23079
23080 2018-01-11 Florian Weimer <fweimer@redhat.com>
23081
23082 [BZ #22636]
23083 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23084 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23085
23086 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23087
23088 [BZ #22693]
23089 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23090 negative arguments in test for NaN or infinity argument.
23091
23092 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23093
23094 * po/libc.pot: Regenerate.
23095
23096 2018-01-10 Florian Weimer <fweimer@redhat.com>
23097
23098 [BZ #22636]
23099 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23100 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23101
23102 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23103
23104 * hurd/hurd/fd.h: Include <fcntl.h>
23105 (__hurd_at_flags): New function.
23106 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23107 with call to __hurd_at_flags.
23108 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23109 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23110 __faccessat
23111 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23112 (__access_noerrno): Use __faccessat_common instead of access_common.
23113 (__access): Likewise.
23114 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23115 with a call to __faccessat.
23116 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23117 (__faccessat_common): ... this. Move implementation of __access into it when
23118 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23119 reauthenticate_cwdir_at helper to implement AT mechanism.
23120 (__faccessat_noerrno): New function, just calls __faccessat_common.
23121 (__faccessat): New function, just calls __faccessat_common.
23122 (faccessat): Define weak alias.
23123
23124 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23125
23126 [BZ #22691]
23127 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23128 (CFLAGS-s_fmaxmagl.c): New variable.
23129 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23130
23131 [BZ #22690]
23132 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23133 long int for arguments of possibly overflowing addition or
23134 subtraction.
23135 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23136
23137 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23138
23139 [BZ #22688]
23140 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23141 (CFLAGS-e_remainderl.c): New variable.
23142
23143 [BZ #22687]
23144 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23145 variable.
23146 (CFLAGS-s_cacoshl.c): Likewise.
23147 (CFLAGS-s_casinhl.c): Likewise.
23148 (CFLAGS-s_catanl.c): Likewise.
23149 (CFLAGS-s_catanhl.c): Likewise.
23150 (CFLAGS-s_cexpl.c): Likewise.
23151 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23152 (CFLAGS-s_csinhl.c): Likewise.
23153 (CFLAGS-s_clogl.c): Likewise.
23154 (CFLAGS-s_clog10l.c): Likewise.
23155 (CFLAGS-s_csinl.c): Likewise.
23156 (CFLAGS-s_csqrtl.c): Likewise.
23157
23158 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23159 2017-01-09 Svante Signell <svante.signell@gmail.com>
23160
23161 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23162 (_hurd_exec_paths): New function.
23163 * hurd/hurd.h (_hurd_exec): Deprecate function.
23164 (_hurd_exec_paths): Declare function.
23165 * hurd/Versions: Export _hurd_exec_paths.
23166 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23167 (__execve): Use __getcwd to build absolute path, and use
23168 _hurd_exec_paths instead of _hurd_exec.
23169 * sysdeps/mach/hurd/spawni.c: Likewise.
23170 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23171 _hurd_exec.
23172
23173 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23174
23175 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23176 test instead of failing in case of ENOENT returned by posix_openpt.
23177
23178 2018-01-08 Florian Weimer <fweimer@redhat.com>
23179
23180 resolv: Support binary labels in test framework.
23181 * support/resolv_test.c (struct to_be_freed): Remove.
23182 (struct compressed_name): New.
23183 (allocate_compressed_name, ascii_tolower)
23184 (compare_compressed_name): New functions.
23185 (struct resolv_response_builder): Update type of
23186 compression_offsets for use with tsearch. Rempve to_be_freed.
23187 (response_push_pointer_to_free): Remove function.
23188 (resolv_response_add_name): Rewrite using struct compressed_name
23189 and tsearch instead of hsearch_r.
23190 (response_builder_allocate): Remove initialization of
23191 compression_offsets.
23192 (response_builder_free): Update for removal of to_be_freed. Use
23193 tdestroy instead of hdestroy_r.
23194 * resolv/Makefile (tests): Add tst-resolv-binary.
23195 (tst-resolv-binary): Link with -lresolv -lpthread.
23196
23197 2018-01-08 Florian Weimer <fweimer@redhat.com>
23198
23199 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23200 time. Pass positive flag instead of negative flag to
23201 support_test_compare_failure.
23202 (support_test_compare_failure): Change negative parameter to
23203 positive.
23204 * support/support_test_compare_failure.c (report)
23205 (support_test_compare_failure): Likewise.
23206 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23207 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23208
23209 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23210
23211 [BZ #22637]
23212 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23213 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23214 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23215 stacksize.
23216 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23217
23218 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23219
23220 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23221 Add s_sincosf-sse2 and s_sincosf-fma.
23222 (CFLAGS-s_sincosf-fma.c): New.
23223 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23224 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23225 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23226 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23227 __sincosf is defined.
23228
23229 2018-01-08 Florian Weimer <fweimer@redhat.com>
23230
23231 * nptl/tst-thread-exit-clobber.cc: New file.
23232 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23233 C++11 mode.
23234 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23235 (tests): Add tst-thread-exit-clobber.
23236 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23237
23238 2018-01-08 Florian Weimer <fweimer@redhat.com>
23239
23240 * support/check.h (support_static_assert): Define.
23241 (TEST_COMPARE): Use it.
23242
23243 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23244
23245 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23246 [!__RLIM_T_MATCHES_RLIM64_T]
23247 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23248 __getrlimit64. Add libc_hidden_weak.
23249
23250 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23251
23252 * elf/elf.h (R_RISCV_NONE): New define.
23253 (R_RISCV_32): Likewise.
23254 (R_RISCV_64): Likewise.
23255 (R_RISCV_RELATIVE): Likewise.
23256 (R_RISCV_COPY): Likewise.
23257 (R_RISCV_JUMP_SLOT): Likewise.
23258 (R_RISCV_TLS_DTPMOD32): Likewise.
23259 (R_RISCV_TLS_DTPMOD64): Likewise.
23260 (R_RISCV_TLS_DTPREL32): Likewise.
23261 (R_RISCV_TLS_DTPREL64): Likewise.
23262 (R_RISCV_TLS_TPREL32): Likewise.
23263 (R_RISCV_TLS_TPREL64): Likewise.
23264 * Makerules (make-link-multidir): Make directories before linking into
23265 them.
23266 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23267 define.
23268 (VDSO_HASH_LINUX_4_15): Likewise.
23269 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23270 in subdirectories of lib.
23271 * nptl/Makefile (/librt.so): Always depend on
23272 "$(shared-thread-library)".
23273
23274 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23275
23276 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23277 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23278 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23279 (___tls_get_addr).
23280 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23281 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23282 "-O2 -march=i686".
23283 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23284 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23285 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23286 * sysdeps/gnu/glob-lstat-compat.c: New file.
23287 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23288 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23289
23290 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23291
23292 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23293 Reserve 16 chars to reloc_addr before calling _itoa_word.
23294
23295 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23296
23297 [BZ #22678]
23298 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23299 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23300
23301 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23302 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23303
23304 * resource/tst-getrlimit.c: Add copyright header.
23305
23306 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23307 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23308
23309 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23310 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23311 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23312 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23313 instead.
23314 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23315 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23316 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23317 RLIM64_INFINITY): Fix values to match the kernel ones.
23318 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23319 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23320 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23321 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23322 getrlimit64@@GLIBC_2_27.
23323 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23324 and setrlimit64.
23325 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23326 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23327 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23328 setrlimit, getrlimit64 and setrlimit64.
23329
23330 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23331
23332 [BZ #22648]
23333 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23334 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23335
23336 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23337
23338 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23339 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23340 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23341
23342 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23343
23344 [BZ #15479]
23345 [BZ #22666]
23346 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23347 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23348
23349 [BZ #15479]
23350 [BZ #22665]
23351 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23352 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23353 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23354 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23355
23356 2018-01-04 Florian Weimer <fweimer@redhat.com>
23357
23358 [BZ #22667]
23359 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23360 Align the stack before calling exit.
23361 * stdlib/tst-makecontext-align.c: New file.
23362 * stdlib/Makefile (tests): Add tst-makecontext-align.
23363
23364 2018-01-04 Florian Weimer <fweimer@redhat.com>
23365
23366 Add support for calling dlvsym from libc.so.
23367 * include/dlfcn.h (__libc_dlvsym): Declare.
23368 * elf/Makefile (tests-static-internal): Add
23369 tst-libc_dlvsym-static.
23370 (tests-internal): Add tst-libc_dlvsym.
23371 (modules-names): Add tst-libc_dlvsym-dso.
23372 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23373 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23374 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23375 object tst-libc_dlvsym-dso.so needs to be built before running
23376 these tests.
23377 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23378 * elf/Versions: Export __libc_dlvsym.
23379 * elf/dl-libc.c (struct do_dlvsym_args): New.
23380 (do_dlvsym, __libc_dlvsym): New functions.
23381 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23382 (_dl_open_hook2): New variable.
23383 (__libc_register_dl_open_hook): Set it.
23384 * elf/tst-libc_dlvsym-dso.c: New file.
23385 * elf/tst-libc_dlvsym-static.c: Likewise.
23386 * elf/tst-libc_dlvsym.c: Likewise.
23387 * elf/tst-libc_dlvsym.h: Likewise.
23388
23389 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23390
23391 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23392 include <sys/mount.h>.
23393
23394 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23395
23396 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23397 Add __NO_MATH_ERRNO__ check.
23398
23399 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23400
23401 * sysdeps/mips/mips32/libm-test-ulps: Update.
23402 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23403
23404 2018-01-02 Florian Weimer <fweimer@redhat.com>
23405
23406 * misc/tst-pselect.c: Add copyright header.
23407
23408 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23409
23410 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23411 comment.
23412 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23413 comment.
23414 (settrlimit): Rename into setrlimit.
23415 (__sttrlimit): Rename into __setrlimit.
23416
23417 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23418 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23419 never defined in that case.
23420
23421 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23422
23423 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23424
23425 * sysdeps/arm/libm-test-ulps: Update.
23426
23427 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23428 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23429
23430 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23431
23432 * NEWS: Add cosf and sincosf to list of optimized functions.
23433
23434 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23435
23436 [BZ #22660]
23437 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23438 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23439 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23440 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23441
23442 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23443
23444 [BZ #22433]
23445 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23446
23447 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23448 making a copy of it.
23449
23450 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23451
23452 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23453 trailing whitespace removed.
23454 * scripts/config.guess: Update to version 2018-01-01.
23455 * scripts/config.sub: Update to version 2018-01-01.
23456 * scripts/move-if-change: Update from gnulib.
23457
23458 * NEWS: Update copyright dates.
23459 * catgets/gencat.c (print_version): Likewise.
23460 * csu/version.c (banner): Likewise.
23461 * debug/catchsegv.sh: Likewise.
23462 * debug/pcprofiledump.c (print_version): Likewise.
23463 * debug/xtrace.sh (do_version): Likewise.
23464 * elf/ldconfig.c (print_version): Likewise.
23465 * elf/ldd.bash.in: Likewise.
23466 * elf/pldd.c (print_version): Likewise.
23467 * elf/sotruss.sh: Likewise.
23468 * elf/sprof.c (print_version): Likewise.
23469 * iconv/iconv_prog.c (print_version): Likewise.
23470 * iconv/iconvconfig.c (print_version): Likewise.
23471 * locale/programs/locale.c (print_version): Likewise.
23472 * locale/programs/localedef.c (print_version): Likewise.
23473 * login/programs/pt_chown.c (print_version): Likewise.
23474 * malloc/memusage.sh (do_version): Likewise.
23475 * malloc/memusagestat.c (print_version): Likewise.
23476 * malloc/mtrace.pl: Likewise.
23477 * manual/libc.texinfo: Likewise.
23478 * nptl/version.c (banner): Likewise.
23479 * nscd/nscd.c (print_version): Likewise.
23480 * nss/getent.c (print_version): Likewise.
23481 * nss/makedb.c (print_version): Likewise.
23482 * posix/getconf.c (main): Likewise.
23483 * scripts/test-installation.pl: Likewise.
23484 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23485
23486 * All files with FSF copyright notices: Update copyright dates
23487 using scripts/update-copyrights.
23488 * locale/programs/charmap-kw.h: Regenerated.
23489 * locale/programs/locfile-kw.h: Likewise.
23490
23491 2017-12-31 Zack Weinberg <zackw@panix.com>
23492
23493 * libio/bits/libio-ldbl.h: Correct check for improper
23494 inclusion. Add own multiple include guard.
23495
23496 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23497 Dmitry V. Levin <ldv@altlinux.org>
23498
23499 [BZ #22625]
23500 CVE-2017-16997
23501 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23502 string token expansion. Check for NULL pointer or empty string possibly
23503 returned by expand_dynamic_string_token.
23504 (decompose_rpath): Check for empty path after dynamic string
23505 token expansion.
23506
23507 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23508
23509 [BZ #22433]
23510 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23511
23512 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23513 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23514 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23515 and PTRACE_SYSCALL.
23516 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23517 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23518 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23519 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23520 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23521 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23522
23523 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23524 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23525 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23526 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23527 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23528 bits/ptrace-shared.h.
23529 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23530 <bits/ptrace-shared.h>.
23531 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23532 __ptrace_peeksiginfo_flags, ptrace): Remove.
23533 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23534 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23535 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23536 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23537 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23538
23539 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23540
23541 [BZ #17804]
23542 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23543 end of the loop. Improve comments.
23544
23545 2017-12-29 Zack Weinberg <zackw@panix.com>
23546
23547 [BZ #22615]
23548 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23549 might be set on success.
23550
23551 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23552
23553 [BZ #22611]
23554 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23555 is unchanged on success.
23556
23557 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23558
23559 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23560 updated.
23561 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23562 expand_dynamic_string_token): Likewise.
23563 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23564 is_path argument.
23565
23566 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23567 contains ':'.
23568
23569 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23570 is set and name contains ':', and all code depending on these checks.
23571
23572 2017-12-24 Zack Weinberg <zackw@panix.com>
23573
23574 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23575 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23576 respectively.
23577 * libio/libio.h: Rename the original version of this file to
23578 libio/bits/libio.h. Error out if not included by stdio.h or the
23579 stub libio.h.
23580 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23581 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23582 if not included by bits/libio.h or the stub _G_config.h.
23583 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23584 sysdeps/unix/sysv/linux/bits. Error out if not included by
23585 bits/libio.h or the stub _G_config.h.
23586 * libio/stdio.h: Include bits/libio.h, not libio.h.
23587 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23588 well as libio.h and _G_config.h.
23589
23590 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23591 * libio/strfile.h, stdio-common/vfscanf.c
23592 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23593 Include stdio.h, not _G_config.h nor libio.h.
23594 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23595 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23596
23597 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23598
23599 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23600
23601 [BZ #22347]
23602 * stdlib/getrandom.c (getrandom): Fix comment.
23603 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23604
23605 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23606
23607 [BZ #21161]
23608 * manual/arith.texi (strtoul): Fix a typo.
23609
23610 [BZ #22596]
23611 * manual/arith.texi (finite): Fix the description of the return
23612 value.
23613
23614 2017-12-22 Eric Blake <ebb9@byu.net>
23615
23616 Avoid gcc warnings on cygwin
23617 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23618 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23619 Avoid unused variable.
23620
23621 2017-12-22 Florian Weimer <fweimer@redhat.com>
23622
23623 * io/Makefile (routines): Add copy_file_range.
23624 (tests): Add tst-copy_file_range.
23625 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23626 * io/Versions (GLIBC_2.27): Export copy_file_range.
23627 * io/copy_file_range-compat.c: New file.
23628 * io/copy_file_range.c: Likewise.
23629 * io/tst-copy_file_range-compat.c: Likewise.
23630 * io/tst-copy_file_range.c: Likewise.
23631 * manual/llio.texi (Copying File Data): New section.
23632 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23633 * support/Makefile (libsupport-routines): Add support-xfstat,
23634 xftruncate, xlseek.
23635 * support/support-xfstat.c: New file.
23636 * support/xftruncate.c: Likewise.
23637 * support/xlseek.c: Likewise.
23638 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23639 * sysdeps/unix/sysv/linux/**.abilist: Update.
23640 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23641
23642 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23643
23644 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23645 disable-multi-arch variant to aarch64-linux-gnu.
23646
23647 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23648
23649 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23650 trailing whitespace removed.
23651 * scripts/config.guess: Update to version 2017-12-17.
23652 * scripts/config.sub: Update to version 2017-11-23.
23653 * scripts/install-sh: Update to version 2017-09-23.17.
23654 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23655
23656 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23657
23658 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23659 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23660 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23661 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23662 * sysdeps/tile/crtn.S: Likewise.
23663 * sysdeps/tile/dl-start.S (_start): Likewise.
23664 * sysdeps/tile/dl-trampoline.S: Likewise.
23665 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23666 * sysdeps/tile/start.S (_start): Likewise.
23667 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23668 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23669 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23670 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23671 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23672 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23673 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23674
23675 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23676 comment.
23677 * sysdeps/tile/preconfigure: Remove tilegx folder.
23678 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23679 * sysdeps/tile/Implies: ... here.
23680 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23681 * sysdeps/tile/Makefile: ... here.
23682 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23683 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23684 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23685 * sysdeps/tile/bits/wordsize.h: ... here.
23686 * sysdeps/tile/tilegx/*: Move to ...
23687 * sysdeps/tile/*: ... here.
23688 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23689 * sysdeps/tile/tilegx32/Implies: ... here.
23690 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23691 * sysdeps/tile/tilegx64/Implies: ... here.
23692 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23693 to ...
23694 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23695 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23696 * sysdeps/unix/sysv/linux/tile/*: ... here.
23697 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23698 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23699 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23700 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23701
23702 * README: Remove tilepro-*-linux-gnu from supported architecture.
23703 * scripts/build-many-glibcs.py: Likewise.
23704 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23705 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23706 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23707 elf_machine_matches_host, elf_machine_dynamic,
23708 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23709 howto, elf_machine_rela): Likewise.
23710 * sysdeps/tile/dl-start.S (_start): Likewise.
23711 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23712 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23713 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23714 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23715 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23716 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23717 Likewise.
23718 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23719 * sysdeps/tile/preconfigure: Likewise.
23720 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23721 POINTER_CHK_GUARD): Likewise.
23722 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23723 * sysdeps/tile/start.S (_start): Likewise.
23724 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23725 Likewise.
23726 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23727 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23728 CMOVNEZ): Remove.
23729 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23730 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23731 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23732 Likewise.
23733 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23734 * sysdeps/tile/tilepro/Implies: Remove file.
23735 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23736 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23737 * sysdeps/tile/tilepro/memchr.c: Likewise.
23738 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23739 * sysdeps/tile/tilepro/memset.c: Likewise.
23740 * sysdeps/tile/tilepro/memusage.h: Likewise.
23741 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23742 * sysdeps/tile/tilepro/strchr.c: Likewise.
23743 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23744 * sysdeps/tile/tilepro/strlen.c: Likewise.
23745 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23746 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23747 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23748 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23749 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23750 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23751 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23752 Likewise.
23753 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23754 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23755 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23756 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23757 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23758 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23759 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23760 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23761 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23762 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23763 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23764 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23765 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23766 tilepro mention in comment.
23767
23768 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23769 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23770 * nptl/pthread_join_common.c: New file: common function used on
23771 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23772 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23773 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23774 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23775 (cleanup): Move definition to pthread_join_common.c.
23776 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23777 Remove superflous checks.
23778 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23779 Likewise.
23780
23781 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23782
23783 * sysdeps/aarch64/libm-test-ulps: Update.
23784
23785 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23786
23787 * sysdeps/aarch64/memset.S (MEMSET): Define.
23788
23789 2017-12-20 Florian Weimer <fweimer@redhat.com>
23790
23791 [BZ #22635]
23792 nptl: Provide full implementation of pthread_self in libc.so.
23793 * nptl/Makefile (routines): Add pthread_self.
23794 (libpthread-routines): Replace pthread_self with
23795 compat-pthread_self.
23796 * nptl/forward.c (pthread_self): Remove.
23797 * nptl/nptl-init.c (pthread_functions): Do not initialize
23798 ptr_pthread_self.
23799 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23800 * nptl/compat-pthread_self.c: New file.
23801 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23802 Remove ptr_pthread_self.
23803
23804 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23805
23806 * posix/regcomp.c: Fix spelling in comments.
23807 * posix/regex.h: Likewise.
23808 * posix/regex_internal.c: Likewise.
23809 * posix/regexec.c: Likewise.
23810
23811 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23812
23813 [BZ #22377]
23814 * math/Makefile [C++] (tests): Add test for iseqsig.
23815 * math/math.h [C++] (iseqsig): New implementation, which does
23816 not rely on __MATH_TG/__builtin_types_compatible_p.
23817 * math/test-math-iseqsig.cc: New file.
23818 * sysdeps/powerpc/powerpc64le/Makefile
23819 (CFLAGS-test-math-iseqsig.cc): New variable.
23820
23821 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23822
23823 * elf/dl-load.c (is_trusted_path): Remove.
23824 (fillin_rpath): Remove check_trusted argument and its use,
23825 all callers changed.
23826
23827 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23828
23829 [BZ #22630]
23830 * Makeconfig (link-pie-before-libc): Replace -pie with
23831 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23832 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23833 (tst-dlopen-aout-no-pie): New.
23834 (LDFLAGS-tst-prelink): Removed.
23835 (tst-prelink-no-pie): New.
23836 (LDFLAGS-tst-main1): Removed.
23837 (tst-main1-no-pie): New.
23838 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23839 (tst-gmon-no-pie): New.
23840
23841 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23842
23843 * manual/install.texi: Document that --enable-static-pie
23844 implies PIE.
23845 * INSTALL: Regenerated.
23846
23847 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23848
23849 [BZ #21309]
23850 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23851 unsigned.
23852
23853 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23854
23855 Revert:
23856
23857 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23858
23859 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23860
23861 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23862
23863 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23864 <errno.h>. Include "eexp.tbl".
23865 (half): New constant.
23866 (one): Likewise.
23867 (__ieee754_exp): Rewrite.
23868 (__slowexp): Remove prototype.
23869 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23870 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23871 * sysdeps/i386/fpu/slowexp.c: Likewise.
23872 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23873 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23874 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23875 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23876 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23877 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23878 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23879 comment.
23880 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23881 (CPPFLAGS-slowexp.c): Remove variable.
23882 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23883 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23884 (CFLAGS-slowexp-fma.c): Remove variable.
23885 (CFLAGS-slowexp-fma4.c): Likewise.
23886 (CFLAGS-slowexp-avx.c): Likewise.
23887 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23888 define as macro.
23889 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23890 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23891 * math/Makefile (type-double-routines): Remove slowexp.
23892 * manual/probes.texi (slowexp_p6): Remove.
23893 (slowexp_p32): Likewise.
23894
23895 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23896
23897 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23898 arithmetic.
23899
23900 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23901
23902 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23903
23904 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23905
23906 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23907
23908 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23909 <errno.h>. Include "eexp.tbl".
23910 (half): New constant.
23911 (one): Likewise.
23912 (__ieee754_exp): Rewrite.
23913 (__slowexp): Remove prototype.
23914 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23915 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23916 * sysdeps/i386/fpu/slowexp.c: Likewise.
23917 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23918 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23919 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23920 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23921 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23922 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23923 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23924 comment.
23925 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23926 (CPPFLAGS-slowexp.c): Remove variable.
23927 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23928 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23929 (CFLAGS-slowexp-fma.c): Remove variable.
23930 (CFLAGS-slowexp-fma4.c): Likewise.
23931 (CFLAGS-slowexp-avx.c): Likewise.
23932 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23933 define as macro.
23934 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23935 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23936 * math/Makefile (type-double-routines): Remove slowexp.
23937 * manual/probes.texi (slowexp_p6): Remove.
23938 (slowexp_p32): Likewise.
23939
23940 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23941 James Clarke <jrtc27@jrtc27.com>
23942
23943 [BZ #22603]
23944 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23945 addition.
23946
23947 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23948
23949 [BZ #22605]
23950 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23951 code.
23952
23953 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23954
23955 [BZ #22563]
23956 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23957 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23958 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23959 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23960 to feature_1.
23961
23962 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23963
23964 [BZ #22563]
23965 * bits/types/__cancel_jmp_buf_tag.h: New file.
23966 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23967 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23968 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23969 * nptl/Makefile (headers): Add
23970 bits/types/__cancel_jmp_buf_tag.h.
23971 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23972 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23973 * sysdeps/nptl/pthread.h: Include
23974 <bits/types/__cancel_jmp_buf_tag.h>.
23975 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23976 __cancel_jmp_buf.
23977 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23978
23979 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23980
23981 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23982 --enable-static-pie variants to x86_64, x32 and i686.
23983
23984 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23985
23986 [BZ #22631]
23987 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23988 argument for attrubutes. All callers changed.
23989 (__inline_mathop1): Likewise. All callers changed.
23990 (__inline_mathop): Likewise. All callers changed.
23991 [__USE_MISC] (scalbn): Use __inline_forward instead of
23992 __inline_forward_c.
23993 [__USE_ISOC99] (scalbln): Likewise.
23994 [__USE_ISOC99] (nearbyint): Likewise.
23995 [__USE_ISOC99] (lrint): Likewise.
23996 [__USE_MISC] (scalbnf): Likewise.
23997 [__USE_ISOC99] (scalblnf): Likewise.
23998 [__USE_ISOC99] (nearbyintf): Likewise.
23999 [__USE_ISOC99] (lrintf): Likewise.
24000 [__USE_MISC] (scalbnl): Likewise.
24001 [__USE_ISOC99] (scalblnl): Likewise.
24002 [__USE_ISOC99] (nearbyintl): Likewise.
24003 [__USE_ISOC99] (lrintl): Likewise.
24004 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24005 __inline_mathop and __m81_defun changed.
24006
24007 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24008 CPU or FPU for ARM hard-float configurations.
24009
24010 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24011
24012 * nptl/tst-attr3.c: Include <libc-diag.h>.
24013 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24014
24015 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24016
24017 * string/tester.c (test_strncat): Also disable -Warray-bounds
24018 warnings for two tests.
24019
24020 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24021
24022 [BZ #22614]
24023 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24024 $(cc-pie-default) == yes.
24025 * config.make.in (cc-pie-default): New.
24026 * configure.ac (libc_cv_pie_default): Renamed to ...
24027 (libc_cv_cc_pie_default): This.
24028 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24029 * configure: Regenerated.
24030
24031 2017-12-18 Florian Weimer <fweimer@redhat.com>
24032
24033 [BZ #20204]
24034 ld.so: Harden dl-libc/libdl hooks.
24035 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24036 (rtld_active): New function.
24037 * dlfcn/dladdr.c (__dladdr): Call it.
24038 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24039 * dlfcn/dlclose.c (__dlcose): Likewise.
24040 * dlfcn/dlerror.c (__dlerror): Likewise.
24041 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24042 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24043 * dlfcn/dlopen.c (__dlopen): Likewise.
24044 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24045 * dlfcn/dlsym.c (__dlsym): Likewise.
24046 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24047 * libio/vtables.c (_IO_vtable_check): Likewise.
24048 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24049 (__libc_dlclose): Likewise.
24050 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24051 assignment.
24052
24053 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24054
24055 [BZ #22446]
24056 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24057 buffers for readlink input and output.
24058
24059 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24060
24061 [BZ #22624]
24062 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24063 inhibit_stack_protector.
24064
24065 [BZ #22624]
24066 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24067 inhibit_stack_protector.
24068
24069 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24070
24071 [BZ #22627]
24072 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24073 code and invocation.
24074
24075 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24076
24077 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24078
24079 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24080
24081 [BZ #22505]
24082 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24083
24084 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24085
24086 * sysdeps/s390/fpu/libm-test-ulps: Update.
24087
24088 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24089
24090 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24091
24092 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24093
24094 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24095 constants to s_sincosf.h file.
24096 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24097 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24098 implementation.
24099 * sysdeps/ieee754/flt-32/s_sincosf.h:
24100 New file.
24101
24102 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24103
24104 [BZ #14681]
24105 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24106 before mtrace.
24107
24108 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24109
24110 [BZ #19574]
24111 * INSTALL: Regenerated.
24112 * Makeconfig (real-static-start-installed-name): New.
24113 (pic-default): Updated for --enable-static-pie.
24114 (pie-default): New for --enable-static-pie.
24115 (default-pie-ldflag): Likewise.
24116 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24117 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24118 Replace $(static-start-installed-name) with
24119 $(real-static-start-installed-name).
24120 (+prectorT): Updated for --enable-static-pie.
24121 (+postctorT): Likewise.
24122 (CFLAGS-.o): Add $(pie-default).
24123 (CFLAGS-.op): Likewise.
24124 * NEWS: Mention --enable-static-pie.
24125 * config.h.in (ENABLE_STATIC_PIE): New.
24126 * configure.ac (--enable-static-pie): New configure option.
24127 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24128 (have-static-pie): Likewise.
24129 Enable static PIE if linker supports --no-dynamic-linker.
24130 (ENABLE_STATIC_PIE): New AC_DEFINE.
24131 (enable-static-pie): New LIBC_CONFIG_VAR.
24132 * configure: Regenerated.
24133 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24134 gr$(start-installed-name) for --enable-static-pie.
24135 (extra-objs): Likewise.
24136 (install-lib): Likewise.
24137 (extra-objs): Add static-reloc.o and static-reloc.os
24138 ($(objpfx)$(start-installed-name)): Also depend on
24139 $(objpfx)static-reloc.o.
24140 ($(objpfx)r$(start-installed-name)): New.
24141 ($(objpfx)g$(start-installed-name)): Also depend on
24142 $(objpfx)static-reloc.os.
24143 ($(objpfx)gr$(start-installed-name)): New.
24144 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24145 in libc.a.
24146 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24147 initimage.
24148 * csu/static-reloc.c: New file.
24149 * elf/Makefile (routines): Add dl-reloc-static-pie.
24150 (elide-routines.os): Likewise.
24151 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24152 (tst-tls1-static-non-pie-no-pie): New.
24153 * elf/dl-reloc-static-pie.c: New file.
24154 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24155 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24156 STATIC_PIE_BOOTSTRAP.
24157 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24158 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24159 (tests-static): Likewise.
24160 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24161 (tst-gmon-static-no-pie): New.
24162 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24163 (CRT-tst-gmon-static-pie): Likewise.
24164 (tst-gmon-static-pie-ENV): Likewise.
24165 (tests-special): Likewise.
24166 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24167 (clean-tst-gmon-static-pie-data): Likewise.
24168 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24169 * gmon/tst-gmon-static-pie.c: New file.
24170 * manual/install.texi: Document --enable-static-pie.
24171 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24172 (_dl_get_dl_main_map): Likewise.
24173 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24174 * sysdeps/x86_64/configure.ac: Likewise.
24175 * sysdeps/i386/configure: Regenerated.
24176 * sysdeps/x86_64/configure: Likewise.
24177 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24178 (ASFLAGS-.op): Likewise.
24179
24180 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24181
24182 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24183 * posix/tst-mmap-offset.c (fname): Use /tmp.
24184 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24185
24186 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24187
24188 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24189
24190 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24191
24192 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24193 errno.
24194
24195 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24196
24197 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24198 --with-float=hard for arm-linux-gnueabihf configurations.
24199
24200 [BZ #14121]
24201 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24202 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24203 ($(mo-installed)): Use $(objpfx)%.mo.
24204 (realclean): Remove rule.
24205
24206 * po/Makefile (linguas): Remove rule and dependencies.
24207 (linguas.mo): Likewise.
24208 (.PHONY): Do not depend on linguas and linguas.mo.
24209 (podir): Remove variable.
24210 (pofiles): Likewise.
24211 [$(pofiles)] (%.po): Remove rule.
24212
24213 * sysdeps/sparc/sparc32/Makefile
24214 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24215 start-of-line whitespace in argument of echo.
24216 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24217 with whitespace. Generate __wrap_.udiv alias.
24218 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24219 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24220 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24221 * sysdeps/sparc/sparc32/urem.S: Likewise.
24222
24223 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24224
24225 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24226 for aligned inputs.
24227
24228 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24229
24230 * benchtests/bench-strcmp.c: Print output in JSON format.
24231
24232 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24233
24234 2017-12-14 Florian Weimer <fweimer@redhat.com>
24235
24236 [BZ #22607]
24237 CVE-2017-1000409
24238 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24239 the expanded path string.
24240
24241 2017-12-14 Florian Weimer <fweimer@redhat.com>
24242
24243 [BZ #22606]
24244 CVE-2017-1000408
24245 * elf/dl-load.c (system_dirs): Update comment.
24246 (nsystem_dirs_len): Use array_length.
24247 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24248
24249 2017-12-14 Florian Weimer <fweimer@redhat.com>
24250
24251 Simplify compiling most of support/ outside of glibc.
24252 * support/check_addrinfo.c: Include <string.h>.
24253 * support/check_dns_packet.c: Likewise.
24254 * support/check_hostent.c: Likewise.
24255 * support/support_can_chroot.c: Include <support/xunistd.h>.
24256 * support/support_format_addrinfo.c: Include <stdlib.h>
24257 * support/support_format_dns_packet.c: Include <stdbool.h>.
24258 * support/support_format_hostent.c: Include <stdlib.h>.
24259 * support/support_format_netent.c: Likewise.
24260 * support/support_write_string.c: Include <support/xunistd.h>.
24261 * support/xdlfcn.c: Include <stddef.h>.
24262
24263 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24264
24265 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24266
24267 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24268 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24269
24270 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24271 (sysdeps_routines): Add memset-niagara7.
24272 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24273 Likewise.
24274 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24275 file.
24276 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24277 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24278 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24279 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24280 Add niagara7 option.
24281 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24282 memset.
24283
24284 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24285 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24286 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24287 Likewise.
24288 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24289 New file.
24290 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24291 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24292 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24293 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24294 and __memmove_niagara7.
24295 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24296 Add niagara7 option.
24297 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24298 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24299 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24300 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24301 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24302
24303 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24304
24305 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24306 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24307 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24308 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24309
24310 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24311 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24312 _dl_sparc_cap_flags array.
24313 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24314
24315 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24316
24317 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24318 time whenever possible.
24319
24320 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24321
24322 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24323 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24324
24325 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24326
24327 * soft-fp/fmadf4.c: Move to ....
24328 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24329 * soft-fp/fmasf4.c: Move to ....
24330 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24331 * soft-fp/fmatf4.c: Move to ....
24332 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24333 * sysdeps/ieee754/soft-fp/Makefile: New file.
24334 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24335 * sysdeps/arm/preconfigure: Regenerated.
24336 * sysdeps/arm/nofpu/Implies: New file.
24337 * sysdeps/arm/s_fma.c: Remove file.
24338 * sysdeps/arm/s_fmaf.c: Likewise.
24339 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24340 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24341 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24342 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24343 * sysdeps/microblaze/s_fma.c: Remove file.
24344 * sysdeps/microblaze/s_fmaf.c: Likewise.
24345 * sysdeps/mips/mips32/nofpu/Implies: New file.
24346 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24347 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24348 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24349 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24350 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24351 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24352 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24353 implementation.
24354 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24355 * sysdeps/nios2/s_fma.c: Remove file.
24356 * sysdeps/nios2/s_fmaf.c: Likewise.
24357 * sysdeps/sh/nofpu/Implies: New file.
24358 * sysdeps/sh/s_fma.c: Remove file.
24359 * sysdeps/sh/s_fmaf.c: Likewise.
24360 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24361 * sysdeps/tile/s_fma.c: Remove file.
24362 * sysdeps/tile/s_fmaf.c: Likewise.
24363
24364 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24365
24366 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24367 Add s_cosf-sse2 and s_cosf-fma.
24368 (CFLAGS-s_cosf-fma.c): New.
24369 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24370 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24371 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24372
24373 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24374
24375 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24376
24377 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24378
24379 * libio/Makefile (tests): Add tst-bz22415.
24380 (tst-bz22415-ENV): New rule.
24381 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24382 (tests-special): Add tst-bz22415-mem.out.
24383 ($(objpfx)tst-bz22415-mem.out): New rule.
24384 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24385 in case of a successful seek operation.
24386 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24387 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24388 buffer is required.
24389 * libio/tst-bz22415.c: New test.
24390
24391 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24392
24393 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24394
24395 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24396 __IPC_64 to 0 to avoid IPC_64 being set.
24397
24398 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24399
24400 [BZ #22593]
24401 * math/bits/mathcalls.h (nextafter): Remove const.
24402 (nexttoward): Likewise.
24403
24404 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24405
24406 * configure.ac (--with-fp): Remove configure option.
24407 (with_fp_cond): New variable.
24408 (libc_cv_with_fp): New configure test. Use this variable instead
24409 of with_fp.
24410 * configure: Regenerated.
24411 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24412 * manual/install.texi (Configuring and compiling): Remove
24413 --without-fp.
24414 * INSTALL: Regenerated.
24415 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24416 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24417 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24418 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24419 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24420 use --without-fp to configure glibc.
24421
24422 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24423
24424 * manual/locale.texi (nl_langinfo): Fix a typo.
24425
24426 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24427
24428 [BZ #22588]
24429 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24430
24431 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24432
24433 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24434 (CFLAGS-argp-parse.c): Likewise.
24435 (CFLAGS-argp-fmtstream.c): Likewise.
24436 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24437 (CPPFLAGS-sha512-crypt.c): Likewise.
24438 (CPPFLAGS-md5-crypt.c): Likewise.
24439 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24440 (CFLAGS-stack_chk_fail_local.c): Likewise.
24441 (CFLAGS-backtrace.c): Likewise.
24442 (CFLAGS-sprintf_chk.c): Likewise.
24443 (CFLAGS-snprintf_chk.c): Likewise.
24444 (CFLAGS-vsprintf_chk.c): Likewise.
24445 (CFLAGS-vsnprintf_chk.c): Likewise.
24446 (CFLAGS-asprintf_chk.c): Likewise.
24447 (CFLAGS-vasprintf_chk.c): Likewise.
24448 (CFLAGS-obprintf_chk.c): Likewise.
24449 (CFLAGS-dprintf_chk.c): Likewise.
24450 (CFLAGS-vdprintf_chk.c): Likewise.
24451 (CFLAGS-printf_chk.c): Likewise.
24452 (CFLAGS-fprintf_chk.c): Likewise.
24453 (CFLAGS-vprintf_chk.c): Likewise.
24454 (CFLAGS-vfprintf_chk.c): Likewise.
24455 (CFLAGS-gets_chk.c): Likewise.
24456 (CFLAGS-fgets_chk.c): Likewise.
24457 (CFLAGS-fgets_u_chk.c): Likewise.
24458 (CFLAGS-fread_chk.c): Likewise.
24459 (CFLAGS-fread_u_chk.c): Likewise.
24460 (CFLAGS-swprintf_chk.c): Likewise.
24461 (CFLAGS-vswprintf_chk.c): Likewise.
24462 (CFLAGS-wprintf_chk.c): Likewise.
24463 (CFLAGS-fwprintf_chk.c): Likewise.
24464 (CFLAGS-vwprintf_chk.c): Likewise.
24465 (CFLAGS-vfwprintf_chk.c): Likewise.
24466 (CFLAGS-fgetws_chk.c): Likewise.
24467 (CFLAGS-fgetws_u_chk.c): Likewise.
24468 (CFLAGS-read_chk.c): Likewise.
24469 (CFLAGS-pread_chk.c): Likewise.
24470 (CFLAGS-pread64_chk.c): Likewise.
24471 (CFLAGS-recv_chk.c): Likewise.
24472 (CFLAGS-recvfrom_chk.c): Likewise.
24473 (CFLAGS-tst-longjmp_chk.c): Likewise.
24474 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24475 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24476 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24477 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24478 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24479 (CFLAGS-tst-chk1.c): Likewise.
24480 (CFLAGS-tst-chk2.c): Likewise.
24481 (CFLAGS-tst-chk3.c): Likewise.
24482 (CFLAGS-tst-chk4.cc): Likewise.
24483 (CFLAGS-tst-chk5.cc): Likewise.
24484 (CFLAGS-tst-chk6.cc): Likewise.
24485 (CFLAGS-tst-lfschk1.c): Likewise.
24486 (CFLAGS-tst-lfschk2.c): Likewise.
24487 (CFLAGS-tst-lfschk3.c): Likewise.
24488 (CFLAGS-tst-lfschk4.cc): Likewise.
24489 (CFLAGS-tst-lfschk5.cc): Likewise.
24490 (CFLAGS-tst-lfschk6.cc): Likewise.
24491 (CFLAGS-tst-ssp-1.c): Likewise.
24492 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24493 (CFLAGS-scandir64.c): Likewise.
24494 (CFLAGS-scandir-tail.c): Likewise.
24495 (CFLAGS-scandir64-tail.c): Likewise.
24496 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24497 (CFLAGS-dl-tunables.c): Likewise.
24498 (CFLAGS-dl-runtime.c): Likewise.
24499 (CFLAGS-dl-lookup.c): Likewise.
24500 (CFLAGS-dl-iterate-phdr.c): Likewise.
24501 (CFLAGS-vismain.c): Likewise.
24502 (CFLAGS-tst-linkall-static.c): Likewise.
24503 (CFLAGS-tst-linkall-static.c): Likewise.
24504 (CPPFLAGS-dl-load.c): Likewise.
24505 (CFLAGS-ldconfig.c): Likewise.
24506 (CFLAGS-dl-cache.c): Likewise.
24507 (CFLAGS-cache.c): Likewise.
24508 (CFLAGS-rtld.c): Likewise.
24509 (CFLAGS-multiload.c): Likewise.
24510 (CFLAGS-filtmod1.c): Likewise.
24511 (CFLAGS-tst-align.c): Likewise.
24512 (CFLAGS-tst-align2.c): Likewise.
24513 (CFLAGS-tst-alignmod.c): Likewise.
24514 (CFLAGS-tst-alignmod2.c): Likewise.
24515 (CPPFLAGS-tst-execstack.c): Likewise.
24516 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24517 (CFLAGS-tst-latepthreadmod.c): Likewise.
24518 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24519 (CFLAGS-getgrnam_r.c): Likewise.
24520 (CFLAGS-getgrent_r.c): Likewise.
24521 (CFLAGS-getgrent.c): Likewise.
24522 (CFLAGS-fgetgrent.c): Likewise.
24523 (CFLAGS-fgetgrent_r.c): Likewise.
24524 (CFLAGS-putgrent.c): Likewise.
24525 (CFLAGS-initgroups.c): Likewise.
24526 (CFLAGS-getgrgid.c): Likewise.
24527 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24528 (CFLAGS-getsgent.c): Likewise.
24529 (CFLAGS-fgetsgent.c): Likewise.
24530 (CFLAGS-fgetsgent_r.c): Likewise.
24531 (CFLAGS-putsgent.c): Likewise.
24532 (CFLAGS-getsgnam.c): Likewise.
24533 (CFLAGS-getsgnam_r.c): Likewise.
24534 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24535 (CFLAGS-iconv_charmap.c): Likewise.
24536 (CFLAGS-dummy-repertoire.c): Likewise.
24537 (CFLAGS-charmap.c): Likewise.
24538 (CFLAGS-linereader.c): Likewise.
24539 (CFLAGS-simple-hash.c): Likewise.
24540 (CFLAGS-gconv_conf.c): Likewise.
24541 (CFLAGS-iconvconfig.c): Likewise.
24542 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24543 (CFLAGS-gethstbyad.c): Likewise.
24544 (CFLAGS-gethstbynm_r.c): Likewise.
24545 (CFLAGS-gethstbynm.c): Likewise.
24546 (CFLAGS-gethstbynm2_r.c): Likewise.
24547 (CFLAGS-gethstbynm2.c): Likewise.
24548 (CFLAGS-gethstent_r.c): Likewise.
24549 (CFLAGS-gethstent.c): Likewise.
24550 (CFLAGS-rcmd.c): Likewise.
24551 (CFLAGS-getnetbynm_r.c): Likewise.
24552 (CFLAGS-getnetbynm.c): Likewise.
24553 (CFLAGS-getnetbyad_r.c): Likewise.
24554 (CFLAGS-getnetbyad.c): Likewise.
24555 (CFLAGS-getnetent_r.c): Likewise.
24556 (CFLAGS-getnetent.c): Likewise.
24557 (CFLAGS-getaliasent_r.c): Likewise.
24558 (CFLAGS-getaliasent.c): Likewise.
24559 (CFLAGS-getrpcent_r.c): Likewise.
24560 (CFLAGS-getrpcent.c): Likewise.
24561 (CFLAGS-getservent_r.c): Likewise.
24562 (CFLAGS-getservent.c): Likewise.
24563 (CFLAGS-getprtent_r.c): Likewise.
24564 (CFLAGS-getprtent.c): Likewise.
24565 (CFLAGS-either_ntoh.c): Likewise.
24566 (CFLAGS-either_hton.c): Likewise.
24567 (CFLAGS-getnetgrent.c): Likewise.
24568 (CFLAGS-getnetgrent_r.c): Likewise.
24569 (CFLAGS-tst-checks-posix.c): Likewise.
24570 (CFLAGS-tst-sockaddr.c): Likewise.
24571 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24572 (CFLAGS-tst-translit.c): Likewise.
24573 (CFLAGS-tst-gettext2.c): Likewise.
24574 (CFLAGS-tst-codeset.c): Likewise.
24575 (CFLAGS-tst-gettext3.c): Likewise.
24576 (CFLAGS-tst-gettext4.c): Likewise.
24577 (CFLAGS-tst-gettext5.c): Likewise.
24578 (CFLAGS-tst-gettext6.c): Likewise.
24579 * io/Makefile (CFLAGS-open.c): Likewise.
24580 (CFLAGS-open64.c): Likewise.
24581 (CFLAGS-creat.c): Likewise.
24582 (CFLAGS-creat64.c): Likewise.
24583 (CFLAGS-fcntl.c): Likewise.
24584 (CFLAGS-poll.c): Likewise.
24585 (CFLAGS-ppoll.c): Likewise.
24586 (CFLAGS-lockf.c): Likewise.
24587 (CFLAGS-statfs.c): Likewise.
24588 (CFLAGS-fstatfs.c): Likewise.
24589 (CFLAGS-statvfs.c): Likewise.
24590 (CFLAGS-fstatvfs.c): Likewise.
24591 (CFLAGS-fts.c): Likewise.
24592 (CFLAGS-fts64.c): Likewise.
24593 (CFLAGS-ftw.c): Likewise.
24594 (CFLAGS-ftw64.c): Likewise.
24595 (CFLAGS-lockf.c): Likewise.
24596 (CFLAGS-posix_fallocate.c): Likewise.
24597 (CFLAGS-posix_fallocate64.c): Likewise.
24598 (CFLAGS-fallocate.c): Likewise.
24599 (CFLAGS-fallocate64.c): Likewise.
24600 (CFLAGS-read.c): Likewise.
24601 (CFLAGS-write.c): Likewise.
24602 (CFLAGS-test-stat.c): Likewise.
24603 (CFLAGS-test-lfs.c): Likewise.
24604 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24605 (CFLAGS-fputc.c): Likewise.
24606 (CFLAGS-fputwc.c): Likewise.
24607 (CFLAGS-freopen64.c): Likewise.
24608 (CFLAGS-freopen.c): Likewise.
24609 (CFLAGS-fseek.c): Likewise.
24610 (CFLAGS-fseeko64.c): Likewise.
24611 (CFLAGS-fseeko.c): Likewise.
24612 (CFLAGS-ftello64.c): Likewise.
24613 (CFLAGS-ftello.c): Likewise.
24614 (CFLAGS-fwide.c): Likewise.
24615 (CFLAGS-genops.c): Likewise.
24616 (CFLAGS-getc.c): Likewise.
24617 (CFLAGS-getchar.c): Likewise.
24618 (CFLAGS-getwc.c): Likewise.
24619 (CFLAGS-getwchar.c): Likewise.
24620 (CFLAGS-iofclose.c): Likewise.
24621 (CFLAGS-iofflush.c): Likewise.
24622 (CFLAGS-iofgetpos64.c): Likewise.
24623 (CFLAGS-iofgetpos.c): Likewise.
24624 (CFLAGS-iofgets.c): Likewise.
24625 (CFLAGS-iofgetws.c): Likewise.
24626 (CFLAGS-iofputs.c): Likewise.
24627 (CFLAGS-iofputws.c): Likewise.
24628 (CFLAGS-iofread.c): Likewise.
24629 (CFLAGS-iofsetpos64.c): Likewise.
24630 (CFLAGS-iofsetpos.c): Likewise.
24631 (CFLAGS-ioftell.c): Likewise.
24632 (CFLAGS-iofwrite.c): Likewise.
24633 (CFLAGS-iogetdelim.c): Likewise.
24634 (CFLAGS-iogetline.c): Likewise.
24635 (CFLAGS-iogets.c): Likewise.
24636 (CFLAGS-iogetwline.c): Likewise.
24637 (CFLAGS-ioputs.c): Likewise.
24638 (CFLAGS-ioseekoff.c): Likewise.
24639 (CFLAGS-ioseekpos.c): Likewise.
24640 (CFLAGS-iosetbuffer.c): Likewise.
24641 (CFLAGS-iosetvbuf.c): Likewise.
24642 (CFLAGS-ioungetc.c): Likewise.
24643 (CFLAGS-ioungetwc.c): Likewise.
24644 (CFLAGS-oldfileops.c): Likewise.
24645 (CFLAGS-oldiofclose.c): Likewise.
24646 (CFLAGS-oldiofgetpos64.c): Likewise.
24647 (CFLAGS-oldiofgetpos.c): Likewise.
24648 (CFLAGS-oldiofsetpos64.c): Likewise.
24649 (CFLAGS-oldiofsetpos.c): Likewise.
24650 (CFLAGS-peekc.c): Likewise.
24651 (CFLAGS-putc.c): Likewise.
24652 (CFLAGS-putchar.c): Likewise.
24653 (CFLAGS-putwc.c): Likewise.
24654 (CFLAGS-putwchar.c): Likewise.
24655 (CFLAGS-rewind.c): Likewise.
24656 (CFLAGS-wfileops.c): Likewise.
24657 (CFLAGS-wgenops.c): Likewise.
24658 (CFLAGS-oldiofopen.c): Likewise.
24659 (CFLAGS-iofopen.c): Likewise.
24660 (CFLAGS-iofopen64.c): Likewise.
24661 (CFLAGS-oldtmpfile.c): Likewise.
24662 (CFLAGS-tst_putwc.c): Likewise.
24663 * locale/Makefile (CFLAGS-md5.c): Likewise.
24664 (CFLAGS-charmap.c): Likewise.
24665 (CFLAGS-locfile.c): Likewise.
24666 (CFLAGS-charmap-dir.c): Likewise.
24667 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24668 (CFLAGS-getpt.c): Likewise.
24669 (CFLAGS-pt_chown.c): Likewise.
24670 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24671 (CFLAGS-obstack.c): Likewise.
24672 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24673 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24674 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24675 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24676 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24677 (CFLAGS-test-tgmath.c): Likewise.
24678 (CFLAGS-test-tgmath2.c): Likewise.
24679 (CFLAGS-test-tgmath-ret.c): Likewise.
24680 (CFLAGS-test-powl.c): Likewise.
24681 (CFLAGS-test-snan.c): Likewise.
24682 (CFLAGS-test-signgam-finite.c): Likewise.
24683 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24684 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24685 (CFLAGS-test-signgam-uchar.c): Likewise.
24686 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24687 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24688 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24689 (CFLAGS-test-signgam-uint.c): Likewise.
24690 (CFLAGS-test-signgam-uint-init.c): Likewise.
24691 (CFLAGS-test-signgam-uint-static.c): Likewise.
24692 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24693 (CFLAGS-test-signgam-ullong.c): Likewise.
24694 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24695 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24696 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24697 (CFLAGS-test-math-cxx11.cc): Likewise.
24698 (CFLAGS-test-math-isinff.cc): Likewise.
24699 (CFLAGS-test-math-iszero.cc): Likewise.
24700 (CFLAGS-test-math-issignaling.cc): Likewise.
24701 (CFLAGS-test-math-iscanonical.cc): Likewise.
24702 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24703 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24704 (CFLAGS-test-flt-eval-method.c): Likewise.
24705 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24706 (CFLAGS-test-finite-macros.c): Likewise.
24707 * misc/Makefile (CFLAGS-select.c): Likewise.
24708 (CFLAGS-tsearch.c): Likewise.
24709 (CFLAGS-lsearch.c): Likewise.
24710 (CFLAGS-pselect.c): Likewise.
24711 (CFLAGS-readv.c): Likewise.
24712 (CFLAGS-writev.c): Likewise.
24713 (CFLAGS-preadv.c): Likewise.
24714 (CFLAGS-preadv64.c): Likewise.
24715 (CFLAGS-pwritev.c): Likewise.
24716 (CFLAGS-pwritev64.c): Likewise.
24717 (CFLAGS-preadv2.c): Likewise.
24718 (CFLAGS-preadv64v2.c): Likewise.
24719 (CFLAGS-pwritev2.c): Likewise.
24720 (CFLAGS-pwritev64v2.c): Likewise.
24721 (CFLAGS-usleep.c): Likewise.
24722 (CFLAGS-syslog.c): Likewise.
24723 (CFLAGS-error.c): Likewise.
24724 (CFLAGS-getpass.c): Likewise.
24725 (CFLAGS-mkstemp.c): Likewise.
24726 (CFLAGS-mkstemp64.c): Likewise.
24727 (CFLAGS-getsysstats.c): Likewise.
24728 (CFLAGS-getusershell.c): Likewise.
24729 (CFLAGS-err.c): Likewise.
24730 (CFLAGS-tst-tsearch.c): Likewise.
24731 (CFLAGS-msync.c): Likewise.
24732 (CFLAGS-fdatasync.c): Likewise.
24733 (CFLAGS-fsync.c): Likewise.
24734 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24735 (CFLAGS-unwind.c): Likewise.
24736 (CFLAGS-unwind-forcedunwind.c): Likewise.
24737 (CFLAGS-pthread_cancel.c): Likewise.
24738 (CFLAGS-pthread_setcancelstate.c): Likewise.
24739 (CFLAGS-pthread_setcanceltype.c): Likewise.
24740 (CFLAGS-cancellation.c): Likewise.
24741 (CFLAGS-libc-cancellation.c): Likewise.
24742 (CFLAGS-pthread_exit.c): Likewise.
24743 (CFLAGS-forward.c): Likewise.
24744 (CFLAGS-pthread_testcancel.c): Likewise.
24745 (CFLAGS-pthread_join.c): Likewise.
24746 (CFLAGS-pthread_timedjoin.c): Likewise.
24747 (CFLAGS-pthread_once.c): Likewise.
24748 (CFLAGS-pthread_cond_wait.c): Likewise.
24749 (CFLAGS-sem_wait.c): Likewise.
24750 (CFLAGS-sem_timedwait.c): Likewise.
24751 (CFLAGS-fcntl.c): Likewise.
24752 (CFLAGS-lockf.c): Likewise.
24753 (CFLAGS-pread.c): Likewise.
24754 (CFLAGS-pread64.c): Likewise.
24755 (CFLAGS-pwrite.c): Likewise.
24756 (CFLAGS-pwrite64.c): Likewise.
24757 (CFLAGS-wait.c): Likewise.
24758 (CFLAGS-waitpid.c): Likewise.
24759 (CFLAGS-sigwait.c): Likewise.
24760 (CFLAGS-msgrcv.c): Likewise.
24761 (CFLAGS-msgsnd.c): Likewise.
24762 (CFLAGS-tcdrain.c): Likewise.
24763 (CFLAGS-open.c): Likewise.
24764 (CFLAGS-open64.c): Likewise.
24765 (CFLAGS-pause.c): Likewise.
24766 (CFLAGS-recv.c): Likewise.
24767 (CFLAGS-send.c): Likewise.
24768 (CFLAGS-accept.c): Likewise.
24769 (CFLAGS-sendto.c): Likewise.
24770 (CFLAGS-connect.c): Likewise.
24771 (CFLAGS-recvfrom.c): Likewise.
24772 (CFLAGS-recvmsg.c): Likewise.
24773 (CFLAGS-sendmsg.c): Likewise.
24774 (CFLAGS-close.c): Likewise.
24775 (CFLAGS-read.c): Likewise.
24776 (CFLAGS-write.c): Likewise.
24777 (CFLAGS-nanosleep.c): Likewise.
24778 (CFLAGS-sigsuspend.c): Likewise.
24779 (CFLAGS-msync.c): Likewise.
24780 (CFLAGS-fdatasync.c): Likewise.
24781 (CFLAGS-fsync.c): Likewise.
24782 (CFLAGS-pt-system.c): Likewise.
24783 (CFLAGS-tst-cleanup2.c): Likewise.
24784 (CFLAGS-tst-cleanupx2.c): Likewise.
24785 (CFLAGS-flockfile.c): Likewise.
24786 (CFLAGS-ftrylockfile.c): Likewise.
24787 (CFLAGS-funlockfile.c): Likewise.
24788 (CFLAGS-tst-initializers1.c): Likewise.
24789 (CFLAGS-tst-initializers1-c89.c): Likewise.
24790 (CFLAGS-tst-initializers1-c99.c): Likewise.
24791 (CFLAGS-tst-initializers1-c11.c): Likewise.
24792 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24793 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24794 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24795 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24796 (CFLAGS-nscd_getgr_r.c): Likewise.
24797 (CFLAGS-nscd_gethst_r.c): Likewise.
24798 (CFLAGS-nscd_getai.c): Likewise.
24799 (CFLAGS-nscd_initgroups.c): Likewise.
24800 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24801 (CFLAGS-pause.c): Likewise.
24802 (CFLAGS-pread.c): Likewise.
24803 (CFLAGS-pread64.c): Likewise.
24804 (CFLAGS-pwrite.c): Likewise.
24805 (CFLAGS-pwrite64.c): Likewise.
24806 (CFLAGS-sleep.c): Likewise.
24807 (CFLAGS-wait.c): Likewise.
24808 (CFLAGS-waitid.c): Likewise.
24809 (CFLAGS-waitpid.c): Likewise.
24810 (CFLAGS-getopt.c): Likewise.
24811 (CFLAGS-wordexp.c): Likewise.
24812 (CFLAGS-sysconf.c): Likewise.
24813 (CFLAGS-pathconf.c): Likewise.
24814 (CFLAGS-fpathconf.c): Likewise.
24815 (CFLAGS-spawn.c): Likewise.
24816 (CFLAGS-spawnp.c): Likewise.
24817 (CFLAGS-spawni.c): Likewise.
24818 (CFLAGS-glob.c): Likewise.
24819 (CFLAGS-glob64.c): Likewise.
24820 (CFLAGS-getconf.c): Likewise.
24821 (CFLAGS-nanosleep.c): Likewise.
24822 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24823 (CFLAGS-getpwent.c): Likewise.
24824 (CFLAGS-getpw.c): Likewise.
24825 (CFLAGS-fgetpwent_r.c): Likewise.
24826 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24827 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24828 (CFLAGS-mq_timedreceive.c): Likewise.
24829 (CFLAGS-mq_timedsend.c): Likewise.
24830 (CFLAGS-clock_nanosleep.c): Likewise.
24831 (CFLAGS-librt-cancellation.c): Likewise.
24832 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24833 (CFLAGS-getspent.c): Likewise.
24834 (CFLAGS-fgetspent.c): Likewise.
24835 (CFLAGS-fgetspent_r.c): Likewise.
24836 (CFLAGS-putspent.c): Likewise.
24837 (CFLAGS-getspnam.c): Likewise.
24838 (CFLAGS-getspnam_r.c): Likewise.
24839 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24840 (CFLAGS-sigsuspend.c): Likewise.
24841 (CFLAGS-sigtimedwait.c): Likewise.
24842 (CFLAGS-sigwait.c): Likewise.
24843 (CFLAGS-sigwaitinfo.c): Likewise.
24844 (CFLAGS-sigreturn.c): Likewise.
24845 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24846 (CFLAGS-vfwprintf.c): Likewise.
24847 (CFLAGS-tmpfile.c): Likewise.
24848 (CFLAGS-tmpfile64.c): Likewise.
24849 (CFLAGS-tempname.c): Likewise.
24850 (CFLAGS-psignal.c): Likewise.
24851 (CFLAGS-vprintf.c): Likewise.
24852 (CFLAGS-cuserid.c): Likewise.
24853 (CFLAGS-errlist.c): Likewise.
24854 (CFLAGS-siglist.c): Likewise.
24855 (CFLAGS-scanf15.c): Likewise.
24856 (CFLAGS-scanf17.c): Likewise.
24857 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24858 (CFLAGS-msort.c): Likewise.
24859 (CFLAGS-qsort.c): Likewise.
24860 (CFLAGS-system.c): Likewise.
24861 (CFLAGS-fmtmsg.c): Likewise.
24862 (CFLAGS-strfmon.c): Likewise.
24863 (CFLAGS-strfmon_l.c): Likewise.
24864 (CFLAGS-strfromd.c): Likewise.
24865 (CFLAGS-strfromf.c): Likewise.
24866 (CFLAGS-strfroml.c): Likewise.
24867 (CFLAGS-tst-bsearch.c): Likewise.
24868 (CFLAGS-tst-qsort.c): Likewise.
24869 (CFLAGS-tst-makecontext2.c): Likewise.
24870 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24871 (CFLAGS-xnlm_prot.c): Likewise.
24872 (CFLAGS-xrstat.c): Likewise.
24873 (CFLAGS-xyppasswd.c): Likewise.
24874 (CFLAGS-xklm_prot.c): Likewise.
24875 (CFLAGS-xrex.c): Likewise.
24876 (CFLAGS-xsm_inter.c): Likewise.
24877 (CFLAGS-xmount.c): Likewise.
24878 (CFLAGS-xrusers.c): Likewise.
24879 (CFLAGS-xspray.c): Likewise.
24880 (CFLAGS-xnfs_prot.c): Likewise.
24881 (CFLAGS-xrquota.c): Likewise.
24882 (CFLAGS-xkey_prot.c): Likewise.
24883 (CFLAGS-auth_unix.c): Likewise.
24884 (CFLAGS-key_call.c): Likewise.
24885 (CFLAGS-pmap_rmt.c): Likewise.
24886 (CFLAGS-clnt_perr.c): Likewise.
24887 (CFLAGS-openchild.c): Likewise.
24888 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24889 (CFLAGS-msgsnd.c): Likewise.
24890 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24891 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24892 (CFLAGS-tzset.c): Likewise.
24893 (CFLAGS-getdate.c): Likewise.
24894 (CFLAGS-test_time.c): Likewise.
24895 (CPPFLAGS-tst-tzname.c): Likewise.
24896 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24897 (CFLAGS-zic.c): Likewise.
24898 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24899 (CFLAGS-wcswidth.c): Likewise.
24900 (CFLAGS-wcstol.c): Likewise.
24901 (CFLAGS-wcstoul.c): Likewise.
24902 (CFLAGS-wcstoll.c): Likewise.
24903 (CFLAGS-wcstoull.c): Likewise.
24904 (CFLAGS-wcstod.c): Likewise.
24905 (CFLAGS-wcstold.c): Likewise.
24906 (CFLAGS-wcstof128.c): Likewise.
24907 (CFLAGS-wcstof.c): Likewise.
24908 (CFLAGS-wcstol_l.c): Likewise.
24909 (CFLAGS-wcstoul_l.c): Likewise.
24910 (CFLAGS-wcstoll_l.c): Likewise.
24911 (CFLAGS-wcstoull_l.c): Likewise.
24912 (CFLAGS-wcstod_l.c): Likewise.
24913 (CFLAGS-wcstold_l.c): Likewise.
24914 (CFLAGS-wcstof128_l.c): Likewise.
24915 (CFLAGS-wcstof_l.c): Likewise.
24916 (CPPFLAGS-tst-wchar-h.c): Likewise.
24917 (CPPFLAGS-wcstold_l.c): Likewise.
24918
24919 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24920
24921 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24922
24923 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24924 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24925
24926 * manual/tunables.texi (Hardware Capability Tunables): Document
24927 glibc.tune.cached_memopt.
24928 * sysdeps/powerpc/cpu-features.c: New file.
24929 * sysdeps/powerpc/cpu-features.h: New file.
24930 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24931 _dl_powerpc_cpu_features.
24932 * sysdeps/powerpc/dl-tunables.list: New file.
24933 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24934 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24935 (INIT_ARCH): Initialize use_aligned_memopt.
24936 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24937 IS_IN(rtld))]: Restrict dl_platform_init availability and
24938 initialize CPU features used by tunables.
24939 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24940 Add memcpy-power8-cached.
24941 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24942 __memcpy_power8_cached.
24943 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24944 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24945 New file.
24946
24947 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24948
24949 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24950 (CFLAGS-noinl-tester.c): Likewise.
24951 (CFLAGS-tst-strlen.c): Likewise.
24952 (CFLAGS-stratcliff.c): Likewise.
24953 (CFLAGS-test-ffs.c): Likewise.
24954 (CFLAGS-tst-inlcall.c): Likewise.
24955 (CFLAGS-tst-xbzero-opt.c): Likewise.
24956 (CFLAGS-memcpy.c): Likewise.
24957 (CFLAGS-wordcopy.c): Likewise.
24958
24959 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24960
24961 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24962 Store r15 on stack and add cfi rule.
24963 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24964 Likewise.
24965
24966 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24967
24968 [BZ #22577]
24969 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24970 call.
24971
24972 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24973
24974 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24975 Add s_sinf-sse2 and s_sinf-fma.
24976 (CFLAGS-s_sinf-fma.c): New.
24977 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24978 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24979 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24980
24981 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24982
24983 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24984
24985 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24986
24987 [BZ #22568]
24988 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24989 part of result to imaginary part of argument if it is zero and the
24990 real part of the argument is not finite.
24991 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24992 of result to real part of argument if it is zero and the imaginary
24993 part of the argument is not finite.
24994
24995 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24996
24997 [BZ #22524]
24998 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24999 and to the list of locales to be built for testing.
25000 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25001 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
25002 and build the collation rules upon that.
25003
25004 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25005
25006 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25007 * manual/math.texi (Mathematics): Document support for _Float32.
25008 * math/Makefile (test-types): Add float32.
25009 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25010 * stdlib/Versions (GLIBC_2.27): Likewise.
25011 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25012 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25013 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25014 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25015 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25016 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25017 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25018 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25019 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25020 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25021 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25022 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25023 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25024 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25025 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25026 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25027 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25028 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25029 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25030 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25031 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25032 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25033 Likewise.
25034 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25035 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25036 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25037 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25038 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25040 Likewise.
25041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25042 Likewise.
25043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25044 Likewise.
25045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25046 Likewise.
25047
25048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25049 Likewise.
25050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25051 Likewise.
25052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25053 Likewise.
25054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25055 Likewise.
25056 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25057 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25058 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25059 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25060 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25061 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25062 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25063 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25064 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25065 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25066 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25067 Likewise.
25068 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25069 Likewise.
25070 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25071 Likewise.
25072 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25073 Likewise.
25074 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25075 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25076 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25077 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25078 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25079 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25080 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25081 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25082
25083 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25084
25085 * stdlib/strtof.c: Include <bits/floatn.h>
25086 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25087 and later undefine as macro. Define as weak alias if
25088 [!USE_WIDE_CHAR].
25089 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25090 and later undefine as macro. Define as weak alias if
25091 [USE_WIDE_CHAR].
25092 * stdlib/strtof_l.c: Include <bits/floatn.h>
25093 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25094 and later undefine as macro. Define as weak alias if
25095 [!USE_WIDE_CHAR].
25096 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25097 and later undefine as macro. Define as weak alias if
25098 [USE_WIDE_CHAR].
25099
25100 * stdlib/strfromf.c: Include <bits/floatn.h>.
25101 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25102 and later undefine as macro and define as weak alias.
25103
25104 * math/test-float32.h: New file.
25105
25106 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25107 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25108 (libm_alias_float_other_r): Create f32 alias.
25109 (libm_alias_float_r): Use semicolon before call to
25110 libm_alias_float_other_r.
25111
25112 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25113 second argument to libm_alias_float_other.
25114 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25115 second argument to libm_alias_float_other.
25116 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25117 argument to libm_alias_float_other.
25118
25119 [BZ #22561]
25120 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25121 real part of result for argument 0 + i * NaN.
25122 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25123 results for tests of 0 + i * NaN.
25124
25125 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25126
25127 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25128
25129 2017-12-06 David S. Miller <davem@davemloft.net>
25130
25131 * sysdeps/sparc/fpu/libm-test-ulps: Update
25132 exp_{downward,towardzero,upward} ulps.
25133
25134 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25135
25136 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25137 variables static.
25138
25139 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25140 (Y0_2D): Likewise.
25141 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25142 (Y0_2D): Likewise.
25143 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25144 (Y0_2D): Likewise.
25145 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25146 (Y0_2D): Likewise.
25147
25148 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25149
25150 [BZ #22515]
25151 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25152 and to the list of locales to be built for testing.
25153 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25154 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25155 and build the collation rules upon that.
25156
25157 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25158
25159 * NEWS: Add sinf to list of optimized functions.
25160
25161 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25162
25163 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25164 (__HAVE_FLOAT32X): Likewise.
25165 * manual/math.texi (Mathematics): Document support for _Float64
25166 and _Float32x.
25167 * math/Makefile (test-types): Add float64 and float32x.
25168 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25169 functions.
25170 * stdlib/Versions (GLIBC_2.27): Likewise.
25171 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25172 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25173 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25174 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25175 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25176 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25177 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25178 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25179 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25180 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25181 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25182 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25183 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25184 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25185 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25186 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25187 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25188 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25189 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25190 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25191 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25192 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25193 Likewise.
25194 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25195 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25196 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25197 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25198 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25200 Likewise.
25201 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25202 Likewise.
25203 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25204 Likewise.
25205 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25206 Likewise.
25207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25208 Likewise.
25209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25210 Likewise.
25211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25212 Likewise.
25213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25214 Likewise.
25215 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25216 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25217 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25218 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25219 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25220 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25221 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25222 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25223 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25224 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25225 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25226 Likewise.
25227 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25228 Likewise.
25229 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25230 Likewise.
25231 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25232 Likewise.
25233 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25234 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25235 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25236 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25237 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25238 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25239 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25240 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25241
25242 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25243
25244 * bits/floatn-common.h: Include <bits/long-double.h>.
25245 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25246 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25247 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25248 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25249 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25250 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25251 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25252 (__builtin_huge_valf64): Use __builtin_huge_vall.
25253 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25254 (__builtin_inff64): Use __builtin_infl.
25255 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25256 (__builtin_nanf64): Use __builtin_nanl.
25257 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25258 (__builtin_nansf64): Use __builtin_nansl.
25259
25260 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25261 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25262 Carlos O'Donell <carlos@redhat.com>
25263
25264 * elf/dl-tunables.list: Add elision parameters.
25265 * manual/tunables.texi: Add entries about elision tunable.
25266 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25267 Add callback functions to dynamically enable/disable elision.
25268 Add multiple callbacks functions to set elision parameters.
25269 Deleted __libc_enable_secure check.
25270 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25271 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25272 * configure: Regenerated.
25273 * configure.ac: Option enable_lock_elision was deleted.
25274 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25275 * config.make.in: Remove references to enable_lock_elision.
25276 * manual/install.texi: Elision configure option was removed.
25277 * INSTALL: Regenerated to remove enable_lock_elision.
25278 * nptl/Makefile:
25279 Disable elision so it can verify error case for destroying a mutex.
25280 * sysdeps/powerpc/nptl/elide.h:
25281 Cleanup ENABLE_LOCK_ELISION check.
25282 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25283 * sysdeps/s390/configure: Regenerated.
25284 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25285 * nptl/tst-mutex8.c:
25286 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25287 * sysdeps/powerpc/powerpc32/sysdep.h:
25288 Deleted all ENABLE_LOCK_ELISION checks.
25289 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25290 * sysdeps/powerpc/sysdep.h: Likewise.
25291 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25292 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25293 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25294 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25295 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25296 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25297 enable-lock-elision.
25298
25299 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25300
25301 * stdlib/strtod.c: Include <bits/floatn.h>.
25302 (BUILD_DOUBLE): New macro.
25303 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25304 (strtof64): Define and later undefine as macro. Define as weak
25305 alias if [!USE_WIDE_CHAR].
25306 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25307 (wcstof64): Define and later undefine as macro. Define as weak
25308 alias if [USE_WIDE_CHAR].
25309 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25310 (strtof32x): Define and later undefine as macro. Define as weak
25311 alias if [!USE_WIDE_CHAR].
25312 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25313 (wcstof32x): Define and later undefine as macro. Define as weak
25314 alias if [USE_WIDE_CHAR].
25315 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25316 (BUILD_DOUBLE): New macro.
25317 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25318 (strtof64_l): Define and later undefine as macro. Define as weak
25319 alias if [!USE_WIDE_CHAR].
25320 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25321 (wcstof64_l): Define and later undefine as macro. Define as weak
25322 alias if [USE_WIDE_CHAR].
25323 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25324 (strtof32x_l): Define and later undefine as macro. Define as weak
25325 alias if [!USE_WIDE_CHAR].
25326 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25327 (wcstof32x_l): Define and later undefine as macro. Define as weak
25328 alias if [USE_WIDE_CHAR].
25329
25330 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25331
25332 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25333 (reduced): Use ones as double instead of integer.
25334
25335 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25336
25337 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25338
25339 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25340
25341 * stdlib/strfromd.c: Include <bits/floatn.h>.
25342 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25343 and later undefine as macro and define as weak alias.
25344 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25345 Likewise.
25346
25347 * math/test-float32x.h: New file.
25348 * math/test-float64.h: Likewise.
25349
25350 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25351 (libm_alias_double_other_r_f64): New macro.
25352 (libm_alias_double_other_r_f32x): Likewise.
25353 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25354 libm_alias_double_other_r_f32x.
25355 (libm_alias_double_r): Use semicolon before call to
25356 libm_alias_double_other_r.
25357 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25358 <bits/floatn.h>.
25359 (libm_alias_double_other_r_f64): New macro.
25360 (libm_alias_double_other_r_f32x): Likewise.
25361 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25362 libm_alias_double_other_r_f32x.
25363
25364 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25365
25366 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25367 int.
25368 (SINF_FUNC): Likewise. Replace floor with simple casts.
25369
25370 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25371
25372 [BZ #22517]
25373 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25374 and to the list of locales to be built for testing.
25375 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25376 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25377 and build the collation rules upon that.
25378
25379 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25380
25381 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25382 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25383 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25384 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25385 instead of __insn__xxx.
25386 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25387 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25388 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25389 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25390 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25391 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25392
25393 2017-12-05 Florian Weimer <fweimer@redhat.com>
25394
25395 Linux: Implement interfaces for memory protection keys
25396 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25397 xsignal, xsysconf.
25398 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25399 * support/xunistd.h (xsysconf): Declare.
25400 * support/xraise.c: New file.
25401 * support/xsigaction.c: Likewise.
25402 * support/xsignal.c: Likewise.
25403 * support/xsysconf.c: Likewise.
25404 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25405 pkey_set, pkey_get, pkey_mprotect.
25406 [misc] (tests): Add tst-pkey.
25407 (tst-pkey): Link with -lpthread.
25408 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25409 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25410 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25411 (PKEY_DISABLE_WRITE): Define.
25412 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25413 Declare.
25414 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25415 (SEGV_PKUERR): Add.
25416 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25417 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25418 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25419 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25420 Add.
25421 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25422 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25423 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25424 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25425 * sysdeps/unix/sysv/linux/**.abilist: Update.
25426
25427 2017-12-05 Florian Weimer <fweimer@redhat.com>
25428
25429 * support/tst-test_compare.c (subprocess): Use long long instead
25430 of long argument for consistent type width across 32-bit and
25431 64-bit architectures.
25432 (do_test): Adjust expected output.
25433
25434 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25435
25436 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25437 (cosf): Define using libm_alias_float.
25438 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25439 (fabsf): Define using libm_alias_float.
25440 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25441 (fmaf): Define using libm_alias_float.
25442 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25443 (rintf): Define using libm_alias_float.
25444 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25445 (sinf): Define using libm_alias_float.
25446 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25447 <libm-alias-float.h>.
25448 (modff): Define using libm_alias_float.
25449 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25450 <libm-alias-float.h>.
25451 (logbf): Define using libm_alias_float.
25452 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25453 <libm-alias-float.h>.
25454 (ceilf): Define using libm_alias_float.
25455 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25456 <libm-alias-float.h>.
25457 (copysignf): Define using libm_alias_float.
25458 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25459 <libm-alias-float.h>.
25460 (floorf): Define using libm_alias_float.
25461 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25462 <libm-alias-float.h>.
25463 (llrintf): Define using libm_alias_float.
25464 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25465 <libm-alias-float.h>.
25466 (llroundf): Define using libm_alias_float.
25467 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25468 <libm-alias-float.h>.
25469 (lrintf): Define using libm_alias_float.
25470 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25471 <libm-alias-float.h>.
25472 (lroundf): Define using libm_alias_float.
25473 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25474 <libm-alias-float.h>.
25475 (nearbyintf): Define using libm_alias_float.
25476 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25477 <libm-alias-float.h>.
25478 (rintf): Define using libm_alias_float.
25479 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25480 <libm-alias-float.h>.
25481 (roundf): Define using libm_alias_float.
25482 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25483 <libm-alias-float.h>.
25484 (truncf): Define using libm_alias_float.
25485 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25486 Include <libm-alias-float.h>.
25487 (ceilf): Define using libm_alias_float.
25488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25489 Include <libm-alias-float.h>.
25490 (copysignf): Define using libm_alias_float.
25491 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25492 Include <libm-alias-float.h>.
25493 (floorf): Define using libm_alias_float.
25494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25495 Include <libm-alias-float.h>.
25496 (llrintf): Define using libm_alias_float.
25497 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25498 Include <libm-alias-float.h>.
25499 (llroundf): Define using libm_alias_float.
25500 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25501 Include <libm-alias-float.h>.
25502 (logbf): Define using libm_alias_float.
25503 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25504 Include <libm-alias-float.h>.
25505 (lrintf): Define using libm_alias_float.
25506 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25507 Include <libm-alias-float.h>.
25508 (lroundf): Define using libm_alias_float.
25509 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25510 Include <libm-alias-float.h>.
25511 (modff): Define using libm_alias_float.
25512 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25513 Include <libm-alias-float.h>.
25514 (roundf): Define using libm_alias_float.
25515 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25516 Include <libm-alias-float.h>.
25517 (truncf): Define using libm_alias_float.
25518 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25519 <libm-alias-float.h>.
25520 (llrintf): Define using libm_alias_float.
25521 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25522 <libm-alias-float.h>.
25523 (llroundf): Define using libm_alias_float.
25524 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25525 <libm-alias-float.h>.
25526 (ceilf): Define using libm_alias_float.
25527 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25528 <libm-alias-float.h>.
25529 (floorf): Define using libm_alias_float.
25530 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25531 <libm-alias-float.h>.
25532 (llroundf): Define using libm_alias_float.
25533 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25534 <libm-alias-float.h>.
25535 (lroundf): Define using libm_alias_float.
25536 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25537 <libm-alias-float.h>.
25538 (roundf): Define using libm_alias_float.
25539 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25540 <libm-alias-float.h>.
25541 (truncf): Define using libm_alias_float.
25542 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25543 <libm-alias-float.h>.
25544 (copysignf): Define using libm_alias_float.
25545 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25546 <libm-alias-float.h>.
25547 (llrintf): Define using libm_alias_float.
25548 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25549 <libm-alias-float.h>.
25550 (llroundf): Define using libm_alias_float.
25551 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25552 <libm-alias-float.h>.
25553 (lrintf): Define using libm_alias_float.
25554 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25555 <libm-alias-float.h>.
25556 (lroundf): Define using libm_alias_float.
25557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25558 <libm-alias-float.h>.
25559 (ceilf): Define using libm_alias_float.
25560 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25561 <libm-alias-float.h>.
25562 (copysignf): Define using libm_alias_float.
25563 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25564 <libm-alias-float.h>.
25565 (cosf): Define using libm_alias_float.
25566 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25567 <libm-alias-float.h>.
25568 (floorf): Define using libm_alias_float.
25569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25570 <libm-alias-float.h>.
25571 (llrintf): Define using libm_alias_float.
25572 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25573 <libm-alias-float.h>.
25574 (llroundf): Define using libm_alias_float.
25575 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25576 <libm-alias-float.h>.
25577 (logbf): Define using libm_alias_float.
25578 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25579 <libm-alias-float.h>.
25580 (modff): Define using libm_alias_float.
25581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25582 <libm-alias-float.h>.
25583 (roundf): Define using libm_alias_float.
25584 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25585 <libm-alias-float.h>.
25586 (sinf): Define using libm_alias_float.
25587 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25588 <libm-alias-float.h>.
25589 (truncf): Define using libm_alias_float.
25590 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25591 <libm-alias-float.h>.
25592 (ceilf): Define using libm_alias_float.
25593 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25594 <libm-alias-float.h>.
25595 (copysignf): Define using libm_alias_float.
25596 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25597 <libm-alias-float.h>.
25598 (floorf): Define using libm_alias_float.
25599 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25600 <libm-alias-float.h>.
25601 (llrintf): Define using libm_alias_float.
25602 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25603 <libm-alias-float.h>.
25604 (llroundf): Define using libm_alias_float.
25605 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25606 <libm-alias-float.h>.
25607 (nearbyintf): Define using libm_alias_float.
25608 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25609 <libm-alias-float.h>.
25610 (rintf): Define using libm_alias_float.
25611 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25612 <libm-alias-float.h>.
25613 (roundf): Define using libm_alias_float.
25614 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25615 <libm-alias-float.h>.
25616 (truncf): Define using libm_alias_float.
25617 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25618 <libm-alias-float.h>.
25619 (ceilf): Define using libm_alias_float.
25620 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25621 <libm-alias-float.h>.
25622 (floorf): Define using libm_alias_float.
25623 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25624 <libm-alias-float.h>.
25625 (llroundf): Define using libm_alias_float.
25626 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25627 <libm-alias-float.h>.
25628 (roundf): Define using libm_alias_float.
25629 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25630 <libm-alias-float.h>.
25631 (truncf): Define using libm_alias_float.
25632 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25633 <libm-alias-float.h>.
25634 (copysignf): Define using libm_alias_float.
25635 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25636 <libm-alias-float.h>.
25637 (llrintf): Define using libm_alias_float.
25638 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25639 <libm-alias-float.h>.
25640 (llroundf): Define using libm_alias_float.
25641 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25642 <libm-alias-float.h>.
25643 (cosf): Define using libm_alias_float.
25644 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25645 <libm-alias-float.h>.
25646 (llrintf): Define using libm_alias_float.
25647 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25648 <libm-alias-float.h>.
25649 (llroundf): Define using libm_alias_float.
25650 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25651 <libm-alias-float.h>.
25652 (sinf): Define using libm_alias_float.
25653
25654 2017-12-04 Florian Weimer <fweimer@redhat.com>
25655
25656 * support/check.h (TEST_COMPARE): Define.
25657 (support_test_compare_failure): Declare.
25658 * support/Makefile (libsupport-routines): Add
25659 support_test_compare_failure.
25660 (tests): Add tst-test_compare.
25661 * support /support_test_compare_failure.c: New file.
25662 * support/tst-test_compare.c: Likewise.
25663
25664 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25665
25666 [BZ #22527]
25667 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25668 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25669 available, this rewrite of the collation rules does reproduce
25670 the test file in the same order.
25671
25672 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25673
25674 [BZ #10580]
25675 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25676 digraphs in the month and day names. Using single code points for
25677 digraphs is deprecated. While there are dedicated Unicode
25678 codepoints, for the digraphs, these are included for backwards
25679 compatibility and modern texts use a sequence of Basic Latin
25680 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25681 This makes the month and day names agree exactly with CLDR now,
25682 CLDR does not use the single code points for the digraphs either.
25683
25684 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25685
25686 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25687
25688 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25689
25690 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25691 of floor.
25692
25693 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25694
25695 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25696 Define only for libc.so.
25697
25698 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25699
25700 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25701 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25702 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25703 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25704 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25705
25706 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25707
25708 [BZ #5997]
25709 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25710
25711 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25712
25713 [BZ libc/19170]
25714 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25715 PREINIT_FUNCTION_WEAK is nonzero.
25716 (gmon_initializer): New function. Put procedure label for it in
25717 .init_array section.
25718 (_init): Don't call PREINIT_FUNCTION.
25719 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25720 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25721 value when map argument is null.
25722
25723 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25724 depi instruction from PIC pc-relative sequence.
25725 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25726 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25727 (elf_machine_load_address): Likewise.
25728 (elf_machine_runtime_setup): Likewise.
25729
25730 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25731
25732 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25733 <libm-alias-double.h>.
25734 (logb): Define using libm_alias_double.
25735 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25736 <libm-alias-double.h>.
25737 (copysign): Define using libm_alias_double.
25738 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25739 <libm-alias-double.h>.
25740 (llrint): Define using libm_alias_double.
25741 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25742 <libm-alias-double.h>.
25743 (llround): Define using libm_alias_double.
25744 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25745 <libm-alias-double.h>.
25746 (lrint): Define using libm_alias_double.
25747 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25748 <libm-alias-double.h>.
25749 (lround): Define using libm_alias_double.
25750 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25751 Include <libm-alias-double.h>.
25752 (copysign): Define using libm_alias_double.
25753 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25754 Include <libm-alias-double.h>.
25755 (llrint): Define using libm_alias_double.
25756 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25757 Include <libm-alias-double.h>.
25758 (llround): Define using libm_alias_double.
25759 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25760 <libm-alias-double.h>.
25761 (logb): Define using libm_alias_double.
25762 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25763 Include <libm-alias-double.h>.
25764 (lrint): Define using libm_alias_double.
25765 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25766 Include <libm-alias-double.h>.
25767 (lround): Define using libm_alias_double.
25768 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25769 <libm-alias-double.h>.
25770 (llrint): Define using libm_alias_double.
25771 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25772 <libm-alias-double.h>.
25773 (llround): Define using libm_alias_double.
25774 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25775 <libm-alias-double.h>.
25776 (llround): Define using libm_alias_double.
25777 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25778 <libm-alias-double.h>.
25779 (lround): Define using libm_alias_double.
25780 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25781 <libm-alias-double.h>.
25782 (copysign): Define using libm_alias_double.
25783 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25784 <libm-alias-double.h>.
25785 (llrint): Define using libm_alias_double.
25786 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25787 <libm-alias-double.h>.
25788 (llround): Define using libm_alias_double.
25789 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25790 <libm-alias-double.h>.
25791 (lrint): Define using libm_alias_double.
25792 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25793 <libm-alias-double.h>.
25794 (lround): Define using libm_alias_double.
25795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25796 <libm-alias-double.h>.
25797 (copysign): Define using libm_alias_double.
25798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25799 <libm-alias-double.h>.
25800 (llrint): Define using libm_alias_double.
25801 (lrint): Likewise.
25802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25803 <libm-alias-double.h>.
25804 (llround): Define using libm_alias_double.
25805 (lround): Likewise.
25806 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25807 <libm-alias-double.h>.
25808 (logb): Define using libm_alias_double.
25809 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25810 <libm-alias-double.h>.
25811 (copysign): Define using libm_alias_double.
25812 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25813 <libm-alias-double.h>.
25814 (llrint): Define using libm_alias_double.
25815 (lrint): Likewise.
25816 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25817 <libm-alias-double.h>.
25818 (llround): Define using libm_alias_double.
25819 (lround): Likewise.
25820 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25821 <libm-alias-double.h>.
25822 (llround): Define using libm_alias_double.
25823 (lround): Likewise.
25824 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25825 <libm-alias-double.h>.
25826 (copysign): Define using libm_alias_double.
25827 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25828 <libm-alias-double.h>.
25829 (llrint): Define using libm_alias_double.
25830 (lrint): Likewise.
25831 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25832 <libm-alias-double.h>.
25833 (llround): Define using libm_alias_double.
25834 (lround): Likewise.
25835 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25836 <libm-alias-double.h>.
25837 (llrint): Define using libm_alias_double.
25838 (lrint): Likewise.
25839 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25840 <libm-alias-double.h>.
25841 (llround): Define using libm_alias_double.
25842 (lround): Likewise.
25843
25844 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25845
25846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25847 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25848 compat symbol based on llround.
25849
25850 * sysdeps/powerpc/power7/fpu/s_logb.c
25851 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25852 symbol based on __logb, not on logb.
25853 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25854 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25856 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25857
25858 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25859 (rint): Define using libm_alias_double.
25860 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25861 <libm-alias-double.h>.
25862 (modf): Define using libm_alias_double.
25863 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25864 <libm-alias-double.h>.
25865 (ceil): Define using libm_alias_double.
25866 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25867 <libm-alias-double.h>.
25868 (floor): Define using libm_alias_double.
25869 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25870 <libm-alias-double.h>.
25871 (nearbyint): Define using libm_alias_double.
25872 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25873 <libm-alias-double.h>.
25874 (rint): Define using libm_alias_double.
25875 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25876 <libm-alias-double.h>.
25877 (round): Define using libm_alias_double.
25878 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25879 <libm-alias-double.h>.
25880 (trunc): Define using libm_alias_double.
25881 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25882 <libm-alias-double.h>.
25883 (ceil): Define using libm_alias_double.
25884 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25885 Include <libm-alias-double.h>.
25886 (floor): Define using libm_alias_double.
25887 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25888 <libm-alias-double.h>.
25889 (modf): Define using libm_alias_double.
25890 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25891 Include <libm-alias-double.h>.
25892 (round): Define using libm_alias_double.
25893 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25894 Include <libm-alias-double.h>.
25895 (trunc): Define using libm_alias_double.
25896 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25897 <libm-alias-double.h>.
25898 (ceil): Define using libm_alias_double.
25899 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25900 <libm-alias-double.h>.
25901 (floor): Define using libm_alias_double.
25902 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25903 <libm-alias-double.h>.
25904 (round): Define using libm_alias_double.
25905 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25906 <libm-alias-double.h>.
25907 (trunc): Define using libm_alias_double.
25908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25909 <libm-alias-double.h>.
25910 (ceil): Define using libm_alias_double.
25911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25912 <libm-alias-double.h>.
25913 (floor): Define using libm_alias_double.
25914 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25915 <libm-alias-double.h>.
25916 (modf): Define using libm_alias_double.
25917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25918 <libm-alias-double.h>.
25919 (round): Define using libm_alias_double.
25920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25921 <libm-alias-double.h>.
25922 (trunc): Define using libm_alias_double.
25923 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25924 <libm-alias-double.h>.
25925 (ceil): Define using libm_alias_double.
25926 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25927 <libm-alias-double.h>.
25928 (floor): Define using libm_alias_double.
25929 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25930 <libm-alias-double.h>.
25931 (nearbyint): Define using libm_alias_double.
25932 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25933 <libm-alias-double.h>.
25934 (rint): Define using libm_alias_double.
25935 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25936 <libm-alias-double.h>.
25937 (round): Define using libm_alias_double.
25938 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25939 <libm-alias-double.h>.
25940 (trunc): Define using libm_alias_double.
25941 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25942 <libm-alias-double.h>.
25943 (ceil): Define using libm_alias_double.
25944 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25945 <libm-alias-double.h>.
25946 (floor): Define using libm_alias_double.
25947 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25948 <libm-alias-double.h>.
25949 (round): Define using libm_alias_double.
25950 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25951 <libm-alias-double.h>.
25952 (trunc): Define using libm_alias_double.
25953
25954 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25955 (fabs): Define using libm_alias_double.
25956 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25957 (fma): Define using libm_alias_double.
25958 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25959 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25960 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25961 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25962
25963 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25964
25965 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25966
25967 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25968 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25969 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25970
25971 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25972 due redirect macro.
25973
25974 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25975
25976 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25977
25978 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25979
25980 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25981 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25982 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25983 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25984
25985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25986 (libm-sysdep_routines): Add s_nearbyintf-generic and
25987 s_nearbyint-generic.
25988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25989 New file.
25990 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25991 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25992 Likewise.
25993 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25994 Likewise.
25995 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25996 file.
25997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25998 Likewise.
25999
26000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26001 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26003 file.
26004 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26005 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26006 Likewise.
26007 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26008 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26009 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26010
26011 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26012 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26014 file.
26015 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26017 Likewise.
26018 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26020 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26021
26022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26023 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26024 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26025 file.
26026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26027 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26028 Likewise.
26029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26030 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26031 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26032
26033 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26034 (sysdep_calls): New rule.
26035 (sysdep_routines): Use sysdep_calls as base.
26036 (libm-sysdep_routines): Add generic rule for symbols shared with
26037 libc. Add s_copysign-generic and s_copysign-generic objects.
26038 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26039 New file.
26040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26041 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26042 Likewise.
26043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26044 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26046
26047 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26048
26049 [BZ #22519]
26050 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26051 the list of locales to be built for testing.
26052 * localedata/is_IS.UTF-8.in: New file.
26053 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26054 on iso14651_t1.
26055
26056 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26057
26058 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26059 <libm-alias-float.h>.
26060 (fabsf): Define using libm_alias_float.
26061
26062 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26063
26064 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26065
26066 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26067
26068 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26069 <libm-alias-float.h>.
26070 (fabsf): Define using libm_alias_float.
26071 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26072 <libm-alias-float.h>.
26073 (lrintf): Define using libm_alias_float.
26074 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26075 <libm-alias-float.h>.
26076 (rintf): Define using libm_alias_float.
26077
26078 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26079 <libm-alias-double.h>.
26080 (fabs): Define using libm_alias_double.
26081 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26082 <libm-alias-double.h>.
26083 (lrint): Define using libm_alias_double.
26084 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26085 <libm-alias-double.h>.
26086 (rint): Define using libm_alias_double.
26087
26088 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26089 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26090 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26091 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26092 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26093 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26094 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26095 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26096 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26097 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26098 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26099 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26100 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26101 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26102 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26103 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26104 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26105 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26106 s_atan_template.c.
26107 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26108 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26109 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26110 s_ceil_template.c.
26111 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26112 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26113 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26114 s_cos_template.c.
26115 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26116 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26117 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26118 s_expm1_template.c.
26119 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26120 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26121 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26122 s_fabs_template.c.
26123 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26124 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26125 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26126 s_floor_template.c.
26127 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26128 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26129 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26130 s_frexp_template.c.
26131 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26132 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26133 s_lrint_template.c.
26134 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26135 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26136 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26137 s_modf_template.c.
26138 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26139 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26140 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26141 s_nearbyint_template.c.
26142 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26143 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26144 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26145 s_remquo_template.c.
26146 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26147 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26148 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26149 s_rint_template.c.
26150 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26151 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26152 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26153 s_sin_template.c.
26154 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26155 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26156 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26157 s_sincos_template.c.
26158 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26159 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26160 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26161 s_tan_template.c.
26162 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26163 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26164 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26165 s_tanh_template.c.
26166 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26167 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26168 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26169 s_trunc_template.c.
26170 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26171 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26172 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26173 s_atan.c instead of including s_atan.c.
26174 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26175 s_atanf.c instead of including s_atanf.c.
26176 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26177 s_atanl.c instead of including s_atanl.c.
26178 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26179 instead of s_atan.c.
26180 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26181 instead of s_atanf.c.
26182 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26183 instead of s_atanl.c.
26184
26185 * scripts/update-copyrights: Do not handle intl/plural.c
26186 specially.
26187
26188 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26189
26190 [BZ #22432]
26191 * configure.ac (BISON): Require to be present.
26192 * configure: Regenerated.
26193 * intl/Makefile (generated): Add plural.c.
26194 [$(BISON) != no]: Make code unconditional.
26195 (plural.c): Change rule to $(objpfx)plural.c.
26196 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26197 * intl/plural.c: Remove.
26198 * manual/install.texi (Tools for Compilation): Document bison as
26199 required.
26200 * INSTALL: Regenerated.
26201
26202 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26203
26204 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26205 <libm-alias-double.h>.
26206 (llrint): Define using libm_alias_double.
26207 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26208 <libm-alias-float.h>.
26209 (llrintf): Define using libm_alias_float.
26210 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26211 <libm-alias-ldouble.h>.
26212 (llrintl): Define using libm_alias_ldouble.
26213
26214 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26215 declare_mgen_alias instead of weak_alias.
26216 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26217 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26218 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26219
26220 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26221
26222 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26223 Add add_n-generic.
26224 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26225 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26226 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26227
26228 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26229 Add submul_1-generic.
26230 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26231 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26232 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26233
26234 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26235 Add addmul_1-generic.
26236 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26237 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26238 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26239
26240 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26241 Add sub_n-generic.
26242 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26243 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26244 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26245
26246 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26247 Add mul_1-generic.
26248 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26249 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26250 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26251
26252 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26253
26254 According to CLDR, collation rules for Serbian and Bosnian
26255 should be the same as for Croatian.
26256
26257 [BZ #22534]
26258 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26259 and to the list of locales to be built for testing.
26260 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26261 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26262 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26263 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26264
26265 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26266
26267 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26268 to make test case pass.
26269 * localedata/hr_HR.UTF-8.in: Add more test strings.
26270
26271 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26272
26273 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26274
26275 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26276
26277 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26278 the list of locales to built for testing.
26279 * localedata/hr_HR.UTF-8.in: New file.
26280
26281 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26282
26283 [BZ #10580]
26284 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26285 iso14651_t1.
26286 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26287 CLDR (except use ligatures for the digraphs, CLDR does not use
26288 the ligatures), add first_workday, some fixes in the date and time
26289 formats.
26290 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26291 for Đ and đ.
26292 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26293 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26294 Add int_p_cs_precedes and int_n_cs_precedes.
26295 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26296 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26297 LC_MONETARY now).
26298 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26299 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26300 name_miss.
26301 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26302 and lang_lib. Change postal_fmt.
26303
26304 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26305
26306 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26307 <setjmp.h>.
26308 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26309 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26310 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26311 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26312 * sysdeps/generic/setjmpP.h: New file.
26313 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26314 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26315 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26316 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26317 Add jmp_buf-ssp.sym.
26318 (tests): Add tst-saved_mask-1.
26319
26320 2017-11-30 Arjun Shankar <arjun@redhat.com>
26321
26322 [BZ #22375]
26323 CVE-2017-17426
26324 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26325 instead of request2size.
26326
26327 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26328
26329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26330 (__lllrint): Remove alias.
26331 (lllrint): Likewise.
26332 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26333 (__lllrintf): Likewise.
26334 (lllrintf): Likewise.
26335
26336 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26337 <libm-alias-float.h>.
26338 (copysignf): Define using libm_alias_float.
26339 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26340 <libm-alias-float.h>.
26341 (fabsf): Define using libm_alias_float.
26342 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26343 Include <libm-alias-float.h>.
26344 (copysignf): Define using libm_alias_float.
26345 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26346 <libm-alias-float.h>.
26347 (fabsf): Define using libm_alias_float.
26348 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26349 <libm-alias-float.h>.
26350 (fdimf): Define using libm_alias_float.
26351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26352 <libm-alias-float.h>.
26353 (fmaf): Define using libm_alias_float.
26354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26355 <libm-alias-float.h>.
26356 (llrintf): Define using libm_alias_float.
26357 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26358 Include <libm-alias-float.h>.
26359 (nearbyintf): Define using libm_alias_float.
26360 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26361 <libm-alias-float.h>.
26362 (rintf): Define using libm_alias_float.
26363 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26364 <libm-alias-float.h>.
26365 (llrintf): Define using libm_alias_float.
26366 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26367 <libm-alias-float.h>.
26368 (lrintf): Define using libm_alias_float.
26369 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26370 <libm-alias-float.h>.
26371 (nearbyintf): Define using libm_alias_float.
26372 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26373 <libm-alias-float.h>.
26374 (rintf): Define using libm_alias_float.
26375 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26376 <libm-alias-float.h>.
26377 (ceilf): Define using libm_alias_float.
26378 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26379 <libm-alias-float.h>.
26380 (floorf): Define using libm_alias_float.
26381 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26382 <libm-alias-float.h>.
26383 (fmaf): Define using libm_alias_float.
26384 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26385 <libm-alias-float.h>.
26386 (lrintf): Define using libm_alias_float.
26387 (llrintf): Likewise.
26388 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26389 <libm-alias-float.h>.
26390 (nearbyintf): Define using libm_alias_float.
26391 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26392 <libm-alias-float.h>.
26393 (rintf): Define using libm_alias_float.
26394 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26395 <libm-alias-float.h>.
26396 (truncf): Define using libm_alias_float.
26397 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26398 <libm-alias-float.h>.
26399 (copysignf): Define using libm_alias_float.
26400 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26401 <libm-alias-float.h>.
26402 (fabsf): Define using libm_alias_float.
26403 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26404 <libm-alias-float.h>.
26405 (lrintf): Define using libm_alias_float.
26406 (llrintf): Likewise.
26407 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26408 <libm-alias-float.h>.
26409 (nearbyintf): Define using libm_alias_float.
26410 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26411 <libm-alias-float.h>.
26412 (rintf): Define using libm_alias_float.
26413
26414 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26415
26416 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26417 <libm-alias-double.h>.
26418 (copysign): Define using libm_alias_double.
26419 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26420 <libm-alias-double.h>.
26421 (fabs): Define using libm_alias_double.
26422 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26423 Include <libm-alias-double.h>.
26424 (copysign): Define using libm_alias_double.
26425 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26426 <libm-alias-double.h>.
26427 (fabs): Define using libm_alias_double.
26428 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26429 <libm-alias-double.h>.
26430 (fdim): Define using libm_alias_double.
26431 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26432 <libm-alias-double.h>.
26433 (fma): Define using libm_alias_double.
26434 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26435 <libm-alias-double.h>.
26436 (llrint): Define using libm_alias_double.
26437 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26438 Include <libm-alias-double.h>.
26439 (nearbyint): Define using libm_alias_double.
26440 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26441 <libm-alias-double.h>.
26442 (rint): Define using libm_alias_double.
26443 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26444 <libm-alias-double.h>.
26445 (fabs): Define using libm_alias_double.
26446 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26447 <libm-alias-double.h>.
26448 (llrint): Define using libm_alias_double.
26449 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26450 <libm-alias-double.h>.
26451 (nearbyint): Define using libm_alias_double.
26452 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26453 <libm-alias-double.h>.
26454 (rint): Define using libm_alias_double.
26455 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26456 <libm-alias-double.h>.
26457 (ceil): Define using libm_alias_double.
26458 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26459 <libm-alias-double.h>.
26460 (floor): Define using libm_alias_double.
26461 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26462 <libm-alias-double.h>.
26463 (fma): Define using libm_alias_double.
26464 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26465 <libm-alias-double.h>.
26466 (lrint): Define using libm_alias_double.
26467 (llrint): Likewise.
26468 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26469 <libm-alias-double.h>.
26470 (nearbyint): Define using libm_alias_double.
26471 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26472 <libm-alias-double.h>.
26473 (rint): Define using libm_alias_double.
26474 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26475 <libm-alias-double.h>.
26476 (trunc): Define using libm_alias_double.
26477 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26478 <libm-alias-double.h>.
26479 (copysign): Define using libm_alias_double.
26480 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26481 <libm-alias-double.h>.
26482 (fabs): Define using libm_alias_double.
26483 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26484 <libm-alias-double.h>.
26485 (lrint): Define using libm_alias_double.
26486 (llrint): Likewise.
26487 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26488 <libm-alias-double.h>.
26489 (nearbyint): Define using libm_alias_double.
26490 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26491 <libm-alias-double.h>.
26492 (rint): Define using libm_alias_double.
26493
26494 [BZ #22229]
26495 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26496 <math_ldbl_opt.h>.
26497 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26498
26499 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26500 SPARC --disable-multi-arch glibc variants.
26501
26502 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26503 <libm-alias-float.h>.
26504 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26505 if [SHARED].
26506 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26507 <libm-alias-float.h>.
26508 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26509 if [SHARED].
26510 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26511 <libm-alias-float.h>.
26512 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26513 if [SHARED].
26514 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26515 <libm-alias-float.h>.
26516 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26517 if [SHARED].
26518 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26519 <libm-alias-float.h>.
26520 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26521 if [SHARED].
26522 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26523 <libm-alias-float.h>.
26524 (ceilf): Define using libm_alias_float.
26525 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26526 <libm-alias-float.h>.
26527 (floorf): Define using libm_alias_float.
26528 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26529 <libm-alias-float.h>.
26530 (fmaf): Define using libm_alias_float.
26531 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26532 <libm-alias-float.h>.
26533 (nearbyintf): Define using libm_alias_float.
26534 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26535 <libm-alias-float.h>.
26536 (rintf): Define using libm_alias_float.
26537 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26538 <libm-alias-float.h>.
26539 (truncf): Define using libm_alias_float.
26540 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26541 (copysignf): Define using libm_alias_float.
26542 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26543 (cosf): Define using libm_alias_float.
26544 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26545 (fabsf): Define using libm_alias_float.
26546 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26547 (fmaxf): Define using libm_alias_float.
26548 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26549 (fminf): Define using libm_alias_float.
26550 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26551 (llrintf): Define using libm_alias_float.
26552 [!__ILP32__] (lrintf): Likewise.
26553 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26554 (sincosf): Define using libm_alias_float.
26555 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26556 (sinf): Define using libm_alias_float.
26557 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26558 (lrintf): Define using libm_alias_float.
26559
26560 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26561 <libm-alias-double.h>.
26562 (atan): Define using libm_alias_double.
26563 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26564 <libm-alias-double.h>.
26565 (ceil): Define using libm_alias_double.
26566 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26567 <libm-alias-double.h>.
26568 (floor): Define using libm_alias_double.
26569 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26570 <libm-alias-double.h>.
26571 (fma): Define using libm_alias_double.
26572 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26573 <libm-alias-double.h>.
26574 (nearbyint): Define using libm_alias_double.
26575 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26576 <libm-alias-double.h>.
26577 (rint): Define using libm_alias_double.
26578 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26579 <libm-alias-double.h>.
26580 (sin): Define using libm_alias_double.
26581 (cos): Likewise.
26582 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26583 <libm-alias-double.h>.
26584 (tan): Define using libm_alias_double.
26585 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26586 <libm-alias-double.h>.
26587 (trunc): Define using libm_alias_double.
26588 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26589 (copysign): Define using libm_alias_double.
26590 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26591 (fabs): Define using libm_alias_double.
26592 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26593 (fmax): Define using libm_alias_double.
26594 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26595 (fmin): Define using libm_alias_double.
26596 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26597 (llrint): Define using libm_alias_double.
26598 [!__ILP32__] (lrint): Likewise.
26599 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26600 (lrint): Define using libm_alias_double.
26601
26602 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26603
26604 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26605 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26606 objects.
26607 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26608 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26609 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26610 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26611 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26612 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26613
26614 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26615 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26616 objects.
26617 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26618 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26619 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26620 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26621 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26622 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26623
26624 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26625 (libm-sysdep_routines): Add s_nearbyint-generic and
26626 s_nearbyintf-generic objects.
26627 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26628 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26629 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26630 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26631 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26632 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26633
26634 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26635 Add s_finitef-generic and s_finite-generic objects.
26636 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26637 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26638 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26639 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26640 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26641 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26642
26643 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26644 Add s_isinff-generic and s_isinf-generic objects.
26645 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26646 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26647 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26648 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26649 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26650 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26651
26652 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26653 Add s_isnanf-generic and s_isnan-generic objects.
26654 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26655 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26656 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26657 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26658 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26659 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26660
26661 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26662 macro.
26663 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26664 rule.
26665 (sysdep_routines): Use sysdep_calls as base.
26666 (libm-sysdep_routines): Add generic rule for symbols shared with
26667 libc. Add s_signbit-generic and s_signbitf-generic objects.
26668 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26669 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26670 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26671 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26672 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26673 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26674
26675 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26676
26677 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26678 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26679 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26680 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26681 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26682 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26683 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26684 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26685 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26686 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26687 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26688 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26689 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26690 libm_alias_float_r.
26691 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26692 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26693 (logf): Likewise.
26694 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26695 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26696 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26697 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26698 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26699 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26700 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26701 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26702 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26703 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26704 libm_alias_float.
26705 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26706 (cosf): Likewise.
26707 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26708 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26709 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26710 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26711 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26712 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26713 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26714 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26715 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26716 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26717 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26718 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26719 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26720 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26721 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26722 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26723 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26724 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26725 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26726 libm_alias_float.
26727 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26728 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26729 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26730 * sysdeps/ia64/fpu/w_lgammaf_main.c
26731 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26732 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26733
26734 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26735 Alexandre Oliva <aoliva@redhat.com>
26736
26737 [BZ #17750]
26738 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26739 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26740 accents sorting.
26741 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26742 sorting.
26743 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26744 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26745 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26746 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26747 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26748 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26749 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26750 instead of “ifdef DIACRIT_BACKWARD”.
26751
26752 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26753
26754 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26755 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26756 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26757 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26758 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26759 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26760 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26761 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26762 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26763 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26764 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26765 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26766 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26767 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26768 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26769 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26770 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26771 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26772 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26773 ($(have-as-vis3) == yes): Remove conditional.
26774 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26775 Likewise.
26776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26777 file.
26778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26779 file.
26780 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26781 file.
26782 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26783 file.
26784 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26785 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26786 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26787 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26788 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26789 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26790 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26791 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26792
26793 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26794
26795 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26796 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26797 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26798 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26799 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26800 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26801 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26802 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26803 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26804 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26805 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26806 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26807 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26808 libm_alias_double_r.
26809 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26810 (log): Likewise.
26811 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26812 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26813 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26814 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26815 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26816 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26817 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26818 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26819 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26820 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26821 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26822 libm_alias_double.
26823 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26824 (cos): Likewise.
26825 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26826 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26827 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26828 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26829 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26830 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26831 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26832 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26833 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26834 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26835 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26836 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26837 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26838 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26839 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26840 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26841 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26842 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26843 libm_alias_double.
26844 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26845 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26846 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26847 * sysdeps/ia64/fpu/w_lgamma_main.c
26848 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26849 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26850
26851 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26852
26853 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26854 address of $global$ into %dp register earlier. Use pc-relative
26855 instruction sequence for PIC case.
26856
26857 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26858
26859 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26860 (asinhf): Define using libm_alias_float.
26861 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26862 (atanf): Define using libm_alias_float.
26863 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26864 (cbrtf): Define using libm_alias_float.
26865 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26866 (ceilf): Define using libm_alias_float.
26867 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26868 (copysignf): Define using libm_alias_float.
26869 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26870 (expm1f): Define using libm_alias_float.
26871 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26872 (fabsf): Define using libm_alias_float.
26873 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26874 (floorf): Define using libm_alias_float.
26875 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26876 (fmaxf): Define using libm_alias_float.
26877 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26878 (fminf): Define using libm_alias_float.
26879 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26880 (frexpf): Define using libm_alias_float.
26881 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26882 (llrintf): Define using libm_alias_float.
26883 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26884 (logbf): Define using libm_alias_float.
26885 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26886 (lrintf): Define using libm_alias_float.
26887 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26888 (nearbyintf): Define using libm_alias_float.
26889 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26890 (remquof): Define using libm_alias_float.
26891 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26892 (rintf): Define using libm_alias_float.
26893 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26894 (truncf): Define using libm_alias_float.
26895 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26896 <libm-alias-float.h>.
26897 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26898 if [SHARED].
26899 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26900 <libm-alias-float.h>.
26901 (expf): Define using libm_alias_float, or libm_alias_float_other
26902 if [SHARED].
26903 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26904 <libm-alias-float.h>.
26905 (log2f): Define using libm_alias_float, or libm_alias_float_other
26906 if [SHARED].
26907 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26908 <libm-alias-float.h>.
26909 (logf): Define using libm_alias_float, or libm_alias_float_other
26910 if [SHARED].
26911 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26912 <libm-alias-float.h>.
26913 (powf): Define using libm_alias_float, or libm_alias_float_other
26914 if [SHARED].
26915 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26916 <libm-alias-float.h>.
26917 (cosf): Define using libm_alias_float.
26918 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26919 <libm-alias-float.h>.
26920 (sincosf): Define using libm_alias_float.
26921 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26922 <libm-alias-float.h>.
26923 (sinf): Define using libm_alias_float.
26924 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26925 (fmaxf): Define using libm_alias_float.
26926 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26927 (fminf): Define using libm_alias_float.
26928 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26929 <libm-alias-float.h>.
26930 (fmaf): Define using libm_alias_float.
26931
26932 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26933 (asinh): Define using libm_alias_double.
26934 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26935 (atan): Define using libm_alias_double.
26936 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26937 (cbrt): Define using libm_alias_double.
26938 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26939 (ceil): Define using libm_alias_double.
26940 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26941 (copysign): Define using libm_alias_double.
26942 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26943 (expm1): Define using libm_alias_double.
26944 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26945 (fabs): Define using libm_alias_double.
26946 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26947 (fdim): Define using libm_alias_double.
26948 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26949 (floor): Define using libm_alias_double.
26950 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26951 (fmax): Define using libm_alias_double.
26952 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26953 (fmin): Define using libm_alias_double.
26954 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26955 (frexp): Define using libm_alias_double.
26956 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26957 (llrint): Define using libm_alias_double.
26958 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26959 (logb): Define using libm_alias_double.
26960 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26961 (lrint): Define using libm_alias_double.
26962 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26963 (nearbyint): Define using libm_alias_double.
26964 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26965 (remquo): Define using libm_alias_double.
26966 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26967 (rint): Define using libm_alias_double.
26968 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26969 (trunc): Define using libm_alias_double.
26970 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26971 (fmax): Define using libm_alias_double.
26972 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26973 (fmin): Define using libm_alias_double.
26974 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26975 (fma): Define using libm_alias_double.
26976
26977 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26978
26979 [BZ #22370]
26980 * elf/dl-hwcaps.c (ROUND): Removed.
26981 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26982 and ELF_NOTE_NEXT_OFFSET.
26983 * elf/dl-load.c (ROUND): Removed.
26984 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26985 * elf/readelflib.c (ROUND): Removed.
26986 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26987 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26988 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26989 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26990
26991 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26992
26993 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26994 [!__fmaf] (fmaf): Define using libm_alias_float.
26995
26996 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26997 [!__fma] (fma): Define using libm_alias_double.
26998 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26999
27000 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27001
27002 [BZ #22336]
27003 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
27004 and implement the collation rules for cs from CLDR on top of that.
27005 * Makefile: Add cs_CZ.UTF-8 to test-input.
27006 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27007
27008 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27009
27010 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27011
27012 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27013 Icarus Sparry <icarus.w.sparry@intel.com>
27014
27015 * benchtests/Makefile:Add BENCHSET to allow subsets of
27016 benchmarks to be run.
27017 * benchtests/README: Add documentation for: Running subsets of
27018 benchmarks.
27019
27020 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27021
27022 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27023 range of tests names.
27024
27025 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27026 result from property and remove "max", min" and "mean" from
27027 required properties based on benchtests/bench-skeleton.c.
27028
27029 2017-11-28 Florian Weimer <fweimer@redhat.com>
27030
27031 [BZ #20826]
27032 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27033 due to Internet requirement.
27034 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27035 tst-getaddrinfo5.
27036 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27037
27038 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27039
27040 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27041 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27042 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27043 (sysdep_routines): Add memset-ultra1.
27044 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27045 file.
27046 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27047 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27048 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27049 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27050 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27051 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27052 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27053 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27054
27055 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27056 file.
27057 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27058 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27059 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27060 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27061 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27062 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27063 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27064 macro.
27065 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27066 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27067 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27068 (sysdep_routines): Add memcpy-ultra1.
27069 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27070 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27071
27072 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27073
27074 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27075 (cfloat_versions): Take function argument without trailing 'f'.
27076 Call libm_alias_float_other.
27077 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27078 * sysdeps/alpha/fpu/cargf.c: Likewise.
27079 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27080 * sysdeps/alpha/fpu/conjf.c: Likewise.
27081 * sysdeps/alpha/fpu/crealf.c: Likewise.
27082 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27083 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27084 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27085 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27086 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27087 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27088 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27089 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27090 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27091 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27092 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27093 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27094 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27095 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27096 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27097 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27098 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27099 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27100 (clog10f): Use libm_alias_float_other.
27101 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27102 (ceilf): Define using libm_alias_float.
27103 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27104 (copysignf): Define using libm_alias_float.
27105 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27106 (fabsf): Define using libm_alias_float.
27107 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27108 (floorf): Define using libm_alias_float.
27109 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27110 (fmaxf): Define using libm_alias_float.
27111 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27112 (fminf): Define using libm_alias_float.
27113 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27114 (lrintf): Define using libm_alias_float.
27115 (llrintf): Likewise.
27116 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27117 (lroundf): Define using libm_alias_float.
27118 (llroundf): Likewise.
27119 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27120 (rintf): Define using libm_alias_float.
27121 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27122 (truncf): Define using libm_alias_float.
27123
27124 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27125 (ceilf): Define using libm_alias_float.
27126 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27127 (floorf): Define using libm_alias_float.
27128 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27129 (fmaf): Define using libm_alias_float.
27130 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27131 (fmaxf): Define using libm_alias_float.
27132 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27133 (fminf): Define using libm_alias_float.
27134 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27135 (llrintf): Define using libm_alias_float.
27136 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27137 (llroundf): Define using libm_alias_float.
27138 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27139 (lrintf): Define using libm_alias_float.
27140 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27141 (lroundf): Define using libm_alias_float.
27142 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27143 <libm-alias-float.h>.
27144 (nearbyintf): Define using libm_alias_float.
27145 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27146 (rintf): Define using libm_alias_float.
27147 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27148 (roundf): Define using libm_alias_float.
27149 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27150 (truncf): Define using libm_alias_float.
27151
27152 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27153 (ceil): Define using libm_alias_double.
27154 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27155 (copysign): Define using libm_alias_double.
27156 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27157 (fabs): Define using libm_alias_double.
27158 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27159 (floor): Define using libm_alias_double.
27160 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27161 (fmax): Define using libm_alias_double.
27162 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27163 (fmin): Define using libm_alias_double.
27164 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27165 (lrint): Define using libm_alias_double.
27166 (llrint): Likewise.
27167 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27168 (lround): Define using libm_alias_double.
27169 (llround): Likewise.
27170 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27171 (rint): Define using libm_alias_double.
27172 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27173 (trunc): Define using libm_alias_double.
27174
27175 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27176 (libm_alias_double_r): Add semicolon after weak_alias call.
27177
27178 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27179
27180 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27181 (ceil): Define using libm_alias_double.
27182 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27183 (floor): Define using libm_alias_double.
27184 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27185 (fma): Define using libm_alias_double.
27186 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27187 (fmax): Define using libm_alias_double.
27188 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27189 (fmin): Define using libm_alias_double.
27190 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27191 (llrint): Define using libm_alias_double.
27192 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27193 (llround): Define using libm_alias_double.
27194 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27195 (lrint): Define using libm_alias_double.
27196 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27197 (lround): Define using libm_alias_double.
27198 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27199 (nearbyint): Define using libm_alias_double.
27200 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27201 (rint): Define using libm_alias_double.
27202 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27203 (round): Define using libm_alias_double.
27204 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27205 (trunc): Define using libm_alias_double.
27206
27207 2017-11-27 Florian Weimer <fweimer@redhat.com>
27208
27209 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27210 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27211 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27212 (tests): Add tst-mlock2.
27213 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27214 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27215 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27216 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27217 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27218 for mlock. Document mlock2.
27219
27220 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27221
27222 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27223 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27224 Likewise.
27225 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27226 Likewise.
27227 * sysdeps/x86/Makeconfig: New file.
27228 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27229 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27230 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27231 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27232 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27233 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27234 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27235 Likewise.
27236 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27237 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27238 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27239 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27240 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27241 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27242 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27243 * manual/math.texi (Mathematics): Document support for _Float64x.
27244 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27245 * stdlib/Versions (GLIBC_2.27): Likewise.
27246 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27247 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27248 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27249 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27250 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27251 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27252 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27253 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27254 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27255 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27256 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27257 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27259 Likewise.
27260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27261 Likewise.
27262 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27263 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27264 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27265 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27266 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27267 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27268 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27269 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27270 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27271 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27272 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27273 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27274 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27275 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27276
27277 2017-11-27 Andreas Schwab <schwab@suse.de>
27278
27279 * elf/Makefile (dl-routines): Add dl-sort-maps.
27280 * elf/dl-sort-maps.c: New file.
27281 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27282 (_dl_sort_maps): Declare.
27283 * elf/dl-fini.c (_dl_sort_fini): Remove.
27284 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27285 * elf/dl-close.c (_dl_close_worker): Likewise.
27286 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27287 open-coding it.
27288 * elf/dl-open.c (dl_open_worker): Likewise.
27289
27290 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27291
27292 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27293 using libm_alias_float128.
27294 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27295 Likewise.
27296 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27297 Likewise.
27298 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27299 (setpayloadsigf128): Likewise.
27300 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27301 Likewise.
27302 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27303 Likewise.
27304
27305 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27306 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27307 -mfloat128 to CFLAGS.
27308 ($(foreach
27309 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27310 Likewise.
27311 (CFLAGS-libm-test-support-float64x.c): New variable.
27312 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27313 $(f128-loader-link) to gnulib-tests.
27314
27315 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27316 (libm_alias_float128_other_r): If
27317 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27318 alias.
27319 (libm_alias_float128_r): Add semicolon after weak_alias call.
27320 * sysdeps/generic/libm-alias-ldouble.h
27321 (libm_alias_ldouble_other_r_f128): New macro.
27322 (libm_alias_ldouble_other_r_f64x): Likewise.
27323 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27324 and libm_alias_ldouble_other_r_f64x.
27325 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27326 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27327 (libm_alias_ldouble_other_r_f128): New macro.
27328 (libm_alias_ldouble_other_r_f64x): Likewise.
27329 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27330 and libm_alias_ldouble_other_r_f64x.
27331
27332 * stdlib/strfroml.c: Always include <stdlib.h>.
27333 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27334 undefine as macro and define as weak alias.
27335 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27336 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27337 <stdlib.h>.
27338 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27339 Define and later undefine as macro and define as weak alias.
27340
27341 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27342 Define and later undefine as macro. Define as weak alias if
27343 [!USE_WIDE_CHAR].
27344 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27345 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27346 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27347 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27348 Define and later undefine as macro. Define as weak alias if
27349 [!USE_WIDE_CHAR].
27350 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27351 Define and later undefine as macro. Define as weak alias if
27352 [USE_WIDE_CHAR].
27353 * sysdeps/ieee754/float128/strtof128_l.c
27354 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27355 Define and later undefine as macro. Define as weak alias if
27356 [!USE_WIDE_CHAR].
27357 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27358 Define and later undefine as macro. Define as weak alias if
27359 [USE_WIDE_CHAR].
27360 * sysdeps/ieee754/ldbl-128/strtold_l.c
27361 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27362 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27363 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27364 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27365 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27366 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27367 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27368 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27369 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27370 * sysdeps/ieee754/ldbl-96/strtold_l.c
27371 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27372 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27373 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27374 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27375
27376 * math/test-float64x.h: New file.
27377 * math/Makefile (type-float64x-yes): New variable.
27378 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27379
27380 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27381 function-like macro.
27382 (min_of_type_): Likewise.
27383 (min_of_type_l): Likewise.
27384 (min_of_type_f128): Likewise.
27385 (min_of_type): Pass () as last argument of __MATH_TG.
27386
27387 * stdlib/tst-strtod-round-skeleton.c
27388 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27389 headers.
27390
27391 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27392 for combinations of long double with _Float64 and _Float64x.
27393
27394 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27395 (__DECL_SIMD_cosf32): Likewise.
27396 (__DECL_SIMD_cosf64): Likewise.
27397 (__DECL_SIMD_cosf32x): Likewise.
27398 (__DECL_SIMD_cosf64x): Likewise.
27399 (__DECL_SIMD_cosf128x): Likewise.
27400 (__DECL_SIMD_sinf16): Likewise.
27401 (__DECL_SIMD_sinf32): Likewise.
27402 (__DECL_SIMD_sinf64): Likewise.
27403 (__DECL_SIMD_sinf32x): Likewise.
27404 (__DECL_SIMD_sinf64x): Likewise.
27405 (__DECL_SIMD_sinf128x): Likewise.
27406 (__DECL_SIMD_sincosf16): Likewise.
27407 (__DECL_SIMD_sincosf32): Likewise.
27408 (__DECL_SIMD_sincosf64): Likewise.
27409 (__DECL_SIMD_sincosf32x): Likewise.
27410 (__DECL_SIMD_sincosf64x): Likewise.
27411 (__DECL_SIMD_sincosf128x): Likewise.
27412 (__DECL_SIMD_logf16): Likewise.
27413 (__DECL_SIMD_logf32): Likewise.
27414 (__DECL_SIMD_logf64): Likewise.
27415 (__DECL_SIMD_logf32x): Likewise.
27416 (__DECL_SIMD_logf64x): Likewise.
27417 (__DECL_SIMD_logf128x): Likewise.
27418 (__DECL_SIMD_expf16): Likewise.
27419 (__DECL_SIMD_expf32): Likewise.
27420 (__DECL_SIMD_expf64): Likewise.
27421 (__DECL_SIMD_expf32x): Likewise.
27422 (__DECL_SIMD_expf64x): Likewise.
27423 (__DECL_SIMD_expf128x): Likewise.
27424 (__DECL_SIMD_powf16): Likewise.
27425 (__DECL_SIMD_powf32): Likewise.
27426 (__DECL_SIMD_powf64): Likewise.
27427 (__DECL_SIMD_powf32x): Likewise.
27428 (__DECL_SIMD_powf64x): Likewise.
27429 (__DECL_SIMD_powf128x): Likewise.
27430
27431 * stdlib/Versions (libc): Move entries for wcstof128 and
27432 wcstof128_l to ....
27433 * wcsmbs/Versions (libc): ... here.
27434 Include <float128-abi.h>.
27435
27436 2017-11-24 Florian Weimer <fweimer@redhat.com>
27437
27438 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27439 bits/mman-shared.h.
27440 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27441 <bits/mman-shared.h>.
27442 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27443 to ...
27444 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27445 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27446 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27447 <bits/mman-shared.h>.
27448
27449 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27450
27451 [BZ #22457]
27452 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27453 posix_memalign/free.
27454 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27455
27456 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27457
27458 [BZ #22469]
27459 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27460 and implement the collation rules for pl from CLDR on top of that.
27461 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27462 of locales to be built for testing.
27463 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27464
27465 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27466
27467 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27468 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27469 libm_alias_ldouble_other.
27470 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27471 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27472 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27473 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27474 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27475 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27476 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27477 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27478 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27479 libm_alias_ldouble_r.
27480 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27481 libm_alias_ldouble_other.
27482 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27483 (log10l): Likewise.
27484 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27485 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27486 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27487 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27488 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27489 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27490 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27491 (atan2l): Likewise.
27492 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27493 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27494 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27495 libm_alias_ldouble.
27496 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27497 (cosl): Likewise.
27498 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27499 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27500 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27501 (expl): Likewise.
27502 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27503 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27504 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27505 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27506 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27507 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27508 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27509 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27510 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27511 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27512 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27513 libm_alias_ldouble.
27514 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27515 libm_alias_ldouble_other.
27516 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27517 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27518 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27519 libm_alias_ldouble.
27520 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27521 libm_alias_ldouble_other.
27522 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27523 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27524 * sysdeps/ia64/fpu/w_lgammal_main.c
27525 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27526 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27527
27528 2017-11-23 Florian Weimer <fweimer@redhat.com>
27529
27530 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27531 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27532 alike. Remove freeres marker.
27533 * malloc/arena.c (arena_thread_freeres): Call
27534 tcache_thread_shutdown.
27535
27536 2017-11-23 Florian Weimer <fweimer@redhat.com>
27537
27538 [BZ #22459]
27539 Export nscd hash function as __nss_hash.
27540 * include/nss.h (__nss_hash): Declare.
27541 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27542 symbol.
27543 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27544 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27545 of __nscd_hash.
27546 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27547 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27548 * nss/Makefiles (routines): Add nss_hash.
27549 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27550 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27551 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27552 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27553
27554 2017-11-23 Florian Weimer <fweimer@redhat.com>
27555
27556 [BZ #22478]
27557 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27558 Return error code, not -1.
27559 * signal/tst-sigwait-eintr.c: New file.
27560 * signal/Makefile (tests): Add tst-sigwait-eintr.
27561
27562 2017-11-23 Florian Weimer <fweimer@redhat.com>
27563
27564 Linux: Add memfd_create system call wrapper
27565 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27566 tst-memfd_create.
27567 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27568 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27569 [__USE_GNU] (memfd_create): Declare.
27570 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27571 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27572 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27573 * sysdeps/unix/sysv/linux/**.abilist: Update.
27574 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27575
27576 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27577
27578 * localedata/gen-locale.sh: Fix typo in variable name.
27579
27580 * resolv/res_debug.c (p_secstodate): Condition definition on
27581 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27582 directly as __p_secstodate, and as a compat symbol. Do not use
27583 libresolv_hidden_def.
27584 * resolv/resolv.h (p_secstodate): Remove macro and function
27585 declaration.
27586 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27587 using p_secstodate.
27588 * include/resolv.h (__p_secstodate): Do not use
27589 libresolv_hidden_proto.
27590 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27591 (tests-internal): ... here.
27592 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27593 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27594 and declare and use __p_secstodate and use compat_symbol_reference
27595 in that case.
27596 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27597 implementation returning 77.
27598
27599 [BZ #22463]
27600 * resolv/res_debug.c: Include <libc-diag.h>.
27601 (p_secstodate): Assert time_t at least as wide as u_long. On
27602 overflow, use integer seconds since the epoch as output, or use
27603 "<overflow>" as output and set errno to EOVERFLOW if integer
27604 seconds since the epoch would be 14 or more characters.
27605 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27606 for sprintf call.
27607 * resolv/tst-p_secstodate.c: New file.
27608 * resolv/Makefile (tests): Add tst-p_secstodate.
27609 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27610
27611 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27612 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27613 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27614
27615 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27616
27617 * posix/regcomp.c (init_word_char): Add comments.
27618
27619 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27620
27621 [BZ #22447]
27622 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27623 strlen to compute length of ut_user and set trailing NUL byte of
27624 result explicitly.
27625
27626 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27627
27628 [BZ #15537]
27629 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27630 using “copy "iso14651_t1"” and then implementing the
27631 collation rules for lv from CLDR on top of that.
27632 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27633 of locales to be built for testing.
27634 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27635 sorting.
27636
27637 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27638
27639 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27640 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27641 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27642 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27643 [__USE_MISC] (MADV_HWPOISON): New macro.
27644 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27645
27646 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27647
27648 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27649 -Wmissing-braces on GCC 4.9.
27650
27651 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27652
27653 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27654 * sysdeps/s390/s390-32/start.S (_start): Likewise
27655 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27656 (thread_start): Likewise.
27657 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27658 (thread_start): Likewise.
27659 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27660 (__makecontext_ret): Likewise.
27661 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27662 (__makecontext_ret): Likewise.
27663
27664 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27665
27666 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27667 __wcschrnul): Remove attribute_hidden.
27668
27669 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27670
27671 regex: don't assume uint64_t or uint32_t
27672 This avoids -Werror=overflow errors for 32-bit systems in
27673 the 64-bit case. Problem reported by Joseph Myers in:
27674 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27675 Also, when this code is used in Gnulib it ports to platforms
27676 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27677 them, and on some 32-bit compilers there is no uint64_t.
27678 Problem reported by Gianluigi Tiesi in:
27679 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27680 * posix/regcomp.c (init_word_char): Don't assume that the types
27681 uint64_t and uint32_t exist. Adapted from Gnulib patch
27682 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27683 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27684
27685 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27686
27687 * sysdeps/aarch64/memset-reg.h: New file.
27688 * sysdeps/aarch64/memset.S: Use it.
27689 (__memset): Rename to MEMSET macro.
27690 [ZVA_MACRO]: Use zva_macro.
27691 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27692 Add memset_generic and memset_falkor.
27693 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27694 (__libc_ifunc_impl_list): Add memset ifuncs.
27695 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27696 local variable zva_size.
27697 * sysdeps/aarch64/multiarch/memset.c: New file.
27698 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27699 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27700 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27701 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27702 (DCZID_DZP_MASK): New macro.
27703 (DCZID_BS_MASK): Likewise.
27704 (init_cpu_features): Read and set zva_size.
27705 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27706 (struct cpu_features): New member zva_size.
27707
27708 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27709 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27710 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27711
27712 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27713 backwards. Fix timing computation.
27714 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27715 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27716 on memset by N at a time. Fix timing computation.
27717
27718 2017-11-20 Florian Weimer <fweimer@redhat.com>
27719
27720 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27721 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27722
27723 2017-11-19 Florian Weimer <fweimer@redhat.com>
27724
27725 manual: Document mprotect
27726 * manual/memory.texi (Memory Protection): New section.
27727 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27728 documentation of PROT_* flags and reference the Memory Protection
27729 section instead.
27730
27731 2017-11-19 Florian Weimer <fweimer@redhat.com>
27732
27733 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27734 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27735 (Scatter-Gather): ... to here. Remove misleading comment.
27736
27737 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27738
27739 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27740 style.
27741
27742 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27743 when /proc/<pid>/setgroups does not exist.
27744
27745 2017-11-18 Florian Weimer <fweimer@redhat.com>
27746
27747 * sysdeps/unix/sysv/linux/tst-ttyname.c
27748 (become_root_in_mount_ns): Remove.
27749 (do_in_chroot_1): Call support_enter_mount_namespace.
27750 (do_in_chroot_2): Likewise.
27751 (do_test): Call support_become_root early.
27752
27753 2017-11-18 Florian Weimer <fweimer@redhat.com>
27754
27755 * support/namespace.h (support_enter_mount_namespace): Declare.
27756 * support/support_enter_mount_namespace.c: New file.
27757 * support/Makefile (libsupport-routines): Add
27758 support_enter_mount_namespace.
27759
27760 2017-11-18 Florian Weimer <fweimer@redhat.com>
27761
27762 * support/temp_file.c (support_create_temp_directory): Use
27763 test_dir and do not rely on the presence of the XXXXXX suffix.
27764 * support/temp_file.h (support_create_temp_directory): Update
27765 comment.
27766 * support/tst-xreadlink.c (do_test): Adjust.
27767 * support/support_chroot.c (support_chroot_create): Likewise.
27768
27769 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27770
27771 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27772 macro.
27773 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27774 htm-no-suspend.
27775
27776 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27777
27778 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27779 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27780 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27781 (ceill): Define using libm_alias_ldouble.
27782 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27783 <libm-alias-ldouble.h>.
27784 (copysignl): Define using libm_alias_ldouble.
27785 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27786 (fabsl): Define using libm_alias_ldouble.
27787 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27788 (floorl): Define using libm_alias_ldouble.
27789 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27790 (fmaxl): Define using libm_alias_ldouble.
27791 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27792 (fminl): Define using libm_alias_ldouble.
27793 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27794 (llrintl): Define using libm_alias_ldouble.
27795 (lrintl): Likewise.
27796 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27797 <libm-alias-ldouble.h>.
27798 (nearbyintl): Define using libm_alias_ldouble.
27799 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27800 (truncl): Define using libm_alias_ldouble.
27801 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27802 <libm-alias-ldouble.h>.
27803 (lrintl): Define using libm_alias_ldouble.
27804
27805 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27806 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27807 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27808 (asinhl): Define using libm_alias_ldouble.
27809 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27810 (atanl): Define using libm_alias_ldouble.
27811 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27812 (cbrtl): Define using libm_alias_ldouble.
27813 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27814 (ceill): Define using libm_alias_ldouble.
27815 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27816 (copysignl): Define using libm_alias_ldouble.
27817 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27818 (fabsl): Define using libm_alias_ldouble.
27819 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27820 (floorl): Define using libm_alias_ldouble.
27821 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27822 (fmaxl): Define using libm_alias_ldouble.
27823 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27824 (fminl): Define using libm_alias_ldouble.
27825 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27826 (frexpl): Define using libm_alias_ldouble.
27827 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27828 (llrintl): Define using libm_alias_ldouble.
27829 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27830 (logbl): Define using libm_alias_ldouble.
27831 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27832 (lrintl): Define using libm_alias_ldouble.
27833 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27834 (nearbyintl): Define using libm_alias_ldouble.
27835 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27836 (nextafterl): Define using libm_alias_ldouble.
27837 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27838 (remquol): Define using libm_alias_ldouble.
27839 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27840 (rintl): Define using libm_alias_ldouble.
27841 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27842 (truncl): Define using libm_alias_ldouble.
27843 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27844 (fmaxl): Define using libm_alias_ldouble.
27845 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27846 (fminl): Define using libm_alias_ldouble.
27847
27848 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27849 to C syntax instead of availability and properties of types.
27850 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27851 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27852 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27853 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27854 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27855 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27856
27857 2017-11-17 Florian Weimer <fweimer@redhat.com>
27858
27859 support_become_root: Enable file creation in namespaces.
27860 * support/support_become_root.c (setup_mapping): New function.
27861 (support_become_root): Call it.
27862
27863 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27864
27865 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27866 macro.
27867
27868 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27869
27870 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27871 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27872
27873 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27874
27875 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27876
27877 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27878 version to 4.14.
27879
27880 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27881
27882 * INSTALL: Fix botched up regeneration.
27883
27884 * NEWS: Update sourceare link to https.
27885 * configure.ac: Likewise.
27886 * crypt/md5test-giant.c: Likewise.
27887 * dlfcn/bug-atexit1.c: Likewise.
27888 * dlfcn/bug-atexit2.c: Likewise.
27889 * localedata/README: Likewise.
27890 * malloc/tst-mallocfork.c: Likewise.
27891 * manual/install.texi: Likewise.
27892 * nptl/tst-pthread-getattr.c: Likewise.
27893 * stdio-common/tst-fgets.c: Likewise.
27894 * stdio-common/tst-fwrite.c: Likewise.
27895 * sunrpc/Makefile: Likewise.
27896 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27897 * wcsmbs/tst-mbrtowc2.c: Likewise.
27898 * configure: Regenerate.
27899 * INSTALL: Regenerate.
27900
27901 2017-11-15 Martin Sebor <msebor@redhat.com>
27902
27903 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27904 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27905 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27906
27907 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27908
27909 [BZ #22145]
27910 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27911 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27912
27913 [BZ #22145]
27914 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27915 Defer is_pty check until end of the function.
27916 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27917
27918 [BZ #22145]
27919 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27920 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27921 (ttyname): Likewise.
27922 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27923 (__ttyname_r): Likewise.
27924
27925 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27926 int to bool.
27927
27928 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27929
27930 * manual/terminal.texi (Is It a Terminal):
27931 Mention ENODEV for ttyname and ttyname_r.
27932
27933 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27934
27935 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27936 constant and macro.
27937
27938 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27939 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27940 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27941 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27942 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27943 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27944
27945 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27946
27947 * signal/sigrelse.c (sigrelse): Optimize implementation.
27948
27949 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27950 (__sigpause): Rely on __sigsuspend to implement single thread
27951 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27952
27953 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27954
27955 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27956 kernel version to 4.14.
27957
27958 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27959
27960 [BZ #22442]
27961 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27962 Check if ifname is too long.
27963
27964 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27965
27966 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27967
27968 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27969
27970 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27971 was accidentally lost.
27972
27973 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27974
27975 * localedata/locales/az_IR: Add standard copyright header.
27976
27977 2017-11-15 Florian Weimer <fweimer@redhat.com>
27978
27979 [BZ #22439]
27980 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27981 not just the top one. Output a new "subheaps" statistic.
27982
27983 2017-11-15 Florian Weimer <fweimer@redhat.com>
27984
27985 [BZ #22408]
27986 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27987 under the per-arena lock.
27988 * malloc/Makefile (tests): Add tst-malloc_info.
27989 (tst-malloc_info): Link with libpthread.
27990 * malloc/tst-malloc_info.c: New file.
27991
27992 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27993
27994 [BZ #21660]
27995 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27996 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27997 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27998 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27999 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28000 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28001 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28002 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28003 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28004 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28005 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28006 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28007 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28008 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28009 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28010 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28011 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28012 (__floating_type): Likewise.
28013 (__real_integer_type): Likewise.
28014 (__complex_integer_type): Likewise.
28015 (__expr_is_real): Likewise.
28016 (__tgmath_real_type_sub): Likewise.
28017 (__tgmath_real_type): Likewise.
28018 (__tgmath_complex_type_sub): Likewise.
28019 (__tgmath_complex_type): Likewise.
28020 (__TGMATH_F128): Likewise.
28021 (__TGMATH_CF128): Likewise.
28022 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28023 new macros.
28024 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28025 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28026 Likewise.
28027 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28028 Likewise.
28029 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28030 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28031 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28032 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28033 Likewise.
28034 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28035 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28036 Likewise.
28037 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28038 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28039 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28040 Likewise.
28041 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28042 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28043 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28044 (cimag): Likewise.
28045 (creal): Likewise.
28046
28047 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28048
28049 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28050 for stpncpy calls for GCC 8.
28051 (test_strncat): Disable -Wstringop-truncation warning for strncat
28052 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28053 strncat call for GCC 7.
28054 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28055 calls for GCC 8.
28056 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28057 trailing NUL.
28058
28059 * string/bug-strncat1.c: Include <libc-diag.h>.
28060 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28061
28062 2017-11-13 Claude Paroz <claude@2xlibre.net>
28063
28064 [BZ #22387]
28065 * localedata/locales/aa_DJ: Improved readibility by replacing
28066 <Uxxxx> sequences in the ASCII printable range by their ASCII
28067 character equivalents.
28068 * localedata/locales/aa_ER: Likewise.
28069 * localedata/locales/aa_ER@saaho: Likewise.
28070 * localedata/locales/aa_ET: Likewise.
28071 * localedata/locales/af_ZA: Likewise.
28072 * localedata/locales/agr_PE: Likewise.
28073 * localedata/locales/ak_GH: Likewise.
28074 * localedata/locales/am_ET: Likewise.
28075 * localedata/locales/anp_IN: Likewise.
28076 * localedata/locales/ar_AE: Likewise.
28077 * localedata/locales/ar_BH: Likewise.
28078 * localedata/locales/ar_DZ: Likewise.
28079 * localedata/locales/ar_EG: Likewise.
28080 * localedata/locales/ar_IN: Likewise.
28081 * localedata/locales/ar_IQ: Likewise.
28082 * localedata/locales/ar_JO: Likewise.
28083 * localedata/locales/ar_KW: Likewise.
28084 * localedata/locales/ar_LB: Likewise.
28085 * localedata/locales/ar_LY: Likewise.
28086 * localedata/locales/ar_MA: Likewise.
28087 * localedata/locales/ar_OM: Likewise.
28088 * localedata/locales/ar_QA: Likewise.
28089 * localedata/locales/ar_SA: Likewise.
28090 * localedata/locales/ar_SD: Likewise.
28091 * localedata/locales/ar_SS: Likewise.
28092 * localedata/locales/ar_SY: Likewise.
28093 * localedata/locales/ar_TN: Likewise.
28094 * localedata/locales/ar_YE: Likewise.
28095 * localedata/locales/as_IN: Likewise.
28096 * localedata/locales/ast_ES: Likewise.
28097 * localedata/locales/ayc_PE: Likewise.
28098 * localedata/locales/az_AZ: Likewise.
28099 * localedata/locales/az_IR: Likewise.
28100 * localedata/locales/be_BY: Likewise.
28101 * localedata/locales/be_BY@latin: Likewise.
28102 * localedata/locales/bem_ZM: Likewise.
28103 * localedata/locales/ber_DZ: Likewise.
28104 * localedata/locales/ber_MA: Likewise.
28105 * localedata/locales/bg_BG: Likewise.
28106 * localedata/locales/bhb_IN: Likewise.
28107 * localedata/locales/bho_IN: Likewise.
28108 * localedata/locales/bi_VU: Likewise.
28109 * localedata/locales/bn_BD: Likewise.
28110 * localedata/locales/bn_IN: Likewise.
28111 * localedata/locales/bo_CN: Likewise.
28112 * localedata/locales/bo_IN: Likewise.
28113 * localedata/locales/br_FR: Likewise.
28114 * localedata/locales/brx_IN: Likewise.
28115 * localedata/locales/bs_BA: Likewise.
28116 * localedata/locales/byn_ER: Likewise.
28117 * localedata/locales/ca_AD: Likewise.
28118 * localedata/locales/ca_ES: Likewise.
28119 * localedata/locales/ca_FR: Likewise.
28120 * localedata/locales/ca_IT: Likewise.
28121 * localedata/locales/ce_RU: Likewise.
28122 * localedata/locales/chr_US: Likewise.
28123 * localedata/locales/cmn_TW: Likewise.
28124 * localedata/locales/crh_UA: Likewise.
28125 * localedata/locales/cs_CZ: Likewise.
28126 * localedata/locales/csb_PL: Likewise.
28127 * localedata/locales/cv_RU: Likewise.
28128 * localedata/locales/cy_GB: Likewise.
28129 * localedata/locales/da_DK: Likewise.
28130 * localedata/locales/de_AT: Likewise.
28131 * localedata/locales/de_BE: Likewise.
28132 * localedata/locales/de_CH: Likewise.
28133 * localedata/locales/de_DE: Likewise.
28134 * localedata/locales/de_IT: Likewise.
28135 * localedata/locales/de_LI: Likewise.
28136 * localedata/locales/de_LU: Likewise.
28137 * localedata/locales/doi_IN: Likewise.
28138 * localedata/locales/dv_MV: Likewise.
28139 * localedata/locales/dz_BT: Likewise.
28140 * localedata/locales/el_CY: Likewise.
28141 * localedata/locales/el_GR: Likewise.
28142 * localedata/locales/en_AG: Likewise.
28143 * localedata/locales/en_AU: Likewise.
28144 * localedata/locales/en_BW: Likewise.
28145 * localedata/locales/en_CA: Likewise.
28146 * localedata/locales/en_DK: Likewise.
28147 * localedata/locales/en_GB: Likewise.
28148 * localedata/locales/en_HK: Likewise.
28149 * localedata/locales/en_IE: Likewise.
28150 * localedata/locales/en_IL: Likewise.
28151 * localedata/locales/en_IN: Likewise.
28152 * localedata/locales/en_NG: Likewise.
28153 * localedata/locales/en_NZ: Likewise.
28154 * localedata/locales/en_PH: Likewise.
28155 * localedata/locales/en_SG: Likewise.
28156 * localedata/locales/en_US: Likewise.
28157 * localedata/locales/en_ZA: Likewise.
28158 * localedata/locales/en_ZM: Likewise.
28159 * localedata/locales/en_ZW: Likewise.
28160 * localedata/locales/eo: Likewise.
28161 * localedata/locales/es_AR: Likewise.
28162 * localedata/locales/es_BO: Likewise.
28163 * localedata/locales/es_CL: Likewise.
28164 * localedata/locales/es_CO: Likewise.
28165 * localedata/locales/es_CR: Likewise.
28166 * localedata/locales/es_CU: Likewise.
28167 * localedata/locales/es_DO: Likewise.
28168 * localedata/locales/es_EC: Likewise.
28169 * localedata/locales/es_ES: Likewise.
28170 * localedata/locales/es_GT: Likewise.
28171 * localedata/locales/es_HN: Likewise.
28172 * localedata/locales/es_MX: Likewise.
28173 * localedata/locales/es_NI: Likewise.
28174 * localedata/locales/es_PA: Likewise.
28175 * localedata/locales/es_PE: Likewise.
28176 * localedata/locales/es_PR: Likewise.
28177 * localedata/locales/es_PY: Likewise.
28178 * localedata/locales/es_SV: Likewise.
28179 * localedata/locales/es_US: Likewise.
28180 * localedata/locales/es_UY: Likewise.
28181 * localedata/locales/es_VE: Likewise.
28182 * localedata/locales/et_EE: Likewise.
28183 * localedata/locales/eu_ES: Likewise.
28184 * localedata/locales/eu_ES@euro: Likewise.
28185 * localedata/locales/fa_IR: Likewise.
28186 * localedata/locales/ff_SN: Likewise.
28187 * localedata/locales/fi_FI: Likewise.
28188 * localedata/locales/fil_PH: Likewise.
28189 * localedata/locales/fo_FO: Likewise.
28190 * localedata/locales/fr_BE: Likewise.
28191 * localedata/locales/fr_CA: Likewise.
28192 * localedata/locales/fr_CH: Likewise.
28193 * localedata/locales/fr_FR: Likewise.
28194 * localedata/locales/fr_LU: Likewise.
28195 * localedata/locales/fur_IT: Likewise.
28196 * localedata/locales/fy_DE: Likewise.
28197 * localedata/locales/fy_NL: Likewise.
28198 * localedata/locales/ga_IE: Likewise.
28199 * localedata/locales/gd_GB: Likewise.
28200 * localedata/locales/gez_ER: Likewise.
28201 * localedata/locales/gez_ET: Likewise.
28202 * localedata/locales/gl_ES: Likewise.
28203 * localedata/locales/gu_IN: Likewise.
28204 * localedata/locales/gv_GB: Likewise.
28205 * localedata/locales/ha_NG: Likewise.
28206 * localedata/locales/hak_TW: Likewise.
28207 * localedata/locales/he_IL: Likewise.
28208 * localedata/locales/hi_IN: Likewise.
28209 * localedata/locales/hif_FJ: Likewise.
28210 * localedata/locales/hne_IN: Likewise.
28211 * localedata/locales/hr_HR: Likewise.
28212 * localedata/locales/hsb_DE: Likewise.
28213 * localedata/locales/ht_HT: Likewise.
28214 * localedata/locales/hu_HU: Likewise.
28215 * localedata/locales/hy_AM: Likewise.
28216 * localedata/locales/i18n: Likewise.
28217 * localedata/locales/ia_FR: Likewise.
28218 * localedata/locales/id_ID: Likewise.
28219 * localedata/locales/ig_NG: Likewise.
28220 * localedata/locales/ik_CA: Likewise.
28221 * localedata/locales/is_IS: Likewise.
28222 * localedata/locales/it_CH: Likewise.
28223 * localedata/locales/it_IT: Likewise.
28224 * localedata/locales/iu_CA: Likewise.
28225 * localedata/locales/ja_JP: Likewise.
28226 * localedata/locales/ka_GE: Likewise.
28227 * localedata/locales/kk_KZ: Likewise.
28228 * localedata/locales/kl_GL: Likewise.
28229 * localedata/locales/kn_IN: Likewise.
28230 * localedata/locales/ko_KR: Likewise.
28231 * localedata/locales/kok_IN: Likewise.
28232 * localedata/locales/ks_IN: Likewise.
28233 * localedata/locales/ks_IN@devanagari: Likewise.
28234 * localedata/locales/ku_TR: Likewise.
28235 * localedata/locales/kw_GB: Likewise.
28236 * localedata/locales/ky_KG: Likewise.
28237 * localedata/locales/lb_LU: Likewise.
28238 * localedata/locales/lg_UG: Likewise.
28239 * localedata/locales/li_BE: Likewise.
28240 * localedata/locales/li_NL: Likewise.
28241 * localedata/locales/lij_IT: Likewise.
28242 * localedata/locales/ln_CD: Likewise.
28243 * localedata/locales/lo_LA: Likewise.
28244 * localedata/locales/lt_LT: Likewise.
28245 * localedata/locales/lv_LV: Likewise.
28246 * localedata/locales/lzh_TW: Likewise.
28247 * localedata/locales/mag_IN: Likewise.
28248 * localedata/locales/mai_IN: Likewise.
28249 * localedata/locales/mg_MG: Likewise.
28250 * localedata/locales/mhr_RU: Likewise.
28251 * localedata/locales/mi_NZ: Likewise.
28252 * localedata/locales/mk_MK: Likewise.
28253 * localedata/locales/ml_IN: Likewise.
28254 * localedata/locales/mn_MN: Likewise.
28255 * localedata/locales/mni_IN: Likewise.
28256 * localedata/locales/mr_IN: Likewise.
28257 * localedata/locales/ms_MY: Likewise.
28258 * localedata/locales/mt_MT: Likewise.
28259 * localedata/locales/my_MM: Likewise.
28260 * localedata/locales/nan_TW: Likewise.
28261 * localedata/locales/nan_TW@latin: Likewise.
28262 * localedata/locales/nb_NO: Likewise.
28263 * localedata/locales/nds_DE: Likewise.
28264 * localedata/locales/nds_NL: Likewise.
28265 * localedata/locales/ne_NP: Likewise.
28266 * localedata/locales/nhn_MX: Likewise.
28267 * localedata/locales/niu_NU: Likewise.
28268 * localedata/locales/niu_NZ: Likewise.
28269 * localedata/locales/nl_AW: Likewise.
28270 * localedata/locales/nl_BE: Likewise.
28271 * localedata/locales/nl_NL: Likewise.
28272 * localedata/locales/nn_NO: Likewise.
28273 * localedata/locales/nr_ZA: Likewise.
28274 * localedata/locales/nso_ZA: Likewise.
28275 * localedata/locales/oc_FR: Likewise.
28276 * localedata/locales/om_ET: Likewise.
28277 * localedata/locales/om_KE: Likewise.
28278 * localedata/locales/or_IN: Likewise.
28279 * localedata/locales/os_RU: Likewise.
28280 * localedata/locales/pa_IN: Likewise.
28281 * localedata/locales/pa_PK: Likewise.
28282 * localedata/locales/pap_AW: Likewise.
28283 * localedata/locales/pap_CW: Likewise.
28284 * localedata/locales/pl_PL: Likewise.
28285 * localedata/locales/ps_AF: Likewise.
28286 * localedata/locales/pt_BR: Likewise.
28287 * localedata/locales/pt_PT: Likewise.
28288 * localedata/locales/quz_PE: Likewise.
28289 * localedata/locales/raj_IN: Likewise.
28290 * localedata/locales/ro_RO: Likewise.
28291 * localedata/locales/ru_RU: Likewise.
28292 * localedata/locales/ru_UA: Likewise.
28293 * localedata/locales/rw_RW: Likewise.
28294 * localedata/locales/sa_IN: Likewise.
28295 * localedata/locales/sat_IN: Likewise.
28296 * localedata/locales/sc_IT: Likewise.
28297 * localedata/locales/sd_IN: Likewise.
28298 * localedata/locales/sd_IN@devanagari: Likewise.
28299 * localedata/locales/se_NO: Likewise.
28300 * localedata/locales/sgs_LT: Likewise.
28301 * localedata/locales/shs_CA: Likewise.
28302 * localedata/locales/si_LK: Likewise.
28303 * localedata/locales/sid_ET: Likewise.
28304 * localedata/locales/sk_SK: Likewise.
28305 * localedata/locales/sl_SI: Likewise.
28306 * localedata/locales/sm_WS: Likewise.
28307 * localedata/locales/so_DJ: Likewise.
28308 * localedata/locales/so_ET: Likewise.
28309 * localedata/locales/so_KE: Likewise.
28310 * localedata/locales/so_SO: Likewise.
28311 * localedata/locales/sq_AL: Likewise.
28312 * localedata/locales/sq_MK: Likewise.
28313 * localedata/locales/sr_ME: Likewise.
28314 * localedata/locales/sr_RS: Likewise.
28315 * localedata/locales/sr_RS@latin: Likewise.
28316 * localedata/locales/ss_ZA: Likewise.
28317 * localedata/locales/st_ZA: Likewise.
28318 * localedata/locales/sv_FI: Likewise.
28319 * localedata/locales/sv_SE: Likewise.
28320 * localedata/locales/sw_KE: Likewise.
28321 * localedata/locales/sw_TZ: Likewise.
28322 * localedata/locales/szl_PL: Likewise.
28323 * localedata/locales/ta_IN: Likewise.
28324 * localedata/locales/ta_LK: Likewise.
28325 * localedata/locales/tcy_IN: Likewise.
28326 * localedata/locales/te_IN: Likewise.
28327 * localedata/locales/tg_TJ: Likewise.
28328 * localedata/locales/th_TH: Likewise.
28329 * localedata/locales/the_NP: Likewise.
28330 * localedata/locales/ti_ER: Likewise.
28331 * localedata/locales/ti_ET: Likewise.
28332 * localedata/locales/tig_ER: Likewise.
28333 * localedata/locales/tk_TM: Likewise.
28334 * localedata/locales/tl_PH: Likewise.
28335 * localedata/locales/tn_ZA: Likewise.
28336 * localedata/locales/to_TO: Likewise.
28337 * localedata/locales/tpi_PG: Likewise.
28338 * localedata/locales/tr_CY: Likewise.
28339 * localedata/locales/tr_TR: Likewise.
28340 * localedata/locales/ts_ZA: Likewise.
28341 * localedata/locales/tt_RU: Likewise.
28342 * localedata/locales/tt_RU@iqtelif: Likewise.
28343 * localedata/locales/ug_CN: Likewise.
28344 * localedata/locales/uk_UA: Likewise.
28345 * localedata/locales/unm_US: Likewise.
28346 * localedata/locales/ur_IN: Likewise.
28347 * localedata/locales/ur_PK: Likewise.
28348 * localedata/locales/uz_UZ: Likewise.
28349 * localedata/locales/uz_UZ@cyrillic: Likewise.
28350 * localedata/locales/ve_ZA: Likewise.
28351 * localedata/locales/vi_VN: Likewise.
28352 * localedata/locales/wa_BE: Likewise.
28353 * localedata/locales/wae_CH: Likewise.
28354 * localedata/locales/wal_ET: Likewise.
28355 * localedata/locales/wo_SN: Likewise.
28356 * localedata/locales/xh_ZA: Likewise.
28357 * localedata/locales/yi_US: Likewise.
28358 * localedata/locales/yo_NG: Likewise.
28359 * localedata/locales/yue_HK: Likewise.
28360 * localedata/locales/yuw_PG: Likewise.
28361 * localedata/locales/zh_CN: Likewise.
28362 * localedata/locales/zh_HK: Likewise.
28363 * localedata/locales/zh_SG: Likewise.
28364 * localedata/locales/zh_TW: Likewise.
28365 * localedata/locales/zu_ZA: Likewise.
28366
28367 2017-11-13 Florian Weimer <fweimer@redhat.com>
28368
28369 * support/next_to_fault.h, support/next_to_fault.c: New files.
28370 * support/Makefile (libsupport-routines): Add next_to_fault.
28371 * resolv/tst-inet_pton.c (struct next_to_fault)
28372 (next_to_fault_allocate, next_to_fault_free): Remove.
28373 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28374
28375 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28376
28377 * elf/dl-support.c: Include <dl-procruntime.c>.
28378 * include/link.h: Include <link_map.h>.
28379 * sysdeps/generic/dl-procruntime.c: New file.
28380 * sysdeps/generic/link_map.h: Likewise.
28381 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28382 the writable ld.so namespace.
28383
28384 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28385
28386 timezone: pacify GCC -Wstringop-truncation
28387 Problem reported by Martin Sebor in:
28388 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28389 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28390
28391 2017-11-12 Florian Weimer <fweimer@redhat.com>
28392
28393 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28394 tst-xreadlink.
28395 (tests): Add tst-xreadlink.
28396 * support/support.h (xstrndup): Declare.
28397 * support/xunistd.h (xunlink, xreadlink): Declare.
28398 * support/temp_file.h (support_create_temp_directory): Declare.
28399 * support/temp_file.c (support_create_temp_directory): New function.
28400 * support/support_chroot.c (support_chroot_create): Use it.
28401 * support/xreadlink.c: New file.
28402 * support/xstrndup.c: Likewise.
28403 * support/xunlink.c: Likewise.
28404 * support/tst-xreadlink.c: Likewise.
28405
28406 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28407
28408 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28409
28410 2017-11-11 Florian Weimer <fweimer@redhat.com>
28411
28412 [BZ #22409]
28413 [BZ #22412]
28414 * resolv/res_comp.c (printable_string, binary_hnok)
28415 (binary_leading_dash): New functions.
28416 (res_hnok): Reimplement using these functions and ns_name_pton.
28417 (res_ownok): Likewise.
28418 (res_mailok): Reimplement using printable_string, ns_name_pton and
28419 binary_hnok.
28420 (res_dnok): Reimplement using printable_string and ns_name_pton.
28421 * resolv/tst-res_hnok.c (tests): Add additional tests.
28422 (LETTERDIGITS, PRINTABLE): Define.
28423 (do_test): Adjust one_char results.
28424
28425 2017-11-11 Florian Weimer <fweimer@redhat.com>
28426
28427 [BZ #22413]
28428 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28429 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28430
28431 2017-11-11 Florian Weimer <fweimer@redhat.com>
28432
28433 * resolv/tst-ns_name_pton.c: New file.
28434 * resolv/Makefile (tests): Add tst-ns_name_pton.
28435 (tst-ns_name_pton): Link against libresolv.
28436
28437 2017-11-11 Florian Weimer <fweimer@redhat.com>
28438
28439 * resolv/tst-res_hnok.c: New file.
28440 * resolv/Makefile (tests): Add tst-res_hnok.
28441 (tst-res_hnok): Link against libresolv.
28442
28443 2017-11-11 Florian Weimer <fweimer@redhat.com>
28444
28445 * resolv/tst-resolv-network.c: Use test framework instead explicit
28446 main function.
28447
28448 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28449
28450 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28451 <jmp_buf-macros.h>.
28452 [!_ISOMAC] (STR_HELPER): New.
28453 [!_ISOMAC] (STR): Likewise.
28454 [!_ISOMAC] (TEST_SIZE): Likewise.
28455 [!_ISOMAC] (TEST_ALIGN): Likewise.
28456 [!_ISOMAC] (TEST_OFFSET): Likewise.
28457 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28458 field offsets of jmp_buf as well as sigjmp_buf.
28459 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28460 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28461 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28462 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28463 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28464 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28465 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28466 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28467 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28468 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28469 Likewise.
28470 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28471 Likewise.
28472 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28474 Likewise.
28475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28476 Likewise.
28477 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28478 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28479 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28480 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28481 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28482 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28483 Likewise.
28484 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28485 Likewise.
28486 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28487 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28488 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28489
28490 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28491
28492 * include/float.h
28493 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28494 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28495 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28496 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28497 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28498 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28499 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28500 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28501 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28502 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28503 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28504 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28505 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28506 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28507 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28508 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28509 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28510 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28511 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28512 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28513 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28514 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28515 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28516 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28517 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28518 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28519 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28520 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28521 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28522 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28523 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28524 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28525 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28526 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28527 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28528 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28529 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28530 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28531 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28532 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28533 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28534 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28535 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28536 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28537 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28538 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28539 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28540 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28541 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28542 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28543 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28544 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28545 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28546 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28547 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28548 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28549 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28550 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28551 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28552 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28553 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28554 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28555 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28556 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28557 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28558 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28559 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28560 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28561 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28562 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28563 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28564 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28565 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28566 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28567 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28568 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28569 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28570 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28571 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28572 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28573 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28574 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28575 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28576 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28577 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28578 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28579 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28580 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28581
28582 * stdlib/tst-strtod.h (F16): New macro.
28583 (F32): Likewise.
28584 (F64): Likewise.
28585 (F32X): Likewise.
28586 (F64X): Likewise.
28587 (F128X): Likewise.
28588 (IF_FLOAT16): Likewise.
28589 (IF_FLOAT32): Likewise.
28590 (IF_FLOAT64): Likewise.
28591 (IF_FLOAT32X): Likewise.
28592 (IF_FLOAT64X): Likewise.
28593 (IF_FLOAT128X): Likewise.
28594 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28595 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28596 (STRTOD_TEST_FOREACH): Likewise.
28597 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28598 (CHOOSE_f64): Likewise.
28599 (CHOOSE_f32x): Likewise.
28600 (CHOOSE_f64x): Likewise.
28601
28602 2017-11-07 Andreas Schwab <schwab@suse.de>
28603
28604 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28605
28606 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28607
28608 [BZ #22403]
28609 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28610 to be escaped.
28611 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28612 to be escaped.
28613
28614 2017-11-07 Claude Paroz <claude@2xlibre.net>
28615
28616 [BZ #22403]
28617 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28618 to be escaped.
28619 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28620 to be escaped.
28621 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28622 to be escaped.
28623
28624 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28625
28626 [BZ #22298]
28627 * nptl/allocatestack.c (allocate_stack): Check if
28628 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28629 __PTHREAD_MUTEX_HAVE_PREV is defined.
28630 * nptl/descr.h (pthread): Likewise.
28631 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28632 Likewise.
28633 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28634 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28635 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28636 * sysdeps/nptl/bits/thread-shared-types.h
28637 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28638 defines.
28639 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28640 of __WORDSIZE for internal layout.
28641 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28642 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28643 instead of __WORDSIZE whether to use an union for __spins and __list
28644 fields.
28645 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28646 case.
28647 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28648 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28649 defines.
28650 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28651 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28652 Likewise.
28653 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28654 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28655 Likewise.
28656 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28657 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28658 Likewise.
28659 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28660 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28661 Likewise.
28662 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28663 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28664 Likewise.
28665 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28666 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28667 Likewise.
28668 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28669 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28670 Likewise.
28671 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28672 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28673 Likewise.
28674 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28675 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28676 Likewise.
28677 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28678 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28679 Likewise.
28680 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28681 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28682 Likewise.
28683 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28684 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28685 Likewise.
28686 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28687 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28688 Likewise.
28689 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28690 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28691 Likewise.
28692
28693 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28694 New macros.
28695 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28696 checks for expected input type size.
28697 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28698 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28699 Likewise.
28700 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28701 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28702 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28703 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28704 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28705 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28706 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28707 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28708 superflous runtime assert check.
28709 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28710 Likewise.
28711 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28712 Likewise.
28713 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28714 Likewise.
28715 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28716 Likewise.
28717 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28718 Likewise.
28719 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28720 Likewise.
28721 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28722 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28723 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28724 Likewise.
28725 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28726 Likewise.
28727 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28728 Likewise.
28729 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28730 Likewise.
28731 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28732 Likewise.
28733 * nptl/pthread_attr_setinheritsched.c
28734 (__pthread_attr_setinheritsched): Likewise.
28735 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28736 Likewise.
28737 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28738 Likewise.
28739 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28740 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28741 __old_pthread_attr_setstack): Likewise.
28742 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28743 Likewise.
28744 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28745 Likewise.
28746 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28747 Likewise.
28748 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28749 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28750 Likewise.
28751 * nptl/tst-typesizes.c: Remove file.
28752
28753 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28754 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28755 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28756 checks for internal pthread_mutex_t offsets.
28757 * sysdeps/aarch64/nptl/pthread-offsets.h
28758 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28759 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28760 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28761 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28762 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28763 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28764 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28765 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28766 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28767 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28768 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28769 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28770 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28771 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28772 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28773 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28774 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28775 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28776
28777 2017-11-07 Florian Weimer <fweimer@redhat.com>
28778
28779 * bits/mman-linux.h: Move ...
28780 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28781 comment.
28782 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28783 outdated comment.
28784
28785 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28786
28787 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28788 Redefine STRNLEN as __strnlen_power8.
28789
28790 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28791
28792 * signal/sighold.c (sighold): Optimize implementation.
28793
28794 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28795 __NR_rt_sigqueueinfo.
28796
28797 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28798 __sigtimedwait.
28799 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28800 assume __NR_rt_sigtimedwait.
28801 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28802 and add LIBC_CANCEL_HANDLED for cancellation marking.
28803 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28804
28805 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28806 (sysdeps_routines): Add memchr_noneon.
28807 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28808 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28809 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28810 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28811 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28812 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28813 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28814
28815 * sysdeps/arm/arm-ifunc.h: New file.
28816 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28817 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28818 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28819 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28820 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28821 (__memcpy_neon): Avoid create hidden alias.
28822 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28823 (__memcpy_vfp): Likewise.
28824 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28825 (sysdep_routines): Add memcpy_arm.
28826 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28827
28828 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28829
28830 [BZ #22362]
28831 * Makerules (make-link-multidir): New.
28832 * config.make.in (multidir): New.
28833 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28834 * configure: Regenerated.
28835 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28836 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28837 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28838 New target.
28839
28840 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28841
28842 [BZ #22402]
28843 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28844 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28845
28846 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28847
28848 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28849 to be escaped.
28850
28851 2017-11-04 Florian Weimer <fweimer@redhat.com>
28852
28853 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28854
28855 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28856
28857 * math/math.h [__HAVE_DISTINCT_FLOAT16
28858 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28859 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28860 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28861 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28862 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28863 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28864 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28865 (__MATH_TG_F32): New macro.
28866 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28867 (__MATH_TG_F64X): Likewise.
28868 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28869 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28870
28871 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28872
28873 * po/de.po: Update translations.
28874 * po/ru.po: Likewise.
28875
28876 2017-11-03 Florian Weimer <fweimer@redhat.com>
28877
28878 * manual/filesys.texi (Hard Links): Document linkat.
28879
28880 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28881
28882 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28883 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28884 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28885 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28886 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28887 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28888 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28889 the same as _Float128.
28890 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28891 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28892 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28893
28894 * stdlib/stdlib.h
28895 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28896 Declare.
28897 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28898 Likewise.
28899 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28900 Likewise.
28901 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28902 (strtof32x): Likewise.
28903 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28904 (strtof64x): Likewise.
28905 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28906 (strtof128x): Likewise.
28907 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28908 (strfromf16): Likewise.
28909 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28910 (strfromf32): Likewise.
28911 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28912 (strfromf64): Likewise.
28913 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28914 (strfromf32x): Likewise.
28915 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28916 (strfromf64x): Likewise.
28917 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28918 (strfromf128x): Likewise.
28919 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28920 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28921 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28922 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28923 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28924 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28925
28926 2017-11-03 Richard Henderson <rth@twiddle.net>
28927
28928 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28929
28930 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28931
28932 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28933
28934 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28935
28936 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28937 DT_TLSDESC_GOT initialization.
28938 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28939 (_dl_tlsdesc_resolve_hold): Likewise.
28940 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28941 (_dl_tlsdesc_resolve_hold): Likewise.
28942 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28943 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28944
28945 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28946
28947 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28948
28949 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28950
28951 [BZ #18572]
28952 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28953 non-lazily for R_ARM_TLS_DESC.
28954
28955 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28956
28957 [BZ #17078]
28958 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28959 R_ARM_TLS_DESC case.
28960 (elf_machine_lazy_rel): Remove the prelink check.
28961
28962 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28963
28964 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28965 DT_TLSDESC_GOT initialization.
28966 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28967 (_dl_tlsdesc_resolve_rela): Likewise.
28968 (_dl_tlsdesc_resolve_hold): Likewise.
28969 (_dl_tlsdesc_undefweak): Remove ldar.
28970 (_dl_tlsdesc_dynamic): Likewise.
28971 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28972 (_dl_tlsdesc_resolve_rela): Likewise.
28973 (_dl_tlsdesc_resolve_hold): Likewise.
28974 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28975 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28976 (_dl_tlsdesc_resolve_rela): Likewise.
28977 (_dl_tlsdesc_resolve_hold): Likewise.
28978
28979 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28980
28981 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28982 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28983
28984 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28985
28986 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28987 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28988
28989 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28990
28991 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28992 Declare.
28993 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28994 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28995 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28996 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28997 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28998 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28999 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29000 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29001 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29002 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29003 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29004
29005 2017-11-02 Mike FABIAN <mfabian@redhat.com>
29006
29007 [BZ #22382]
29008 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29009 * localedata/locales/tpi_PG: Add standard header.
29010
29011 2017-11-02 Florian Weimer <fweimer@redhat.com>
29012
29013 test-errno-linux: quotactl can fail with EPERM in containers.
29014 * sysdeps/unix/sysv/linux/test-errno-linux.c
29015 (LIST, LIST_FORWARD): New macros.
29016 (check_error_in_list): New function.
29017 (test_wrp_rv): Accept list of permitted error codes.
29018 (test_wrp_rv2): Remove.
29019 (test_wrp): Call test_wrp_rv with list of error codes.
29020 (test_wrp2): Accept list of error codes.
29021 (do_test): Adjust. Allow EPERM for quotactl.
29022
29023 2017-11-02 Florian Weimer <fweimer@redhat.com>
29024
29025 * stdio-common/bug16.c (do_test): Use array_length.
29026 * stdio-common/errlist.c (_sys_nerr): Likewise.
29027 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29028 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29029 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29030 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29031 (do_test): Use array_length.
29032 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29033 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29034 * stdio-common/tst-printf-round.c (do_test): Likewise.
29035 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29036 (CHECK): Use array_length.
29037 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29038 * stdio-common/tstscanf.c (main): Likewise.
29039 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29040
29041 2017-11-02 Florian Weimer <fweimer@redhat.com>
29042
29043 Add array_length and array_end macros.
29044 * include/array_length.h: New file.
29045
29046 2017-11-02 Florian Weimer <fweimer@redhat.com>
29047
29048 [BZ #22332]
29049 * posix/tst-glob-tilde.c (do_noescape): New variable.
29050 (one_test): Process it.
29051 (do_test): Set do_noescape. Add unescaping test case.
29052
29053 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29054
29055 * math/complex.h
29056 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29057 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29058 with appropriate macros defined and undefined.
29059 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29060 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29061 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29062 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29063 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29064 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29065 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29066 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29067 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29068 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29069
29070 * math/complex.h
29071 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29072 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29073 that for long double. Do not condition define and undefine of
29074 _Mdouble_complex_ on [__CFLOAT128].
29075
29076 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29077
29078 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29079 of <sysdeps/generic/sysdep.h>.
29080 (ALIGNARG): Removed.
29081 (ASM_SIZE_DIRECTIVE): Likewise.
29082 (ENTRY): Likewise.
29083 (END): Likewise.
29084 (ENTRY_CHK): Likewise.
29085 (END_CHK): Likewise.
29086 (syscall_error): Likewise.
29087 (mcount): Likewise.
29088 (PSEUDO_END): Likewise.
29089 (L): Likewise.
29090 (atom_text_section): Likewise.
29091 * sysdeps/x86/sysdep.h: New file.
29092 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29093 of <sysdeps/generic/sysdep.h>.
29094 (ALIGNARG): Removed.
29095 (ASM_SIZE_DIRECTIVE): Likewise.
29096 (ENTRY): Likewise.
29097 (END): Likewise.
29098 (ENTRY_CHK): Likewise.
29099 (END_CHK): Likewise.
29100 (syscall_error): Likewise.
29101 (mcount): Likewise.
29102 (PSEUDO_END): Likewise.
29103 (L): Likewise.
29104 (atom_text_section): Likewise.
29105
29106 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
29107
29108 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29109 category of LC_CTYPE set to "i18n:2012".
29110 * localedata/locales/i18n_ctype: Regenerate.
29111
29112 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29113
29114 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29115 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29116 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29117 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29118
29119 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29120 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29121 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29122 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29123
29124 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29125
29126 * math/complex.h
29127 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29128 New macro.
29129 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29130 Likewise.
29131 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29132 Likewise.
29133 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29134 (CMPLXF32X): Likewise.
29135 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29136 (CMPLXF64X): Likewise.
29137 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29138 (CMPLXF128X): Likewise.
29139
29140 * math/math.h
29141 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29142 (__MATH_EVAL_FMT2): Define to add 0.0f.
29143
29144 2017-10-31 Alan Modra <amodra@gmail.com>
29145
29146 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29147 include sysdep.h.
29148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29151 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29162 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29163 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29164 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29165 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29166 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29167 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29168 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29169 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29170 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29171 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29172 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29173 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29174 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29175 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29176 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29177 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29178 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29179 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29180 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29181 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29182 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29183 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29184 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29185 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29186 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29187 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29188 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29189 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29190 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29191 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29192 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29193 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29194 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29195 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29196 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29197 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29198 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29199 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29200 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29201 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29202 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29203 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29204 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29205 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29206 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29207 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29208 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29209 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29210 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29211 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29212 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29213 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29214 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29215 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29216 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29217
29218 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29219 include sysdep.h and math_ldbl_opt.h.
29220
29221 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29222 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29223 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29224 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29225 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29226 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29230 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29233 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29234 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29236 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29239 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29240 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29247
29248 2017-10-31 Alan Modra <amodra@gmail.com>
29249
29250 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29251 string/strncase_l.c, not string/strncase.c.
29252 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29253 (libc_hidden_def): Redefine.
29254
29255 2017-10-31 Alan Modra <amodra@gmail.com>
29256
29257 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29258 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29259 (__strcasecmp): Don't define.
29260
29261 2017-10-31 Alan Modra <amodra@gmail.com>
29262
29263 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29264 IS_IN (libc).
29265 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29266 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29267 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29268
29269 2017-10-31 Alan Modra <amodra@gmail.com>
29270
29271 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29272 USE_AS_STPNCPY.
29273
29274 2017-10-31 Alan Modra <amodra@gmail.com>
29275
29276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29277 Redefine only when SHARED.
29278
29279 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29280
29281 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29282 Include <bits/math-finite.h> with appropriate macros defined and
29283 undefined.
29284 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29285 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29286 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29287 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29288 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29289
29290 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29291 [!_Mlong_double_] (_Mlong_double_): Likewise.
29292 [!_Mfloat16_] (_Mfloat16_): Likewise.
29293 [!_Mfloat32_] (_Mfloat32_): Likewise.
29294 [!_Mfloat64_] (_Mfloat64_): Likewise.
29295 [!_Mfloat128_] (_Mfloat128_): Likewise.
29296 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29297 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29298 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29299 (_Mdouble_): Define without indirection through those macros.
29300 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29301 [!_Mfloat128_] (_Mfloat128_): Likewise.
29302 [_Mlong_double_] (_Mlong_double_): Likewise.
29303 (_Mdouble_): Define without indirection through those macros.
29304 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29305 not add -D_Mlong_double_=double.
29306 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29307 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29308
29309 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29310
29311 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29312
29313 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29314
29315 * sysdeps/x86/libc-start.c: Reformat.
29316
29317 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29318
29319 [BZ #22353]
29320 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29321 (1): Renamed to ...
29322 (L(Src0)): This.
29323 (L(Src1)): New.
29324 (L(Src2)): Likewise.
29325 (L(1)): Renamed to ...
29326 (L(Src3)): This.
29327
29328 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29329
29330 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29331 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29332 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29333 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29334 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29335 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29336 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29337 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29338 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29339 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29340 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29341 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29342 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29343 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29344 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29345 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29346 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29347 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29348 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29349 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29350 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29351 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29352 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29353 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29354 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29355 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29356 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29357 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29358 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29359 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29360 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29361 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29362 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29363 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29364 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29365 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29366 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29367 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29368 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29369 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29370 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29371 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29372 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29373 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29374 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29375 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29376 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29377 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29378 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29379 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29380 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29381 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29382 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29383 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29384 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29385 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29386 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29387 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29388 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29389 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29390 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29391 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29392 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29393 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29394 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29395 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29396
29397 2017-10-30 Florian Weimer <fweimer@redhat.com>
29398
29399 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29400 always defined.
29401 * io/tst-mkdirat.c (do_test): Likewise.
29402 * io/tst-mkfifoat.c (do_test): Likewise.
29403 * io/tst-mknodat.c (do_test): Likewise.
29404 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29405 * locale/programs/locale.c (select_dirs): Likewise.
29406 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29407 * posix/bug-glob2.c (my_readdir): Likewise.
29408 * posix/tst-dir.c (main): Likewise.
29409 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29410 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29411
29412 2017-10-30 Florian Weimer <fweimer@redhat.com>
29413
29414 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29415 just __USE_GNU.
29416
29417 2017-10-30 Florian Weimer <fweimer@redhat.com>
29418
29419 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29420 Convert to support/test-driver.c.
29421 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29422 New macro parameters.
29423 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29424 * posix/tst-gnuglob.c: New file.
29425 * posix/tst-gnuglob64.c: Likewise.
29426 * posix/Makefile (tests): Add tst-gnuglob64.
29427
29428 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29429
29430 [BZ #19485]
29431 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29432 and use a better translation for March in “mon”.
29433 * localedata/locales/csb_PL: Use more ASCII to improve the
29434 readability of the source.
29435
29436 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29437
29438 [BZ #13953]
29439 * localedata/locales/km_KH: Use ASCII as much
29440 as possible for better readability of the source and
29441 remove useless comments.
29442 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29443 was commented out and apparently wrong anyway because it was
29444 using Lao characters. If Buddhist era should be used
29445 for km_KH, a native speaker should write the correct formaat
29446 for Khmer.
29447 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29448 (According to CLDR, the first weekday for Cambodia is Sunday).
29449 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29450 (These were using Lao characters which must be wrong. If we get
29451 the correct data from a native speaker, we could add it back, until
29452 then it is better not to have name_mr and name_mrs at all than
29453 having it wrong).
29454
29455 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29456
29457 * locale/loadlocale.c: Correct size of
29458 _nl_value_type_LC_<category> arrays.
29459
29460 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29461
29462 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29463 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29464 with appropriate macros defined and undefined.
29465 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29466 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29467 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29468 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29469 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29470
29471 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29472
29473 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29474 "-O2 -march=i586".
29475
29476 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29477
29478 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29479 with lowercase letters to make it agree with CLDR.
29480
29481 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29482
29483 [BZ #15260]
29484 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29485 first letters of yesstr and nostr in yesexpr and noexpr,
29486 not for the full words.
29487 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29488 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29489 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29490 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29491 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29492 first letters of yesstr and nostr in yesexpr and noexpr,
29493 until now only English was matched in yesexpr and noexpr.
29494 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29495 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29496 fil but not for tl. As tl and fil are very similar, using fil
29497 is probably better than using English.
29498
29499 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29500
29501 [BZ #21706]
29502 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29503 in yesstr and nostr.
29504
29505 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29506
29507 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29508 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29509 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29510 Likewise.
29511 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29512 Likewise.
29513 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29514 Likewise.
29515 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29516 Likewise.
29517 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29518 (SNANF128X): Likewise.
29519
29520 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29521 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29522 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29523 (HUGE_VAL_F32): Likewise.
29524 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29525 (HUGE_VAL_F64): Likewise.
29526 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29527 (HUGE_VAL_F32X): Likewise.
29528 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29529 (HUGE_VAL_F64X): Likewise.
29530 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29531 (HUGE_VAL_F128X): Likewise.
29532
29533 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29534
29535 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29536 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29537 for the br_FR locale.
29538
29539 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29540
29541 [BZ #21706]
29542 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29543
29544 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29545
29546 * locale/programs/record-status.h: Define globals, and function
29547 prototypes. Move function bodies...
29548 * locale/programs/record-status.c: ... to here. New file.
29549 * iconv/Makefile (iconv_prog-modules): Add record-status.
29550 * locale/Makefile (lib-modules): Likewise.
29551 * iconv/iconv_prog.c: Remove verbose.
29552 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29553 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29554 record a warning about ASCII compatibility.
29555 * locale/programs/ld-monetary.c (monetary_finish): If
29556 warn_int_curr_symbol is true then record a warning about the symbol
29557 not being in our ISO 4217 list.
29558 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29559 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29560 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29561 (OPT_NO_WARN): Define.
29562 (OPT_WARN): Define.
29563 (options): Add entry for --no-warnings, and --warnings.
29564 (set_warnings): New function to enable/disable warnings.
29565 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29566 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29567 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29568 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29569 Pass flags to generate_locale.
29570 (generate_locale): Accept new flag argument and pass it to localedef
29571 invocation.
29572 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29573 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29574
29575 * localedata/Makefile (test-input-data): Use full file name.
29576 * localedata/da_DK.in: Rename to...
29577 * localedata/da_DK.ISO-8859-1.in: ...this.
29578 * localedata/de_DE.in: Rename to...
29579 * localedata/de_DE.ISO-8859-1.in: ...this.
29580 * localedata/en_US.in: Rename to...
29581 * localedata/en_US.ISO-8859-1.in: ...this.
29582 * localedata/fr_FR.in: Rename to...
29583 * localedata/fr_FR.UTF-8.in: ... this.
29584 * localedata/hr_HR.in: Rename to...
29585 * localedata/hr_HR.ISO-8859-2.in: ...this.
29586 * localedata/hu_HU.in: Rename to...
29587 * localedata/hu_HU.UTF-8.in: ...this.
29588 * localedata/si_LK.in: Rename to...
29589 * localedata/si_LK.UTF-8.in: ...this.
29590 * localedata/sv_SE.in: Rename to...
29591 * localedata/sv_SE.ISO-8859-1.in: ...this.
29592 * localedata/tr_TR.in: Rename to...
29593 * localedata/tr_TR.UTF-8.in: ...this.
29594 * localedata/uk_UA.in: Rename to...
29595 * localedata/uk_UA.UTF-8.in: ...this.
29596 * localedata/sort-test.sh: Test file is locale name with the
29597 suffix.
29598
29599 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29600 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29601 file.
29602 * localedata/locales/i18n_ctype: Regenerate.
29603 * localedata/locales/tr_TR: Likewise.
29604 * localedata/locales/translit_circle: Likewise.
29605 * localedata/locales/translit_cjk_compat: Likewise.
29606 * localedata/locales/translit_combining: Likewise.
29607 * localedata/locales/translit_compat: Likewise.
29608 * localedata/locales/translit_font: Likewise.
29609 * localedata/locales/translit_fraction: Likewise.
29610
29611 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29612
29613 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29614 lxvd2x/stxvd2x with lvx/stvx.
29615 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29616
29617 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29618
29619 * include/alloc_buffer.h: Replace "if if " with "if " in
29620 comments.
29621 * sysdeps/mips/memcpy.S: Likkewise.
29622 * sysdeps/mips/memset.S: Likewise.
29623 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29624 Likewise.
29625 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29626 Likewise.
29627 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29628 Likewise.
29629
29630 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29631
29632 [BZ #15261]
29633 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29634 yesexpr and noexpr.
29635 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29636 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29637 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29638 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29639 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29640 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29641 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29642
29643 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29644
29645 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29646 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29647 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29648 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29649 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29650 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29651 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29652 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29653 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29654 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29655 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29656 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29657
29658 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29659
29660 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29661 as possible for better readability of the source.
29662 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29663 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29664 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29665 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29666 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29667 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29668 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29669 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29670 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29671 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29672 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29673 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29674 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29675 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29676 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29677 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29678 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29679 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29680 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29681 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29682 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29683 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29684 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29685 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29686 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29687 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29688 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29689 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29690 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29691 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29692 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29693 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29694 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29695 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29696 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29697 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29698 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29699 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29700 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29701 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29702 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29703 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29704 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29705 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29706 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29707 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29708 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29709 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29710 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29711 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29712 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29713 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29714 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29715 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29716 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29717 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29718 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29719 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29720 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29721 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29722 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29723 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29724 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29725 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29726 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29727 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29728 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29729 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29730 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29731 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29732 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29733 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29734 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29735 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29736 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29737 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29738 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29739 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29740 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29741 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29742 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29743 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29744 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29745 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29746 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29747 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29748 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29749 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29750 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29751 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29752 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29753 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29754 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29755 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29756 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29757 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29758 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29759 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29760 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29761 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29762 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29763 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29764 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29765 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29766 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29767 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29768 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29769 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29770 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29771 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29772 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29773 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29774 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29775 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29776 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29777 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29778 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29779 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29780 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29781 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29782 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29783 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29784 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29785 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29786 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29787 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29788 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29789 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29790 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29791 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29792 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29793 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29794 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29795 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29796 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29797 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29798 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29799 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29800 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29801 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29802 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29803 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29804 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29805 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29806 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29807 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29808 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29809 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29810 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29811 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29812 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29813 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29814 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29815 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29816 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29817 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29818 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29819 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29820 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29821 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29822 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29823 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29824 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29825 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29826 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29827 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29828 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29829 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29830 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29831 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29832 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29833 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29834 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29835 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29836
29837 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29838
29839 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29840 (Use first letters of yesstr and nostr correctly instead of using
29841 full words).
29842
29843 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29844
29845 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29846 (Use first letters of yesstr and nostr correctly).
29847
29848 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29849
29850 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29851 also check for the first characters of yesstr and nostr.
29852 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29853 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29854
29855 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29856
29857 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29858 also check for Chinese characters.
29859
29860 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29861
29862 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29863 match also for the contents of yesstr and nostr. As the first letter
29864 of yesstr and nostr is equal, checking only for the first letter
29865 is not enough.
29866
29867 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29868
29869 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29870 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29871
29872 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29873
29874 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29875 of main contributor.
29876
29877 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29878
29879 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29880 instead of using English.
29881
29882 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29883
29884 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29885 by including the first letters of nostr and yesexpr in the regexp.
29886 Also make it more readable by using ASCII where possible.
29887
29888 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29889
29890 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29891 the first letter of nostr in the regexp. It agrees with CLDR now.
29892 Also make it more readable by using ASCII where possible.
29893
29894 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29895
29896 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29897 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29898 these strings contain a U+17D6 (which somewhat looks like a colon)
29899 instead of a real colon to separate the full words for “yes”
29900 and “no” from the single letter responses.
29901
29902 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29903
29904 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29905 it agree with CLDR (include the first letter of yesstr).
29906 Also make it more readable by using ASCII where possible.
29907
29908 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29909
29910 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29911 and improve yesexpr and noexpr. The yesstr and nostr apparently
29912 came from CLDR. And CLDR has a bug there: these strings contain
29913 a U+0903 (which looks like a colon) instead of a real colon
29914 to separate the full words for “yes” and “no” from the single
29915 letter responses.
29916
29917 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29918
29919 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29920 letters of the full yesstr and nostr in yesexpr and noexpr.
29921
29922 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29923
29924 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29925 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29926 * localedata/locales/an_ES: Make source more readable by using ASCII
29927 where possible.
29928
29929 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29930
29931 [BZ #20952]
29932 * localedata/locales/yuw_PG: New file.
29933 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29934 * locale/iso-639.def: Add Yau (Uruwa).
29935
29936 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29937
29938 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29939
29940 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29941
29942 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29943 (__libc_realloc): Likewise.
29944 (_mid_memalign): Likewise.
29945 (__libc_calloc): Likewise.
29946
29947 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29948
29949 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29950 by adding the generic +1 and -0 as in all other locales.
29951 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29952 day names and make it more readable by using ASCII where possible.
29953
29954 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29955
29956 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29957 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29958
29959 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29960
29961 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29962 WNOHANG in waitpid call.
29963
29964 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29965
29966 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29967 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29968
29969 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29970 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29971 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29972 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29973 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29974 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29975 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29976 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29977 variables.
29978
29979 2017-10-23 Michael Collison <michael.collison@arm.com>
29980
29981 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29982 with __builtin_sqrt.
29983 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29984 with __builtin_sqrtf.
29985 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29986 with __builtin_ceil.
29987 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29988 with __builtin_ceilf.
29989 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29990 with __builtin_floor.
29991 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29992 with __builtin_floorf.
29993 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29994 with __builtin_fma.
29995 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29996 with __builtin_fmaf.
29997 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29998 with __builtin_fmax.
29999 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30000 with __builtin_fmaxf.
30001 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30002 with __builtin_fmin.
30003 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30004 with __builtin_fminf.
30005 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30006 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30007 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30008 with builtin_rint and conversion to int.
30009 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30010 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30011 with builtin_llround.
30012 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30013 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30014 with builtin_rint and conversion to long int.
30015 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30016 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30017 with builtin_lround.
30018 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30019 with builtin_lroundf.
30020 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30021 statements with __builtin_nearbyint.
30022 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30023 statements with __builtin_nearbyintf.
30024 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30025 with __builtin_rint.
30026 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30027 with __builtin_rintf.
30028 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30029 with __builtin_round.
30030 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30031 with __builtin_roundf.
30032 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30033 with __builtin_trunc.
30034 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30035 with __builtin_truncf.
30036 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30037 and s_l[l]round[f].c too.
30038
30039 2017-10-23 Alan Modra <amodra@gmail.com>
30040
30041 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30042 Adjust stack after restoring regs. Add missing LR cfi_restore.
30043
30044 2017-10-23 Alan Modra <amodra@gmail.com>
30045
30046 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30047 Move LR save and frame setup/teardown and LR restore to
30048 immediately around memset call. Provide cfi.
30049
30050 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30051
30052 * sysdeps/i386/fpu/e_powf.S: Removed.
30053 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30054 * sysdeps/i386/fpu/w_powf.c: Likewise.
30055 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30056 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30057 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30058 Add e_powf-sse2.
30059 (CFLAGS-e_powf-sse2.c): New.
30060 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30061 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30062
30063 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30064
30065 * sysdeps/i386/fpu/e_log2f.S: Removed.
30066 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30067 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30068 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30069 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30070 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30071 Add e_log2f-sse2.
30072 (CFLAGS-e_log2f-sse2.c): New.
30073 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30074 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30075
30076 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30077
30078 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30079 Add e_powf-fma.
30080 (CFLAGS-e_powf-fma.c): New.
30081 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30082 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30083
30084 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30085
30086 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30087 Add e_log2f-fma.
30088 (CFLAGS-e_log2f-fma.c): New.
30089 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30090 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30091
30092 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30093
30094 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30095 Add e_logf-fma.
30096 (CFLAGS-e_logf-fma.c): New.
30097 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30098 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30099
30100 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30101
30102 * sysdeps/i386/fpu/e_logf.S: Removed.
30103 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30104 * sysdeps/i386/fpu/w_logf.c: Likewise.
30105 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30106 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30107 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30108 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30109 Add e_logf-sse2.
30110 (CFLAGS-e_logf-sse2.c): New.
30111 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30112 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30113
30114 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30115
30116 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30117 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30118 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30119 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30120 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30121 Add e_exp2f-sse2.
30122 (CFLAGS-e_exp2f-sse2.c): New.
30123 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30124 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30125
30126 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30127
30128 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30129 Add e_exp2f-fma.
30130 (CFLAGS-e_exp2f-fma.c): New.
30131 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30132 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30133
30134 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30135
30136 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30137 * sysdeps/i386/fpu/e_expf.S: Likewise.
30138 * sysdeps/i386/fpu/math_errf.c: Likewise.
30139 * sysdeps/i386/fpu/w_expf.c: Likewise.
30140 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30141 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30142 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30143 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30144 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30145 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30146 Remove e_expf-ia32.
30147 (CFLAGS-e_expf-sse2.c): New.
30148 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30149 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30150
30151 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30152
30153 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30154 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30155 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30156 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30157 e_expf.c.
30158 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30159 New.
30160 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30161 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30162 Renamed to ...
30163 (__redirect_expf): This.
30164 (SYMBOL_NAME): Changed to expf.
30165 (__ieee754_expf): Renamed to ...
30166 (__expf): This.
30167 (__GI___expf): This.
30168 (__ieee754_expf): Add strong_alias.
30169 (__expf_finite): Likewise.
30170 (__expf): New.
30171 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30172
30173 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30174
30175 [BZ #22332]
30176 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30177 unescaping.
30178
30179 2017-10-21 Florian Weimer <fweimer@redhat.com>
30180
30181 * posix/Makefile (tests): Add tst-glob-tilde.
30182 (tests-special): Add tst-glob-tilde-mem.out
30183 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30184 (tst-glob-tilde-mem.out): Add mtrace check.
30185 * posix/tst-glob-tilde.c: New file.
30186
30187 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30188
30189 * bits/floatn-common.h: New file.
30190 * math/Makefile (headers): Add bits/floatn-common.h.
30191 * bits/floatn.h: Include <bits/floatn-common.h>.
30192 * sysdeps/ia64/bits/floatn.h: Likewise.
30193 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30194 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30195 * sysdeps/powerpc/bits/floatn.h: Likewise.
30196 * sysdeps/x86/bits/floatn.h: Likewise.
30197
30198 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30199
30200 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30201 indicates whether compiler emits an warning for alias for
30202 functions with incompatible types.
30203
30204 [BZ #22273]
30205 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30206 the auxiliary process is terminated by a signal before calling _exit
30207 or execve.
30208
30209 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30210
30211 [BZ #21265]
30212 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30213 New.
30214 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30215 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30216 and bit_arch_XSAVEC_Usable if needed.
30217 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30218 and bit_arch_Use_dl_runtime_resolve_opt.
30219 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30220 Removed.
30221 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30222 (bit_arch_Prefer_No_AVX512): Updated.
30223 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30224 (bit_arch_XSAVEC_Usable): New.
30225 (STATE_SAVE_OFFSET): Likewise.
30226 (STATE_SAVE_MASK): Likewise.
30227 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30228 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30229 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30230 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30231 (index_arch_XSAVEC_Usable): New.
30232 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30233 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30234 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30235 is enabled.
30236 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30237 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30238 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30239 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30240 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30241 _dl_runtime_resolve_xsavec.
30242 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30243 Removed.
30244 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30245 instead of VEC_SIZE.
30246 (REGISTER_SAVE_BND0): Removed.
30247 (REGISTER_SAVE_BND1): Likewise.
30248 (REGISTER_SAVE_BND3): Likewise.
30249 (REGISTER_SAVE_RAX): Always defined to 0.
30250 (VMOV): Removed.
30251 (_dl_runtime_resolve_avx): Likewise.
30252 (_dl_runtime_resolve_avx_slow): Likewise.
30253 (_dl_runtime_resolve_avx_opt): Likewise.
30254 (_dl_runtime_resolve_avx512): Likewise.
30255 (_dl_runtime_resolve_avx512_opt): Likewise.
30256 (_dl_runtime_resolve_sse): Likewise.
30257 (_dl_runtime_resolve_sse_vex): Likewise.
30258 (USE_FXSAVE): New.
30259 (_dl_runtime_resolve_fxsave): Likewise.
30260 (USE_XSAVE): Likewise.
30261 (_dl_runtime_resolve_xsave): Likewise.
30262 (USE_XSAVEC): Likewise.
30263 (_dl_runtime_resolve_xsavec): Likewise.
30264 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30265 Removed.
30266 (_dl_runtime_resolve_avx512_opt): Likewise.
30267 (_dl_runtime_resolve_avx): Likewise.
30268 (_dl_runtime_resolve_avx_opt): Likewise.
30269 (_dl_runtime_resolve_sse): Likewise.
30270 (_dl_runtime_resolve_sse_vex): Likewise.
30271 (_dl_runtime_resolve_fxsave): New.
30272 (_dl_runtime_resolve_xsave): Likewise.
30273 (_dl_runtime_resolve_xsavec): Likewise.
30274
30275 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30276
30277 [BZ #22320]
30278 CVE-2017-15670
30279 * posix/glob.c (__glob): Fix one-byte overflow.
30280
30281 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30282
30283 * malloc/malloc.c (sysdep-cancel.h): Add include.
30284
30285 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30286
30287 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30288
30289 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30290
30291 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30292 (tests): Remove $(objpfx)ga_test depdendency.
30293 * resolv/ga_test.c: Remove file.
30294
30295 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30296
30297 [BZ #18812]
30298 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30299 * localedata/locales/kab_DZ: New file.
30300
30301 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30302
30303 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30304 _dl_relocate_static_pie instead of _dl_start to compute load
30305 address in static PIE.
30306
30307 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30308
30309 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30310
30311 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30312
30313 [BZ #13605]
30314 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30315 * localedata/locales/shn_MM: New file.
30316
30317 2017-10-20 Florian Weimer <fweimer@redhat.com>
30318
30319 [BZ #22321]
30320 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30321 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30322 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30323 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30324 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30325 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30326
30327 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30328
30329 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30330
30331 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30332
30333 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30334
30335 [BZ #22322]
30336 * sysdeps/mips/bits/long-double.h: Move to ....
30337 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30338
30339 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30340
30341 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30342
30343 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30344 H.J. Lu <hongjiu.lu@intel.com>
30345
30346 [BZ #22299]
30347 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30348 GLRO(dl_platform) to NULL.
30349 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30350 (modules-names): Add tst-platformmod-1 and
30351 x86_64/tst-platformmod-2.
30352 (CFLAGS-tst-platform-1.c): New.
30353 (CFLAGS-tst-platformmod-1.c): Likewise.
30354 (CFLAGS-tst-platformmod-2.c): Likewise.
30355 (LDFLAGS-tst-platformmod-2.so): Likewise.
30356 ($(objpfx)tst-platform-1): Likewise.
30357 ($(objpfx)tst-platform-1.out): Likewise.
30358 (tst-platform-1-ENV): Likewise.
30359 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30360 * sysdeps/x86_64/tst-platform-1.c: New file.
30361 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30362 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30363
30364 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30365
30366 [BZ #13994]
30367 * locale/iso-639.def: Add Karbi.
30368 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30369 * localedata/locales/mjw_IN: New file.
30370
30371 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30372
30373 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30374 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30375 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30376 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30377 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30378 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30379 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30380 <bits/floatn.h>.
30381 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30382 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30383 * manual/math.texi (Mathematics): Document additional architecture
30384 support for _Float128.
30385 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30386 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30387 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30388 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30389 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30390 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30391 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30392 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30393 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30394 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30395 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30396 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30397 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30398 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30399 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30400
30401 2017-10-18 Renlin Li <renlin.li@arm.com>
30402
30403 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30404 _DYNAMIC symbol to calculate load address.
30405
30406 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30407
30408 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30409 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30410 summary bits.
30411 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30412 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30413
30414 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30415
30416 [BZ #16777]
30417 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30418 and improve readability by using more ASCII.
30419 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30420 and improve readability by using more ASCII.
30421
30422 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30423
30424 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30425 not all targets support atomics on bool.
30426
30427 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30428
30429 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30430 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30431 __f128.
30432 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30433 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30434 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30435 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30436 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30437 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30438
30439 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30440
30441 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30442 defines.
30443
30444 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30445
30446 [BZ #22159]
30447 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30448 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30449 (do_check_remalloced_chunk): Fix build bug.
30450 (do_check_malloc_state): Add assert that checks arena->top.
30451 (malloc_consolidate): Remove initialization.
30452 (int_mallinfo): Remove call to malloc_consolidate.
30453 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30454
30455 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30456
30457 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30458 (have_fastchunks): Remove.
30459 (clear_fastchunks): Remove.
30460 (set_fastchunks): Remove.
30461 (malloc_state): Add have_fastchunks.
30462 (malloc_init_state): Use have_fastchunks.
30463 (do_check_malloc_state): Remove incorrect invariant checks.
30464 (_int_malloc): Use have_fastchunks.
30465 (_int_free): Likewise.
30466 (malloc_consolidate): Likewise.
30467
30468 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30469
30470 * malloc/malloc.c (tcache_put): Inline.
30471 (tcache_get): Inline.
30472
30473 2017-10-17 Jordi Mallach <jordi@gnu.org>
30474
30475 Aurelien Jarno <aurelien@aurel32.net>
30476 [BZ #2522]
30477 * localedata/locales/ca_ES@valencia: New file.
30478 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30479
30480 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30481
30482 [BZ #22296]
30483 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30484 < 6.x
30485
30486 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30487
30488 * scripts/build-many-glibcs.py (Context.add_all_configs):
30489 Add arm-linux-gnueabihf multiarch extra_glibcs.
30490
30491 * sysdeps/generic/ifunc-init.h: New file.
30492 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30493
30494 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30495
30496 [BZ #22019]
30497 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30498 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30499 * stdlib/tst-strfmon_l.c: adapt test case.
30500
30501 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30502
30503 * sysdeps/generic/float128-abi.h: New file.
30504 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30505 non-__prefixed symbols to ....
30506 * math/Versions: ... here. Include <float128-abi.h>.
30507 * stdlib/Versions ... and here. Include <float128-abi.h>
30508
30509 2017-10-16 Florian Weimer <fweimer@redhat.com>
30510
30511 * version.h (VERSION): Switch to ".9000" as the development
30512 version suffix.
30513
30514 2017-10-16 Florian Weimer <fweimer@redhat.com>
30515
30516 [BZ #22050]
30517 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30518 compat_symbol_reference to access non-default version.
30519
30520 2017-10-16 Florian Weimer <fweimer@redhat.com>
30521
30522 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30523
30524 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30525
30526 * include/shlib-compat.h (compat_symbol_reference): Update
30527 comment.
30528
30529 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30530
30531 * math/Makefile (test-types): Add
30532 $(type-float128-$(float128-alias-fcts)).
30533 * math/test-float128.h (TYPE_STR): Define conditional on
30534 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30535 (ULP_IDX): Likewise.
30536 (ULP_I_IDX): Likewise.
30537
30538 * stdlib/strtold.c: Include <bits/floatn.h>
30539 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30540 and later undefine as macro. Define as weak alias if
30541 [!USE_WIDE_CHAR].
30542 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30543 and later undefine as macro. Define as weak alias if
30544 [USE_WIDE_CHAR].
30545 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30546 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30547 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30548 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30549 Define and later undefine as macro. Define as weak alias if
30550 [USE_WIDE_CHAR].
30551 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30552 <bits/floatn.h>.
30553 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30554 Define and later undefine as macro. Define as weak alias if
30555 [!USE_WIDE_CHAR].
30556 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30557 Define and later undefine as macro. Define as weak alias if
30558 [USE_WIDE_CHAR].
30559
30560 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30561
30562 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30563 record_verbose messages.
30564
30565 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30566
30567 [BZ #22052]
30568 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30569 to silence -O3 -Wall warning with GCC 7.
30570
30571 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30572
30573 * Makeconfig (+link-static-before-libc): Use the first of
30574 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30575 * gmon/Makefile (tests): Add tst-gmon-static.
30576 (tests-static): Likewise.
30577 (CFLAGS-tst-gmon-static.c): New.
30578 (CRT-tst-gmon-static): Likewise.
30579 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30580 (tst-gmon-static-ENV): Likewise.
30581 (tests-special): Likewise.
30582 ($(objpfx)tst-gmon-static.out): Likewise.
30583 (clean-tst-gmon-static-data): Likewise.
30584 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30585 * gmon/tst-gmon-static-gprof.sh: New file.
30586 * gmon/tst-gmon-static.c: Likewise.
30587
30588 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30589
30590 [BZ #22295]
30591 * locale/programs/linereader.c (get_string): Don't warn on
30592 non-symbolic character.
30593
30594 [BZ #22294]
30595 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30596 int_curr_symbol.
30597
30598 [BZ #22292]
30599 * locale/programs/record-status.h: New file
30600 * locale/programs/locale.c: Add comment.
30601 * locale/programs/charmap-dir.c: Don't include error.h.
30602 (charmap_opendir): Use record_error.
30603 * locale/programs/charmap.c: Don't include error.h.
30604 (charmap_read): Use record_error, and record_warning.
30605 (parse_charmap): Likewise.
30606 * locale/programs/ld-address.c: Don't include error.h.
30607 (address_finish): Use record_error, and record_warning.
30608 * locale/programs/ld-collate.c: Don't include error.h.
30609 (collate_finish): Use record_error, and record_error_at_line.
30610 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30611 (ctype_class_new): Likewise.
30612 (ctype_map_new): Likewise.
30613 (set_one_default): Likewise.
30614 (set_class_defaults): Likewise.
30615 (translit_flatten): Likewise.
30616 (allocate_arrays): Use record_error, and record_verbose.
30617 * locale/programs/ld-identification.c: Don't include error.h.
30618 (indentation_finish): Use record_error and record_warning.
30619 * locale/programs/ld-measurement.c: Don't include error.h.
30620 (measurement_finish): Use record_error.
30621 * locale/programs/ld-messages.c
30622 (message_finish): Likewise.
30623 * locale/programs/ld-monetary.c
30624 (monetary_finish): Likewise.
30625 * locale/programs/ld-name.c (name_finish): Use record_error
30626 and record_warning.
30627 * locale/programs/ld-numeric.c
30628 (numeric_finish): Use record_error.
30629 * locale/programs/ld-paper.c: Don't include error.h.
30630 (paper_finish): Use record_error.
30631 * locale/programs/ld-telephone.c: Don't include error.h.
30632 (telephone_finish): Use record_error.
30633 * locale/programs/ld-time.c (time_finish): Likewise.
30634 * locale/programs/linereader.h (lr_error): Make inline func.
30635 * locale/programs/localedef.c: Define recorded_warning_count,
30636 and recorded_error_count.
30637 (main): Use record_error. Use recorded_error_count and
30638 recorded_warning_count to issue correct error returns.
30639 (add_to_readlist): Use record_error.
30640 (find_locale): Likewise.
30641 (load_locale): Likewise.
30642 * locale/programs/localedef.h: Remove be_quiet
30643 and WITH_CUR_LOCALE.
30644 * locale/programs/locarchive.c (compare_from_file): Use
30645 record_error.
30646 * locale/programs/locfile.c (write_locale_data): Use
30647 record_error.
30648 * locale/programs/repertoire.c: Dont include error.h.
30649 (repertoire_complain): Use record_error.
30650 * localedata/tst-fmon.sh: Expect failures from localedef.
30651 * localedata/tst-locale.sh: Likewise.
30652 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30653
30654 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30655 (REPORTS): Likewise.
30656 (check): Likewise.
30657 (i18n): Rename to...
30658 (i18n_ctype): ...this.
30659 (i18n-report): Rename to...
30660 (i18n_ctype-report): ...this.
30661 * localedata/locales/i18n_ctype: Regenerate.
30662 * localedata/locales/i18n: copy i18n_ctype.
30663
30664 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30665
30666 * stdlib/strfroml.c: Include <bits/floatn.h>.
30667 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30668 Define before include of <stdlib.h> and undefine afterwards, then
30669 define as weak alias.
30670
30671 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30672 Undefine and restore default definition. Use
30673 libm_alias_ldouble_other.
30674
30675 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30676
30677 [BZ #22153]
30678 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30679 in coredumps.
30680
30681 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30682
30683 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30684 Assign sym_map to be map for local symbols, as TLS relocations
30685 use sym_map to determine whether the symbol is defined and to
30686 extract the TLS information.
30687 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30688 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30689
30690 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30691
30692 [BZ #22189]
30693 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30694 (math_force_eval): Add powerpc version.
30695
30696 [BZ #22142]
30697 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30698 -DBL_MAX.
30699 (do_test): Likewise.
30700 * stdio-common/tst-printf.sh: Likewise.
30701 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30702 ifdef clause in order to set the carry bit right. Replace r0 by
30703 0 without changing the behavior.
30704
30705 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30706
30707 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30708 <libm-alias-ldouble.h>.
30709 (fabsl): Define using libm_alias_ldouble.
30710 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30711 <libm-alias-ldouble.h>.
30712 (fabsl): Define using libm_alias_ldouble.
30713
30714 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30715 Remove conditional code.
30716
30717 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30718 Rename to __clog10_internal_l.
30719 (__clog10_internal_l): Define aliases using
30720 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30721 with __clog10.
30722
30723 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30724
30725 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30726 * benchtests/sincosf-inputs: New file.
30727 * benchtests/cosf-inputs: New file.
30728 * benchtests/sinf-inputs: New file.
30729
30730 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30731
30732 * posix/tst-spawn.c (do_test): Wait for both children.
30733
30734 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30735
30736 [BZ #22284]
30737 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30738 tests-pie): Add tst-gmon-pie.
30739 (CFLAGS-tst-gmon-pie.c): New.
30740 (CRT-tst-gmon-pie): Likewise.
30741 (tst-gmon-pie-ENV): Likewise.
30742 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30743 ($(objpfx)tst-gmon-pie.out): Likewise.
30744 (clean-tst-gmon-pie-data): Likewise.
30745 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30746 * gmon/gmon.c [PIC]: Include <link.h>.
30747 [PIC] (callback): New function.
30748 (write_hist): Add an argument for load address. Subtract load
30749 address from PCs.
30750 (write_call_graph): Likewise.
30751 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30752 it to write_hist and write_call_graph.
30753 * gmon/tst-gmon-pie.c: New file.
30754
30755 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30756
30757 * math/Makefile (test-types-basic): New variable.
30758 (test-types): Likewise.
30759 (libm-test-support): Use $(test-types) instead of $(types).
30760 (libm-tests-base-normal): Likewise.
30761 (libm-tests-base-finite): Likewise.
30762 (libm-tests-base-inline): Likewise.
30763 (generated): Likewise.
30764 ($(objpfx)libm-test-support-$(t).c): Likewise.
30765 (libm-tests-for-type iterator): Likewise.
30766 (libm-test-support iterator): Likewise.
30767 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30768 (ulp_idx): Use ULP_IDX.
30769 * math/test-ldouble.h: Include <float.h>.
30770 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30771 (ULP_IDX): New macro.
30772 (ULP_I_IDX): Likewise.
30773 * math/test-double.h (ULP_IDX): Likewise.
30774 (ULP_I_IDX): Likewise.
30775 * math/test-float.h (ULP_IDX): Likewise.
30776 (ULP_I_IDX): Likewise.
30777 * math/test-float128.h (ULP_IDX): Likewise.
30778 (ULP_I_IDX): Likewise.
30779
30780 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30781
30782 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30783 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30784 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30785 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30786 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30787 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30788 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30789 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30790 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30791 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30792 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30793 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30794 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30795 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30796 (SINGLE_THREAD_BY_GLOBAL): Define.
30797 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30798 Likewise.
30799 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30800 Likewise.
30801 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30802 Likewise.
30803 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30804 Likewise.
30805 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30806 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30807 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30808 Likewise.
30809
30810 2017-10-11 Andreas Schwab <schwab@suse.de>
30811
30812 * nis/Makefile (aux): Remove.
30813 * nscd/Makefile (aux): Add nscd_hash.
30814 (nscd-modules): Likewise.
30815 ($(objpfx)nscd): Don't depend on libnsl.
30816 * nscd/nscd_hash.c: New file.
30817 * nscd/nscd_hash.h: Likewise.
30818 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30819 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30820 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30821 instead of <nis/rpcsvc/nis.h>.
30822 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30823
30824 2017-10-11 Florian Weimer <fweimer@redhat.com>
30825
30826 [BZ #22078]
30827 Avoid large NSS buffers with many addresses, aliases.
30828 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30829 using dynarrays and struct alloc_buffer.
30830 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30831 (tst-nss-files-hosts-multi): Link with -ldl.
30832 * nss/tst-nss-files-hosts-multi.c: New file.
30833
30834 2017-10-11 Florian Weimer <fweimer@redhat.com>
30835
30836 [BZ #18023]
30837 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30838 scratch_buffer. Eliminate gotos.
30839
30840 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30841
30842 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30843 libm_alias_ldouble_other.
30844 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30845 undefine and redefine.
30846 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30847 (exp10l): Do not define here.
30848 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30849 (weak_alias): Undefine and redefine.
30850 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30851 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30852 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30853 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30854
30855 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30856 [!__fma] (fma): Define using libm_alias_double.
30857 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30858 [!__fmaf] (fmaf): Define using libm_alias_float.
30859 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30860 (fmal): Define using libm_alias_ldouble.
30861
30862 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30863
30864 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30865 New macro.
30866 (libm_alias_double_other): Likewise.
30867 (libm_alias_double_r): Use libm_alias_double_other_r.
30868 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30869 New macro.
30870 (libm_alias_float_other): Likewise.
30871 (libm_alias_float_r): Use libm_alias_float_other_r.
30872 * sysdeps/generic/libm-alias-float128.h
30873 (libm_alias_float128_other_r): New macro.
30874 (libm_alias_float128_other): Likewise.
30875 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30876 * sysdeps/generic/libm-alias-ldouble.h
30877 (libm_alias_ldouble_other_r): New macro.
30878 (libm_alias_ldouble_other): Likewise.
30879 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30880 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30881 (libm_alias_double_other_r): New macro.
30882 (libm_alias_double_other): Likewise.
30883 (libm_alias_double_r): Use libm_alias_double_other_r.
30884 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30885 (libm_alias_ldouble_other_r): New macro.
30886 (libm_alias_ldouble_other): Likewise.
30887 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30888 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30889 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30890 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30891 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30892 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30893 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30894 * math/w_exp2f.c: Use libm_alias_float_other.
30895 * math/w_expf.c: Likewise.
30896 * math/w_log2f.c: Likewise.
30897 * math/w_logf.c: Likewise.
30898 * math/w_powf.c: Likewise.
30899 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30900 [!__exp2f]: Use libm_alias_float_other.
30901 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30902 [!__expf]: Use libm_alias_float_other.
30903 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30904 [!__log2f]: Use libm_alias_float_other.
30905 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30906 [!__logf]: Use libm_alias_float_other.
30907 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30908 [!__powf]: Use libm_alias_float_other.
30909
30910 2017-10-10 Florian Weimer <fweimer@redhat.com>
30911
30912 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30913 function.
30914 (_nss_files_gethostbyname3_r): Call it.
30915
30916 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30917
30918 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30919 error. Remove default definition of declare_mgen_alias.
30920 [!declare_mgen_alias_r]: Likewise.
30921 * sysdeps/generic/math-type-macros-double.h
30922 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30923 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30924 (declare_mgen_alias_r): Likewise.
30925 * sysdeps/generic/math-type-macros-float128.h
30926 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30927 * sysdeps/generic/math-type-macros-ldouble.h
30928 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30929 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30930 macro.
30931 (declare_mgen_alias_r_s): Likewise.
30932 (declare_mgen_alias_r): Likewise.
30933 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30934 (lgamma_r): Define using libm_alias_double_r.
30935 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30936 (lgammaf_r): Define using libm_alias_float_r.
30937 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30938 (lgammal_r): Define using libm_alias_ldouble_r.
30939 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30940 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30941
30942 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30943
30944 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30945 extern declaration.
30946
30947 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30948
30949 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30950
30951 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30952
30953 [BZ #21326]
30954 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30955 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30956 * math/Makefile (test-math-cxx11): New test.
30957 * math/test-math-cxx11.cc: New file.
30958
30959 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30960
30961 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30962
30963 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30964 call to allocate the slave pty file descriptor.
30965
30966 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30967
30968 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30969 [!__fma] (fma): Define using libm_alias_double.
30970 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30971 [!__fma] (fma): Define using libm_alias_double.
30972
30973 * sysdeps/ieee754/float128/float128_private.h: Include
30974 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30975 (libm_alias_ldouble_r): Undefine and redefine.
30976 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30977 <libm-alias-ldouble.h>.
30978 (asinhl): Define using libm_alias_ldouble.
30979 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30980 <libm-alias-ldouble.h>.
30981 (atanl): Define using libm_alias_ldouble.
30982 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30983 <libm-alias-ldouble.h>.
30984 (cbrtl): Define using libm_alias_ldouble.
30985 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30986 <libm-alias-ldouble.h>.
30987 (ceill): Define using libm_alias_ldouble.
30988 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30989 <libm-alias-ldouble.h>.
30990 (copysignl): Define using libm_alias_ldouble.
30991 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30992 <libm-alias-ldouble.h>.
30993 (cosl): Define using libm_alias_ldouble.
30994 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30995 <libm-alias-ldouble.h>.
30996 (erfl): Define using libm_alias_ldouble.
30997 (erfcl): Likewise.
30998 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30999 <libm-alias-ldouble.h>.
31000 (expm1l): Define using libm_alias_ldouble.
31001 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31002 <libm-alias-ldouble.h>.
31003 (fabsl): Define using libm_alias_ldouble.
31004 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31005 <libm-alias-ldouble.h>.
31006 (floorl): Define using libm_alias_ldouble.
31007 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31008 <libm-alias-ldouble.h>.
31009 (fmal): Define using libm_alias_ldouble.
31010 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31011 <libm-alias-ldouble.h>.
31012 (frexpl): Define using libm_alias_ldouble.
31013 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31014 libm_alias_ldouble.
31015 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31016 <libm-alias-ldouble.h>.
31017 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31018 libm_alias_ldouble.
31019 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31020 <libm-alias-ldouble.h>.
31021 (getpayloadl): Define using libm_alias_ldouble.
31022 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31023 <libm-alias-ldouble.h>.
31024 (llrintl): Define using libm_alias_ldouble.
31025 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31026 <libm-alias-ldouble.h>.
31027 (llroundl): Define using libm_alias_ldouble.
31028 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31029 <libm-alias-ldouble.h>.
31030 (logbl): Define using libm_alias_ldouble.
31031 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31032 <libm-alias-ldouble.h>.
31033 (lrintl): Define using libm_alias_ldouble.
31034 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31035 <libm-alias-ldouble.h>.
31036 (lroundl): Define using libm_alias_ldouble.
31037 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31038 <libm-alias-ldouble.h>.
31039 (modfl): Define using libm_alias_ldouble.
31040 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31041 <libm-alias-ldouble.h>.
31042 (nearbyintl): Define using libm_alias_ldouble.
31043 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31044 <libm-alias-ldouble.h>.
31045 (nextafterl): Define using libm_alias_ldouble.
31046 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31047 <libm-alias-ldouble.h>.
31048 (nextupl): Define using libm_alias_ldouble.
31049 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31050 <libm-alias-ldouble.h>.
31051 (remquol): Define using libm_alias_ldouble.
31052 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31053 <libm-alias-ldouble.h>.
31054 (rintl): Define using libm_alias_ldouble.
31055 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31056 <libm-alias-ldouble.h>.
31057 (roundevenl): Define using libm_alias_ldouble.
31058 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31059 <libm-alias-ldouble.h>.
31060 (roundl): Define using libm_alias_ldouble.
31061 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31062 using libm_alias_ldouble.
31063 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31064 <libm-alias-ldouble.h>.
31065 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31066 Define using libm_alias_ldouble.
31067 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31068 <libm-alias-ldouble.h>.
31069 (sincosl): Define using libm_alias_ldouble.
31070 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31071 <libm-alias-ldouble.h>.
31072 (sinl): Define using libm_alias_ldouble.
31073 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31074 <libm-alias-ldouble.h>.
31075 (tanhl): Define using libm_alias_ldouble.
31076 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31077 <libm-alias-ldouble.h>.
31078 (tanl): Define using libm_alias_ldouble.
31079 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31080 <libm-alias-ldouble.h>.
31081 (totalorderl): Define using libm_alias_ldouble.
31082 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31083 <libm-alias-ldouble.h>.
31084 (totalordermagl): Define using libm_alias_ldouble.
31085 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31086 <libm-alias-ldouble.h>.
31087 (truncl): Define using libm_alias_ldouble.
31088 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31089 libm_alias_ldouble.
31090 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31091 libm_alias_ldouble.
31092 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31093 <libm-alias-ldouble.h>.
31094 (weak_alias): Do not undefine and redefine.
31095 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31096 (copysignl): Define with long_double_symbol only if [IS_IN
31097 (libc)].
31098 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31099 <libm-alias-ldouble.h>.
31100 (weak_alias): Do not undefine and redefine.
31101 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31102 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31103 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31104 <libm-alias-ldouble.h>.
31105 (weak_alias): Do not undefine and redefine.
31106 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31107 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31108 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31109 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31110 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31111 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31112 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31113 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31114 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31115 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31116 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31117 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31118 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31119 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31120 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31121 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31122 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31123 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31124 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31125 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31126 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31127 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31128 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31129 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31130 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31131 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31132
31133 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31134
31135 [BZ #22111]
31136 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31137 (tcache_thread_freeres): Set tcache_shutting_down before
31138 freeing the tcache.
31139 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31140 * malloc/tst-malloc-tcache-leak.c: New file.
31141
31142 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31143
31144 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31145 back to powerpc32 file.
31146 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31147 (memrchr): Add __memrchr_power8 to ifunc list.
31148 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31149 extra bytes for unaligned inputs.
31150
31151 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31152
31153 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31154 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31155 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31156 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31157 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31158
31159 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31160
31161 * sysdeps/arm/libm-test-ulps: Update.
31162
31163 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31164 <libm-alias-ldouble.h>.
31165 (asinhl): Define using libm_alias_ldouble.
31166 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31167 <libm-alias-ldouble.h>.
31168 (cbrtl): Define using libm_alias_ldouble.
31169 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31170 <libm-alias-ldouble.h>.
31171 (copysignl): Define using libm_alias_ldouble.
31172 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31173 <libm-alias-ldouble.h>.
31174 (cosl): Define using libm_alias_ldouble.
31175 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31176 <libm-alias-ldouble.h>.
31177 (erfl): Define using libm_alias_ldouble.
31178 (erfcl): Likewise.
31179 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31180 <libm-alias-ldouble.h>.
31181 (fmal): Define using libm_alias_ldouble.
31182 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31183 <libm-alias-ldouble.h>.
31184 (frexpl): Define using libm_alias_ldouble.
31185 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31186 libm_alias_ldouble.
31187 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31188 <libm-alias-ldouble.h>.
31189 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31190 libm_alias_ldouble.
31191 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31192 <libm-alias-ldouble.h>.
31193 (getpayloadl): Define using libm_alias_ldouble.
31194 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31195 <libm-alias-ldouble.h>.
31196 (llrintl): Define using libm_alias_ldouble.
31197 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31198 <libm-alias-ldouble.h>.
31199 (llroundl): Define using libm_alias_ldouble.
31200 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31201 <libm-alias-ldouble.h>.
31202 (lrintl): Define using libm_alias_ldouble.
31203 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31204 <libm-alias-ldouble.h>.
31205 (lroundl): Define using libm_alias_ldouble.
31206 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31207 <libm-alias-ldouble.h>.
31208 (modfl): Define using libm_alias_ldouble.
31209 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31210 <libm-alias-ldouble.h>.
31211 (nextupl): Define using libm_alias_ldouble.
31212 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31213 <libm-alias-ldouble.h>.
31214 (remquol): Define using libm_alias_ldouble.
31215 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31216 <libm-alias-ldouble.h>.
31217 (roundevenl): Define using libm_alias_ldouble.
31218 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31219 <libm-alias-ldouble.h>.
31220 (roundl): Define using libm_alias_ldouble.
31221 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31222 using libm_alias_ldouble.
31223 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31224 <libm-alias-ldouble.h>.
31225 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31226 <libm-alias-ldouble.h>.
31227 (setpayloadsigl): Define using libm_alias_ldouble.
31228 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31229 <libm-alias-ldouble.h>.
31230 (sincosl): Define using libm_alias_ldouble.
31231 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31232 <libm-alias-ldouble.h>.
31233 (sinl): Define using libm_alias_ldouble.
31234 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31235 <libm-alias-ldouble.h>.
31236 (tanhl): Define using libm_alias_ldouble.
31237 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31238 <libm-alias-ldouble.h>.
31239 (tanl): Define using libm_alias_ldouble.
31240 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31241 <libm-alias-ldouble.h>.
31242 (totalorderl): Define using libm_alias_ldouble.
31243 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31244 <libm-alias-ldouble.h>.
31245 (totalordermagl): Define using libm_alias_ldouble.
31246 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31247 libm_alias_ldouble.
31248 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31249 libm_alias_ldouble.
31250
31251 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31252
31253 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31254 memmove_falkor.
31255 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31256 (__libc_ifunc_impl_list): Likewise.
31257 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31258 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31259
31260 * benchtests/bench-memmove-walk.c: New file.
31261 * benchtests/Makefile (string-benchset): Add it.
31262
31263 * benchtests/bench-memset-walk.c: New file.
31264 * benchtests/Makefile (string-benchset): Add it.
31265
31266 * benchtests/bench-memcpy-walk.c: New file.
31267 * benchtests/Makefile (string-benchset): Add it.
31268
31269 2017-10-05 Florian Weimer <fweimer@redhat.com>
31270
31271 nscd: Eliminate compilation time dependency in the build output.
31272 * nscd/nscd_stat.c (STATDATA_VERSION)
31273 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31274 (STATDATA_VERSION_FULL): New macro definitions.
31275 (compilation): Remove.
31276 (struct statdata): Adjust version member.
31277 (send_stats): Set version from STATDATA_VERSION_FULL.
31278 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31279
31280 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31281
31282 * configure.ac (--enable-add-ons): Remove option.
31283 (machine): Do not mention add-ons in comment.
31284 (LIBC_PRECONFIGURE): Likewise.
31285 (add_ons): Remove variable and sanity checks and logic to locate
31286 add-ons.
31287 (add_ons_automatic): Remove variable.
31288 (configured_add_ons): Likewise.
31289 (add_ons_sfx): Likewise.
31290 (add_ons_pfx): Likewise.
31291 (add_on_subdirs): Likewise.
31292 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31293 consideration of add-ons in Implies handling.
31294 (sysdeps_add_ons): Likewise.
31295 * configure: Regenerated.
31296 * libidn/configure.ac: Remove.
31297 * libidn/configure: Likewise.
31298 * sysdeps/unix/inet/configure.ac: New file.
31299 * sysdeps/unix/inet/configure: New generated file.
31300 * sysdeps/unix/inet/Subdirs: Add libidn.
31301 * Makeconfig (sysdeps-srcdirs): Remove variable.
31302 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31303 ($(common-objpfx)config.status): Do not depend on add-on files.
31304 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31305 comment.
31306 (all-subdirs): Do not include $(add-on-subdirs).
31307 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31308 * config.make.in (add-ons): Remove variable.
31309 (add-on-subdirs): Likewise.
31310 (sysdeps-add-ons): Likewise.
31311 * manual/Makefile (add-chapters): Remove.
31312 ($(objpfx)texis): Do not depend on $(add-chapters).
31313 (nonexamples): Do not handle $(add-chapters).
31314 (examples): Do not handle $(add-ons).
31315 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31316 libc-texinfo.sh.
31317 * manual/install.texi (Installation): Do not mention add-ons.
31318 (--enable-add-ons): Do not document configure option.
31319 * INSTALL: Regenerated.
31320 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31321 * manual/maint.texi (Hierarchy Conventions): Do not mention
31322 add-ons.
31323 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31324 --enable-add-ons.
31325 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31326 add-ons.
31327 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31328 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31329
31330 2017-10-05 Andreas Schwab <schwab@suse.de>
31331
31332 [BZ #15142]
31333 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31334 (_IO_flush_all_lockp): Always lock list_all_lock.
31335 (_IO_flush_all_linebuffered): Likewise.
31336 (_IO_unbuffer_all): Likewise.
31337
31338 2017-10-05 Florian Weimer <fweimer@redhat.com>
31339
31340 [BZ #15436]
31341 Do not flush stdio streams on abort.
31342 * stdlib/abort.c (fflush): Remove macro definition.
31343 (abort): Remove stages related to stdio flushing.
31344
31345 2017-10-05 Florian Weimer <fweimer@redhat.com>
31346
31347 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31348
31349 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31350
31351 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31352
31353 2017-10-05 Florian Weimer <fweimer@redhat.com>
31354
31355 * support/support_format_hostent.c (support_format_hostent): Add
31356 more error information for NETDB_INTERNAL.
31357
31358 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31359
31360 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31361 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31362 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31363 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31364 AC_DEFINE if multi-arch is enabled.
31365 * sysdeps/i386/configure: Regenerated.
31366
31367 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31368
31369 * Makeconfig (+link-static-before-libc): Use
31370 $(DEFAULT-LDFLAGS-$(@F)).
31371 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31372 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31373 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31374
31375 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31376
31377 * elf/Makefile (tests): Add tst-main1.
31378 (modules-names): Add tst-main1mod.
31379 ($(objpfx)tst-main1): New.
31380 (CRT-tst-main1): Likewise.
31381 (LDFLAGS-tst-main1): Likewise.
31382 (LDLIBS-tst-main1): Likewise.
31383 (tst-main1mod.so-no-z-defs): Likewise.
31384 * elf/tst-main1.c: New file.
31385 * elf/tst-main1mod.c: Likewise.
31386
31387 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31388
31389 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31390
31391 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31392
31393 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31394 (fma): Define using libm_alias_double.
31395 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31396 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31397 <math_ldbl_opt.h>.
31398 (fmal): Do not define as compat symbol here.
31399 * sysdeps/alpha/fpu/s_fma.c: New file.
31400
31401 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31402
31403 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31404
31405 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31406
31407 [BZ #22229]
31408 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31409 <math_ldbl_opt.h>
31410 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31411 and libc.
31412 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31413 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31414 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31415 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31416 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31417 Include <math_ldbl_opt.h>
31418 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31419 and libc.
31420 (compat_symbol): Undefine and redefine.
31421 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31422 <math_ldbl_opt.h>
31423 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31424 (compat_symbol): Undefine and redefine.
31425 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31426 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31427 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31428 GLIBC_2_1 for libm.
31429 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31430 GLIBC_2.0 copysignl symbol.
31431 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31432 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31433
31434 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31435
31436 2017-10-04 Florian Weimer <fweimer@redhat.com>
31437
31438 * scripts/check-local-headers.sh: Ignore nspr4 header file
31439 directory in addition to nspr.
31440
31441 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31442
31443 [BZ #17956]
31444 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31445 * configure: Regenerate.
31446 * crypt/Makefile (nss-cpp-flags): New variable.
31447 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31448 (CPPFLAGS-md5-crypt.c): Use it.
31449 * scripts/check-local-headers.sh: Ignore nspr header file
31450 directory.
31451
31452 2017-10-04 Andreas Schwab <schwab@suse.de>
31453
31454 * nis/Makefile (services): Remove compat.
31455 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31456 ($(objpfx)libnss_compat.so): Remove rule.
31457 * nis/Versions (libnss_compat): Remove.
31458 * nss/Makefile (services): Add compat.
31459 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31460 * nss/Versions (libnss_compat): Define.
31461 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31462 Don't include <rpc/types.h>. Replace bool_t by bool.
31463 * nss/nss_compat/compat-initgroups.c: Likewise.
31464 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31465 instead of <rpcsrv/ypclnt.h>.
31466 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31467 yp_get_default_domain.
31468 * nss/nss_compat/compat-pwd.c: Likewise.
31469 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31470 yp_get_default_domain.
31471 * nss/nss_compat/nisdomain.c: New file.
31472 * nss/nss_compat/nisdomain.h: Likewise.
31473
31474 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31475
31476 [BZ #22244]
31477 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31478 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31479
31480 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31481
31482 [BZ #22243]
31483 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31484 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31485
31486 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31487
31488 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31489 "movl main@GOTOFF(%ebx), %eax".
31490
31491 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31492
31493 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31494 allow undefined _DYNAMIC in PIE libc.a.
31495 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31496 Likewse.
31497
31498 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31499
31500 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31501 check _DYNAMIC.
31502
31503 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31504
31505 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31506 check _DYNAMIC.
31507
31508 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31509
31510 * math/test-math-iscanonical.cc (error): Replace bool with int.
31511
31512 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31513
31514 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31515 (modf): Define using libm_alias_double, only if [!__modf].
31516 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31517 <libm-alias-double.h>.
31518 (modf): Define using libm_alias_double, only if [!__modf].
31519 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31520 compat symbol here.
31521 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31522 (weak_alias): Do not undefine and redefine.
31523 (strong_alias): Likewise.
31524 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31525 (weak_alias): Likewise.
31526 (strong_alias): Likewise.
31527
31528 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31529 (logb): Define using libm_alias_double, only if [!__logb].
31530 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31531 <libm-alias-double.h>.
31532 (logb): Define using libm_alias_double, only if [!__logb].
31533 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31534 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31535 (weak_alias): Do not undefine and redefine.
31536 (strong_alias): Likewise.
31537 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31538 (weak_alias): Likewise.
31539 (strong_alias): Likewise.
31540
31541 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31542
31543 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31544 Check SHARED instead PIC.
31545
31546 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31547
31548 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31549 [!__fmaf] (fmaf): Define using libm_alias_float.
31550
31551 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31552 (frexp): Define using libm_alias_double.
31553 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31554 <libm-alias-double.h>.
31555 (frexp): Define using libm_alias_double.
31556 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31557 compat symbol here.
31558
31559 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31560
31561 [BZ #22235]
31562 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31563 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31564 (CFLAGS-test-math-iscanonical.cc): New variable.
31565 * math/test-math-iscanonical.cc: New file.
31566 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31567 Provide a C++ implementation based on function overloading,
31568 rather than using __MATH_TG, which uses C-only builtins.
31569 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31570 Likewise.
31571 * sysdeps/powerpc/powerpc64le/Makefile
31572 (CFLAGS-test-math-iscanonical.cc): New variable.
31573
31574 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31575
31576 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31577 (ceil): Define using libm_alias_double.
31578 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31579 (floor): Define using libm_alias_double.
31580 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31581 <libm-alias-double.h>.
31582 (llround): Define using libm_alias_double.
31583 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31584 <libm-alias-double.h>.
31585 (lround): Define using libm_alias_double.
31586 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31587 <libm-alias-double.h>.
31588 (nearbyint): Define using libm_alias_double.
31589 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31590 <libm-alias-double.h>.
31591 (remquo): Define using libm_alias_double.
31592 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31593 (rint): Define using libm_alias_double.
31594 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31595 (round): Define using libm_alias_double.
31596 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31597 (trunc): Define using libm_alias_double.
31598 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31599 <libm-alias-double.h>.
31600 (ceil): Define using libm_alias_double.
31601 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31602 <libm-alias-double.h>.
31603 (floor): Define using libm_alias_double.
31604 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31605 <libm-alias-double.h>.
31606 (llround): Define using libm_alias_double.
31607 [_LP64] (lround): Likewise.
31608 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31609 <libm-alias-double.h>.
31610 [!_LP64] (lround): Define using libm_alias_double.
31611 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31612 <libm-alias-double.h>.
31613 (nearbyint): Define using libm_alias_double.
31614 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31615 <libm-alias-double.h>.
31616 (remquo): Define using libm_alias_double.
31617 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31618 <libm-alias-double.h>.
31619 (rint): Define using libm_alias_double.
31620 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31621 <libm-alias-double.h>.
31622 (round): Define using libm_alias_double.
31623 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31624 <libm-alias-double.h>.
31625 (trunc): Define using libm_alias_double.
31626 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31627 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31628 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31629 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31630 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31631 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31632 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31633 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31634 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31635
31636 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31637
31638 * math/w_remainder.c: New file.
31639 * math/w_remainderf.c: New file.
31640 * math/w_remainderl.c: New file.
31641
31642 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31643
31644 * elf/rtld.c (BOOTSTRAP_MAP): New.
31645 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31646 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31647 Likewise.
31648 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31649 Likewise.
31650 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31651 Likewise.
31652
31653 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31654
31655 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31656 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31657 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31658 rtld_hidden_data_ver): Define to empty.
31659 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31660 __assert_perror_fail): Likewise.
31661 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31662 (__rewinddir): Likewise.
31663 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31664 (__profile_frequency): Likewise.
31665 * include/setjmp.h (__sigsetjmp): Likewise.
31666 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31667 __libc_sigaction): Likewise.
31668 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31669 not set hidden attribute.
31670 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31671 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31672 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31673 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31674 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31675 __fxstatat64): Likewise.
31676 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31677 (__uname): Likewise.
31678 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31679 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31680 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31681 (NO_RTLD_HIDDEN): Set.
31682 * sysdeps/mach/hurd/configure: Refresh.
31683 * config.h.in: Refresh.
31684
31685 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31686
31687 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31688 (atan): Define using libm_alias_double.
31689 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31690 (tan): Define using libm_alias_double.
31691 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31692 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31693
31694 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31695 define as weak alias of __atan. Do not define any aliases if
31696 [__atan].
31697 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31698 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31699 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31700 as weak alias of __tan. Do not define any aliases if [__tan].
31701 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31702 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31703 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31704 __atan.
31705 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31706 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31707 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31708 and define as weak alias of __atan.
31709 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31710 __atan.
31711 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31712 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31713 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31714 define as weak alias of __tan.
31715
31716 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31717
31718 * math/w_lgamma.c: New file.
31719 * math/w_lgammaf.c: New file.
31720 * math/w_lgammal.c: New file.
31721
31722 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31723
31724 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31725 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31726 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31727 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31728 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31729 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31730 * sysdeps/i386/fpu/w_log2f.c: New file.
31731 * sysdeps/i386/fpu/w_logf.c: New file.
31732 * sysdeps/i386/fpu/w_powf.c: New file.
31733 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31734 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31735 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31736
31737 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31738 H.J. Lu <hongjiu.lu@intel.com>
31739
31740 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31741 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31742 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31743 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31744 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31745 the new expf code.
31746 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31747 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31748 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31749 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31750 * sysdeps/i386/fpu/w_exp2f.c: New file.
31751 * sysdeps/i386/fpu/w_expf.c: New file.
31752 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31753 * sysdeps/x86_64/fpu/w_expf.c: New file.
31754
31755 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31756
31757 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31758 (log2f): Likewise.
31759 (powf): Likewise.
31760 * math/w_log2f.c: New file.
31761 * math/w_logf.c: New file.
31762 * math/w_powf.c: New file.
31763 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31764 * math/w_logf_compat.c (__logf_compat): Likewise.
31765 * math/w_powf_compat.c (__powf_compat): Likewise.
31766 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31767 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31768 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31769 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31770 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31771 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31772 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31773 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31774 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31775 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31776 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31777 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31778 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31779 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31780 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31782 Likewise.
31783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31784 Likewise.
31785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31786 Likewise.
31787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31788 Likewise.
31789 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31790 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31791 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31792 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31793 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31794 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31795 Likewise.
31796 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31797 Likewise.
31798 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31799 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31800 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31801
31802 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31803
31804 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31805 (sysdep_routines): Add memrchr_power8.
31806 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31807 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31808 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31809 New file.
31810 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31811 (memrchr): Add __memrchr_power8 to ifunc list.
31812 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31813
31814 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31815
31816 [BZ #18822]
31817 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31818 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31819 libc_hidden_def.
31820 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31821 (__posix_fallocate64_l64): Likewise.
31822
31823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31824
31825 [BZ #18822]
31826 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31827 (__sched_setaffinity_new): Add libc_hidden_proto and
31828 libc_hidden_def.
31829
31830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31831
31832 [BZ #18822]
31833 * include/glob.h (__glob64): Add libc_hidden_proto.
31834 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31835 libc_hidden_def.
31836
31837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31838
31839 [BZ #18822]
31840 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31841 attribute_hidden.
31842
31843 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31844
31845 [BZ #18822]
31846 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31847
31848 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31849
31850 [BZ #18822]
31851 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31852 libc_hidden_def.
31853
31854 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31855
31856 [BZ #18822]
31857 * csu/version.c (__libc_print_version): Add attribute_hidden.
31858
31859 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31860
31861 [BZ #18822]
31862 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31863
31864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31865
31866 [BZ #18822]
31867 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31868
31869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31870
31871 [BZ #18822]
31872 * nscd/nscd_helper.c (__nis_hash): New prototype.
31873
31874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31875
31876 [BZ #18822]
31877 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31878 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31879 libc_hidden_def.
31880 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31881 * termios/tcgetattr.c (__tcgetattr): Likewise.
31882
31883 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31884
31885 [BZ #18822]
31886 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31887 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31888 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31889 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31890 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31891
31892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31893
31894 [BZ #18822]
31895 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31896
31897 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31898
31899 [BZ #18822]
31900 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31901 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31902
31903 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31904
31905 [BZ #18822]
31906 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31907
31908 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31909
31910 [BZ #18822]
31911 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31912 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31913
31914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31915
31916 [BZ #18822]
31917 * include/ifreq.h: New file.
31918 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31919 (__ifreq): Likewise.
31920 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31921 (__ifreq): Likewise.
31922
31923 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31924
31925 [BZ #18822]
31926 * include/idna.h: New file.
31927 * inet/getnameinfo.c: Include <idna.h> instead of
31928 <libidn/idna.h>.
31929 (__idna_to_unicode_lzlz): Removed.
31930 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31931 <libidn/idna.h>.
31932 (__idna_to_ascii_lz): Removed.
31933 (__idna_to_unicode_lzlz): Likewise.
31934
31935 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31936
31937 [BZ #18822]
31938 * include/plural-exp.h: New file.
31939 * intl/plural-exp.c: Include <plural-exp.h> instead of
31940 "plural-exp.h".
31941
31942 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31943
31944 [BZ #18822]
31945 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31946 "getsourcefilter.h".
31947 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31948 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31949 "getsourcefilter.h".
31950 (__get_sol): Removed.
31951
31952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31953
31954 [BZ #18822]
31955 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31956 to ...
31957 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31958
31959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31960
31961 [BZ #18822]
31962 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31963 attribute_hidden.
31964
31965 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31966
31967 [BZ #18822]
31968 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31969
31970 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31971
31972 [BZ #18822]
31973 * include/search.h (__tdestroy): Add libc_hidden_proto.
31974 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31975
31976 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31977
31978 [BZ #18822]
31979 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31980
31981 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31982
31983 [BZ #18822]
31984 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31985 attribute_hidden.
31986
31987 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31988
31989 [BZ #18822]
31990 * include/signal.h (__kill): Add libc_hidden_proto.
31991 (__sigblock): Likewise.
31992 (__sigprocmask): Likewise.
31993 (__sigaltstack): Likewise.
31994 * signal/kill.c (__kill): Add libc_hidden_def.
31995 * signal/sigblock.c (__sigblock): Likewise.
31996 * signal/sigprocmask.c (__sigprocmask): Likewise.
31997 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31998 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31999 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32000 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32001 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32002 Likewise.
32003 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32004 Likewise.
32005 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32006 (__sigprocmask): Likewise.
32007 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32008 Likewise.
32009 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32010 (__sigprocmask): Likewise.
32011 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32012 Likewise.
32013
32014 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32015
32016 [BZ #18822]
32017 * include/string.h (__strsep): Add libc_hidden_proto.
32018 * string/strsep.c (__strsep): Add libc_hidden_def.
32019
32020 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32021
32022 [BZ #18822]
32023 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32024 attribute_hidden.
32025 (__spawni): Likewise.
32026
32027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32028
32029 [BZ #18822]
32030 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32031 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32032 libc_hidden_def.
32033
32034 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32035
32036 [BZ #18822]
32037 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32038
32039 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32040
32041 [BZ #18822]
32042 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32043 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32044 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32045 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32046 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32047 Likewise.
32048 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32049 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32050
32051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32052
32053 [BZ #18822]
32054 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32055 (__dcigettext): Likewise.
32056
32057 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32058
32059 [BZ #18822]
32060 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32061 libc_hidden_proto.
32062 (__get_nprocs): Likewise.
32063 (__get_phys_pages): Likewise.
32064 (__get_avphys_pages): Likewise.
32065 (__get_child_max): Add attribute_hidden.
32066 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32067 (__get_nprocs): Likewise.
32068 (__get_phys_pages): Likewise.
32069 (__get_avphys_pages): Likewise.
32070 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32071 libc_hidden_def.
32072 (__get_nprocs): Likewise.
32073 (__get_phys_pages): Likewise.
32074 (__get_avphys_pages): Likewise.
32075 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32076 libc_hidden_def.
32077 (__get_nprocs_conf): Likewise.
32078 (__get_phys_pages): Likewise.
32079 (__get_avphys_pages): Likewise.
32080
32081 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32082
32083 [BZ #18822]
32084 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32085 attribute_hidden.
32086 (__netlink_close): Likewise.
32087 (__netlink_free_handle): Likewise.
32088 (__netlink_request): Likewise.
32089
32090 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32091
32092 [BZ #18822]
32093 * include/rpc/rpc.h (__rpc_thread_variables): Add
32094 attribute_hidden.
32095 (__rpc_thread_svc_cleanup): Likewise.
32096 (__rpc_thread_clnt_cleanup): Likewise.
32097 (__rpc_thread_key_cleanup): Likewise.
32098
32099 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32100
32101 [BZ #18822]
32102 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32103 (__writev): Likewise.
32104 * misc/readv.c (__readv): Add libc_hidden_def.
32105 * misc/writev.c (__writev): Likewise.
32106 * sysdeps/posix/readv.c (__readv): Likewise.
32107 * sysdeps/posix/writev.c (__writev): Likewise.
32108 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32109 (__readv): Likewise.
32110 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32111 (__writev): Likewise.
32112
32113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32114
32115 [BZ #18822]
32116 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32117 (__regcomp): Add libc_hidden_proto.
32118 (__regexec): Likewise.
32119 (__regfree): Likewise.
32120 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32121 (__regfree): Likewise.
32122 * posix/regexec.c (__regexec): Likewise.
32123
32124 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32125
32126 [BZ #18822]
32127 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32128 (__getutent): Likewise.
32129 (__getutid): Likewise.
32130 (__getutline): Likewise.
32131 (__pututline): Likewise.
32132 (__getutent_r): Likewise.
32133 (__getutid_r): Likewise.
32134 (__getutline_r): Likewise.
32135 (__utmpname): Add attribute_hidden.
32136 (__setutent): Likewise.
32137 (__endutent): Likewise.
32138 * login/getutent.c (__getutent): Add libc_hidden_def.
32139 * login/getutent_r.c (__getutent_r): Likewise.
32140 (__pututline): Likewise.
32141 * login/getutid.c (__getutid): Likewise.
32142 * login/getutid_r.c (__getutid_r): Likewise.
32143 * login/getutline.c (__getutline): Likewise.
32144 * login/getutline_r.c (__getutline_r): Likewise.
32145 * login/updwtmp.c (__updwtmp): Likewise.
32146
32147 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32148
32149 [BZ #18822]
32150 * include/dirent.h (__opendir): Always add attribute_hidden.
32151 (__fdopendir): Likewise.
32152 (__closedir): Likewise.
32153 (__readdir): Likewise.
32154 (__readdir64): Add libc_hidden_proto.
32155 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32156 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32157 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32158 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32159 New alias.
32160
32161 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32162
32163 [BZ #18822]
32164 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32165 * include/netdb.h (__gethostbyaddr_r): Likewise.
32166 (__gethostbyname_r): Likewise.
32167 (__gethostbyname2_r): Likewise.
32168 (__getnetbyaddr_r): Likewise.
32169 (__getnetbyname_r): Likewise.
32170 (__getservbyname_r): Likewise.
32171 (__getservbyport_r): Likewise.
32172 (__getprotobyname_r): Likewise.
32173 (__getprotobynumber_r): Likewise.
32174 (__getnetgrent_r): Likewise.
32175 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32176 (__getrpcbynumber_r): Likewise.
32177 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32178
32179 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32180
32181 [BZ #18822]
32182 * include/stdio.h (__fcloseall): Add attribute_hidden.
32183 (__getline): Likewise.
32184 (__path_search): Likewise.
32185 (__gen_tempname): Likewise.
32186 (__libc_message): Likewise.
32187 (__flockfile): Likewise.
32188 (__funlockfile): Likewise.
32189 (__fxprintf): Likewise.
32190 (__fxprintf_nocancel): Likewise.
32191
32192 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32193
32194 [BZ #18822]
32195 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32196 (__sgetsgent_r): Likewise.
32197
32198 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32199
32200 [BZ #18822]
32201 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32202 (__statfs64): Likewise.
32203 (__fstatfs64): Likewise.
32204 * include/sys/statvfs.h (__statvfs64): Likewise.
32205 (__fstatvfs64): Likewise.
32206 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32207 (__statfs_filesize_max): Likewise.
32208 (__statfs_symlinks): Likewise.
32209 (__statfs_chown_restricted): Likewise.
32210
32211 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32212
32213 [BZ #18822]
32214 * include/time.h (__tzstring): Add attribute_hidden.
32215 (__tzfile_read): Likewise.
32216 (__tzfile_compute): Likewise.
32217 (__tzfile_default): Likewise.
32218 (__tzset_parse_tz): Likewise.
32219 (__offtime): Likewise.
32220 (__asctime_r): Likewise.
32221 (__tzset): Likewise.
32222 (__tz_convert): Likewise.
32223 (__getdate_r): Likewise.
32224 (__getclktck): Likewise.
32225
32226 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32227
32228 [BZ #18822]
32229 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32230 (__nscd_unmap): Likewise.
32231 (__nscd_cache_search): Likewise.
32232 (__nscd_get_nl_timestamp): Likewise.
32233 (__nscd_getpwnam_r): Likewise.
32234 (__nscd_getpwuid_r): Likewise.
32235 (__nscd_getgrnam_r): Likewise.
32236 (__nscd_getgrgid_r): Likewise.
32237 (__nscd_gethostbyname_r): Likewise.
32238 (__nscd_gethostbyname2_r): Likewise.
32239 (__nscd_gethostbyaddr_r): Likewise.
32240 (__nscd_getai): Likewise.
32241 (__nscd_getgrouplist): Likewise.
32242 (__nscd_getservbyname_r): Likewise.
32243 (__nscd_getservbyport_r): Likewise.
32244 (__nscd_innetgr): Likewise.
32245 (__nscd_setnetgrent): Likewise.
32246
32247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32248
32249 [BZ #18822]
32250 * include/gmp.h: Declare internal functions only if _ISOMAC is
32251 undefined.
32252 (__mpn_extract_double): Add attribute_hidden.
32253 (__mpn_extract_long_double): Likewise.
32254 (__mpn_extract_float128): Likewise.
32255 (__mpn_construct_float): Likewise.
32256 (__mpn_construct_double): Likewise.
32257 (__mpn_construct_long_double): Likewise.
32258 (__mpn_construct_float128): Likewise.
32259 (mpn_add_1): Likewise.
32260 (mpn_addmul_1): Likewise.
32261 (mpn_add_n): Likewise.
32262 (mpn_cmp): Likewise.
32263 (mpn_divrem): Likewise.
32264 (mpn_lshift): Likewise.
32265 (mpn_mul): Likewise.
32266 (mpn_mul_1): Likewise.
32267 (mpn_rshift): Likewise.
32268 (mpn_sub_1): Likewise.
32269 (mpn_submul_1): Likewise.
32270 (mpn_sub_n): Likewise.
32271
32272 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32273
32274 [BZ #18822]
32275 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32276 (__wcscat): Likewise.
32277 (__btowc): Likewise.
32278 (__wcrtomb): Likewise.
32279 (__mbsrtowcs): Likewise.
32280 (__wcsrtombs): Likewise.
32281 (__mbsnrtowcs): Likewise.
32282 (__wcsnrtombs): Likewise.
32283 (__wcsncpy): Likewise.
32284 (__wcpncpy): Likewise.
32285 (__wmemcpy): Likewise.
32286 (__wmempcpy): Likewise.
32287 (__wmemmove): Likewise.
32288 (__wcschrnul): Likewise.
32289 (__vfwscanf): Likewise.
32290 (__vswprintf): Likewise.
32291 (__fwprintf): Likewise.
32292 (__vfwprintf): Likewise.
32293
32294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32295
32296 [BZ #18822]
32297 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32298 (__getgrgid_r): Likewise.
32299 (__getgrnam_r): Likewise.
32300 * include/pwd.h (__getpwuid_r): Likewise.
32301 (__getpwnam_r): Likewise.
32302 (__fgetpwent_r): Likewise.
32303 * include/shadow.h (__getspnam_r): Likewise.
32304 (__sgetspent_r): Likewise.
32305 (__fgetspent_r): Likewise.
32306
32307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32308
32309 [BZ #18822]
32310 * include/unistd.h (__access): Add attribute_hidden.
32311 (__lseek64): Likewise.
32312 (__libc_pread64): Likewise.
32313 (__pipe2): Likewise.
32314 (__sleep): Likewise.
32315 (__chdir): Likewise.
32316 (__fchdir): Likewise.
32317 (__getcwd): Likewise.
32318 (__rmdir): Likewise.
32319 (__execvpe): Likewise.
32320 (__execve): Likewise.
32321 (__setsid): Likewise.
32322 (__getuid): Likewise.
32323 (__geteuid): Likewise.
32324 (__getgid): Likewise.
32325 (__getegid): Likewise.
32326 (__getgroups): Likewise.
32327 (__group_member): Likewise.
32328 (__ttyname_r): Likewise.
32329 (__isatty): Likewise.
32330 (__readlink): Likewise.
32331 (__unlink): Likewise.
32332 (__gethostname): Likewise.
32333 (__profil): Likewise.
32334 (__getdtablesize): Likewise.
32335 (__brk): Likewise.
32336 (__ftruncate): Likewise.
32337 (__ftruncate64): Likewise.
32338
32339 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32340
32341 [BZ #18822]
32342 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32343 * argp/argp-fs-xinl.c: Likewise.
32344 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32345 * argp/argp-parse.c: Include <argp.h>.
32346 * argp/argp-xinl.c: Likewise.
32347 * include/argp-fmtstream.h: New file.
32348 * include/argp.h (__argp_error): Add attribute_hidden.
32349 (__argp_failure): Likewise.
32350 (__argp_input): Likewise.
32351 (__argp_state_help): Likewise.
32352
32353 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32354
32355 [BZ #18822]
32356 * include/wchar.h (____wcstof_l_internal): New prototype.
32357 (____wcstod_l_internal): Likewise.
32358 (____wcstold_l_internal): Likewise.
32359 (____wcstol_l_internal): Likewise.
32360 (____wcstoul_l_internal): Likewise.
32361 (____wcstoll_l_internal): Likewise.
32362 (____wcstoull_l_internal): Likewise.
32363 (____wcstof128_l_internal): Likewise.
32364 * sysdeps/ieee754/float128/wcstof128.c
32365 (____wcstof128_l_internal): Removed.
32366 * sysdeps/ieee754/float128/wcstof128_l.c
32367 (____wcstof128_l_internal): Likewise.
32368 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32369 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32370 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32371 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32372 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32373 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32374 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32375 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32376 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32377 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32378
32379 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32380
32381 [BZ #18822]
32382 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32383 instead of <sys/statvfs.h>.
32384 (__internal_statvfs): Removed.
32385 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32386 instead of <sys/statvfs.h>.
32387 (__internal_statvfs64): Removed.
32388 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32389 "internal_statvfs.h" instead of <sys/statvfs.h>.
32390 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32391 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32392 instead of <sys/statvfs.h>.
32393 (__internal_statvfs): Removed.
32394 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32395 instead of <sys/statvfs.h>.
32396 (__internal_statvfs64): Removed.
32397
32398 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32399
32400 [BZ #18822]
32401 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32402 (__gconv_close): Likewise.
32403 (__gconv): Likewise.
32404 (__gconv_find_transform): Likewise.
32405 (__gconv_lookup_cache): Likewise.
32406 (__gconv_compare_alias_cache): Likewise.
32407 (__gconv_load_cache): Likewise.
32408 (__gconv_get_path): Likewise.
32409 (__gconv_close_transform): Likewise.
32410 (__gconv_release_cache): Likewise.
32411 (__gconv_find_shlib): Likewise.
32412 (__gconv_release_shlib): Likewise.
32413 (__gconv_get_builtin_trans): Likewise.
32414 (__gconv_compare_alias): Likewise.
32415 * include/dlfcn.h (_dlerror_run): Likewise.
32416 * include/stdio.h (__fortify_fail_abort): Likewise.
32417 * include/time.h (__tz_compute): Likewise.
32418 (__strptime_internal): Likewise.
32419 * intl/gettextP.h (_nl_find_domain): Likewise.
32420 (_nl_load_domain): Likewise.
32421 (_nl_find_msg): Likewise.
32422 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32423 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32424 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32425 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32426 (__gai_find_request): Likewise.
32427 (__gai_remove_request): Likewise.
32428 (__gai_notify): Likewise.
32429 (__gai_notify_only): Likewise.
32430 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32431 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32432 (_dl_non_dynamic_init): Likewise.
32433 (_dl_aux_init): Likewise.
32434 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32435 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32436 Likewise.
32437 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32438 (__wcsmbs_clone_conv): Likewise.
32439 (__wcsmbs_named_conv): Likewise.
32440
32441 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32442
32443 [BZ #18822]
32444 * include/stdlib.h (__random): Add attribute_hidden.
32445 (__random_r): Likewise.
32446 (__srandom_r): Likewise.
32447 (__initstate_r): Likewise.
32448 (__setstate_r): Likewise.
32449 (__erand48_r): Likewise.
32450 (__nrand48_r): Likewise.
32451 (__jrand48_r): Likewise.
32452 (__srand48_r): Likewise.
32453 (__seed48_r): Likewise.
32454 (__lcong48_r): Likewise.
32455 (__drand48_iterate): Likewise.
32456 (__setenv): Likewise.
32457 (__unsetenv): Likewise.
32458 (__clearenv): Likewise.
32459 (__ptsname_r): Likewise.
32460 (__posix_openpt): Likewise.
32461 (__add_to_environ): Likewise.
32462 (__realpath): Add libc_hidden_proto.
32463 (__ecvt_r): Likewise.
32464 (__fcvt_r): Likewise.
32465 (__qecvt_r): Likewise.
32466 (__qfcvt_r): Likewise.
32467 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32468 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32469
32470 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32471
32472 [BZ #18822]
32473 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32474 * include/time.h (__mktime_internal): Likewise.
32475 * libio/iolibio.h (__fopen_internal): Likewise.
32476
32477 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32478
32479 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32480 pointer in frame.
32481 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32482 Correct offset used to restore PIC register.
32483
32484 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32485
32486 [BZ libc/22165]
32487 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32488 code to load address of __getcontext_ret when generating PIC code.
32489
32490 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32491
32492 * elf/Makefile (tests-static-internal): Add
32493 tst-tls1-static-non-pie.
32494 (LDFLAGS-tst-tls1-static-non-pie): New.
32495 * elf/tst-tls1-static-non-pie.c: New file.
32496
32497 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32498
32499 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32500 (asinh): Define using libm_alias_double.
32501 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32502 (cbrt): Define using libm_alias_double.
32503 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32504 <libm-alias-double.h>.
32505 (copysign): Define using libm_alias_double.
32506 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32507 (erf): Define using libm_alias_double.
32508 (erfc): Likewise.
32509 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32510 (expm1): Define using libm_alias_double.
32511 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32512 (fabs): Define using libm_alias_double.
32513 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32514 libm_alias_double.
32515 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32516 <libm-alias-double.h>.
32517 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32518 libm_alias_double.
32519 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32520 <libm-alias-double.h>.
32521 (getpayload): Define using libm_alias_double.
32522 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32523 <libm-alias-double.h>.
32524 (llrint): Define using libm_alias_double.
32525 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32526 (lrint): Define using libm_alias_double.
32527 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32528 <libm-alias-double.h>.
32529 (nextup): Define using libm_alias_double.
32530 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32531 <libm-alias-double.h>.
32532 (roundeven): Define using libm_alias_double.
32533 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32534 libm_alias_double.
32535 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32536 <libm-alias-double.h>.
32537 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32538 using libm_alias_double.
32539 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32540 (cos): Define using libm_alias_double.
32541 (sin): Likewise.
32542 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32543 <libm-alias-double.h>.
32544 (sincos): Define using libm_alias_double.
32545 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32546 (tanh): Define using libm_alias_double.
32547 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32548 <libm-alias-double.h>.
32549 (totalorder): Define using libm_alias_double.
32550 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32551 <libm-alias-double.h>.
32552 (totalordermag): Define using libm_alias_double.
32553 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32554 libm_alias_double.
32555 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32556 libm_alias_double.
32557 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32558 <libm-alias-double.h>.
32559 (getpayload): Define using libm_alias_double.
32560 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32561 <libm-alias-double.h>.
32562 (roundeven): Define using libm_alias_double.
32563 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32564 <libm-alias-double.h>.
32565 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32566 <libm-alias-double.h>.
32567 (totalorder): Define using libm_alias_double.
32568 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32569 <libm-alias-double.h>.
32570 (totalordermag): Define using libm_alias_double.
32571 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32572 libc compat symbol here.
32573 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32574 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32575 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32576 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32577 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32578 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32579 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32580 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32581 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32582 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32583
32584 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32585
32586 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32587 _dl_relocate_static_pie instead of _dl_start to compute load
32588 address in static PIE. Return 0 if _DYNAMIC is undefined for
32589 static executable.
32590
32591 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32592
32593 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32594 _DYNAMIC is undefined for static executable.
32595
32596 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32597
32598 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32599
32600 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32601
32602 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32603
32604 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32605
32606 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32607 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32608 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32609 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32610 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32611 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32612 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32613 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32614 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32615 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32616 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32617 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32618 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32619 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32620 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32621 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32622 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32623
32624 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32625
32626 * math/bits/cmathcalls.h (cimag): Remove inline.
32627 (creal): Remove inline.
32628 (conj): Remove inline.
32629
32630 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32631
32632 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32633 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32634 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32635 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32636 (issignalingf_inline): Likewise.
32637 (POWF_LOG2_TABLE_BITS): Likewise.
32638 (POWF_LOG2_POLY_ORDER): Likewise.
32639 (POWF_SCALE_BITS): Likewise.
32640 (POWF_SCALE): Likewise.
32641 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32642 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32643 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32644
32645 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32646
32647 * math/Makefile (type-float-routines): Add e_log2f_data.
32648 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32649 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32650 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32651 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32652 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32653 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32654 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32655
32656 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32657
32658 * math/Makefile (type-float-routines): Add e_logf_data.
32659 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32660 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32661 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32662 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32663 * sysdeps/i386/fpu/e_logf_data.c: New file.
32664 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32665 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32666
32667 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32668
32669 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32670 undefined _DYNAMIC in PIE libc.a.
32671 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32672 Likewse.
32673
32674 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32675
32676 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32677 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32678 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32679 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32680 (__signbit): Remove.
32681 (__signbitl): Remove.
32682 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32683 (__signbit): Remove.
32684 (__signbitl): Remove.
32685 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32686 (__signbit): Remove.
32687 (__signbitl): Remove.
32688 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32689 (__signbit): Remove.
32690 (__signbitl): Remove.
32691 * sysdeps/tile/bits/mathinline.h: Delete file.
32692 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32693 (__signbit): Remove.
32694 (__signbitl): Remove.
32695
32696 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32697
32698 * math/math.h: Improve handling of C99 isgreater macros.
32699 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32700 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32701 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32702 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32703 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32704
32705 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32706
32707 * sysdeps/aarch64/libm-test-ulps: Update.
32708
32709 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32710
32711 [BZ #22225]
32712 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32713 math_opt_barrier on argument when doing arithmetic on it.
32714 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32715 Likewise. Use math_force_eval not math_opt_barrier after
32716 arithmetic.
32717 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32718 math_opt_barrier on argument when doing arithmetic on it.
32719 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32720 Likewise.
32721
32722 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32723
32724 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32725 libc_hidden_def.
32726 (__freeifaddrs): Likewise.
32727
32728 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32729
32730 * include/dirent.h (__dirfd): New declaration.
32731 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32732 alias.
32733 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32734 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32735 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32736 * include/unistd.h (__revoke): New declaration.
32737 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32738 alias.
32739 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32740 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32741 revoke.
32742 * include/dirent.h (__seekdir): New declaration.
32743 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32744 redefine as weak alias.
32745 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32746 of seekdir.
32747 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32748 and use libc_hidden_def on them.
32749 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32750 them.
32751 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32752 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32753 instead of getifaddrs and freeifaddrs.
32754
32755 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32756
32757 [BZ #18822]
32758 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32759 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32760 (__dso_handle): Remove declaration.
32761 * dlfcn/tstatexit.c (__dso_handle): Removed.
32762 (main): Don't check __dso_handle.
32763 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32764 (main): Don't check __dso_handle.
32765 * include/dso_handle.h: New file.
32766 * malloc/mtrace.c: Include <dso_handle.h>.
32767 (mtrace): Pass __dso_handle directly.
32768 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32769 (__dso_handle): Remove declaration.
32770 (__pthread_atfork): Pass __dso_handle directly.
32771 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32772 (__dso_handle): Removed.
32773 * posix/wordexp-test.c: Include <dso_handle.h>.
32774 (__dso_handle): Remove declaration.
32775 (__app_register_atfork): Pass __dso_handle directly.
32776 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32777 (__dso_handle): Remove declaration.
32778 (at_quick_exit): Pass __dso_handle directly.
32779 * stdlib/atexit.c: Include <dso_handle.h>.
32780 (__dso_handle): Remove declaration.
32781 (atexit): Pass __dso_handle directly.
32782 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32783 (__dso_handle): Removed.
32784
32785 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32786
32787 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32788 using VDSO.
32789
32790 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32791
32792 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32793 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32794 values to correct default value for given type.
32795
32796 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32797
32798 [BZ #22101]
32799 * elf/Makefile (tests): Add tst-debug1.
32800 ($(objpfx)tst-debug1): New.
32801 ($(objpfx)tst-debug1.out): Likewise.
32802 ($(objpfx)tst-debug1mod1.so): Likewise.
32803 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32804 with p_filesz == 0.
32805 * elf/tst-debug1.c: New file.
32806
32807 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32808
32809 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32810 Define using __ifunc.
32811
32812 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32813
32814 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32815 exp2f() values.
32816
32817 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32818
32819 [BZ #22156]
32820 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32821
32822 2017-09-26 Florian Weimer <fweimer@redhat.com>
32823
32824 * resolv/Makefile (tests-internal): Fix typo in comment.
32825
32826 2017-09-26 Florian Weimer <fweimer@redhat.com>
32827
32828 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32829
32830 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32831
32832 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32833 Use an union instead of a max_align_t array for __space,
32834 so that __space is the same size on all platforms.
32835 * malloc/scratch_buffer_grow_preserve.c
32836 (__libc_scratch_buffer_grow_preserve): Likewise.
32837
32838 [BZ #22183]
32839 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32840 version to 2.
32841 * posix/Makefile (routines): Add glob-lstat-compat and
32842 glob64-lstat-compat.
32843 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32844 * posix/glob-lstat-compat.c: New file.
32845 * posix/glob64-lstat-compat.c: Likewise.
32846 * posix/tst-glob_lstat_compat.c: Likewise.
32847 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32848 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32849 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32850 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32851 Likewise.
32852 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32853 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32854 * posix/glob.c (glob_lstat): New function.
32855 (glob): Rename to __glob and add versioned symbol to 2.27.
32856 (glob_in_dir): Use glob_lstat.
32857 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32858 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32859 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32860 2.27.
32861 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32862 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32863 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32864 gl_lstat on glob call.
32865 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32866 and glob64 symbols.
32867 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32868 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32869 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32870 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32871 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32872 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32873 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32874 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32875 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32876 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32877 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32878 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32880 Likewise.
32881 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32883 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32884 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32885 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32886 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32887 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32888 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32889 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32890 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32891 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32892 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32893
32894 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32895
32896 * configure.ac (AS): Require binutils 2.25 or later.
32897 * configure: Regenerated.
32898
32899 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32900
32901 [BZ #22207]
32902 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32903 VM size.
32904
32905 2017-09-25 DJ Delorie <dj@redhat.com>
32906
32907 [BZ #22161]
32908 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32909 resetting timeout.
32910
32911 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32912
32913 * sysdeps/ieee754/dbl-64/sincos32.h
32914 [SINCCOS32_H]: Remove define.
32915 [SINCOS32_H]: Define.
32916
32917 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32918
32919 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32920 (exp2f): Likewise.
32921 * math/w_exp2f.c: New file.
32922 * math/w_expf.c: New file.
32923 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32924 * math/w_expf_compat.c (__expf_compat): Likewise.
32925 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32926 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32927 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32928 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32929 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32930 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32931 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32932 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32933 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32934 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32935 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32936 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32937 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32938 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32940 Likewise.
32941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32942 Likewise.
32943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32944 Likewise.
32945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32946 Likewise.
32947 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32948 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32949 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32950 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32951 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32952 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32953 Likewise.
32954 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32955 Likewise.
32956 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32957 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32958 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32959
32960 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32961
32962 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32963 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32964 (roundtoint, converttoint): Likewise.
32965 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32966 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32967 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32968 * sysdeps/ieee754/flt-32/math_config.h: New file.
32969 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32970 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32971 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32972 * sysdeps/i386/fpu/math_errf.c: New file.
32973 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32974 * sysdeps/ia64/fpu/math_errf.c: New file.
32975 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32976 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32977
32978 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32979
32980 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32981 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32982 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32983 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32984 to make sure that these symbols are defined.
32985 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32986 of <limits.h>
32987 (__need_NULL): Do not define.
32988 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32989 alignment.
32990 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32991 CMGROUP_MAX, cmsgcred): Do not define.
32992 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32993 NULL.
32994 * bits/socket.h: Likewise.
32995 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32996 __gettimeofday instead of gettimeofday.
32997 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32998 instead of settimeofday.
32999
33000 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33001
33002 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33003 (asinhf): Define using libm_alias_float.
33004 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33005 (atanf): Define using libm_alias_float.
33006 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33007 (cbrtf): Define using libm_alias_float.
33008 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33009 (ceilf): Define using libm_alias_float.
33010 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33011 <libm-alias-float.h>.
33012 (copysignf): Define using libm_alias_float.
33013 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33014 (cosf): Define using libm_alias_float.
33015 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33016 (erff): Define using libm_alias_float.
33017 (erfcf): Likewise.
33018 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33019 (expm1f): Define using libm_alias_float.
33020 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33021 (fabsf): Define using libm_alias_float.
33022 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33023 (floorf): Define using libm_alias_float.
33024 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33025 (frexpf): Define using libm_alias_float.
33026 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33027 libm_alias_float.
33028 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33029 <libm-alias-float.h>.
33030 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33031 libm_alias_float.
33032 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33033 <libm-alias-float.h>.
33034 (getpayloadf): Define using libm_alias_float.
33035 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33036 <libm-alias-float.h>.
33037 (llrintf): Define using libm_alias_float.
33038 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33039 <libm-alias-float.h>.
33040 (llroundf): Define using libm_alias_float.
33041 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33042 (logbf): Define using libm_alias_float.
33043 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33044 (lrintf): Define using libm_alias_float.
33045 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33046 (lroundf): Define using libm_alias_float.
33047 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33048 (modff): Define using libm_alias_float.
33049 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33050 <libm-alias-float.h>.
33051 (nearbyintf): Define using libm_alias_float.
33052 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33053 <libm-alias-float.h>.
33054 (nextafterf): Define using libm_alias_float.
33055 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33056 <libm-alias-float.h>.
33057 (nextupf): Define using libm_alias_float.
33058 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33059 <libm-alias-float.h>.
33060 (remquof): Define using libm_alias_float.
33061 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33062 (rintf): Define using libm_alias_float.
33063 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33064 <libm-alias-float.h>.
33065 (roundevenf): Define using libm_alias_float.
33066 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33067 (roundf): Define using libm_alias_float.
33068 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33069 using libm_alias_float.
33070 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33071 <libm-alias-float.h>.
33072 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33073 Define using libm_alias_float.
33074 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33075 <libm-alias-float.h>.
33076 (sincosf): Define using libm_alias_float.
33077 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33078 (sinf): Define using libm_alias_float.
33079 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33080 (tanf): Define using libm_alias_float.
33081 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33082 (tanhf): Define using libm_alias_float.
33083 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33084 <libm-alias-float.h>.
33085 (totalorderf): Define using libm_alias_float.
33086 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33087 <libm-alias-float.h>.
33088 (totalordermagf): Define using libm_alias_float.
33089 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33090 (truncf): Define using libm_alias_float.
33091 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33092 libm_alias_float.
33093 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33094 libm_alias_float.
33095
33096 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33097
33098 [BZ #22146]
33099 math/math.h: Let fpclassify use the builtin in C++ mode, even
33100 when optimazing for size.
33101
33102 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33103
33104 * csu/Makefile (generated): Do not add version-info.h.
33105 (before-compile): Likewise.
33106 (all-Banner-files): Remove variable.
33107 ($(objpfx)version-info.h): Remove rule.
33108 * csu/version.c (banner): Do not include "version-info.h".
33109 * libidn/Banner: Remove.
33110 * manual/contrib.texi (Simon Josefsson): New entry.
33111
33112 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33113
33114 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33115 Remove conditionals on LDBL_MANT_DIG.
33116 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33117 (__ieee754_lgammal_r): Likewise.
33118
33119 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33120
33121 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33122 _Float128 and L().
33123 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33124 _Float128 and L(). Replace _Float128 with long double and L(x)
33125 with xL, throughout the file.
33126 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33127 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33128 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33129 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33130
33131 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33132
33133 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33134 sysdeps/ieee754/ldbl-128ibm.
33135 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33136 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33137 of including it. Keep _Float128 and L() intact. These will be
33138 reviewed by a separate patch.
33139 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33140 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33141 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33142 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33143
33144 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33145
33146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33147 (__finitef128): Define to __redirect___finitef128.
33148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33149 (__isinff128): Define to __redirect___isinff128.
33150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33151 (__isnanf128): Define to __redirect___isnanf128.
33152
33153 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33154
33155 * sysdeps/powerpc/powerpc64le/Makefile
33156 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33157 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33158
33159 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33160 Carlos O'Donell <carlos@redhat.com>
33161
33162 [BZ #22180]
33163 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33164 * stdlib/test-dlclose-exit-race.c: New file.
33165 * stdlib/test-dlclose-exit-race-helper.c: New file.
33166 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33167
33168 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33169
33170 * crypt/Banner: Remove file.
33171 * nptl/Banner: Likewise.
33172 * resolv/Banner: Likewise.
33173 * soft-fp/Banner: Likewise.
33174 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33175 ($(objpfx)version.d): Remove dependency on banner.h.
33176 ($(objpfx)version.os): Likewise.
33177 * nptl/version.c (banner): Do not include banner.h.
33178 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33179 Jelinek and BIND code.
33180
33181 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33182 Carlos O'Donell <carlos@redhat.com>
33183
33184 * support/xdlfcn.h: New file.
33185 * support/xdlfcn.c: New file.
33186 * support/Makefile (libsupport-routines): Add xdlfcn.
33187 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33188
33189 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33190
33191 [BZ #20142]
33192 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33193 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33194 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33195 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33196 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33197 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33198 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33199 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33200
33201 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33202 Ricky Zhou <rickyz@google.com>
33203 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33204
33205 [BZ #14333]
33206 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33207 Remove atomics.
33208 (__new_exitfn): Fail registration when we finished at_exit processing.
33209 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33210 * stdlib/on_exit.c (__on_exit): Likewise.
33211 * stdlib/exit.c (__exit_funcs_done): New variable.
33212 (__run_exit_handlers): Use __exit_funcs_lock.
33213 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33214 declarations.
33215 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33216 (test-cxa_atexit-race, test-on_exit-race): New tests.
33217 * stdlib/test-atexit-race-common.c: New file.
33218 * stdlib/test-atexit-race.c: New file.
33219 * stdlib/test-at_quick_exit-race.c: New file.
33220 * stdlib/test-cxa_atexit-race.c: New file.
33221 * stdlib/test-on_exit-race.c: New file.
33222
33223 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33224
33225 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33226 * benchtests/exp2f-inputs: Copy of expf-inputs.
33227 * benchtests/log2f-inputs: Copy of logf-inputs.
33228
33229 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33230
33231 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33232 Explicitly take address of first element of array arguments in
33233 call to INLINE_SYSCALL.
33234
33235 2017-09-19 Andreas Schwab <schwab@suse.de>
33236
33237 [BZ #22134]
33238 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33239 execveat first.
33240 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33241 unimplemented.
33242 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33243 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33244 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33245 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33246 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33247 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33248 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33249 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33250 * posix/Makefile (tests): Add tst-fexecve.
33251 * posix/tst-fexecve.c: New file.
33252
33253 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33254
33255 * benchtests/Makefile: Add logf benchmark.
33256 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33257
33258 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33259
33260 * benchtests/Makefile: Add expf benchmark.
33261 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33262
33263 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33264
33265 * csu/Makefile: Add -funwind-tables to libc-start.c.
33266 * debug/Makefile: Add -funwind-tables to backtrace.c.
33267 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33268 * sysdeps/arm/Makefile: Likewise.
33269 * sysdeps/i386/Makefile: Likewise.
33270 * sysdeps/m68k/Makefile: Likewise.
33271 * sysdeps/mips/Makefile: Likewise.
33272 * sysdeps/nios2/Makefile: Likewise.
33273 * sysdeps/sh/Makefile: Likewise.
33274 * sysdeps/sparc/Makefile: Likewise.
33275
33276 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33277
33278 * benchtests/Makefile (bench-math): Add trunc and truncf.
33279 (CFLAGS-bench-trunc.c): New variable.
33280 (CFLAGS-bench-truncf.c): Likewise.
33281 * benchtests/trunc-inputs: New file.
33282 * benchtests/truncf-inputs: Likewise.
33283
33284 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33285
33286 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33287
33288 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33289
33290 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33291 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33292 redefine.
33293 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33294 (exp10l): Define as weak alias.
33295 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33296 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33297 and redefine.
33298 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33299 (remainderl): Define as weak alias.
33300
33301 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33302 (fmal): Define using libm_alias_ldouble.
33303 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33304 (acoshl): Define using libm_alias_ldouble.
33305 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33306 (acosl): Define using libm_alias_ldouble.
33307 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33308 (asinl): Define using libm_alias_ldouble.
33309 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33310 (atan2l): Define using libm_alias_ldouble.
33311 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33312 (atanhl): Define using libm_alias_ldouble.
33313 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33314 (coshl): Define using libm_alias_ldouble.
33315 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33316 (exp10l): Define using libm_alias_ldouble.
33317 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33318 (exp2l): Define using libm_alias_ldouble.
33319 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33320 (expl): Define using libm_alias_ldouble.
33321 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33322 (fmodl): Define using libm_alias_ldouble.
33323 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33324 (hypotl): Define using libm_alias_ldouble.
33325 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33326 (j0l): Define using libm_alias_ldouble.
33327 (y0l): Likewise.
33328 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33329 (j1l): Define using libm_alias_ldouble.
33330 (y1l): Likewise.
33331 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33332 (jnl): Define using libm_alias_ldouble.
33333 (ynl): Likewise.
33334 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33335 (log10l): Define using libm_alias_ldouble.
33336 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33337 (log2l): Define using libm_alias_ldouble.
33338 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33339 (logl): Define using libm_alias_ldouble.
33340 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33341 (powl): Define using libm_alias_ldouble.
33342 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33343 (remainderl): Define using libm_alias_ldouble.
33344 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33345 (sinhl): Define using libm_alias_ldouble.
33346 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33347 (sqrtl): Define using libm_alias_ldouble.
33348 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33349 (tgammal): Define using libm_alias_ldouble.
33350 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33351 (exp10l): Do not use long_double_symbol here.
33352 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33353 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33354 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33355 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33356 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33357 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33358 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33359 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33360 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33361 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33362 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33363 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33364 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33365 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33366 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33367 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33368 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33369 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33370 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33371 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33372 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33373 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33374
33375 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33376
33377 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33378 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33379
33380 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33381
33382 * io/read.c (read): Add libc_hidden_weak.
33383 * sysdeps/mach/hurd/read.c (read): Likewise.
33384 * io/write.c (write): Likewise.
33385 * sysdeps/mach/hurd/write.c (write): Likewise.
33386 * io/pread64.c (__pread64): Likewise.
33387 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33388 * posix/pread64.c (__pread64): Add libc_hidden_def.
33389
33390 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33391
33392 * benchtests/scripts/compare_strings.py: New option -g.
33393 (draw_graph): Print a message that a graph is being generated.
33394 (process_results): Generate graph only if -g is passed.
33395 (main): Process option -g.
33396
33397 * benchtests/scripts/compare_strings.py (process_results):
33398 Better spacing for output.
33399
33400 * benchtests/scripts/compare_strings.py: Use argparse.
33401 * benchtests/README: Document existence of compare_strings.py.
33402
33403 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33404
33405 * math/s_fma.c: Include <libm-alias-double.h>.
33406 (fma): Define using libm_alias_double.
33407 * math/s_nextafter.c: Include <libm-alias-double.h>.
33408 (nextafter): Define using libm_alias_double.
33409 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33410 (acos): Define using libm_alias_double.
33411 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33412 (aocsh): Define using libm_alias_double.
33413 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33414 (asin): Define using libm_alias_double.
33415 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33416 (atan2): Define using libm_alias_double.
33417 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33418 (atanh): Define using libm_alias_double.
33419 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33420 (cosh): Define using libm_alias_double.
33421 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33422 (exp10): Define using libm_alias_double.
33423 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33424 (exp2): Define using libm_alias_double.
33425 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33426 (exp): Define using libm_alias_double.
33427 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33428 (fmod): Define using libm_alias_double.
33429 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33430 (hypot): Define using libm_alias_double.
33431 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33432 (j0): Define using libm_alias_double.
33433 (y0): Likewise.
33434 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33435 (j1): Define using libm_alias_double.
33436 (y1): Likewise.
33437 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33438 (jn): Define using libm_alias_double.
33439 (yn): Likewise.
33440 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33441 (log10): Define using libm_alias_double.
33442 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33443 (log2): Define using libm_alias_double.
33444 * math/w_log_compat.c: Include <libm-alias-double.h>.
33445 (log): Define using libm_alias_double.
33446 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33447 (pow): Define using libm_alias_double.
33448 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33449 (remainder): Define using libm_alias_double.
33450 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33451 (sinh): Define using libm_alias_double.
33452 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33453 (sqrt): Define using libm_alias_double.
33454 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33455 (tgamma): Define using libm_alias_double.
33456 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33457 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33458 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33459 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33460 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33461 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33462 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33463 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33464 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33465 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33466 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33467 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33468 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33469 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33470 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33471 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33472 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33473 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33474 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33475 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33476 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33477 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33478 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33479 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33480 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33481
33482 * math/e_acoshl.c: Remove.
33483 * math/e_acosl.c: Likewise.
33484 * math/e_asinl.c: Likewise.
33485 * math/e_atan2l.c: Likewise.
33486 * math/e_atanhl.c: Likewise.
33487 * math/e_coshl.c: Likewise.
33488 * math/e_expl.c: Likewise.
33489 * math/e_fmodl.c: Likewise.
33490 * math/e_gammal_r.c: Likewise.
33491 * math/e_hypotl.c: Likewise.
33492 * math/e_j0l.c: Likewise.
33493 * math/e_j1l.c: Likewise.
33494 * math/e_jnl.c: Likewise.
33495 * math/e_lgammal_r.c: Likewise.
33496 * math/e_log10l.c: Likewise.
33497 * math/e_log2l.c: Likewise.
33498 * math/e_logl.c: Likewise.
33499 * math/e_powl.c: Likewise.
33500 * math/e_rem_pio2l.c: Likewise.
33501 * math/e_sinhl.c: Likewise.
33502 * math/e_sqrtf128.c: Likewise.
33503 * math/e_sqrtl.c: Likewise.
33504 * math/k_cosl.c: Likewise.
33505 * math/k_sinl.c: Likewise.
33506 * math/k_tanl.c: Likewise.
33507 * math/s_asinhl.c: Likewise.
33508 * math/s_atanl.c: Likewise.
33509 * math/s_cbrtl.c: Likewise.
33510 * math/s_erfl.c: Likewise.
33511 * math/s_expm1l.c: Likewise.
33512 * math/s_log1pl.c: Likewise.
33513 * math/s_tanhl.c: Likewise.
33514
33515 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33516
33517 [BZ #21745]
33518 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33519 [$(subdir) = math] (sysdep_calls): New variable. Has the
33520 previous contents of sysdep_routines, but re-sorted..
33521 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33522 sysdep_calls.
33523 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33524 defined in sysdep_calls and replace by the respective m_* names.
33525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33526 (compat_symbol): Undefine to avoid duplicated compat symbols in
33527 libc.
33528
33529 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33530
33531 * math/s_fmaf.c: Include <libm-alias-float.h>.
33532 (fmaf): Define using libm_alias_float.
33533 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33534 (acosf): Define using libm_alias_float.
33535 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33536 (acoshf): Define using libm_alias_float.
33537 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33538 (asinf): Define using libm_alias_float.
33539 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33540 (atan2f): Define using libm_alias_float.
33541 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33542 (atanhf): Define using libm_alias_float.
33543 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33544 (coshf): Define using libm_alias_float.
33545 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33546 (exp10f): Define using libm_alias_float.
33547 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33548 (fmodf): Define using libm_alias_float.
33549 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33550 (hypotf): Define using libm_alias_float.
33551 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33552 (j0f): Define using libm_alias_float.
33553 (y0f): Likewise.
33554 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33555 (j1f): Define using libm_alias_float.
33556 (y1f): Likewise.
33557 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33558 (jnf): Define using libm_alias_float.
33559 (ynf): Likewise.
33560 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33561 (log10f): Define using libm_alias_float.
33562 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33563 (log2f): Define using libm_alias_float.
33564 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33565 (logf): Define using libm_alias_float.
33566 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33567 (powf): Define using libm_alias_float.
33568 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33569 (remainderf): Define using libm_alias_float.
33570 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33571 (sinhf): Define using libm_alias_float.
33572 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33573 (sqrtf): Define using libm_alias_float.
33574 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33575 (tgammaf): Define using libm_alias_float.
33576
33577 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33578
33579 * include/math.h (roundeven): Change hidden_proto call to
33580 __roundeven.
33581 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33582 alias.
33583 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33584 (y0): Rename to __y0 and define as weak alias.
33585 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33586 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33587 alias.
33588 (y0f): Rename to __y0f and define as weak alias.
33589 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33590 alias.
33591 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33592 (y1): Rename to __y1 and define as weak alias.
33593 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33594 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33595 alias.
33596 (y1f): Rename to __y1f and define as weak alias.
33597 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33598 alias.
33599 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33600 (yn): Rename to __yn and define as weak alias.
33601 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33602 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33603 alias.
33604 (ynf): Rename to __ynf and define as weak alias.
33605 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33606 (fromfp): Define as weak alias.
33607 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33608 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33609 (fromfpx): Define as weak alias.
33610 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33611 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33612 __getpayload and define as weak alias.
33613 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33614 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33615 __roundeven and define as weak alias.
33616 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33617 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33618 __setpayload.
33619 (setpayload): Define as weak alias.
33620 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33621 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33622 __setpayloadsig.
33623 (setpayloadsig): Define as weak alias.
33624 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33625 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33626 __totalorder and define as weak alias.
33627 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33628 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33629 to __totalordermag and define as weak alias.
33630 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33631 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33632 (ufromfp): Define as weak alias.
33633 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33634 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33635 __ufromfpx.
33636 (ufromfpx): Define as weak alias.
33637 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33638 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33639 Rename to __getpayload and define as weak alias.
33640 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33641 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33642 Rename to __roundeven and define as weak alias.
33643 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33644 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33645 Rename to __totalorder and define as weak alias.
33646 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33647 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33648 (totalordermag): Rename to __totalordermag and define as weak
33649 alias.
33650 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33651 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33652 macro.
33653 (__roundevenl): Likewise.
33654 (__totalorderl): Likewise.
33655 (__totalordermagl): Likewise
33656 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33657 __fromfpf128.
33658 (fromfpf128): Define as weak alias.
33659 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33660 __fromfpxf128.
33661 (fromfpxf128): Define as weak alias.
33662 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33663 __setpayloadf128.
33664 (setpayloadf128): Define as weak alias.
33665 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33666 __setpayloadsigf128.
33667 (setpayloadsigf128): Define as weak alias.
33668 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33669 __ufromfpf128.
33670 (ufromfpf128): Define as weak alias.
33671 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33672 __ufromfpxf128.
33673 (ufromfpxf128): Define as weak alias.
33674 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33675 (fromfpf): Define as weak alias.
33676 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33677 __fromfpxf.
33678 (fromfpxf): Define as weak alias.
33679 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33680 __getpayloadf and define as weak alias.
33681 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33682 __roundevenf and define as weak alias.
33683 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33684 __setpayloadf.
33685 (setpayloadf): Define as weak alias.
33686 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33687 __setpayloadsigf.
33688 (setpayloadsigf): Define as weak alias.
33689 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33690 __totalorderf and define as weak alias.
33691 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33692 Rename to __totalordermagf and define as weak alias.
33693 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33694 __ufromfpf.
33695 (ufromfpf): Define as weak alias.
33696 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33697 __ufromfpxf.
33698 (ufromfpxf): Define as weak alias.
33699 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33700 __fromfpl.
33701 (fromfpl): Define as weak alias.
33702 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33703 __fromfpxl.
33704 (fromfpxl): Define as weak alias.
33705 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33706 to __getpayloadl and define as weak alias.
33707 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33708 __roundevenl and define as weak alias.
33709 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33710 __setpayloadl.
33711 (setpayloadl): Define as weak alias.
33712 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33713 __setpayloadsigl.
33714 (setpayloadsigl): Define as weak alias.
33715 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33716 to __totalorderl and define as weak alias.
33717 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33718 Rename to __totalordermagl and define as weak alias.
33719 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33720 __ufromfpl.
33721 (ufromfpl): Define as weak alias.
33722 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33723 __ufromfpxl.
33724 (ufromfpxl): Define as weak alias.
33725 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33726 __fromfpl.
33727 (fromfpl): Define as weak alias.
33728 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33729 __fromfpxl.
33730 (fromfpxl): Define as weak alias.
33731 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33732 Rename to __getpayloadl and define as weak alias.
33733 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33734 to __roundevenl and define as weak alias. Call __roundeven
33735 instead of roundeven.
33736 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33737 __setpayloadl.
33738 (setpayloadl): Define as weak alias.
33739 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33740 __setpayloadsigl.
33741 (setpayloadsigl): Define as weak alias.
33742 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33743 Rename to __totalorderl and define as weak alias.
33744 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33745 Rename to __totalordermagl and define as weak alias.
33746 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33747 __ufromfpl.
33748 (ufromfpl): Define as weak alias.
33749 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33750 __ufromfpxl.
33751 (ufromfpxl): Define as weak alias.
33752 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33753 __fromfpl.
33754 (fromfpl): Define as weak alias.
33755 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33756 __fromfpxl.
33757 (fromfpxl): Define as weak alias.
33758 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33759 __getpayloadl and define as weak alias.
33760 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33761 __roundevenl and define as weak alias.
33762 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33763 __setpayloadl.
33764 (setpayloadl): Define as weak alias.
33765 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33766 __setpayloadsigl.
33767 (setpayloadsigl): Define as weak alias.
33768 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33769 __totalorderl and define as weak alias.
33770 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33771 Rename to __totalordermagl and define as weak alias.
33772 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33773 __ufromfpl.
33774 (ufromfpl): Define as weak alias.
33775 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33776 __ufromfpxl.
33777 (ufromfpxl): Define as weak alias.
33778
33779 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33780
33781 * benchtests/bench-string.h (realloc_bufs): New function.
33782 (test_init): Call it.
33783 * benchtests/bench-memset-large.c (do_test): Likewise.
33784 * benchtests/bench-memset.c (do_test): Likewise.
33785
33786 * benchtests/bench-memset-large.c: Print output in JSON
33787 format.
33788 * benchtests/bench-memset.c: Likewise.
33789
33790 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33791
33792 [BZ #21084]
33793 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33794 * iconvdata/Makefile: Add IBM858.
33795 * iconvdata/gconv-modules: Likewise.
33796 * iconvdata/tst-tables.sh: Likewise.
33797 * iconvdata/ibm858.c: New file.
33798 * localedata/charmaps/IBM858: Likewise.
33799
33800 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33801
33802 [BZ #22023]
33803 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33804 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33805
33806 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33807
33808 [BZ #22112]
33809 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33810 and add tel_int_fmt.
33811
33812 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33813
33814 * sysdeps/generic/libm-alias-float128.h: New file.
33815 * sysdeps/generic/math-type-macros-float128.h: Include
33816 <libm-alias-float128.h>.
33817 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33818
33819 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33820
33821 * sysdeps/generic/libm-alias-ldouble.h: New file.
33822 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33823 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33824 * sysdeps/generic/math-type-macros-ldouble.h: Include
33825 <libm-alias-ldouble.h>.
33826 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33827 libm_alias_ldouble.
33828
33829 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33830
33831 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33832 * math/w_exp_compat.c: ... here.
33833 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33834 * math/w_expf_compat.c: ... here.
33835 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33836 * math/w_expl_compat.c: ... here.
33837 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33838 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33839 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33840 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33841
33842 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33843
33844 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33845 redefine.
33846 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33847 macro.
33848 (ldexpl): Only define as compat symbol for libc, not libm.
33849 (scalbnl): Define as compat symbol for libc here.
33850 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33851 define for [IS_IN (libc)].
33852 (__ldexpl_2): Remove alias.
33853 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33854 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33855 name in long_double_symbol call.
33856 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33857 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33858 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33859 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33860 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33861 Remove macro.
33862 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33863 Define as compat symbol.
33864
33865 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33866
33867 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33868 * sysdeps/unix/sysv/linux/alpha/Makefile
33869 [$(subdir) = csu] (sysdep_routines): Remove rule.
33870
33871 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33872
33873 * sysdeps/generic/libm-alias-double.h: New file.
33874 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33875 * sysdeps/generic/math-type-macros-double.h: Include
33876 <libm-alias-double.h>.
33877 [declare_mgen_alias] (declare_mgen_alias): Define to use
33878 libm_alias_double.
33879 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33880 (M_LIBM_NEED_COMPAT): Remove macro.
33881 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33882 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33883 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33884 code.
33885 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33886 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33887 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33888 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33889 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33890 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33891 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33892 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33893 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33894 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33895 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33896 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33897 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33898 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33899 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33900 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33901 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33902 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33903 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33904 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33905 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33906 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33907 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33908 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33909 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33910 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33911 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33912 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33913 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33914 macro.
33915 (declare_mgen_alias): New macro.
33916 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33917 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33918 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33919 (M_LIBM_NEED_COMPAT): Remove macro.
33920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33921 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33922 <first-versions.h>.
33923 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33924 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33925
33926 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33927
33928 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33929 (declare_mgen_alias_2): Remove.
33930 * sysdeps/generic/math-type-macros-double.h
33931 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33932 Likewise.
33933 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33934 alias.
33935 (ldexp): Define with declare_mgen_alias.
33936 (scalbn): Likewise.
33937
33938 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33939
33940 * grp/initgroups.c: Include config.h.
33941 (DEFAULT_CONFIG): New macro.
33942 (internal_getgrouplist): Use DEFAULT_CONFIG.
33943 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33944 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33945 (DEFAULT_DEFCONFIG): New macro.
33946 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33947 * nss/grp-lookup.c: Include config.h
33948 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33949 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33950 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33951 * manual/nss.texi: Update default values section.
33952
33953 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33954
33955 [BZ #21967]
33956 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33957 New.
33958 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33959 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33960 Handle MathVec_Prefer_No_AVX512.
33961 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33962 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33963 is set.
33964
33965 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33966
33967 * posix/sched_primax.c (__sched_get_priority_max): Add
33968 libc_hidden_def.
33969 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33970 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33971 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33972 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33973 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33974 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33975 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33976 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33977 Add aliases.
33978
33979 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33980
33981 * sysdeps/generic/libm-alias-float.h: New file.
33982 * sysdeps/generic/math-type-macros-float.h: Include
33983 <libm-alias-float.h>.
33984 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33985
33986 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33987
33988 [BZ #22093]
33989 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33990 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33991 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33992 (HWCAP_IMPORTANT): Likewise.
33993 (HWCAP_X86_64): New enum.
33994 (HWCAP_X86_AVX512_1): Updated.
33995 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33996 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33997 (modules-names): Add x86_64/tst-x86_64mod-1.
33998 (LDFLAGS-tst-x86_64mod-1.so): New.
33999 ($(objpfx)tst-x86_64-1): Likewise.
34000 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34001 (tst-x86_64-1-clean): Likewise.
34002 * sysdeps/x86_64/tst-x86_64-1.c: New file.
34003 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34004
34005 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34006
34007 * po/sv.po: Update translations.
34008 * po/fr.po: Likewise.
34009
34010 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34011
34012 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34013 seconds.
34014 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34015 seconds.
34016 * elf/rtld-Rules: Fix $(error) use.
34017
34018 2017-09-09 Mike FABIAN <mfabian@redhat.com>
34019
34020 [BZ #14925]
34021 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34022 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34023 * localedata/locales/bn_BD: “Bengali” was still used in some
34024 comments. Change it to “Bangla”.
34025
34026 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34027
34028 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34029
34030 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34031
34032 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34033 thunderx2t99p1 to list of cpu names.
34034 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34035 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34036
34037 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34038
34039 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34040 Use strcmp instead of tunable_is_name.
34041
34042 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34043
34044 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34045 (F_GET_RW_HINT): New macro.
34046 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34047 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34048 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34049 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34050 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34051 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34052 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34053 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34054 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34055
34056 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34057 (F_ADD_SEALS): New macro.
34058 [__USE_GNU] (F_GET_SEALS): Likewise.
34059 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34060 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34061 [__USE_GNU] (F_SEAL_GROW): Likewise.
34062 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34063
34064 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34065
34066 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34067 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34068 * posix/glob_internal.h (__glob_pattern_type):
34069 * posix/glob.c (glob):
34070 * posix/glob_pattern_p.c (__glob_pattern_p):
34071 Use them.
34072
34073 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34074 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34075 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34076 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34077 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34079 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34080 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34081 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34082 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34083 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34084 * sysdeps/wordsize-64/glob.c: Likewise.
34085 * sysdeps/wordsize-64/glob64.c: Likewise.
34086 * sysdeps/wordsize-64/globfree.c: Likewise.
34087 * sysdeps/wordsize-64/globfree64.c: Likewise.
34088 * sysdeps/unix/sysv/linux/glob.c: New file.
34089 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34090 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34091 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34092 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34093 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34094 adds !GLOB_NO_OLD_VERSION as an extra condition.
34095 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34096 using relative path instead of absolute one.
34097 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34098 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34099 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34100 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34101 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34102 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34103
34104 [BZ #1062]
34105 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34106 (glob): Use the same scratch buffer for both getlogin_r and
34107 getpwnam_r. Don’t require preallocation of the login name. This
34108 simplifies storage allocation, and corrects the handling of
34109 long login names.
34110
34111 [BZ #1062]
34112 * posix/glob.c (glob): Port recent patches to platforms
34113 lacking getpwnam_r.
34114 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34115 returns an error number rather than setting errno.
34116
34117 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34118 instead of GCC extension.
34119 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34120 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34121 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34122
34123 [BZ #866]
34124 [BZ #1062]
34125 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34126 * posix/bug-glob1.c: Remove file.
34127 * posix/tst-glob_symlinks.c: New file.
34128 * posix/glob.c (__lstat64): New macro.
34129 (is_dir): New function.
34130 (glob, glob_in_dir): Match symlinks even if they are dangling.
34131 (link_stat, link_exists_p): Remove. All uses removed.
34132
34133 [BZ #1062]
34134 [BZ #19971]
34135 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34136 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34137 All uses removed.
34138
34139 [BZ #1062]
34140 CVE-2017-15671
34141 * posix/Makefile (routines): Add globfree, globfree64, and
34142 glob_pattern_p.
34143 * posix/flexmember.h: New file.
34144 * posix/glob_internal.h: Likewise.
34145 * posix/glob_pattern_p.c: Likewise.
34146 * posix/globfree.c: Likewise.
34147 * posix/globfree64.c: Likewise.
34148 * sysdeps/gnu/globfree64.c: Likewise.
34149 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34150 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34151 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34152 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34153 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34154 * sysdeps/wordsize-64/globfree.c: Likewise.
34155 * sysdeps/wordsize-64/globfree64.c: Likewise.
34156 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34157 [NDEBUG): Remove comments.
34158 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34159 (dirent_type): New type. Use uint_fast8_t not
34160 uint8_t, as C99 does not require uint8_t.
34161 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34162 (struct readdir_result): Use dirent_type. Do not define skip_entry
34163 unless it is needed; this saves a byte on platforms lacking d_ino.
34164 (readdir_result_type, readdir_result_skip_entry):
34165 New functions, replacing ...
34166 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34167 these functions, which were removed. This makes the callers
34168 easier to read. All callers changed.
34169 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34170 (size_add_wrapv, glob_use_alloca): New static functions.
34171 (glob, glob_in_dir): Check for size_t overflow in several places,
34172 and fix some size_t checks that were not quite right.
34173 Remove old code using SHELL since Bash no longer
34174 uses this.
34175 (glob, prefix_array): Separate MS code better.
34176 (glob_in_dir): Remove old Amiga and VMS code.
34177 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34178 separate files.
34179 (glob_in_dir): Do not rely on undefined behavior in accessing
34180 struct members beyond their bounds. Use a flexible array member
34181 instead
34182 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34183 0/1. Caller changed.
34184 (glob): Fix memory leaks.
34185 * posix/glob64 (globfree64): Move to separate file.
34186 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34187 (globfree64): Remove hidden alias.
34188 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34189 oldglob.
34190 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34191 separate file.
34192 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34193 define.
34194 Move compat code to separate file.
34195 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34196 separate file.
34197
34198 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34199
34200 * resolv/tst-resolv-qtypes.c (domain): Changed to
34201 "const char domain[] =".
34202
34203 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34204
34205 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34206 version to 3.1.6.
34207
34208 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34209 (TCP_MD5SIG_EXT): Likewise.
34210 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34211 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34212 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34213
34214 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34215
34216 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34217
34218 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34219
34220 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34221
34222 [BZ #22100]
34223 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34224
34225 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34226
34227 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34228 before assuming that the file is empty. Avoid testing buffer content
34229 when nread == 0.
34230
34231 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34232
34233 [BZ #18858]
34234 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34235 Remove define.
34236 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34237 Likewise.
34238 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34239 Likewise.
34240 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34241 Likewise.
34242 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34243 Likewise.
34244 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34245 Likewise.
34246 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34247 Likewise.
34248
34249 2017-09-06 Florian Weimer <fweimer@redhat.com>
34250
34251 * malloc/dynarray_emplace_enlarge.c
34252 (__libc_dynarray_emplace_enlarge): Add missing else.
34253
34254 2017-09-06 Florian Weimer <fweimer@redhat.com>
34255
34256 [BZ #22096]
34257 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34258 case of failure to obtain the global conf object.
34259
34260 2017-09-06 Florian Weimer <fweimer@redhat.com>
34261
34262 [BZ #22095]
34263 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34264 dynarray allocation failure.
34265
34266 2017-09-06 Florian Weimer <fweimer@redhat.com>
34267
34268 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34269 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34270 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34271 New functions.
34272 (response): Call them. Add 'p', '6' flag processing.
34273 (test_reverse): New function.
34274 (test_get2_any): Call it.
34275 (test_no_inet6): Add 'p' test.
34276 (test_inet6): Likewise.
34277
34278 2017-09-06 Florian Weimer <fweimer@redhat.com>
34279
34280 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34281 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34282 the QNAME.
34283 (test_gai): Adjust query names. Add additional tests.
34284 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34285 test_get2. Adjust query names. Add additional tests.
34286 (test_no_inet6): New function, extracted from threadfunc.
34287 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34288 Add additional tests.
34289
34290 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34291
34292 [BZ #22070]
34293 * localedata/unicode-gen/utf8_gen.py: Set the width for
34294 characters with Prepended_Concatenation_Mark property to 1
34295 * localedata/charmaps/UTF-8: Updated using the improved script.
34296
34297 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34298
34299 [BZ #21750]
34300 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34301 use the range notation for all ranges of neighbouring characters
34302 with the same width.
34303
34304 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34305
34306 * sysdeps/generic/math-type-macros-double.h: Include
34307 <math-svid-compat.h>.
34308 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34309 * sysdeps/generic/math-type-macros-float.h: Include
34310 <math-svid-compat.h>.
34311 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34312 * sysdeps/generic/math-type-macros-ldouble.h: Include
34313 <math-svid-compat.h>.
34314 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34315 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34316 condition.
34317 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34318 * math/w_acosf_compat.c: Likewise.
34319 * math/w_acosh_compat.c: Likewise.
34320 * math/w_acoshf_compat.c: Likewise.
34321 * math/w_acoshl_compat.c: Likewise.
34322 * math/w_acosl_compat.c: Likewise.
34323 * math/w_asin_compat.c: Likewise.
34324 * math/w_asinf_compat.c: Likewise.
34325 * math/w_asinl_compat.c: Likewise.
34326 * math/w_atan2_compat.c: Likewise.
34327 * math/w_atan2f_compat.c: Likewise.
34328 * math/w_atan2l_compat.c: Likewise.
34329 * math/w_atanh_compat.c: Likewise.
34330 * math/w_atanhf_compat.c: Likewise.
34331 * math/w_atanhl_compat.c: Likewise.
34332 * math/w_cosh_compat.c: Likewise.
34333 * math/w_coshf_compat.c: Likewise.
34334 * math/w_coshl_compat.c: Likewise.
34335 * math/w_exp10_compat.c: Likewise.
34336 * math/w_exp10f_compat.c: Likewise.
34337 * math/w_exp10l_compat.c: Likewise.
34338 * math/w_exp2_compat.c: Likewise.
34339 * math/w_exp2f_compat.c: Likewise.
34340 * math/w_exp2l_compat.c: Likewise.
34341 * math/w_fmod_compat.c: Likewise.
34342 * math/w_fmodf_compat.c: Likewise.
34343 * math/w_fmodl_compat.c: Likewise.
34344 * math/w_hypot_compat.c: Likewise.
34345 * math/w_hypotf_compat.c: Likewise.
34346 * math/w_hypotl_compat.c: Likewise.
34347 * math/w_j0_compat.c: Likewise.
34348 * math/w_j0f_compat.c: Likewise.
34349 * math/w_j0l_compat.c: Likewise.
34350 * math/w_j1_compat.c: Likewise.
34351 * math/w_j1f_compat.c: Likewise.
34352 * math/w_j1l_compat.c: Likewise.
34353 * math/w_jn_compat.c: Likewise.
34354 * math/w_jnf_compat.c: Likewise.
34355 * math/w_jnl_compat.c: Likewise.
34356 * math/w_lgamma_r_compat.c: Likewise.
34357 * math/w_lgammaf_r_compat.c: Likewise.
34358 * math/w_lgammal_r_compat.c: Likewise.
34359 * math/w_log10_compat.c: Likewise.
34360 * math/w_log10f_compat.c: Likewise.
34361 * math/w_log10l_compat.c: Likewise.
34362 * math/w_log2_compat.c: Likewise.
34363 * math/w_log2f_compat.c: Likewise.
34364 * math/w_log2l_compat.c: Likewise.
34365 * math/w_log_compat.c: Likewise.
34366 * math/w_logf_compat.c: Likewise.
34367 * math/w_logl_compat.c: Likewise.
34368 * math/w_pow_compat.c: Likewise.
34369 * math/w_powf_compat.c: Likewise.
34370 * math/w_powl_compat.c: Likewise.
34371 * math/w_remainder_compat.c: Likewise.
34372 * math/w_remainderf_compat.c: Likewise.
34373 * math/w_remainderl_compat.c: Likewise.
34374 * math/w_sinh_compat.c: Likewise.
34375 * math/w_sinhf_compat.c: Likewise.
34376 * math/w_sinhl_compat.c: Likewise.
34377 * math/w_sqrt_compat.c: Likewise.
34378 * math/w_sqrtf_compat.c: Likewise.
34379 * math/w_sqrtl_compat.c: Likewise.
34380 * math/w_tgamma_compat.c: Likewise.
34381 * math/w_tgammaf_compat.c: Likewise.
34382 * math/w_tgammal_compat.c: Likewise.
34383 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34384 [LIBM_SVID_COMPAT].
34385 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34386 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34387 [LIBM_SVID_COMPAT].
34388 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34389 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34390 [LIBM_SVID_COMPAT].
34391 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34392 * sysdeps/i386/fpu/w_sqrt.c: New file.
34393 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34394 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34395 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34396 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34397 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34398 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34399 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34400 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34401 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34402 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34403 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34404 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34405 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34406 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34407 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34408 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34409 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34410 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34411 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34412 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34413 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34414 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34415 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34416 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34417 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34418 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34419 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34420 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34421 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34422 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34423 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34424 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34425 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34426 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34427 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34428 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34429 * sysdeps/ia64/fpu/w_log.c: Likewise.
34430 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34431 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34432 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34433 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34434 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34435 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34436 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34437 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34438 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34439 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34440 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34441 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34442 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34443 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34444 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34445 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34446 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34447 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34448 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34449 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34450 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34451 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34452 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34453 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34454 [LIBM_SVID_COMPAT].
34455 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34456 * sysdeps/ieee754/k_standard.c: Likewise.
34457 * sysdeps/ieee754/k_standardf.c: Likewise.
34458 * sysdeps/ieee754/k_standardl.c: Likewise.
34459 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34460 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34461 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34462 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34463 long_double_symbol call on [LIBM_SVID_COMPAT].
34464 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34465 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34466 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34467 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34468 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34469 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34470 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34471 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34472 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34473 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34474 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34475 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34476 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34477 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34478 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34479 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34480 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34481 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34482 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34483 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34484 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34485 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34486
34487 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34488
34489 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34490 * malloc/tst-mallocstate.c: Convert from test-skeleton
34491 to test-driver. Ifdef code using TEST_COMPAT macro.
34492 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34493 * math/test-matherr.c: Likewise.
34494
34495 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34496
34497 [BZ #22086]
34498 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34499 comparing word with byte-swapped constant.
34500
34501 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34502
34503 [BZ #20498]
34504 * locale/iso-639.def: add Miskito.
34505 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34506 * localedata/locales/miq_NI: New file.
34507
34508 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34509
34510 [BZ #18822]
34511 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34512 (__mkdir): Likewise.
34513 * io/chmod.c (__chmod): Add libc_hidden_def.
34514 * io/mkdir.c (__mkdir): Likewise.
34515 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34516 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34517 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34518 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34519
34520 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34521
34522 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34523 version to 4.13.
34524
34525 [BZ #22082]
34526 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34527 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34528
34529 2017-09-04 Florian Weimer <fweimer@redhat.com>
34530
34531 * math/math.h: Issue warning if log is defined.
34532
34533 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34534
34535 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34536 kernel version to 4.13.
34537
34538 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34539
34540 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34541 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34542 parameter.
34543 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34544 just <bits/types.h>.
34545 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34546 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34547 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34548 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34549 * misc/preadv2.c: Include <errno.h>.
34550 * misc/preadv64v2.c: Include <errno.h>.
34551 * misc/pwritev2.c: Include <errno.h>.
34552 * misc/pwritev64v2.c: Include <errno.h>.
34553 * sysdeps/posix/preadv2.c: Include <errno.h>.
34554 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34555 Fix <unistd.h> inclusion.
34556 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34557 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34558 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34559 __strtoul_internal): New functions.
34560 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34561 * sysdeps/posix/system.c: Include <sigsetops.h>.
34562 * sysdeps/mach/hurd/i386/Makefile
34563 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34564 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34565 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34566 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34567 __feraiseexcept_renamed to feraiseexcept instead of
34568 __GI_feraiseexcept.
34569 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34570 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34571 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34572 RWF_NOWAIT): Define to 0 if undefined already.
34573 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34574 boils down to 0.
34575 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34576 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34577
34578 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34579
34580 * manual/math.texi (pow10): Do not document.
34581 (pow10f): Likewise.
34582 (pow10l): Likewise.
34583 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34584 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34585 * math/libm-test-exp10.inc (pow10_test): Remove.
34586 (do_test): Do not call pow10.
34587 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34588 [NO_LONG_DOUBLE] (pow10l): Likewise.
34589 * math/w_exp10f_compat.c (pow10f): Likewise.
34590 * math/w_exp10l_compat.c (pow10l): Likewise.
34591 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34592 (pow10): Make into compat symbol.
34593 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34594 (pow10f): Make into compat symbol.
34595 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34596 (pow10l): Make into compat symbol.
34597 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34598 pow10.
34599 (CFLAGS-nldbl-pow10.c): Remove variable..
34600 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34601 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34602 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34603 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34604 Undefine and redefine.
34605 (pow10l): Make into compat symbol.
34606 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34607 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34608 * sysdeps/arm/libm-test-ulps: Likewise.
34609 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34610 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34611 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34612 * sysdeps/microblaze/libm-test-ulps: Likewise.
34613 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34614 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34615 * sysdeps/nios2/libm-test-ulps: Likewise.
34616 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34617 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34618 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34619 * sysdeps/sh/libm-test-ulps: Likewise.
34620 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34621 * sysdeps/tile/libm-test-ulps: Likewise.
34622 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34623
34624 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34625
34626 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34627
34628 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34629
34630 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34631 "../ChangeLog.old/ChangeLog.8".
34632 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34633 "../ChangeLog.old/ChangeLog.14".
34634
34635 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34636
34637 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34638 Threads Library.
34639
34640 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34641
34642 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34643
34644 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34645
34646 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34647 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34648
34649 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34650
34651 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34652 32 atexit handlers.
34653
34654 2017-09-01 Zack Weinberg <zackw@panix.com>
34655
34656 * math/math.h (HUGE_VAL): Improve commentary.
34657
34658 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34659 Andreas Schwab <schwab@suse.de>
34660
34661 [BZ #21530]
34662 * include/stdio.h (__gen_tempfd): New function.
34663 * stdio-common/Makefile (routines): Add gentempfd.
34664 * stdio-common/gentempfd.c: New file.
34665 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34666 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34667 unnamed file first.
34668
34669 2017-09-01 Florian Weimer <fweimer@redhat.com>
34670
34671 [BZ #21915]
34672 [BZ #21922]
34673 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34674 result to determine success or failure, not the errno value.
34675 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34676 (tst-nss-files-hosts-erange): Link with -ldl.
34677 * nss/tst-nss-files-hosts-erange.c: New file.
34678 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34679 (do_test): Add NO_DATA tests.
34680 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34681 (do_test): Call it.
34682
34683 2017-09-01 Florian Weimer <fweimer@redhat.com>
34684
34685 [BZ #21922]
34686 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34687 coming from gethostbyname2_r.
34688
34689 2017-09-01 Florian Weimer <fweimer@redhat.com>
34690
34691 * support/namespace.h (struct support_chroot_configuration): Add
34692 hosts, host_conf.
34693 (struct support_chroot): Add path_hosts, path_host_conf.
34694 * support/support_chroot.c (write_file): New function.
34695 (support_chroot_create): Call it to process /etc/resolv.conf,
34696 /etc/hosts, /etc/host.conf.
34697 (support_chroot_free): Update.
34698
34699 2017-09-01 Florian Weimer <fweimer@redhat.com>
34700
34701 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34702 status indicates it is set.
34703
34704 2017-09-01 Florian Weimer <fweimer@redhat.com>
34705
34706 [BZ #20532]
34707 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34708 function lookup failures more reliable.
34709
34710 2017-09-01 Florian Weimer <fweimer@redhat.com>
34711
34712 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34713 (getcanonname): Likewise.
34714 (gaih_inet): Likewise.
34715
34716 2017-09-01 Florian Weimer <fweimer@redhat.com>
34717
34718 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34719 (getcanonname): Likewise.
34720 (gaih_inet): Likewise.
34721
34722 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34723 Richard Henderson <rth@twiddle.net>
34724
34725 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34726 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34727 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34728 (IREG_SIZE, OREG_SIZE): New macros.
34729 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34730 (IREG_SIZE, OREG_SIZE): New macros.
34731 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34732 (IREG_SIZE): New macro.
34733 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34734 (IREG_SIZE): New macro.
34735 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34736 New includes.
34737 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34738 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34739 (__CONCATX): Handle exceptions correctly on large values that may
34740 set FE_INVALID.
34741 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34742 Initialize if not already set.
34743 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34744
34745 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34746
34747 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34748 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34749 Likewise.
34750 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34751 Likewise.
34752 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34753 Likewise.
34754 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34755 Likewise.
34756 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34757 Likewise.
34758 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34759 Likewise.
34760 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34761 Likewise.
34762 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34763 (NO_CANCELLATION): Likewise.
34764 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34765 Likewise.
34766 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34767 Likewise.
34768 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34769 Likewise.
34770 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34771 (NO_CANCELLATION): Likewise.
34772 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34773 (NO_CANCELLATION): Likewise.
34774 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34775 Likewise
34776 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34777 Likewise.
34778 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34779 Likewise.
34780 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34781 Likewise.
34782 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34783 hidden prototype.
34784 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34785 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34786
34787 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34788
34789 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34790 in resolver call.
34791
34792 2017-08-31 Florian Weimer <fweimer@redhat.com>
34793
34794 * include/libc-symbols.h (internal_function): Remove.
34795
34796 2017-08-31 Florian Weimer <fweimer@redhat.com>
34797
34798 * stdlib/fmtmsg.c (internal_addseverity): Remove
34799 internal_function.
34800
34801 2017-08-31 Florian Weimer <fweimer@redhat.com>
34802
34803 * stdio-common/printf_fp.c (group_number): Remove
34804 internal_function.
34805 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34806
34807 2017-08-31 Florian Weimer <fweimer@redhat.com>
34808
34809 * posix/fnmatch.c (internal_function): Remove definition.
34810 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34811 * posix/regcomp.c (peek_token, init_word_char)
34812 (duplicate_node_closure, fetch_token, peek_token)
34813 (peek_token_bracket, build_range_exp, build_collating_symbol):
34814 Likewise.
34815 * posix/regex_internal.c (re_string_construct_common)
34816 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34817 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34818 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34819 (re_string_translate_buffer, re_string_reconstruct)
34820 (re_string_peek_byte_case, re_string_fetch_byte_case)
34821 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34822 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34823 (re_node_set_add_intersect, re_node_set_init_union)
34824 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34825 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34826 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34827 (re_acquire_state_context): Likewise.
34828 * posix/regex_internal.h (internal_function): Remove definition.
34829 (re_string_realloc_buffers, build_wcs_buffer)
34830 (build_wcs_upper_buffer, build_upper_buffer)
34831 (re_string_translate_buffer, re_string_context_at)
34832 (re_string_char_size_at, re_string_wchar_at)
34833 (re_string_elem_size_at): Likewise.
34834 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34835 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34836 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34837 (re_search_internal, re_search_2_stub, re_search_stub)
34838 (re_copy_regs, prune_impossible_nodes, check_matching)
34839 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34840 (free_fail_stack_return, sift_states_iter_mb)
34841 (sift_states_backward, build_sifted_states)
34842 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34843 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34844 (check_subexp_limits, sift_states_bkref, merge_state_array)
34845 (find_recover_state, transit_state, merge_state_with_log)
34846 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34847 (transit_state_mb, transit_state_bkref, get_subexp)
34848 (get_subexp_sub, find_subexp_node, check_arrival)
34849 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34850 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34851 (check_node_accept_bytes, find_collation_sequence_value)
34852 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34853 (acquire_init_state_context, check_halt_node_context)
34854 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34855 (sub_epsilon_src_nodes): Likewise.
34856 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34857 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34858 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34859 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34860 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34861 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34862 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34863 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34864 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34865 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34866 (PREADV): Likewise.
34867 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34868 (PREADV): Likewise.
34869 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34870 (PWRITEV): Likewise.
34871 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34872 (PWRITEV): Likewise.
34873 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34874 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34875
34876 2017-08-31 Florian Weimer <fweimer@redhat.com>
34877
34878 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34879 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34880 Remove internal_function.
34881 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34882 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34883 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34884 (__deallocate_stack, __libc_pthread_init)
34885 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34886 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34887 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34888 Likewise.
34889 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34890 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34891 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34892 Likewise.
34893 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34894 (__pthread_mutex_unlock_usercnt): Likewise.
34895
34896 2017-08-31 Florian Weimer <fweimer@redhat.com>
34897
34898 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34899 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34900 (fts_safe_changedir): Remove internal_function.
34901 * io/ftw.c (internal_function): Remove definition.
34902 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34903
34904 2017-08-31 Florian Weimer <fweimer@redhat.com>
34905
34906 * inet/deadline.c (__deadline_current_time)
34907 (__deadline_from_timeval, __deadline_to_ms): Remove
34908 internal_function.
34909 * inet/getnameinfo.c (nrl_domainname): Likewise.
34910 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34911 * inet/inet6_option.c (add_pad): Likewise.
34912 * inet/net-internal.h (__deadline_current_time)
34913 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34914 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34915 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34916 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34917
34918 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34919
34920 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34921 include <bits/nan.h>.
34922 * math/Makefile (headers): Remove bits/nan.h.
34923 * bits/nan.h: Remove.
34924 * sysdeps/ieee754/bits/nan.h: Likewise.
34925 * sysdeps/mips/bits/nan.h: Likewise.
34926
34927 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34928 not include <bits/inf.h>.
34929 * math/Makefile (headers): Remove bits/inf.h.
34930 * bits/inf.h: Remove.
34931 * sysdeps/ieee754/bits/inf.h: Likewise.
34932
34933 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34934 bits/huge_vall.h or bits/huge_val_flt128.h.
34935 (HUGE_VAL): Define directly here.
34936 [__USE_ISOC99] (HUGE_VALF): Likewise.
34937 [__USE_ISOC99] (HUGE_VALL): Likewise.
34938 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34939 (HUGE_VAL_F128): Likewise.
34940 * math/Makefile (headers): Remove bits/huge_val.h,
34941 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34942 * bits/huge_val.h: Remove.
34943 * bits/huge_val_flt128.h: Likewise.
34944 * bits/huge_valf.h: Likewise.
34945 * bits/huge_vall.h: Likewise.
34946 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34947 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34948 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34949 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34950 * sysdeps/sh/bits/huge_val.h: Likewise.
34951 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34952 * sysdeps/x86/bits/huge_vall.h: Likewise.
34953
34954 2017-08-31 Florian Weimer <fweimer@redhat.com>
34955
34956 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34957 internal_function.
34958 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34959 Likewise.
34960 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34961 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34962 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34963 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34964 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34965 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34966 * elf/dl-libc.c (dlerror_run): Likewise.
34967 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34968 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34969 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34970 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34971 Likewise.
34972 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34973 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34974 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34975 * elf/dl-profile.c (_dl_start_profile): Likewise.
34976 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34977 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34978 Likewise.
34979 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34980 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34981 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34982 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34983 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34984 (_dl_allocate_tls_storage): Likewise.
34985 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34986 (_dl_check_all_versions): Likewise.
34987 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34988 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34989 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34990 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34991 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34992 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34993 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34994 internal_function from __dl_start.
34995 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34996 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34997 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34998 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34999 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35000 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35001 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35002 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35003 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35004 (_dl_next_ld_env_entry, _dl_important_hwcaps)
35005 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35006 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35007 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35008 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35009 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35010 Likewise.
35011 (struct rtld_global_ro): Remove internal_function from the
35012 _dl_lookup_symbol_x member.
35013 (_dl_symbol_value): Remove. No longer defined anywhere.
35014 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35015 internal_function.
35016 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35017 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35018 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35019 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35020 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35021 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35022 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35023 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35024 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35025 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35026 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35027 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35028
35029 2017-08-31 Florian Weimer <fweimer@redhat.com>
35030
35031 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35032 Remove internal_function.
35033 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35034 Likewise.
35035 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35036 Likewise.
35037
35038 2017-08-31 Florian Weimer <fweimer@redhat.com>
35039
35040 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35041 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35042 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35043
35044 2017-08-31 Florian Weimer <fweimer@redhat.com>
35045
35046 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35047 (__gai_enqueue_request): Remove internal_function.
35048 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35049 (__gai_remove_request, __gai_notify, __gai_notify_only)
35050 (__gai_sigqueue): Likewise.
35051 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35052 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35053 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35054 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35055 Likewise.
35056
35057 2017-08-31 Florian Weimer <fweimer@redhat.com>
35058
35059 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35060 * include/dirent.h (__opendirat, __getdents, __getdents64)
35061 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35062 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35063 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35064 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35065 Likewise.
35066 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35067
35068 2017-08-31 Florian Weimer <fweimer@redhat.com>
35069
35070 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35071 internal_function.
35072 (GETCWD_RETURN_TYPE): Likewise.
35073
35074 2017-08-31 Florian Weimer <fweimer@redhat.com>
35075
35076 * include/time.h (__tz_compute, __strptime_internal): Remove
35077 internal_function.
35078 * time/strptime_l.c (__strptime_internal): Likewise.
35079 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35080
35081 2017-08-31 Florian Weimer <fweimer@redhat.com>
35082
35083 * iconv/gconv.c (__gconv): Remove internal_function.
35084 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35085 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35086 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35087 (__gconv_release_cache): Likewise.
35088 * iconv/gconv_close.c (__gconv_close): Likewise.
35089 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35090 (read_conf_file, __gconv_get_path): Likewise.
35091 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35092 (__gconv_release_step, gen_steps, increment_counter)
35093 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35094 (__gconv_close_transform, free_modules_db): Likewise.
35095 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35096 Likewise.
35097 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35098 (__gconv_find_transform, __gconv_lookup_cache)
35099 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35100 (__gconv_close_transform, __gconv_release_cache)
35101 (__gconv_loaded_object, __gconv_release_shlib)
35102 (__gconv_compare_alias): Likewise.
35103 * iconv/gconv_open.c (__gconv_open): Likewise.
35104 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35105 * iconv/iconvconfig.c (add_module): Likewise.
35106 * intl/dcigettext.c (plural_lookup, guess_category_value)
35107 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35108 * intl/eval-plural.h (plural_eval): Likewise.
35109 * intl/finddomain.c (_nl_find_domain): Likewise.
35110 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35111 (_nl_load_domain, _nl_find_msg): Likewise.
35112 (internal_function): Remove definition.
35113 * intl/loadinfo.h (internal_function): Likewise.
35114 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35115 internal_function.
35116 * intl/localealias.c (internal_function): Remove definition.
35117 (read_alias_file): Remove internal_function.
35118 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35119 * intl/plural-exp.h (internal_function): Remove definition.
35120 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35121 internal_function.
35122 * intl/plural.c: Regenerate.
35123 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35124 * locale/coll-lookup.c (__collidx_table_lookup)
35125 (__collseq_table_lookup): Likewise.
35126 * locale/coll-lookup.h (__collidx_table_lookup)
35127 (__collseq_table_lookup): Likewise.
35128 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35129 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35130 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35131 (_nl_unload_locale): Likewise.
35132 * locale/localeinfo.h (struct __locale_data): Remove
35133 internal_function from cleanup member.
35134 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35135 (_nl_remove_locale, _nl_load_locale_from_archive)
35136 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35137 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35138 (_nl_cleanup_time): Remove internal_function.
35139 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35140 (_nl_parse_alt_digit): Likewise.
35141 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35142 (_nl_select_era_entry): Likewise.
35143 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35144 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35145 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35146 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35147 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35148
35149 2017-08-31 Florian Weimer <fweimer@redhat.com>
35150
35151 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35152 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35153 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35154 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35155 Likewise.
35156 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35157 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35158 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35159 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35160 Likewise.
35161 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35162
35163 2017-08-31 Florian Weimer <fweimer@redhat.com>
35164
35165 * misc/getttyent.c (skip, value): Remove internal_function.
35166 * misc/syslog.c (openlog_internal): Likewise.
35167 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35168
35169 2017-08-31 Florian Weimer <fweimer@redhat.com>
35170
35171 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35172 (__nss_rewrite_field): Remove internal_function.
35173 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35174 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35175 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35176 * nss/nsswitch.c (nss_parse_file, nss_getline)
35177 (nss_parse_service_list, nss_new_service): Likewise.
35178 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35179 * nss/valid_field.c (__nss_valid_field): Likewise.
35180 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35181
35182 2017-08-31 Florian Weimer <fweimer@redhat.com>
35183
35184 * malloc/arena.c (__malloc_fork_lock_parent)
35185 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35186 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35187 internal_function from defintions.
35188 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35189 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35190 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35191 internal_function from declarations.
35192 * malloc/malloc.c (internal_function): Do not define.
35193 (mem2mem_check): Remove internal_function from declaration.
35194 (munmap_chunk, mremap_chunk): Remove internal_function.
35195 * malloc/mtrace.c (tr_where): Likewise.
35196
35197 2017-08-31 Florian Weimer <fweimer@redhat.com>
35198
35199 * include/rpc/pmap_clnt.h (__get_socket): Remove
35200 internal_function.
35201 * sunrpc/auth_des.c (synchronize): Likewise.
35202 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35203 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35204 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35205 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35206 (key_call): Likewise.
35207 * sunrpc/pm_getport.c (__get_socket): Likewise.
35208 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35209 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35210 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35211 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35212 (invalidate): Likewise.
35213 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35214 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35215 (set_input_fragment, get_input_bytes): Likewise.
35216
35217 2017-08-31 Florian Weimer <fweimer@redhat.com>
35218
35219 * malloc/malloc.c (_int_free): Remove locked variable and related
35220 asserts.
35221
35222 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35223
35224 [BZ #22051]
35225 * Makerules (build-module-helper-objlist): Filter out
35226 $(elf-objpfx)sofini.os.
35227 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35228 needed.
35229
35230 2017-08-31 Florian Weimer <fweimer@redhat.com>
35231
35232 * libio/fcloseall.c: Assume weak_alias is defined.
35233 * libio/feof.c: Likewise.
35234 * libio/fileno.c: Likewise.
35235 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35236 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35237 definitions.
35238 (_IO_file_open): Call __open directly.
35239 (_IO_new_file_sync): Assume ESPIPE is defined.
35240 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35241 (_IO_new_file_write): Call __write directly.
35242 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35243 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35244 * libio/genops.c: Assume _LIBC is defined.
35245 (save_for_backup): Remove internal_function.
35246 * libio/getc.c: Assume weak_alias is defined.
35247 * libio/getwc.c: Likewise.
35248 * libio/iofclose.c: Assume _LIBC is defined.
35249 * libio/iofdopen.c: Likewise.
35250 (_IO_fcntl): Remove macro definition.
35251 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35252 Call __fcntl directly.
35253 * libio/iofflush.c: Assume weak_alias is defined.
35254 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35255 defined.
35256 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35257 * libio/iofgets.c: Likewise.
35258 * libio/iofopen.c: Assume _LIBC is defined.
35259 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35260 * libio/iofputs.c: Assume weak_alias is defined.
35261 * libio/iofread.c: Likewise.
35262 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35263 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35264 * libio/ioftell.c: Assume weak_alias is defined.
35265 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35266 * libio/iofwide.c: Assume _LIBC is defined.
35267 (_IO_fwide): Drop SHARED conditional because it is implied by
35268 SHLIB_COMPAT.
35269 * libio/iofwrite.c: Assume weak_alias is defined.
35270 * libio/iogetdelim.c: Likewise.
35271 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35272 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35273 (_IO_getwline): Call __wmemcpy directly.
35274 * libio/iopopen.c: Assume _LIBC is defined.
35275 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35276 (_IO_close): Remove macro definitions.
35277 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35278 _exit directly.
35279 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35280 directly.
35281 * libio/ioputs.c: Assume weak_alias is defined.
35282 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35283 * libio/iosetbuffer.c: Assume weak_alias is defined.
35284 * libio/iosetvbuf.c: Likewise.
35285 * libio/ioungetc.c: Likewise.
35286 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35287 libc_hidden_def, libc_hidden_weak, NULL are defined.
35288 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35289 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35290 defined.
35291 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35292 definitions.
35293 (_IO_old_file_init_internal): Drop SHARED conditional because it
35294 is implied by SHLIB_COMPAT.
35295 (_IO_old_file_fopen): Call __open directly.
35296 (_IO_old_file_sync): Assume ESPIPE is defined.
35297 (_IO_old_file_write): Call __write directly.
35298 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35299 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35300 Call __fcntl directly.
35301 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35302 (_IO_old_fgetpos): Assume EIO is defined.
35303 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35304 (_IO_old_fgetpos64): Assume EIO is defined.
35305 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35306 (_IO_old_fsetpos): Assume EIO is defined.
35307 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35308 (_IO_old_fsetpos64): Assume EIO is defined.
35309 * libio/oldiopopen.c: Assume _LIBC is defined.
35310 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35311 (_IO_close): Remove macro definitions.
35312 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35313 directly.
35314 (_IO_old_proc_close): Call __close, __waitpid directly.
35315 * libio/put.c: Assume weak_alias is defined.
35316 * libio/stdfiles.c: Assume _LIBC is defined.
35317 * libio/stdio.c: Likewise.
35318 * libio/wfileops.c: Likewise.
35319 (_IO_wfile_sync): Assume ESPIPE is defined.
35320 * libio/wgenops.c: Assume _LIBC is defined.
35321 (save_for_wbackup): Remove internal_function.
35322
35323 2017-08-31 Florian Weimer <fweimer@redhat.com>
35324
35325 * malloc/malloc.c (top_check): Change return type to void. Remove
35326 internal_function.
35327 * malloc/hooks.c (top_check): Likewise.
35328 (malloc_check, realloc_check, memalign_check): Adjust.
35329
35330 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35331
35332 [BZ #21457]
35333 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35334 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35335 sigcontext and namespace requirements.
35336 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35337 * sysdeps/m68k/sys/ucontext.h: Likewise.
35338 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35339 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35340 <bits/sigcontext.h>.
35341 (__ctx): Define earlier.
35342 (mcontext_t): Define structure contents rather than using struct
35343 sigcontext.
35344 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35345 __glibc_reserved1 instead of __reserved.
35346 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35347 <bits/sigcontext.h>.
35348 (__ctx): Define earlier.
35349 (mcontext_t): Define structure contents rather than using struct
35350 sigcontext.
35351 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35352 mcontext_t instead of struct sigcontext.
35353 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35354 <bits/sigcontext.h>.
35355 (__ctx): Define earlier.
35356 (mcontext_t): Define structure contents rather than using struct
35357 sigcontext.
35358 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35359 <bits/sigcontext.h>.
35360 (__ctx): Define earlier.
35361 (mcontext_t): Define structure contents rather than using struct
35362 sigcontext.
35363 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35364 mcontext_t instead of struct sigcontext.
35365 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35366 mcontext_t instead of struct sigcontext.
35367 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35368 <bits/sigcontext.h>.
35369 (__ctx): New macro.
35370 (struct __ia64_fpreg_mcontext): New type.
35371 (mcontext_t): Define structure contents rather than using struct
35372 sigcontext.
35373 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35374 (uc_sigmask): Define using __ctx.
35375 (uc_stack): Likewise.
35376 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35377 <bits/sigcontext.h>.
35378 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35379 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35380 <bits/sigcontext.h>.
35381 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35382 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35383 <bits/sigcontext.h>.
35384 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35385 <bits/sigcontext.h>.
35386 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35387 <bits/sigcontext.h>.
35388 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35389 <bits/sigcontext.h>.
35390 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35391 <bits/sigcontext.h>.
35392 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35393 <bits/sigcontext.h>.
35394 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35395 <bits/sigcontext.h>.
35396 (__ctx): Define earlier.
35397 (mcontext_t): Define structure contents rather than using struct
35398 sigcontext.
35399 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35400 <bits/sigcontext.h>. Include <bits/types.h>.
35401 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35402 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35403 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35404 (test-xfail-UNIX98/signal.h/conform): Likewise.
35405 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35406 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35407 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35408 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35409 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35410 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35411 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35412 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35413 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35414
35415 2017-08-30 Florian Weimer <fweimer@redhat.com>
35416
35417 * malloc/dynarray_emplace_enlarge.c
35418 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35419 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35420 * malloc/tst-dynarray.c (test_long_overflow): New function.
35421 (do_test): Call it.
35422
35423 2017-08-30 Florian Weimer <fweimer@redhat.com>
35424
35425 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35426 (set_arena_corrupt): Remove definitions.
35427 (mtrim): Do not check for corrupt arena.
35428 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35429 Likewise.
35430
35431 2017-08-30 Florian Weimer <fweimer@redhat.com>
35432
35433 [BZ #21754]
35434 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35435 check_action.
35436 (ptmalloc_init): Do not set or use check_action.
35437 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35438 call to malloc_printerr. Remove return statement.
35439 (free_check): Likewise. Remove arena unlock.
35440 (top_check): Update comment. Adjust call to malloc_printerr.
35441 Remove heap repair code.
35442 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35443 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35444 (sysmalloc): Adjust call to malloc_printerr.
35445 (munmap_chunk, __libc_realloc): Likewise. Remove return
35446 statement.
35447 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35448 Remove errout label and corresponding gotos.
35449 (_int_free): Likewise. Remove arena unlock.
35450 (do_set_mallopt_check): Do not set check_action.
35451 (malloc_printerr): Adjust parameter list. Do not mark arena as
35452 corrupt.
35453 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35454 comment.
35455 * manual/probes.texi (Memory Allocation Probes): Remove
35456 memory_mallopt_check_action.
35457
35458 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35459
35460 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35461 Use pointer to uint64_t instead of long int for sp.
35462
35463 2017-08-30 Florian Weimer <fweimer@redhat.com>
35464
35465 [BZ #21754]
35466 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35467 without printing a backtrace. Do not leak any information in the
35468 error message.
35469 * manual/memory.texi (Heap Consistency Checking): Update.
35470 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35471
35472 2017-08-30 Florian Weimer <fweimer@redhat.com>
35473
35474 Do not scale NPTL tests with available number of CPUs.
35475 * nptl/tst-cond16.c (count): Set to constant value of 8.
35476 * nptl/tst-cond18.c (count): Likewise.
35477
35478 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35479
35480 [BZ #22035]
35481 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35482 Define to take a second argument that is a macro that
35483 concatentates a suffix, not the suffix itself.
35484 (__CONCAT_d): New macro.
35485 (__CONCAT_f): Likewise.
35486 (__CONCAT_l): Likewise.
35487
35488 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35489
35490 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35491 by child.
35492
35493 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35494 Aurelien Jarno <aurelien@aurel32.net>
35495 Maciej W. Rozycki <macro@imgtec.com>
35496
35497 [BZ #21956]
35498 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35499 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35500 `mips16-syscall6' and `mips16-syscall7'.
35501 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35502 (CFLAGS-mips16-syscall7.c): Remove.
35503 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35504 Remove `__mips16_syscall5', `__mips16_syscall6' and
35505 `__mips16_syscall7'.
35506 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35507 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35508 `__mips_syscall_return'.
35509 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35510 (__mips16_syscall1): Likewise.
35511 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35512 (__mips16_syscall2): Likewise.
35513 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35514 (__mips16_syscall3): Likewise.
35515 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35516 (__mips16_syscall4): Likewise.
35517 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35518 Remove.
35519 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35520 Remove.
35521 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35522 Remove.
35523 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35524 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35525 `__mips16_syscall5'. Remove prototype.
35526 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35527 `__mips16_syscall6'. Remove prototype.
35528 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35529 `__mips16_syscall7'. Remove prototype.
35530 (__nomips16, __mips16_syscall_return): Move to...
35531 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35532 (__nomips16, __mips_syscall_return): ... here.
35533 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35534 `__mips16_syscall_return' to `__mips_syscall_return'.
35535 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35536 `internal_syscall##nr'.
35537 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35538 `internal_syscall##nr'.
35539 (FORCE_FRAME_POINTER): Remove.
35540 (__mips_syscall5): New prototype.
35541 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35542 (__mips_syscall6): New prototype.
35543 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35544 (__mips_syscall7): New prototype.
35545 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35546 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35547 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35548 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35549 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35550 (sysdep_routines): Add libc-do-syscall.
35551 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35552 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35553
35554 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35555
35556 [BZ #21672]
35557 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35558 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35559 (advise_stack_range): New function.
35560 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35561 stack non required to advise_stack_range at allocatestack.c
35562
35563 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35564
35565 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35566
35567 2017-08-29 Florian Weimer <fweimer@redhat.com>
35568
35569 [BZ #22026]
35570 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35571 __end_fct. Mangle __end_fct after setting it to NULL.
35572 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35573 (modules-names, modules-names-tests): Add
35574 tst-gconv-init-failure-mod.
35575 (gconv-modules): New target.
35576 (tst-gconv-init-failure-mod.so): Link against libsupport.
35577 (tst-gconv-init-failure): Depend on gconv-modules,
35578 tst-gconv-init-failure-mod.so.
35579 * iconv/tst-gconv-init-failure-mod.c: New file.
35580 * iconv/tst-gconv-init-failure.c: Likewise.
35581 * iconv/test-gconv-modules: Likewise.
35582
35583 2017-08-29 Florian Weimer <fweimer@redhat.com>
35584
35585 [BZ #22025]
35586 * iconv/gconv_db.c (free_derivation): Remove redundant
35587 parentheses.
35588 (gen_steps): Unconditionally mangle __btowc_fct after
35589 initialization.
35590 (increment_counter): Likewise. Do not call init_fct for internal
35591 modules.
35592
35593 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35594
35595 [BZ #22028]
35596 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35597 (_MSUF_): Remove macro.
35598 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35599 Likewise.
35600 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35601 (__REDIRFROM_X): New macro.
35602 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35603 Likewise.
35604 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35605 (__REDIRTO_X): Likewise.
35606 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35607 arguments.
35608 (__MATH_REDIRCALL_2): Likewise.
35609 (__MATH_REDIRCALL_INTERNAL): Likewise.
35610 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35611 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35612 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35613 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35614 * math/test-finite-macros.c: New file.
35615 * math/Makefile (tests): Add test-finite-macros.
35616 (CFLAGS-test-finite-macros.c): New variable.
35617
35618 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35619 Jeff Law <law@redhat.com>
35620
35621 [BZ #22025]
35622 Mangle NULL pointers in iconv/gconv.
35623 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35624 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35625 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35626 is non-NULL before demangling the end_fct. Check for NULL
35627 end_fct after demangling.
35628 (__gconv_release_step): Demangle the end_fct before checking
35629 it for NULL. Remove assert on __shlibc_handle != NULL.
35630 (gen_steps): Don't check btowc_fct for NULL before mangling.
35631 Demangle init_fct before checking for NULL.
35632 (increment_counter): Likewise.
35633 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35634 end_fct for NULL before mangling.
35635 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35636 for NULL.
35637
35638 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35639
35640 [BZ #21971]
35641 * locale/iso-639.def: add Morisyen.
35642
35643 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35644
35645 [BZ #21930]
35646 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35647 (iszero): New C++ implementation that does not use
35648 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35649 signaling nans are enabled, since __builtin_types_compatible_p
35650 is a C-only feature.
35651 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35652 defined, include ieee754_float128.h for access to the union and
35653 member ieee854_float128.ieee.
35654 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35655 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35656 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35657 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35658 options of test-math-zero on powerpc64le.
35659
35660 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35661
35662 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35663 Change double to float.
35664
35665 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35666
35667 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35668 unconditional.
35669 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35670 conditional code; define contents only for [LIBM_SVID_COMPAT].
35671
35672 2017-08-28 Florian Weimer <fweimer@redhat.com>
35673
35674 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35675 (abi-lp64_be-options): Remove.
35676 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35677 (abi-hard-options): Likewise.
35678 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35679 (abi-o32_hard-options, abi-o32_soft_2008-options)
35680 (abi-o32_hard_2008-options, abi-n32_soft-options)
35681 (abi-n32_hard-options, abi-n32_soft_2008-options)
35682 (abi-n32_hard_2008-options, abi-n64_soft-options)
35683 (abi-n64_hard-options, abi-n64_soft_2008-options)
35684 (abi-n64_hard_2008-options): Likewise.
35685 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35686 (abi-64-v1-options, abi-64-v2-options): Likewise.
35687 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35688 (abi-64-options): Likewise.
35689 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35690 (abi-64-options): Likewise.
35691 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35692 (abi-64-options): Likewise.
35693 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35694 (abi-64-options, abi-x32-options): Likewise.
35695
35696 2017-08-28 Florian Weimer <fweimer@redhat.com>
35697
35698 Store supported list of SYS_* system calls in the source tree.
35699 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35700 (bits/syscall.h): Generate from list file.
35701 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35702 [$(subdir) = misc] (tests): Add tst-syscall-list.
35703 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35704 [$(subdir) = misc] (tst-syscall-list-macros.list)
35705 [$(subdir) = misc] (tst-syscall-list-nr.list)
35706 (tst-syscall-list-sys.list): Helper targets for new
35707 tst-syscall-list test.
35708 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35709 tst-syscall-list.sh.
35710 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35711 target. Do not include bits/syscall.d.
35712 [$(subdir) = misc] (generated): Do not update.
35713 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35714 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35715 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35716 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35717
35718 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35719
35720 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35721 (tst-cxa_atexit, tst-on_exit): Likewise.
35722 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35723 tst-cxa_atexit, and tst-on_exit.
35724 * stdlib/tst-atexit-common.c: New file.
35725 * stdlib/tst-atexit.c: New file.
35726 * stdlib/tst-at_quick_exit.c: New file.
35727 * stdlib/tst-cxa_atexit.c: New file.
35728 * stdlib/tst-on_exit.c: New file.
35729
35730 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35731
35732 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35733 * mach/stack_chk_fail_local.c: New file.
35734 * hurd/stack_chk_fail_local.c: New file.
35735 * mach/Machrules ($(interface-library)-routines): Add
35736 stack_chk_fail_local.
35737 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35738 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35739 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35740 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35741 * hurd/Makefile (CFLAGS-hurdstartup.o,
35742 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35743
35744 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35745
35746 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35747 (index_cpu_*, index_arch_*): Removed.
35748
35749 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35750
35751 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35752 Use uint64_t instead of unsigned long.
35753
35754 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35755
35756 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35757 [__HAVE_DISTINCT_FLOAT128].
35758
35759 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35760 of <bits/math-finite.h>.
35761 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35762 inclusion of <bits/math-finite.h>.
35763 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35764 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35765 __NO_LONG_DOUBLE_MATH].
35766 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35767 (__MATH_REDIRCALL_2): Likewise.
35768 (__MATH_REDIRCALL_INTERNAL): Likewise.
35769 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35770 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35771 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35772
35773 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35774 Remove file.
35775 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35776 Likewise.
35777 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35778 Likewise.
35779 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35780 Likewise.
35781 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35782 Likewise.
35783 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35784 Likewise.
35785 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35786 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35787 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35788 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35789 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35790 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35791 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35792 w_sqrtf_compat-ppc32.
35793
35794 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35795
35796 * math/math.h [defined __cplusplus] (issignaling): In the long
35797 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35798 is not defined. Call __issignaling, otherwise.
35799
35800 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35801
35802 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35803 syscall definitions and replace __builtin_expect with __glibc_likely.
35804 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35805 syscall.
35806 (SYSCALL_CANCELLABLE): Removedefinition
35807 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35808 definition.
35809 (PSEUDO_END): Likewise.
35810 [IS_IN (libpthread)] (CENABLE): Likewise.
35811 [IS_IN (libpthread)] (CDISABLE): Likewise.
35812 [IS_IN (libc)] (CENABLE): Likewise.
35813 [IS_IN (libc)] (CENABLE): Likewise.
35814 [IS_IN (librt)] (CDISABLE): Likewise.
35815 [IS_IN (librt)] (CDISABLE): Likewise.
35816 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35817 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35818 definition.
35819 (PSEUDO_END): Likewise.
35820 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35821 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35822 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35823 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35824 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35825 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35826 (CENABLE): Likewise.
35827 (CDISABLE): Likewise.
35828 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35829 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35830 defintion.
35831 (PSEUDO_END): Likewise.
35832 [IS_IN (libpthread)] (CENABLE): Likewise.
35833 [IS_IN (libpthread)] (CDISABLE): Likewise.
35834 [IS_IN (libc)] (CENABLE): Likewise.
35835 [IS_IN (libc)] (CENABLE): Likewise.
35836 [IS_IN (librt)] (CDISABLE): Likewise.
35837 [IS_IN (librt)] (CDISABLE): Likewise.
35838 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35839 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35840 definition.
35841 (PSEUDO_END): Likewise.
35842 [IS_IN (libpthread)] (CENABLE): Likewise.
35843 [IS_IN (libpthread)] (CDISABLE): Likewise.
35844 [IS_IN (libc)] (CENABLE): Likewise.
35845 [IS_IN (libc)] (CENABLE): Likewise.
35846 [IS_IN (librt)] (CDISABLE): Likewise.
35847 [IS_IN (librt)] (CDISABLE): Likewise.
35848 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35849 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35850 definition.
35851 (PSEUDO_END): Likewise.
35852 [IS_IN (libpthread)] (CENABLE): Likewise.
35853 [IS_IN (libpthread)] (CDISABLE): Likewise.
35854 [IS_IN (libc)] (CENABLE): Likewise.
35855 [IS_IN (libc)] (CENABLE): Likewise.
35856 [IS_IN (librt)] (CDISABLE): Likewise.
35857 [IS_IN (librt)] (CDISABLE): Likewise.
35858 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35859 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35860 definition.
35861 (PSEUDO_END): Likewise.
35862 [IS_IN (libpthread)] (CENABLE): Likewise.
35863 [IS_IN (libpthread)] (CDISABLE): Likewise.
35864 [IS_IN (libc)] (CENABLE): Likewise.
35865 [IS_IN (libc)] (CENABLE): Likewise.
35866 [IS_IN (librt)] (CDISABLE): Likewise.
35867 [IS_IN (librt)] (CDISABLE): Likewise.
35868 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35869 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35870 definition.
35871 (PSEUDO_END): Likewise.
35872 [IS_IN (libpthread)] (CENABLE): Likewise.
35873 [IS_IN (libpthread)] (CDISABLE): Likewise.
35874 [IS_IN (libc)] (CENABLE): Likewise.
35875 [IS_IN (libc)] (CENABLE): Likewise.
35876 [IS_IN (librt)] (CDISABLE): Likewise.
35877 [IS_IN (librt)] (CDISABLE): Likewise.
35878 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35879 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35880 definition.
35881 (PSEUDO_END): Likewise.
35882 [IS_IN (libpthread)] (CENABLE): Likewise.
35883 [IS_IN (libpthread)] (CDISABLE): Likewise.
35884 [IS_IN (libc)] (CENABLE): Likewise.
35885 [IS_IN (libc)] (CENABLE): Likewise.
35886 [IS_IN (librt)] (CDISABLE): Likewise.
35887 [IS_IN (librt)] (CDISABLE): Likewise.
35888 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35889 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35890 Remove definition.
35891 (PSEUDO_END): Likewise.
35892 [IS_IN (libpthread)] (CENABLE): Likewise.
35893 [IS_IN (libpthread)] (CDISABLE): Likewise.
35894 [IS_IN (libc)] (CENABLE): Likewise.
35895 [IS_IN (libc)] (CENABLE): Likewise.
35896 [IS_IN (librt)] (CDISABLE): Likewise.
35897 [IS_IN (librt)] (CDISABLE): Likewise.
35898 (SINGLE_THREAD_P): Likewise.
35899 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35900 definition.
35901 (PSEUDO_END): Likewise.
35902 [IS_IN (libpthread)] (CENABLE): Likewise.
35903 [IS_IN (libpthread)] (CDISABLE): Likewise.
35904 [IS_IN (libc)] (CENABLE): Likewise.
35905 [IS_IN (libc)] (CENABLE): Likewise.
35906 [IS_IN (librt)] (CDISABLE): Likewise.
35907 [IS_IN (librt)] (CDISABLE): Likewise.
35908 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35909 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35910 definition.
35911 (PSEUDO_END): Likewise.
35912 [IS_IN (libpthread)] (CENABLE): Likewise.
35913 [IS_IN (libpthread)] (CDISABLE): Likewise.
35914 [IS_IN (libc)] (CENABLE): Likewise.
35915 [IS_IN (libc)] (CENABLE): Likewise.
35916 [IS_IN (librt)] (CDISABLE): Likewise.
35917 [IS_IN (librt)] (CDISABLE): Likewise.
35918 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35919 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35920 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35921 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35922 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35923 definition.
35924 (PSEUDO_END): Likewise.
35925 [IS_IN (libpthread)] (CENABLE): Likewise.
35926 [IS_IN (libpthread)] (CDISABLE): Likewise.
35927 [IS_IN (libc)] (CENABLE): Likewise.
35928 [IS_IN (libc)] (CENABLE): Likewise.
35929 [IS_IN (librt)] (CDISABLE): Likewise.
35930 [IS_IN (librt)] (CDISABLE): Likewise.
35931 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35932 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35933 definition.
35934 (PSEUDO_END): Likewise.
35935 [IS_IN (libpthread)] (CENABLE): Likewise.
35936 [IS_IN (libpthread)] (CDISABLE): Likewise.
35937 [IS_IN (libc)] (CENABLE): Likewise.
35938 [IS_IN (libc)] (CENABLE): Likewise.
35939 [IS_IN (librt)] (CDISABLE): Likewise.
35940 [IS_IN (librt)] (CDISABLE): Likewise.
35941 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35942 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35943 definition.
35944 (PSEUDO_END): Likewise.
35945 [IS_IN (libpthread)] (CENABLE): Likewise.
35946 [IS_IN (libpthread)] (CDISABLE): Likewise.
35947 [IS_IN (libc)] (CENABLE): Likewise.
35948 [IS_IN (libc)] (CENABLE): Likewise.
35949 [IS_IN (librt)] (CDISABLE): Likewise.
35950 [IS_IN (librt)] (CDISABLE): Likewise.
35951 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35952 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35953 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35954 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35955 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35956 definition.
35957 (PSEUDO_END): Likewise.
35958 [IS_IN (libpthread)] (CENABLE): Likewise.
35959 [IS_IN (libpthread)] (CDISABLE): Likewise.
35960 [IS_IN (libc)] (CENABLE): Likewise.
35961 [IS_IN (libc)] (CENABLE): Likewise.
35962 [IS_IN (librt)] (CDISABLE): Likewise.
35963 [IS_IN (librt)] (CDISABLE): Likewise.
35964 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35965 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35966 definition.
35967 (PSEUDO_END): Likewise.
35968 [IS_IN (libpthread)] (CENABLE): Likewise.
35969 [IS_IN (libpthread)] (CDISABLE): Likewise.
35970 [IS_IN (libc)] (CENABLE): Likewise.
35971 [IS_IN (libc)] (CENABLE): Likewise.
35972 [IS_IN (librt)] (CDISABLE): Likewise.
35973 [IS_IN (librt)] (CDISABLE): Likewise.
35974 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35975
35976 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35977
35978 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35979
35980 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35981
35982 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35983
35984 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35985
35986 [BZ #21982]
35987 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35988 middle and outer with size_t instead of int. Repleace %d and
35989 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35990 "MAX (outer, nchars - 64)" to support unsigned outer and
35991 nchars. Also exit loop when outer == 0.
35992
35993 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35994
35995 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35996 * include/signal.h (__sigsuspend_nocancel): Likewise.
35997 * include/time.h (__nanosleep_nocancel): Likewise.
35998 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35999 * login/utmp_file.c: Include non cancellable syscall header.
36000 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36001 prototype.
36002
36003 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36004
36005 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36006 .byte sequences with AVX512F instructions.
36007 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36008 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36009 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36010 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36011 Likewise.
36012 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36013 Likewise.
36014
36015 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36016 Steve Ellcey <sellcey@cavium.com>
36017
36018 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36019 Use PTR_REG macro in cmp instruction.
36020
36021 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36022
36023 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36024 Change the return type of the ifunc resolver to match the return
36025 type of the target function.
36026
36027 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36028
36029 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36030 (preadv64): Likewise.
36031 (pwrite64(: Likewise.
36032 (pwritev64): Likewise.
36033
36034 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36035 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36036 (LOAD_ARGS_0): Likewise.
36037 (LOAD_ARGS_1): Likewise.
36038 (LOAD_ARGS_2): Likewise.
36039 (LOAD_ARGS_3): Likewise.
36040 (LOAD_ARGS_4): Likewise.
36041 (LOAD_ARGS_5): Likewise.
36042 (LOAD_ARGS_6): Likewise.
36043 (LOAD_REGS_0): Likewise.
36044 (LOAD_REGS_1): Likewise.
36045 (LOAD_REGS_2): Likewise.
36046 (LOAD_REGS_3): Likewise.
36047 (LOAD_REGS_4): Likewise.
36048 (LOAD_REGS_5): Likewise.
36049 (LOAD_REGS_6): Likewise.
36050 (ASM_ARGS_0): Likewise.
36051 (ASM_ARGS_1): Likewise.
36052 (ASM_ARGS_2): Likewise.
36053 (ASM_ARGS_3): Likewise.
36054 (ASM_ARGS_4): Likewise.
36055 (ASM_ARGS_5): Likewise.
36056 (ASM_ARGS_6): Likewise.
36057 (LOAD_ARGS_TYPES_1): Likewise.
36058 (LOAD_ARGS_TYPES_2): Likewise.
36059 (LOAD_ARGS_TYPES_3): Likewise.
36060 (LOAD_ARGS_TYPES_4): Likewise.
36061 (LOAD_ARGS_TYPES_5): Likewise.
36062 (LOAD_ARGS_TYPES_6): Likewise.
36063 (LOAD_REGS_TYPES_1): Likewise.
36064 (LOAD_REGS_TYPES_2): Likewise.
36065 (LOAD_REGS_TYPES_3): Likewise.
36066 (LOAD_REGS_TYPES_4): Likewise.
36067 (LOAD_REGS_TYPES_5): Likewise.
36068 (LOAD_REGS_TYPES_6): Likewise.
36069 (TYPEFY): New define.
36070 (ARGIFY): Likewise.
36071 (internal_syscall0): Likewise.
36072 (internal_syscall1): Likewise.
36073 (internal_syscall2): Likewise.
36074 (internal_syscall3): Likewise.
36075 (internal_syscall4): Likewise.
36076 (internal_syscall5): Likewise.
36077 (internal_syscall6): Likewise.
36078 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36079 (INTERNAL_SYSCALL_NCS): Remove define.
36080 (internal_syscall1): Add define.
36081
36082 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36083
36084 * math/w_remainder_compat.c: Remove duplicate inclusion of
36085 math-svid-compat.h.
36086 * math/w_remainderf_compat.c: Likewise.
36087 * math/w_remainderl_compat.c: Likewise.
36088
36089 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36090
36091 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36092
36093 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36094
36095 [BZ #21684]
36096 * math/tgmath.h (__floating_type): Simplify definitions.
36097 (__real_integer_type): New macro.
36098 (__complex_integer_type): Likewise.
36099 (__expr_is_real): Likewise.
36100 (__tgmath_real_type_sub): Update comment to describe handling of
36101 complex types.
36102 (__tgmath_complex_type_sub): New macro.
36103 (__tgmath_complex_type): Likewise.
36104 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36105 (__TGMATH_CF128): Use __expr_is_real.
36106 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36107 __expr_is_real.
36108 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36109 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36110 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36111 integer types.
36112
36113 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36114
36115 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36116 macro.
36117 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36118 alias.
36119 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36120 Likewise.
36121
36122 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36123 nanosleep_not_cancel with __nanosleep_nocancel.
36124 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36125 (__nanosleep_nocancel): New macro.
36126 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36127 function.
36128 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36129 macro.
36130 (__nanosleep_nocancel): New prototype.
36131
36132 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36133 pause_not_cancel with __pause_nocancel.
36134 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36135 (__pause_nocancel): New macro.
36136 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36137 macro.
36138 (__pause_nocancel): New prototype.
36139 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36140
36141 2017-08-22 Martin Sebor <msebor@redhat.com>
36142
36143 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36144 to return a pointer to the same type as the target function.
36145
36146 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36147
36148 [BZ #18822]
36149 [BZ #21986]
36150 * include/printf.h (__printf_fphex): Add attribute_hidden.
36151 (__guess_grouping): New prototype.
36152 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36153 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36154 libc_hidden_proto and libc_hidden_def.
36155 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36156 (__vstrfmon_l): Remove the third argument passed to
36157 __guess_grouping.
36158
36159 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36160
36161 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36162 definition for issignaling that does not rely on __MATH_TG,
36163 since __MATH_TG uses __builtin_types_compatible_p, which is only
36164 available in C mode.
36165 (CFLAGS-test-math-issignaling.cc): New variable.
36166 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36167 * math/test-math-issignaling.cc: New test for C++ implementation
36168 of type-generic issignaling.
36169 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36170 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36171 options of test-math-issignaling on powerpc64le.
36172
36173 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36174
36175 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36176 building libc.a.
36177 (hidden_proto): Likewise.
36178 (hidden_tls_proto): Likewise.
36179 (__hidden_proto): Likewise.
36180
36181 2017-08-22 Florian Weimer <fweimer@redhat.com>
36182
36183 math: Statically link tests of internal functionality.
36184 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36185 atest-exp2.
36186 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36187 (gmp-objs): Remove assignment.
36188 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36189
36190 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36191
36192 [BZ #21987]
36193 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36194 and copy to ...
36195 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36196 ... here.
36197 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36198 ... and here.
36199
36200 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36201 variable definitions above inclusion of ../Rules.
36202
36203 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36204
36205 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36206 case calling __builtin_unreachable.
36207
36208 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36209
36210 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36211 __waitpid_nocancel.
36212 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36213 (__waitpid_nocancel): New macro.
36214 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36215 macro.
36216 (__waitpid_nocancel): Replace macro with a function.
36217 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36218 function.
36219
36220 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36221 __fcntl_nocancel.
36222 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36223 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36224
36225 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36226 __writev_nocancel_nostatus.
36227 (write_call_graph): Likewise.
36228 (write_bb_counts): Likewise.
36229 * resolv/herror.c (herror): Likewise.
36230 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36231 macro.
36232 (__writev_nocancel_nostatus): New macro.
36233 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36234 Remove macro.
36235 (__writev_nocancel_nostatus): New function.
36236
36237 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36238
36239 Revert:
36240 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36241
36242 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36243 building libc.a.
36244 (hidden_proto): Likewise.
36245 (hidden_tls_proto): Likewise.
36246 (__hidden_proto): Likewise.
36247
36248 [BZ #21973]
36249 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36250 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36252 Likewise.
36253 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36254 Likewise.
36255 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36256 Likewise.
36257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36258 Likewise.
36259 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36260 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36261 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36262 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36263 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36264 GLIBC_2.0 sqrtl symbol.
36265
36266 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36267 [__USE_MISC] (_LIB_VERSION): Likewise.
36268 [__USE_MISC] (struct exception): Likewise.
36269 [__USE_MISC] (matherr): Likewise.
36270 [__USE_MISC] (DOMAIN): Likewise.
36271 [__USE_MISC] (SING): Likewise.
36272 [__USE_MISC] (OVERFLOW): Likewise.
36273 [__USE_MISC] (UNDERFLOW): Likewise.
36274 [__USE_MISC] (TLOSS): Likewise.
36275 [__USE_MISC] (PLOSS): Likewise.
36276 [__USE_MISC] (HUGE): Likewise.
36277 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36278 * math/math-svid-compat.h: New file.
36279 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36280 and matherrl.
36281 * include/math.h [!_ISOMAC] (__matherr): Remove.
36282 * manual/arith.texi (FP Exceptions): Do not document matherr.
36283 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36284 (tests-internal): New variable.
36285 (install-lib): Do not add libieee.a.
36286 (non-lib.a): Likewise.
36287 (extra-objs): Do not add libieee.a and ieee-math.o.
36288 (CPPFLAGS-s_lib_version.c): Remove variable.
36289 ($(objpfx)libieee.a): Remove rule.
36290 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36291 * math/ieee-math.c: Remove.
36292 * math/libm-test-support.c (matherr): Remove.
36293 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36294 and license notices. Include <math-svid-compat.h> and
36295 <shlib-compat.h>.
36296 (matherr): Undefine as macro. Use compat_symbol_reference.
36297 (_LIB_VERSION): Likewise.
36298 * math/test-matherr-2.c: New file.
36299 * math/test-matherr-3.c: Likewise.
36300 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36301 declaration.
36302 (__kernel_standard_f): Likewise.
36303 (__kernel_standard_l): Likewise.
36304 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36305 <math_private.h>. Include <math-svid-compat.h>.
36306 (_LIB_VERSION): Undefine as macro.
36307 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36308 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36309 [LIBM_SVID_COMPAT], use compat_symbol.
36310 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36311 <math_private.h>. Include <math-svid-compat.h>.
36312 (matherr): Undefine as macro.
36313 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36314 compat_symbol.
36315 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36316 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36317 compat_symbol_reference.
36318 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36319 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36320 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36321 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36322 (MATHERR_D): Remove declaration.
36323 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36324 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36325 [LIBM_BUILD] (pmatherrf): Likewise.
36326 [LIBM_BUILD] (pmatherr): Likewise.
36327 [LIBM_BUILD] (pmatherrl): Likewise.
36328 (DOMAIN): Likewise.
36329 (SING): Likewise.
36330 (OVERFLOW): Likewise.
36331 (UNDERFLOW): Likewise.
36332 (TLOSS): Likewise.
36333 (PLOSS): Likewise.
36334 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36335 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36336 compat_symbol.
36337 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36338 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36339 compat_symbol.
36340 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36341 * math/w_acos_compat.c: Likewise.
36342 * math/w_acosf_compat.c: Likewise.
36343 * math/w_acosh_compat.c: Likewise.
36344 * math/w_acoshf_compat.c: Likewise.
36345 * math/w_acoshl_compat.c: Likewise.
36346 * math/w_acosl_compat.c: Likewise.
36347 * math/w_asin_compat.c: Likewise.
36348 * math/w_asinf_compat.c: Likewise.
36349 * math/w_asinl_compat.c: Likewise.
36350 * math/w_atan2_compat.c: Likewise.
36351 * math/w_atan2f_compat.c: Likewise.
36352 * math/w_atan2l_compat.c: Likewise.
36353 * math/w_atanh_compat.c: Likewise.
36354 * math/w_atanhf_compat.c: Likewise.
36355 * math/w_atanhl_compat.c: Likewise.
36356 * math/w_cosh_compat.c: Likewise.
36357 * math/w_coshf_compat.c: Likewise.
36358 * math/w_coshl_compat.c: Likewise.
36359 * math/w_exp10_compat.c: Likewise.
36360 * math/w_exp10f_compat.c: Likewise.
36361 * math/w_exp10l_compat.c: Likewise.
36362 * math/w_exp2_compat.c: Likewise.
36363 * math/w_exp2f_compat.c: Likewise.
36364 * math/w_exp2l_compat.c: Likewise.
36365 * math/w_fmod_compat.c: Likewise.
36366 * math/w_fmodf_compat.c: Likewise.
36367 * math/w_fmodl_compat.c: Likewise.
36368 * math/w_hypot_compat.c: Likewise.
36369 * math/w_hypotf_compat.c: Likewise.
36370 * math/w_hypotl_compat.c: Likewise.
36371 * math/w_j0_compat.c: Likewise.
36372 * math/w_j0f_compat.c: Likewise.
36373 * math/w_j0l_compat.c: Likewise.
36374 * math/w_j1_compat.c: Likewise.
36375 * math/w_j1f_compat.c: Likewise.
36376 * math/w_j1l_compat.c: Likewise.
36377 * math/w_jn_compat.c: Likewise.
36378 * math/w_jnf_compat.c: Likewise.
36379 * math/w_jnl_compat.c: Likewise.
36380 * math/w_lgamma_main.c: Likewise.
36381 * math/w_lgamma_r_compat.c: Likewise.
36382 * math/w_lgammaf_main.c: Likewise.
36383 * math/w_lgammaf_r_compat.c: Likewise.
36384 * math/w_lgammal_main.c: Likewise.
36385 * math/w_lgammal_r_compat.c: Likewise.
36386 * math/w_log10_compat.c: Likewise.
36387 * math/w_log10f_compat.c: Likewise.
36388 * math/w_log10l_compat.c: Likewise.
36389 * math/w_log2_compat.c: Likewise.
36390 * math/w_log2f_compat.c: Likewise.
36391 * math/w_log2l_compat.c: Likewise.
36392 * math/w_log_compat.c: Likewise.
36393 * math/w_logf_compat.c: Likewise.
36394 * math/w_logl_compat.c: Likewise.
36395 * math/w_pow_compat.c: Likewise.
36396 * math/w_powf_compat.c: Likewise.
36397 * math/w_powl_compat.c: Likewise.
36398 * math/w_remainder_compat.c: Likewise.
36399 * math/w_remainderf_compat.c: Likewise.
36400 * math/w_remainderl_compat.c: Likewise.
36401 * math/w_scalb_compat.c: Likewise.
36402 * math/w_scalbf_compat.c: Likewise.
36403 * math/w_scalbl_compat.c: Likewise.
36404 * math/w_sinh_compat.c: Likewise.
36405 * math/w_sinhf_compat.c: Likewise.
36406 * math/w_sinhl_compat.c: Likewise.
36407 * math/w_sqrt_compat.c: Likewise.
36408 * math/w_sqrtf_compat.c: Likewise.
36409 * math/w_sqrtl_compat.c: Likewise.
36410 * math/w_tgamma_compat.c: Likewise.
36411 * math/w_tgammaf_compat.c: Likewise.
36412 * math/w_tgammal_compat.c: Likewise.
36413 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36414 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36415 * sysdeps/ieee754/k_standard.c: Likewise.
36416 * sysdeps/ieee754/k_standardf.c: Likewise.
36417 * sysdeps/ieee754/k_standardl.c: Likewise.
36418 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36419 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36420 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36421 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36422 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36423 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36424 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36425 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36426 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36427 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36428 Likewise.
36429 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36430 Likewise.
36431 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36432 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36433 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36434 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36435
36436 2017-08-21 Florian Weimer <fweimer@redhat.com>
36437
36438 [BZ #21864]
36439 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36440 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36441 Move before inclusion of ../Rules.
36442
36443 2017-08-21 Florian Weimer <fweimer@redhat.com>
36444
36445 [BZ #21972]
36446 * assert/assert.h (assert): Use static_cast (bool) for C++.
36447 Use the ternary operator in the warning branch for GNU C.
36448 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36449 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36450 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36451 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36452 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36453
36454 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36455
36456 [BZ #18822]
36457 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36458 (__syscall_clock_gettime): Add attribute_hidden.
36459 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36460 (__start_context): Likewise.
36461
36462 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36463
36464 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36465 building libc.a.
36466 (hidden_proto): Likewise.
36467 (hidden_tls_proto): Likewise.
36468 (__hidden_proto): Likewise.
36469
36470 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36471
36472 * include/libc-symbols.h (attribute_hidden): Enable hidden
36473 visibility in libc.a compiled with PIE.
36474
36475 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36476
36477 [BZ #18822]
36478 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36479 Add attribute_hidden.
36480
36481 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36482
36483 [BZ #21864]
36484 * Makerules (all-nonlib): Add $(others-extras).
36485 * catgets/Makefile (others-extras): New.
36486 * elf/Makefile (others-extras): Likewise.
36487 * nss/Makefile (others-extras): Likewise.
36488
36489 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36490
36491 [BZ #18822]
36492 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36493 * elf/dl-open.c: Include <libc-internal.h>.
36494 (__libc_multiple_libcs): Removed.
36495 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36496 <hp-timing.h>.
36497 * include/libc-internal.h (__libc_multiple_libcs): New.
36498 * misc/sbrk.c: Include <libc-internal.h>.
36499 (__libc_multiple_libcs): Removed.
36500
36501 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36502
36503 [BZ #18822]
36504 * grp/initgroups.c (__nss_group_database): Removed.
36505 (__nss_initgroups_database): Likewise.
36506 * nscd/gai.c (__nss_hosts_database): Likewise.
36507 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36508 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36509 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36510 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36511 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36512 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36513 attribute_hidden.
36514 * nss/nsswitch.c (__nss_database_custom): Define only if
36515 USE_NSCD is defined.
36516 (__nss_configure_lookup): Use __nss_database_custom only if
36517 USE_NSCD is defined.
36518 * nss/nsswitch.h (__nss_database_custom): Declare only if
36519 USE_NSCD is defined. Add attribute_hidden.
36520 (__nss_setent): Add attribute_hidden.
36521 (__nss_endent): Likewise.
36522 (__nss_getent_r): Likewise.
36523 (__nss_getent): Likewise.
36524 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36525
36526 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36527
36528 [BZ #18822]
36529 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36530 libc_hidden_proto and libc_hidden_def.
36531
36532 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36533
36534 [BZ #18822]
36535 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36536 Add libc_hidden_proto.
36537 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36538 Add libc_hidden_def.
36539
36540 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36541
36542 [BZ #21974]
36543 * gmon/Makefile (routines): Remove bb_init_func and
36544 bb_exit_func.
36545 (elide-routines.os): Removed.
36546 * gmon/bb_exit_func.c: Likewise.
36547 * gmon/bb_init_func.c: Likewise.
36548 * include/sys/gmon.h (__bb): Likewise.
36549 (__bb_init_func): Likewise.
36550 (__bb_exit_func): Likewise.
36551 * sysdeps/alpha/bb_init_func.S: Likewise.
36552
36553 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36554
36555 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36556 * include/setjmp.h (____longjmp_chk): Here. Add
36557 attribute_hidden.
36558
36559 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36560
36561 [BZ #18822]
36562 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36563 attribute_hidden.
36564 (__strspn_sse2): Likewise.
36565
36566 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36567
36568 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36569 (close_not_cancel_no_status): Likewise.
36570 (__close_nocancel): New macro.
36571 (__close_nocancel_nostatus): Likewise.
36572 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36573 macro.
36574 (close_not_cancel): Likewise.
36575 (close_not_cancel_no_status): Likewise.
36576 (__close_nocancel): New prototype.
36577 (__close_nocancel_nostatus): New function.
36578 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36579 * catgets/open_catalog.c (__open_catalog): Replace
36580 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36581 * gmon/gmon.c (write_gmon): Likewise.
36582 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36583 * intl/loadmsgcat.c (close): Likewise.
36584 * io/ftw.c (open_dir_stream): Likewise.
36585 (ftw_startup): Likewise.
36586 * libio/fileops.c (_IO_file_open): Likewise.
36587 (_IO_file_close_mmap): Likewise.
36588 (_IO_file_close): Likewise.
36589 * libio/iopopen.c (_IO_dup2): Likewise.
36590 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36591 * locale/loadlocale.c (_nl_load_locale): Likewise.
36592 * login/utmp_file.c (pututline_file): Likewise.
36593 (endutent_file): Likewise.
36594 * misc/daemon.c (daemon): Likewise.
36595 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36596 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36597 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36598 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36599 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36600 * nscd/nscd_helper.c (open_socket): Likewise.
36601 (__nscd_open_socket): Likewise.
36602 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36603 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36604 (__nscd_innetgr): Likewise.
36605 * nss/nss_db/db-open.c (internal_setent): Likewise.
36606 * resolv/res-close.c (__res_iclose): Likewise.
36607 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36608 * sysdeps/posix/closedir.c (__closedir): Likewise.
36609 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36610 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36611 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36612 (opendir_tail): Likewise.
36613 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36614 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36615 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36616 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36617 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36618 (gethostid): Likewise.
36619 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36620 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36621 Likewise.
36622 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36623 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36624 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36625 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36626 Likewise.
36627 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36628 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36629 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36630 Likewise.
36631 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36632 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36633 Likewise.
36634 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36635 Likewise.
36636 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36637 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36638 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36639 __close_nocancel.
36640
36641 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36642 (openat_not_cancel_3): Likewise.
36643 (openat64_not_cancel_3): Likewise).
36644 (openat_not_cancel_3): Likewise).
36645 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36646 macro.
36647 (openat_not_cancel_3): Likewise.
36648 (openat64_not_cancel): Likewise.
36649 (openat64_not_cancel_3): Likewise.
36650 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36651 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36652 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36653 __open{64}_nocancel.
36654 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36655 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36656 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36657
36658 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36659
36660 [BZ #18822]
36661 * include/argz.h (__argz_create_sep): New function prototype.
36662 (__argz_append): Likewise.
36663 (__argz_add): Likewise.
36664 (__argz_add_sep): Likewise.
36665 (__argz_delete): Likewise.
36666 (__argz_insert): Likewise.
36667 (__argz_replace): Likewise.
36668 * string/argz.h (__argz_create_sep): Removed.
36669 (__argz_append): Likewise.
36670 (__argz_add): Likewise.
36671 (__argz_add_sep): Likewise.
36672 (__argz_delete): Likewise.
36673 (__argz_insert): Likewise.
36674 (__argz_replace): Likewise.
36675
36676 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36677
36678 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36679 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36680 (GNU_PROPERTY_STACK_SIZE): Likewie.
36681 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36682 (GNU_PROPERTY_LOPROC): Likewise.
36683 (GNU_PROPERTY_HIPROC): Likewise.
36684 (GNU_PROPERTY_LOUSER): Likewise.
36685 (GNU_PROPERTY_HIUSER): Likewise.
36686 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36687 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36688 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36689 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36690 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36691 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36692 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36693 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36694 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36695 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36696 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36697 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36698 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36699 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36700 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36701 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36702 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36703 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36704 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36705 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36706 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36707 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36708 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36709
36710 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36711
36712 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36713 in C++ mode.
36714
36715 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36716
36717 [BZ #21930]
36718 * math/math.h (isinf): Check if in C or C++ mode before using
36719 __builtin_types_compatible_p, since this is a C mode feature.
36720
36721 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36722
36723 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36724 (__write_nocancel): New macro.
36725 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36726 Rewrite as a function prototype.
36727 (write_not_cancel): Remove macro.
36728 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36729 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36730 (write_gmon): Likewise.
36731 * libio/fileops.c (_IO_new_file_write): Likewise.
36732 * login/utmp_file.c (pututline_file): Likewise.
36733 (updwtmp_file): Likewise.
36734 * stdio-common/psiginfo.c (psiginfo): Likewise.
36735 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36736 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36737 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36738 Likewise.
36739 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36740 Likewise.
36741
36742 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36743 (__read_nocancel): New macro.
36744 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36745 __read_nocancel.
36746 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36747 macro.
36748 (__read_nocancel): New prototype.
36749 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36750 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36751 with __read_nocancel.
36752 * intl/loadmsgcat.c (read): Likewise.
36753 * libio/fileops.c (_IO_file_read): Likewise.
36754 * locale/loadlocale.c (_nl_load_locale): Likewise.
36755 * login/utmp_file.c (getutent_r_file): Likewise.
36756 (internal_getut_r): Likewise.
36757 (getutline_r_file): Likewise.
36758 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36759 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36760 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36761 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36762 Likewise.
36763 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36764 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36765 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36766 Likewise.
36767 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36768 Likewise.
36769 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36770 Likewise.
36771 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36772 Likewise.
36773 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36774
36775 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36776
36777 [BZ #21966]
36778 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36779 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36780 usable.
36781
36782 2017-08-17 DJ Delorie <dj@redhat.com>
36783
36784 * bug17079.c: Update to new test harness.
36785 * test-digits-dots.c: Likewise.
36786 * test-netdb.c: Likewise.
36787 * tst-field.c: Likewise.
36788 * tst-nss-getpwent.c: Likewise.
36789 * tst-nss-static.c: Likewise.
36790 * tst-nss-test1.c: Likewise.
36791 * tst-nss-test2.c: Likewise.
36792 * tst-nss-test3.c: Likewise.
36793 * tst-nss-test4.c: Likewise.
36794 * tst-nss-test5.c: Likewise.
36795
36796 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36797
36798 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36799 (open_not_cancel_2): Likewise.
36800 (open_nocancel): New macro.
36801 (open64_nocancel): Likewise.
36802 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36803 (open_not_cancel_2): Likewise.
36804 (__open_nocancel): New prototype.
36805 (__open64_nocancel): Likewise.
36806 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36807 __open_nocancel.
36808 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36809 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36810 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36811 with __open_nocancel.
36812 * csu/check_fds.c (check_one_fd): Likewise.
36813 * gmon/gmon.c (write_gmon): Likewise.
36814 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36815 * intl/loadmsgcat.c (open): Likewise.
36816 * libio/fileops.c (_IO_file_open): Likewise.
36817 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36818 * locale/loadlocale.c (_nl_load_locale): Likewise.
36819 * login/utmp_file.c (setutent_file): Likewise.
36820 * misc/daemon.c (daemon): Likewise.
36821 * nss/nss_db/db-open.c (internal_setent): Likewise.
36822 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36823 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36824 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36825 (__opendir): Likewise.
36826 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36827 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36828 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36829 (gethostid): Likewise.
36830 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36831 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36832 Likewise.
36833 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36834 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36835 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36836 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36837 Likewise.
36838 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36839 Likewise.
36840 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36841 Likewise.
36842 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36843 Likewise.
36844 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36845 Likewise.
36846 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36847 Likewise.
36848 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36849 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36850
36851 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36852
36853 * benchtests/bench-skeleton.c (main): Add support for
36854 latency benchmarking.
36855 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36856
36857 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36858
36859 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36860 the startup object.
36861
36862 2017-08-17 Florian Weimer <fweimer@redhat.com>
36863
36864 * include/sys/socket.h (__opensock): Remove internal_function.
36865 * socket/opensock.c (__opensock): Likewise.
36866 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36867
36868 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36869
36870 [BZ #21944]
36871 * signal/bits/types/__sigval_t.h: New file.
36872 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36873 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36874 and define sigval_t using __sigval_t.
36875 * include/bits/types/__sigval_t.h: New file.
36876 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36877 instead of <bits/types/__sigval_t.h>.
36878 (struct sigevent): Use __sigval_t instead of sigval_t.
36879 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36880 instead of <bits/types/__sigval_t.h>.
36881 (siginfo_t): Use __sigval_t instead of sigval_t.
36882 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36883 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36884 (struct sigevent): Use __sigval_t instead of sigval_t.
36885 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36886 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36887 (siginfo_t): Use __sigval_t instead of sigval_t.
36888 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36889
36890 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36891
36892 * NEWS: Remove "[Add new features here]" for 2.27.
36893
36894 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36895
36896 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36897 libc.so.
36898
36899 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36900
36901 * NEWS: Mention x86-64 FMA optimization.
36902
36903 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36904
36905 [BZ #21912]
36906 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36907 Add e_expf-fma.
36908 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36909 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36910 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36911
36912 2017-08-16 Andreas Schwab <schwab@suse.de>
36913
36914 [BZ #16750]
36915 CVE-2009-5064
36916 * elf/ldd.bash.in: Never run file directly.
36917
36918 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36919
36920 [BZ #21955]
36921 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36922 (L(SP_INF_0)): Likewise.
36923
36924 2017-08-15 Florian Weimer <fweimer@redhat.com>
36925
36926 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36927 run-built-tests.
36928
36929 2017-08-15 Florian Weimer <fweimer@redhat.com>
36930
36931 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36932 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36933 BROKEN_THREAD_SIGNALS code.
36934 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36935 request_list): Remove caller_pid member used for
36936 BROKEN_THREAD_SIGNALS.
36937 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36938 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36939 Remove BROKEN_THREAD_SIGNALS support.
36940 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36941 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36942
36943 2017-08-15 Florian Weimer <fweimer@redhat.com>
36944
36945 * gmon/Makefile (tests): Add tst-gmon.
36946 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36947 Set.
36948 (tests-special): Add tst-gmon-prof.out.
36949 (tst-gmon.out): Depend on clean-tst-gmon-data.
36950 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36951 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36952 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36953 startup object.
36954 * aclocal.m4 (GPROF): Set and substitute.
36955 * config.amke.in (GPROF): Set.
36956 * configure: Regenerate.
36957
36958 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36959
36960 * elf/elf.h A (NT_PPC_TAR): New macro.
36961 (NT_PPC_PPR): Likewise.
36962 (NT_PPC_DSCR): Likewise.
36963 (NT_PPC_EBB): Likewise.
36964 (NT_PPC_PMU): Likewise.
36965 (NT_PPC_TM_CGPR): Likewise.
36966 (NT_PPC_TM_CFPR): Likewise.
36967 (NT_PPC_TM_CVMX): Likewise.
36968 (NT_PPC_TM_CVSX): Likewise.
36969 (NT_PPC_TM_SPR): Likewise.
36970 (NT_PPC_TM_CTAR): Likewise.
36971 (NT_PPC_TM_CPPR): Likewise.
36972 (NT_PPC_TM_CDSCR): Likewise.
36973
36974 2017-08-15 Florian Weimer <fweimer@redhat.com>
36975
36976 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36977 regparm (2) instead of internal_function.
36978 (_MCOUNT_DECL): Adjust.
36979
36980 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36981
36982 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36983 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36984
36985 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36986
36987 * conform/data/sys/wait.h-data (si_value): Do not expect for
36988 XPG42.
36989
36990 2017-08-14 Florian Weimer <fweimer@redhat.com>
36991
36992 [BZ #21962]
36993 NSS: Create stubs for accidentally exported lookup functions.
36994 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36995 Remove declaration.
36996 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36997 (ether_hostton): Call __nss_ethers_lookup2 instead.
36998 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36999 (ether_ntohost): Call __nss_ethers_lookup2 instead.
37000 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37001 (setup): Call __nss_netgroup_lookup2 instead.
37002 * nss/Makefile (routines): Add compat-lookup.
37003 * nss/Versions (GLIBC_2.27): Add symbol version.
37004 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
37005 (DB_COMPAT_FCT): Remove.
37006 * nss/compat-lookup.c: New file.
37007 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37008 from databases.def.
37009 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37010 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37011 (netname2user): Call __nss_publickey_lookup2 instead.
37012 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37013 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37014 instead.
37015
37016 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37017 Sergei Trofimovich <slyfox@inbox.ru>
37018
37019 [BZ #21908]
37020 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37021 Rename to MMAP2_PAGE_UNIT.
37022 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37023 __OFF_T_MATCHES_OFF64_T is not defined.
37024 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37025 uint64_t.
37026 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37027 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37028
37029 2017-08-14 Florian Weimer <fweimer@redhat.com>
37030
37031 i386: Do not set internal_function.
37032 * config.h.in (USE_REGPARMS, internal_function): Remove.
37033 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37034 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37035
37036 2017-08-14 Florian Weimer <fweimer@redhat.com>
37037
37038 * elf/dl-init.c (_dl_init): Remove internal_function.
37039 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37040 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37041
37042 2017-08-14 Florian Weimer <fweimer@redhat.com>
37043
37044 * elf/rtld.c (_dl_start): Remove internal_function.
37045 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37046 _dl_start.
37047
37048 2017-08-14 Florian Weimer <fweimer@redhat.com>
37049
37050 * elf/dl-fini.c (_dl_fini): Remove internal_function
37051 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37052
37053 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37054
37055 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37056 (bit_cpu_SHSTK): Likewise.
37057 (index_cpu_IBT): Likewise.
37058 (index_cpu_SHSTK): Likewise.
37059 (reg_IBT): Likewise.
37060 (reg_SHSTK): Likewise.
37061 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37062 Handle index_cpu_IBT and index_cpu_SHSTK.
37063
37064 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37065
37066 [BZ #19982]
37067 * po/fr.po: Fix spelling mistake.
37068
37069 2017-08-13 Florian Weimer <fweimer@redhat.com>
37070
37071 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37072 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37073 (_dl_catch_error, _dl_receive_error): Likewise.
37074 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37075 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37076 (_dl_deallocate_tls): Likewise.
37077 * include/dlfcn.h (_dl_addr): Likewise.
37078 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37079 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37080 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37081 Likewise.
37082
37083 2017-08-13 Florian Weimer <fweimer@redhat.com>
37084
37085 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37086 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37087 internal_function.
37088 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37089
37090 2017-08-13 Florian Weimer <fweimer@redhat.com>
37091
37092 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37093 internal_function.
37094 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37095 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37096 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37097 internal_function from _dl_make_stack_executable_hook member.
37098 (_dl_make_stack_executable): Remove internal_function.
37099 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37100 Likewise.
37101 * sysdeps/unix/sysv/linux/dl-execstack.c
37102 (_dl_make_stack_executable): Likewise.
37103
37104 2017-08-13 Florian Weimer <fweimer@redhat.com>
37105
37106 * sysdeps/unix/sysv/linux/netlinkaccess.h
37107 (__netlink_assert_response): Remove internal_function.
37108 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37109 (__netlink_assert_response): Likewise.
37110
37111 2017-08-13 Florian Weimer <fweimer@redhat.com>
37112
37113 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37114 internal_function.
37115 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37116
37117 2017-08-13 Florian Weimer <fweimer@redhat.com>
37118
37119 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37120 internal_function.
37121 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37122 * inet/netgroup.h (__internal_setnetgrent)
37123 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37124 * inet/getnetgrent_r.c (__internal_setnetgrent)
37125 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37126 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37127 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37128 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37129 * nss/nsswitch.h (db_lookup_function): Likewise.
37130
37131 2017-08-13 Florian Weimer <fweimer@redhat.com>
37132
37133 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37134 Remove internal_function.
37135 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37136 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37137 message argument on the stack.
37138 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37139 Likeweise.
37140
37141 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37142
37143 Adapt test case data to the changes in the thousands
37144 separators.
37145
37146 [BZ #20756]
37147 * localedata/tst-langinfo.sh: Adapt test case data.
37148 * stdlib/tst-strfmon_l.c: Likewise.
37149 * stdlib/tst-strtod4.c: Likewise.
37150 * stdlib/tst-strtod5i.c: Likewise.
37151
37152 2017-08-11 Florian Weimer <fweimer@redhat.com>
37153
37154 [BZ #21242]
37155 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37156 Suppress pedantic warning resulting from statement expression.
37157 (__ASSERT_FUNCTION): Add missing __extension__.
37158
37159 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37160
37161 * benchtests/bench-memmove-large.c: Print output in JSON
37162 format.
37163 * benchtests/bench-memmove.c: Likewise.
37164
37165 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37166 * benchtests/bench-memchr.c (do_one_test): Likewise.
37167 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37168 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37169 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37170 * benchtests/bench-memmove.c (do_one_test): Likewise.
37171 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37172 * benchtests/bench-memset.c (do_one_test): Likewise.
37173 * benchtests/bench-string.h (test_init): Remove memsets.
37174
37175 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37176
37177 * manual/lang.texi
37178 (Computing the Width of an Integer Data Type): Rename section to
37179 "Width of an Integer Type". Remove inaccurate statement regarding
37180 lack of C language facilities for determining width of integer
37181 types, and reorder content to improve flow and context of
37182 discussion.
37183
37184 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37185
37186 * lang.texi (va_copy): Change standard from ISO to C99.
37187 (__va_copy): Add standard and header annotation.
37188 Update description for clarity of origins and current use.
37189
37190 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37191
37192 [BZ #21941]
37193 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37194 xssqrtqp requires operands to be in Vector Registers
37195 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37196 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37197 (__ieee754_sqrtf128): Likewise.
37198
37199 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37200
37201 * sysdeps/aarch64/memcmp.S (memcmp):
37202 Rewrite of optimized memcmp.
37203
37204 2017-08-10 Florian Weimer <fweimer@redhat.com>
37205
37206 Introduce ld.so exceptions.
37207 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37208 (_dl_exception_create, _dl_exception_create_format)
37209 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37210 (_dl_catch_exception): Declare.
37211 (_dl_catch_error): Update comment.
37212 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37213 errstring, malloced members with exception member.
37214 (_dl_out_of_memory): Remove.
37215 (fatal_error): New function, extracted from _dl_signal_error.
37216 (_dl_signal_exception, _dl_signal_cexception): New functions.
37217 (_dl_signal_error): Call _dl_exception_create to allocate an
37218 exception object.
37219 (_dl_catch_exception): New function, based on _dl_catch_error.
37220 (_dl_catch_error): Implement using _dl_catch_exception.
37221 * elf/dl-exception.c: New file.
37222 * elf/Makefile (dl-routines): Add dl-exception.
37223 (elide-routines.os): Likewise.
37224 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37225 _dl_exception_create_format, _dl_exception_free.
37226 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37227 _dl_signal_exception.
37228 * elf/dl-lookup.c (make_string): Remove.
37229 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37230 _dl_signal_cexception, _dl_exception_free.
37231 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37232 _dl_signal_exception.
37233 * elf/dl-sym.c (do_sym): Likewise.
37234 * elf/dl-version.c (make_string): Remove.
37235 (match_symbol): Use _dl_exception_create_format,
37236 _dl_signal_cexception, _dl_exception_free.
37237 (_dl_check_map_versions): Likewise.
37238 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37239 _dl_catch_exception.
37240 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37241 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37242 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37243 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37244 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37245 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37246 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37247 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37248 Likewise.
37249 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37251 (ld.so): Likewise.
37252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37253 (ld.so): Likewise.
37254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37255 Likewise.
37256 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37257 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37258 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37259 Likewise.
37260 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37261 Likewise.
37262 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37263
37264 2017-08-10 Florian Weimer <fweimer@redhat.com>
37265
37266 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37267 attribute_hidden, internal_function.
37268 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37269 internal_function.
37270
37271 2017-08-10 Florian Weimer <fweimer@redhat.com>
37272
37273 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37274 function which calls __builtin_unreachable.
37275
37276 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37277
37278 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37279 Indian monetary formatting
37280 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37281 test cases.
37282
37283 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37284
37285 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37286 Fix typo in comment.
37287
37288 [BZ #21928]
37289 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37290 PTRACE_SEIZE_DEVEL): Remove.
37291 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37292 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37293 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37294 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37295 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37296
37297 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37298
37299 * posix/bits/types.h (__qaddr_t): Remove.
37300
37301 [BZ #21457]
37302 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37303 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37304 __glibc_reserved1.
37305 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37306 (ucontext_t): Use __ctx with uc_flags.
37307 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37308 (__ctxt): Likewise.
37309 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37310 __glibc_reserved1.
37311 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37312 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37313 __glibc_reserved1.
37314 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37315 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37316 __glibc_reserved1.
37317 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37318 macro.
37319 (ucontext_t): Use __ctx with uc_flags.
37320 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37321 (ucontext_t): Use __ctx with uc_flags.
37322 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37323 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37324 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37325 (ucontext_t): Use __ctx with uc_flags.
37326 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37327 undefine further down.
37328 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37329 __glibc_reserved1.
37330 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37331 undefine further down.
37332 (ucontext_t): Use __ctx with uc_flags.
37333 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37334 undefine further down.
37335 (ucontext_t): Use __ctx with uc_flags.
37336 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37337 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37338 Rename uc_pad to __glibc_reserved1.
37339 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37340 undefine further down.
37341 (ucontext_t): Use __ctx with uc_flags.
37342 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37343 further down.
37344 (ucontext_t): Use __ctx with uc_flags.
37345 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37346 __ctx with uc_flags.
37347 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37348 (ucontext_t): Use __ctx with uc_flags.
37349 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37350 __ctx with uc_flags.
37351
37352 2017-08-09 Florian Weimer <fweimer@redhat.com>
37353
37354 [BZ #21932]
37355 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37356 before early return.
37357
37358 2017-08-09 Andreas Schwab <schwab@suse.de>
37359
37360 [BZ #21041]
37361 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37362 renamed alias.
37363
37364 [BZ #21041]
37365 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37366 tst-compat-forwarder.
37367 (modules-names): Add tst-compat-forwarder-mod.
37368 ($(objpfx)tst-compat-forwarder): Depend on
37369 $(objpfx)tst-compat-forwarder-mod.so.
37370 * nptl/tst-compat-forwarder.c: New file.
37371 * nptl/tst-compat-forwarder-mod.c: New file.
37372
37373 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37374
37375 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37376 comments.
37377
37378 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37379 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37380 memcpy_falkor.
37381 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37382 Bump.
37383 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37384 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37385 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37386 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37387 Add falkor.
37388 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37389 New macro.
37390
37391 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37392
37393 [BZ #759]
37394 * manual/setjmp.texi (getcontex): Document uc_stack value
37395 compatibility differences.
37396
37397 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37398
37399 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37400 (old_malloc_hook): Likewise.
37401 (old_memalign_hook): Likewise.
37402 (old_realloc_hook): Likewise.
37403 (struct hdr): Likewise.
37404 (flood): Likewise.
37405 (freehook): Likewise.
37406 (mallochook): Likewise.
37407 (memalignhook): Likewise.
37408 (reallochook): Likewise.
37409 (mprobe): Likewise.
37410 * malloc/mtrace.c (mallwatch): Likewise.
37411 (tr_old_free_hook): Likewise.
37412 (tr_old_malloc_hook): Likewise.
37413 (tr_old_realloc_hook): Likewise.
37414 (tr_old_memalign_hook): Likewise.
37415 (tr_where): Likewise.
37416 (lock_and_info): Likewise.
37417 (tr_freehook): Likewise.
37418 (tr_mallochook): Likewise.
37419 (tr_reallochook): Likewise.
37420 (tr_memalignhook): Likewise.
37421 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37422 * misc/mmap.c (__mmap): Likewise.
37423 * misc/mmap64.c (__mmap64): Likewise.
37424 * misc/mprotect.c (__mprotect): Likewise.
37425 * misc/msync.c (msync): Likewise.
37426 * misc/munmap.c (__munmap): Likewise.
37427 * posix/posix_madvise.c (posix_madvise): Likewise.
37428 * socket/send.c (__send): Likewise.
37429 * socket/sendto.c (__sendto): Likewise.
37430 * socket/setsockopt.c (__setsockopt): Likewise.
37431 * string/memcmp.c (__ptr_t): Remove macro.
37432 (MEMCMP): Use void * instead of ptr_t.
37433 * string/memrchr.c (__ptr_t): Remove macro.
37434 (__memrchr): Use void * instead of ptr_t.
37435 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37436 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37437 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37438 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37439 * sysdeps/mach/msync.c (msync): Likewise.
37440 * sysdeps/mach/munmap.c (__munmap): Likewise.
37441 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37442 Likewise.
37443 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37444 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37445 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37446 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37447 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37448 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37449 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37450 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37451 Likewise.
37452 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37453 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37454 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37455 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37456 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37457 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37458 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37459 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37460 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37461 Likewise.
37462 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37463 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37464 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37465 (MEMCMP): Use void * instead of ptr_t.
37466 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37467 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37468
37469 2017-08-08 Florian Weimer <fweimer@redhat.com>
37470
37471 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37472 return statement.
37473
37474 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37475
37476 [BZ #21913]
37477 * csu/libc-tls.c: Include <startup.h> first.
37478 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37479 * elf/dl-tunables.c: Include <startup.h> first.
37480 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37481 * sysdeps/generic/startup.h: New file.
37482 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37483 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37484 (I386_USE_SYSENTER): New. Defined to 0.
37485
37486 2017-08-08 Andreas Schwab <schwab@suse.de>
37487
37488 [BZ #21041]
37489 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37490 * nptl/pt-system.c (system): Likewise.
37491
37492 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37493
37494 [BZ #21780]
37495 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37496 EOPNOTSUPP.
37497 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37498 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37499 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37500 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37501 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37502 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37503 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37504
37505 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37506
37507 [BZ #21899]
37508 * bits/sigaction.h (struct sigaction): Define sa_handler and
37509 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37510 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37511 [__USE_XOPEN_EXTENDED].
37512 (SA_RESTART): Likewise.
37513 (SA_NODEFER): Likewise.
37514 (SA_RESETHAND): Likewise.
37515 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37516 (struct sigaction): Define sa_handler and sa_sigaction using union
37517 also for [__USE_XOPEN_EXTENDED].
37518 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37519 [__USE_XOPEN_EXTENDED].
37520 (SA_RESTART): Likewise.
37521 (SA_NODEFER): Likewise.
37522 (SA_RESETHAND): Likewise.
37523 * sysdeps/unix/sysv/linux/bits/sigaction.h
37524 (struct sigaction): Define sa_handler and sa_sigaction using union
37525 also for [__USE_XOPEN_EXTENDED].
37526 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37527 [__USE_XOPEN_EXTENDED].
37528 (SA_RESTART): Likewise.
37529 (SA_NODEFER): Likewise.
37530 (SA_RESETHAND): Likewise.
37531 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37532 (struct sigaction): Define sa_handler and sa_sigaction using union
37533 also for [__USE_XOPEN_EXTENDED].
37534 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37535 [__USE_XOPEN_EXTENDED].
37536 (SA_RESTART): Likewise.
37537 (SA_NODEFER): Likewise.
37538 (SA_RESETHAND): Likewise.
37539 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37540 (struct sigaction): Define sa_handler and sa_sigaction using union
37541 also for [__USE_XOPEN_EXTENDED].
37542 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37543 [__USE_XOPEN_EXTENDED].
37544 (SA_RESTART): Likewise.
37545 (SA_NODEFER): Likewise.
37546 (SA_RESETHAND): Likewise.
37547 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37548 (struct sigaction): Define sa_handler and sa_sigaction using union
37549 also for [__USE_XOPEN_EXTENDED].
37550 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37551 [__USE_XOPEN_EXTENDED].
37552 (SA_RESTART): Likewise.
37553 (SA_NODEFER): Likewise.
37554 (SA_RESETHAND): Likewise.
37555 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37556 (struct sigaction): Define sa_handler and sa_sigaction using union
37557 also for [__USE_XOPEN_EXTENDED].
37558 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37559 [__USE_XOPEN_EXTENDED].
37560 (SA_RESTART): Likewise.
37561 (SA_NODEFER): Likewise.
37562 (SA_RESETHAND): Likewise.
37563 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37564 (struct sigaction): Define sa_handler and sa_sigaction using union
37565 also for [__USE_XOPEN_EXTENDED].
37566 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37567 [__USE_XOPEN_EXTENDED].
37568 (SA_RESTART): Likewise.
37569 (SA_NODEFER): Likewise. Define directly rather than as alias.
37570 (SA_RESETHAND): Likewise.
37571 (SA_INTERRUPT): Define only for [__USE_MISC].
37572 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37573 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37574 [__USE_MISC].
37575 (SA_STACK): Define only for [__USE_MISC].
37576 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37577 (struct sigaction): Define sa_handler and sa_sigaction using union
37578 also for [__USE_XOPEN_EXTENDED].
37579 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37580 [__USE_XOPEN_EXTENDED].
37581 (SA_RESTART): Likewise.
37582 (SA_NODEFER): Likewise.
37583 (SA_RESETHAND): Likewise.
37584 (SA_NOPTRACE): Define only for [__USE_MISC].
37585
37586 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37587 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37588 (struct catalog_info): Likewise.
37589 * inet/htontest.c (lo): Likewise.
37590 (foo): Likewise.
37591 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37592 * inet/inet_net.c (inet_network): Likewise.
37593 * inet/inet_netof.c (inet_netof): Likewise.
37594 * inet/rcmd.c (__ivaliduser): Likewise.
37595 (iruserok): Likewise.
37596 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37597 * locale/programs/locale-spec.c (locale_special): Likewise.
37598 * nis/nis_findserv.c (struct findserv_req): Likewise.
37599 (__nis_findfastest_with_timeout): Likewise.
37600 * nss/test-netdb.c (test_network): Likewise.
37601 * resolv/inet_neta.c (inet_neta): Likewise.
37602 * resolv/ns_date.c (ns_datetosecs): Likewise.
37603 (SECS_PER_DAY): Likewise.
37604 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37605 Likewise.
37606 * resolv/res_comp.c (__putlong): Likewise.
37607 (__putshort): Likewise.
37608 (_getlong): Likewise.
37609 (_getshort): Likewise.
37610 * resolv/res_debug.c (p_time): Likewise.
37611 (precsize_ntoa): Likewise.
37612 (precsize_aton): Likewise.
37613 (latlon2ul): Likewise.
37614 (loc_aton): Likewise.
37615 (loc_ntoa): Likewise.
37616 * resolv/res_hconf.c (struct netaddr): Likewise.
37617 (_res_hconf_reorder_addrs): Likewise.
37618 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37619 (clnttcp_control): Likewise.
37620 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37621 (clntudp_control): Likewise.
37622 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37623 (clntunix_control): Likewise.
37624 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37625 * sunrpc/rpc/auth.h (union des_block): Likewise.
37626 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37627 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37628 (xdrrec_create): Likewise.
37629 (xdrrec_endofrecord): Likewise.
37630 (flush_out): Likewise.
37631 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37632 (xdrstdio_putlong): Likewise.
37633 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37634 Likewise.
37635
37636 * misc/sys/cdefs.h (__long_double_t): Remove.
37637 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37638 instead of __long_double_t,
37639 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37640
37641 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37642
37643 * benchtests/scripts/compare_strings.py: Avoid display error when
37644 running on a text terminal.
37645
37646 * benchtests/scripts/compare_strings.py (main): Add an
37647 optional -base option.
37648 (process_results): New argument base_func.
37649
37650 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37651 hardcoding memcpy.
37652 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37653 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37654
37655 2017-08-07 Andreas Schwab <schwab@suse.de>
37656
37657 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37658 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37659 * intl/Makefile ($(objpfx)tst-gettext.out)
37660 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37661 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37662 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37663 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37664 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37665 * posix/Makefile ($(objpfx)globtest.out)
37666 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37667 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37668 ($(objpfx)tst-printf.out): Likewise.
37669 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37670 ($(objpfx)tst-setcontext3.out): Likewise.
37671
37672 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37673
37674 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37675 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37676 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37677 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37678 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37679 and mptan-fma.
37680 (CFLAGS-doasin-fma.c): New.
37681 (CFLAGS-dosincos-fma.c): Likewise.
37682 (CFLAGS-e_asin-fma.c): Likewise.
37683 (CFLAGS-e_atan2-fma.c): Likewise.
37684 (CFLAGS-e_exp-fma.c): Likewise.
37685 (CFLAGS-e_log-fma.c): Likewise.
37686 (CFLAGS-e_pow-fma.c): Likewise.
37687 (CFLAGS-halfulp-fma.c): Likewise.
37688 (CFLAGS-mpa-fma.c): Likewise.
37689 (CFLAGS-mpatan-fma.c): Likewise.
37690 (CFLAGS-mpatan2-fma.c): Likewise.
37691 (CFLAGS-mpexp-fma.c): Likewise.
37692 (CFLAGS-mplog-fma.c): Likewise.
37693 (CFLAGS-mpsqrt-fma.c): Likewise.
37694 (CFLAGS-mptan-fma.c): Likewise.
37695 (CFLAGS-s_atan-fma.c): Likewise.
37696 (CFLAGS-sincos32-fma.c): Likewise.
37697 (CFLAGS-slowexp-fma.c): Likewise.
37698 (CFLAGS-slowpow-fma.c): Likewise.
37699 (CFLAGS-s_sin-fma.c): Likewise.
37700 (CFLAGS-s_tan-fma.c): Likewise.
37701 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37702 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37703 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37704 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37705 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37706 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37707 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37708 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37709 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37710 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37711 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37712 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37713 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37714 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37715 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37716 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37717 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37718 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37719 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37720 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37721 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37722 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37723 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37724 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37725 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37726 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37727 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37728 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37729 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37730 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37731 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37732
37733 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37734
37735 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37736 (min_of_type_f): New macro.
37737 (min_of_type_): Likewise.
37738 (min_of_type_l): Likewise.
37739 (min_of_type_f128): Likewise.
37740 (min_of_type): Define using __MATH_TG and taking an expression
37741 argument.
37742 (math_check_force_underflow): Pass expression instead of type to
37743 min_of_type.
37744 (math_check_force_underflow_nonneg): Likewise.
37745
37746 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37747
37748 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37749 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37750 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37751
37752 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37753
37754 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37755 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37756 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37757 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37758 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37759 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37760 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37761 memmove_chk-nonshared and memset_chk-nonshared
37762 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37763 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37764 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37765 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37766 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37767 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37768 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37769 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37770 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37771 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37772 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37773 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37774 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37775 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37776 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37777 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37778 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37779 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37780 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37781 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37782 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37783 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37784 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37785 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37786 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37787 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37788 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37789 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37790 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37791 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37792 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37793 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37794 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37795 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37796 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37797 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37798 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37799 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37800 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37801 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37802 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37803 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37804 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37805 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37806 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37807 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37808 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37809 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37810 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37811 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37812 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37813 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37814 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37815 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37816 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37817 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37818 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37819 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37820 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37821 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37822 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37823 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37824 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37825 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37826 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37827 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37828 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37829 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37830 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37831 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37832 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37833 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37834 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37835 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37836 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37837 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37838 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37839 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37840 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37841 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37842 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37843 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37844 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37845 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37846 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37847 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37848 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37849 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37850 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37851 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37852 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37853 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37854 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37855 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37856 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37857 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37858 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37859 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37860 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37861 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37862 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37863 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37864 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37865 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37866 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37867 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37868 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37869 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37870
37871 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37872
37873 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37874 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37875 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37876 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37877 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37878 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37879 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37880 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37881 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37882 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37883 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37884 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37885 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37886 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37887 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37888 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37889 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37890 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37891 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37892 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37893 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37894 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37895 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37896 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37897 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37898 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37899 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37900 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37901 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37902 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37903 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37904 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37905 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37906 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37907 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37908 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37909 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37910 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37911 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37912 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37913 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37914 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37915 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37916 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37917 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37918 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37919 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37920 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37921 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37922 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37923 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37924 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37925 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37926 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37927 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37928 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37929 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37930 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37931 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37932 ...
37933 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37934 Don't include <sysdep.h> nor <init-arch.h>.
37935 (_ZGVbN2v_cos): Removed.
37936 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37937 ...
37938 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37939 Don't include <sysdep.h> nor <init-arch.h>.
37940 (_ZGVdN4v_cos): Removed.
37941 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37942 ...
37943 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37944 Don't include <sysdep.h> nor <init-arch.h>.
37945 (_ZGVeN8v_cos): Removed.
37946 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37947 ...
37948 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37949 Don't include <sysdep.h> nor <init-arch.h>.
37950 (_ZGVbN2v_exp): Removed.
37951 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37952 ...
37953 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37954 Don't include <sysdep.h> nor <init-arch.h>.
37955 (_ZGVdN4v_exp): Removed.
37956 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37957 ...
37958 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37959 Don't include <sysdep.h> nor <init-arch.h>.
37960 (_ZGVeN8v_exp): Removed.
37961 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37962 ...
37963 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37964 Don't include <sysdep.h> nor <init-arch.h>.
37965 (_ZGVbN2v_log): Removed.
37966 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37967 ...
37968 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37969 Don't include <sysdep.h> nor <init-arch.h>.
37970 (_ZGVdN4v_log): Removed.
37971 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37972 ...
37973 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37974 Don't include <sysdep.h> nor <init-arch.h>.
37975 (_ZGVeN8v_log): Removed.
37976 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37977 ...
37978 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37979 Don't include <sysdep.h> nor <init-arch.h>.
37980 (_ZGVbN2vv_pow): Removed.
37981 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37982 ...
37983 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37984 Don't include <sysdep.h> nor <init-arch.h>.
37985 (_ZGVdN4vv_pow): Removed.
37986 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37987 ...
37988 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37989 Don't include <sysdep.h> nor <init-arch.h>.
37990 (_ZGVeN8vv_pow): Removed.
37991 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37992 ...
37993 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37994 Don't include <sysdep.h> nor <init-arch.h>.
37995 (_ZGVbN2v_sin): Removed.
37996 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37997 ...
37998 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37999 Don't include <sysdep.h> nor <init-arch.h>.
38000 (_ZGVbN4v_sin): Removed.
38001 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
38002 ...
38003 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38004 Don't include <sysdep.h> nor <init-arch.h>.
38005 (_ZGVbN8v_sin): Removed.
38006 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38007 ...
38008 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38009 Don't include <sysdep.h> nor <init-arch.h>.
38010 (_ZGVbN2vvv_sincos): Removed.
38011 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38012 ...
38013 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38014 Don't include <sysdep.h> nor <init-arch.h>.
38015 (_ZGVdN4vvv_sincos): Removed.
38016 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38017 ...
38018 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38019 Don't include <sysdep.h> nor <init-arch.h>.
38020 (_ZGVeN8vvv_sincos): Removed.
38021 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38022 ...
38023 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38024 Don't include <sysdep.h> nor <init-arch.h>.
38025 (_ZGVeN16v_cosf): Removed.
38026 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38027 ...
38028 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38029 Don't include <sysdep.h> nor <init-arch.h>.
38030 (_ZGVbN4v_cosf): Removed.
38031 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38032 ...
38033 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38034 Don't include <sysdep.h> nor <init-arch.h>.
38035 (_ZGVdN8v_cosf): Removed.
38036 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38037 ...
38038 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38039 Don't include <sysdep.h> nor <init-arch.h>.
38040 (_ZGVeN16v_expf): Removed.
38041 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38042 ...
38043 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38044 Don't include <sysdep.h> nor <init-arch.h>.
38045 (_ZGVbN4v_expf): Removed.
38046 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38047 ...
38048 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38049 Don't include <sysdep.h> nor <init-arch.h>.
38050 (_ZGVdN8v_expf): Removed.
38051 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38052 ...
38053 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38054 Don't include <sysdep.h> nor <init-arch.h>.
38055 (_ZGVeN16v_logf): Removed.
38056 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38057 ...
38058 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38059 Don't include <sysdep.h> nor <init-arch.h>.
38060 (_ZGVbN4v_logf): Removed.
38061 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38062 ...
38063 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38064 Don't include <sysdep.h> nor <init-arch.h>.
38065 (_ZGVdN8v_logf): Removed.
38066 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38067 ...
38068 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38069 Don't include <sysdep.h> nor <init-arch.h>.
38070 (_ZGVeN16vv_powf): Removed.
38071 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38072 ...
38073 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38074 Don't include <sysdep.h> nor <init-arch.h>.
38075 (_ZGVbN4vv_powf): Removed.
38076 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38077 ...
38078 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38079 Don't include <sysdep.h> nor <init-arch.h>.
38080 (_ZGVdN8vv_powf): Removed.
38081 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38082 ...
38083 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38084 Don't include <sysdep.h> nor <init-arch.h>.
38085 (_ZGVeN16vvv_sincosf): Removed.
38086 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38087 ...
38088 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38089 Don't include <sysdep.h> nor <init-arch.h>.
38090 (_ZGVbN4vvv_sincosf): Removed.
38091 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38092 ...
38093 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38094 Don't include <sysdep.h> nor <init-arch.h>.
38095 (_ZGVdN8vvv_sincosf): Removed.
38096 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38097 ...
38098 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38099 Don't include <sysdep.h> nor <init-arch.h>.
38100 (_ZGVeN16v_sinf): Removed.
38101 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38102 ...
38103 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38104 Don't include <sysdep.h> nor <init-arch.h>.
38105 (_ZGVbN4v_sinf): Removed.
38106 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38107 ...
38108 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38109 Don't include <sysdep.h> nor <init-arch.h>.
38110 (_ZGVdN8v_sinf): Removed.
38111
38112 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38113
38114 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38115 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38116 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38117 s_rint-sse4_1 and s_rintf-sse4_1.
38118 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38119 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38120 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38121 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38122 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38123 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38124 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38125 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38126 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38127 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38128 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38129 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38130 (__ceil): Removed.
38131 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38132 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38133 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38134 (__ceilf): Removed.
38135 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38136 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38137 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38138 (__floor): Removed.
38139 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38140 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38141 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38142 (__floorf): Removed.
38143 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38144 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38145 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38146 (__nearbyint): Removed.
38147 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38148 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38149 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38150 (__nearbyintf): Removed.
38151 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38152 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38153 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38154 (__rint): Removed.
38155 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38156 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38157 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38158 (__rintf): Removed.
38159
38160 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38161
38162 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38163 SHARED. Avoid dynamic relocation against main in static PIE.
38164
38165 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38166
38167 [BZ #21815]
38168 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38169 (LDFLAGS-tst-prelink): Likewise.
38170
38171 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38172
38173 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38174 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38175 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38176 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38177 (INTERNAL_SYSCALL_NCS): Likewise.
38178 (LOADARGS_1): Likewise.
38179 (LOADARGS_5): Likewise.
38180 (RESTOREARGS_1): Likewise.
38181 (RESTOREARGS_5): Likewise.
38182
38183 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38184
38185 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38186 (MEMPCPY_SYMBOL): Likewise.
38187 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38188 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38189 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38190 in libc.a.
38191 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38192 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38193 Likewise.
38194 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38195 (__hidden_ver1): Don't use in libc.a.
38196 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38197 (__mempcpy): Don't create a weak alias in libc.a.
38198 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38199 libc.a.
38200 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38201 (__hidden_ver1): Don't use in libc.a.
38202
38203 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38204
38205 * config.make.in (have-insert): New.
38206 * configure.ac (libc_cv_insert): New. Set to yes if linker
38207 supports INSERT in linker script.
38208 (AC_SUBST(libc_cv_insert): New.
38209 * configure: Regenerated.
38210 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38211 if $(have-insert) == yes.
38212
38213 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38214
38215 * elf/Makefile (tests): Add vismain only if
38216 $(have-protected-data) == yes.
38217 (tests-pie): Likewise.
38218
38219 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38220
38221 [BZ #21871]
38222 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38223 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38224
38225 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38226
38227 [BZ #21790]
38228 * sysdeps/i386/i586/memset.S
38229 (__memset_zero_constant_len_parameter): Removed.
38230 * sysdeps/i386/i686/memset.S
38231 (__memset_zero_constant_len_parameter): Likewise.
38232 * sysdeps/i386/i686/multiarch/memset_chk.S
38233 (__memset_zero_constant_len_parameter): Likewise.
38234 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38235 Likewise.
38236
38237 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38238
38239 * stdlib/getentropy.c (getentropy): Change return type to int.
38240
38241 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38242
38243 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38244
38245 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38246
38247 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38248 u_intN_t.
38249 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38250 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38251 Likewise.
38252 (ieee_float_shape_type): Likewise.
38253 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38254 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38255 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38256 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38257 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38258 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38259 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38260 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38261 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38262 Likewise.
38263 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38264 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38265 (__ieee754_yn): Likewise.
38266 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38267 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38268 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38269 Likewise.
38270 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38271 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38272 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38273 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38274 (__erfc): Likewise.
38275 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38276 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38277 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38278 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38279 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38280 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38281 Likewise.
38282 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38283 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38284 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38285 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38286 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38287 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38288 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38289 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38290 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38291 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38292 (__issignaling): Likewise.
38293 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38294 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38295 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38296 Likewise.
38297 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38298 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38299 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38300 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38301 Likewise.
38302 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38303 Likewise.
38304 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38305 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38306 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38307 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38308 (__erfcf): Likewise.
38309 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38310 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38311 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38312 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38313 Likewise.
38314 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38315 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38316 Likewise.
38317 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38318 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38319 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38320 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38321 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38322 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38323 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38324 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38325 Likewise.
38326 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38327 Likewise.
38328 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38329 Likewise.
38330 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38331 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38332 Likewise.
38333 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38334 Likewise.
38335 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38336 (__ieee754_ynl): Likewise.
38337 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38338 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38339 Likewise.
38340 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38341 Likewise.
38342 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38343 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38344 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38345 Likewise.
38346 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38347 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38348 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38349 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38350 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38351 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38352 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38353 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38354 Likewise.
38355 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38356 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38357 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38358 Likewise.
38359 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38360 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38361 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38362 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38363 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38364 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38365 Likewise.
38366 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38367 Likewise.
38368 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38369 Likewise.
38370 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38371 Likewise.
38372 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38373 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38374 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38375 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38376 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38377 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38378 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38379 Likewise.
38380 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38381 Likewise.
38382 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38383 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38384 Likewise.
38385 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38386 (__ieee754_remainderl): Likewise.
38387 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38388 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38389 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38390 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38391 Likewise.
38392 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38393 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38394 Likewise.
38395 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38396 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38397 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38398 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38399 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38400 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38401 Likewise.
38402 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38403 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38404 (__ieee754_y0l): Likewise.
38405 (pzero): Likewise.
38406 (qzero): Likewise.
38407 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38408 (__ieee754_y1l): Likewise.
38409 (pone): Likewise.
38410 (qone): Likewise.
38411 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38412 (__ieee754_ynl): Likewise.
38413 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38414 (__ieee754_lgammal_r): Likewise.
38415 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38416 Likewise.
38417 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38418 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38419 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38420 (__erfcl): Likewise.
38421 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38422 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38423 Likewise.
38424 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38425 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38426 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38427 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38428 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38429 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38430 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38431 Likewise.
38432 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38433 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38434 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38435 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38436 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38437 Likewise.
38438 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38439 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38440 Likewise.
38441 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38442 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38443 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38444 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38445 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38446
38447 2017-08-03 Florian Weimer <fweimer@redhat.com>
38448
38449 [BZ #21885]
38450 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38451 on memory allocation failure.
38452
38453 2017-08-03 Alan Modra <amodra@gmail.com>
38454
38455 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38456 tst-tlsopt-powerpc.c with function name change and no test harness.
38457 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38458 Call tls_get_addr_opt_test.
38459 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38460 (modules-names): Add mod-tlsopt-powerpc.
38461 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38462 (tst-tlsopt-powerpc): Depend on .so.
38463 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38464 define. Expand use in TLS_GD and TLS_LD.
38465
38466 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38467
38468 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38469 function.
38470 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38471
38472 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38473
38474 [BZ #21686]
38475 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38476 comparing size with that of double.
38477 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38478 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38479 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38480 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38481 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38482 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38483 unsigned __int128 types.
38484
38485 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38486
38487 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38488 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38489 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38490 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38491 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38492
38493 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38494
38495 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38496
38497 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38498
38499 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38500 of SHARED.
38501 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38502 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38503 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38504 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38505 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38506 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38507 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38508
38509 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38510
38511 [BZ #21685]
38512 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38513 bit-field expressions passed to sizeof or typeof.
38514 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38515 (__TGMATH_F128): Likewise.
38516 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38517 (__TGMATH_CF128): Likewise.
38518 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38519 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38520 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38521 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38522 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38523 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38524 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38525 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38526 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38527 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38528 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38529 (__TGMATH_UNARY_IMAG): Likewise.
38530 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38531 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38532 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38533 type.
38534 (define_vars_for_type): Handle bit_field type specially.
38535 (Tests.__init__): Declare structure with bit-field element.
38536
38537 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38538
38539 [BZ #21791]
38540 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38541 (MEMCPY_CHK): Define only if SHARED is defined.
38542 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38543 Likewise.
38544 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38545 Likewise.
38546
38547 See ChangeLog.18 for earlier changes.