]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add UNSUPPORTED check in elf/tst-pldd.
[thirdparty/glibc.git] / ChangeLog
1 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
2
3 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
4 Rearrange subprocesses.
5 (pldd_process): New function.
6 * support/Makefile (libsupport-routines): Add support_ptrace.
7 * support/xptrace.h: New file.
8 * support/support_ptrace.c: Likewise.
9
10 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11
12 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
13
14 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
15 (INTERNAL_VSYSCALL_CALL): Remove.
16 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17 (INTERNAL_VSYSCALL_CALL): Likewise.
18 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
19 (INTERNAL_VSYSCALL_CALL): Likewise.
20 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
21 New macro.
22
23 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
24 defined.
25 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
26 (__get_timebase_freq): Remove use of
27 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
28 (get_timebase_freq_fallback): New symbol.
29 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
30 HAVE_GETTIMEOFDAY_VSYSCALL.
31 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
32 HAVE_TIME_VSYSCALL.
33 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
34 implementation.
35 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
36 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
37 powerpc64.
38 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
39 * .../sysv/linux/powerpc/powerpc64/sysdep.h
40 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
41 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
42 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
43
44 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
45 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
46 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
47 Likewise.
48 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
49 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
50 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
51 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
52 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
53 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
54 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
55 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
56 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
57 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
58 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
59 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
60 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
61 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
62 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
63 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
64 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
65 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
66 name.
67 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
68 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
69 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
70 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
71 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
72 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
73 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
74 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
75 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
76 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
77 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
78 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
79 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
80 HAVE_GETCPU_VSYSCALL): Likewise.
81 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
82 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
83 HAVE_GETCPU_VSYSCALL): Likewise.
84 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
85 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
86 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
87 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
88 HAVE_GETCPU_VSYSCALL): Likewise.
89 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
90 invalid names if architecture does not define them.
91 (get_vdso_mangle_symbol): New symbol.
92 * sysdeps/unix/sysv/linux/init-first.c: New file.
93 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
94 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
95 clock_gettime, clock_getres, getcpu, time): Remove declaration.
96 (__libc_vdso_platform_setup_arch): Likewise and use
97 get_vdso_mangle_symbol to setup vDSO symbols.
98 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
99 attribute_hidden.
100 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
101 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
102 definition.
103
104 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
105 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
106 Use get_vdso_symbol instead of _dl_vdso_vsym.
107 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
108 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
109 (__lookup_riscv_flush_icache): Likewise.
110 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
111 Likewise.
112 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
113 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
114 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
115 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
116 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
117 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
118 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
119 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
120 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
121 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
122 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
123 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
124 Define.
125 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
126 Likewise.
127 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
128 Likewise.
129 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
130 Likewise.
131 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
132 Likewise.
133 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
134 Likewise.
135 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
136 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
137 definition.
138 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
139 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
140 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
141 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
143 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
145 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
146 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
147 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
148 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
149 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
150 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
151 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
152 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
153 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
154 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
155 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
156 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
157 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
158 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
159 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
160 (get_vdso_symbol): New function.
161
162 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
163
164 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
165 position of string null termination.
166
167 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
168
169 [BZ #24986]
170 * sysdeps/unix/alpha/getegid.S: Move to ...
171 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
172 * sysdeps/unix/alpha/geteuid.S: Move to ...
173 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
174 * sysdeps/unix/alpha/getppid.S: Move to ...
175 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
176
177 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
178
179 Fix http: URL in 'configure'
180 * configure.ac: Add URL to AC_INIT so that it generates an
181 https: URL instead of an http: URL.
182 * configure: Regenerate.
183
184 Regenerate charmap-kw.h, locfile-kw.h
185 This propagates the recent http->https URL changes.
186 Since I used gperf 3.1 to regenerate, this is also a minor
187 internal-to-localedef API change.
188 URL problem reported by Joseph Myers in:
189 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
190 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
191 Regenerate with gperf 3.1.
192 * locale/programs/linereader.h (kw_hash_fct_t):
193 * locale/programs/repertoire.c (repertoiremap_hash):
194 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
195
196 2019-09-05 Florian Weimer <fweimer@redhat.com>
197
198 [BZ #24962]
199 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
200 (_nl_category_names_get): New function.
201 * intl/dcigettext.c (category_to_name): Call it.
202 * locale/findlocale.c (_nl_find_locale): Likewise.
203 * intl/loadlocale.c (_nl_load_locale): Likewise.
204 * locale/newlocale.c (__newlocale): Likewise.
205 * locale/setlocale.c (_nl_category_names): Adjust definition.
206 (_nl_category_name_idxs): Likewise.
207 (new_composite_name): Call _nl_category_names_get.
208 (setlocale): Likewise.
209
210 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
211
212 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
213 const attribute with pure attribute.
214
215 2019-09-04 Lukasz Majewski <lukma@denx.de>
216
217 * sysdeps/unix/sysv/linux/kernel-features.h
218 (__ASSUME_TIME64_SYSCALLS): New macro.
219
220 2019-09-04 Zack Weinberg <zackw@panix.com>
221
222 [BZ #24959]
223 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
224 * rt/clock_getres.c: Move to time/clock_getres.c.
225 * rt/clock_gettime.c: Move to time/clock_gettime.c.
226 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
227 * rt/clock_settime.c: Move to time/clock_settime.c.
228 * rt/tst-clock.c: Move to time/tst-clock.c.
229 * rt/tst-clock2.c: Move to time/tst-clock2.c.
230 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
231 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
232 * rt/clock-compat.c: Delete file.
233
234 * time/clock_getcpuclockid.c
235 * time/clock_getres.c
236 * time/clock_gettime.c
237 * time/clock_nanosleep.c
238 * time/clock_settime.c
239 * sysdeps/posix/clock_getres.c
240 * sysdeps/unix/clock_gettime.c
241 * sysdeps/unix/clock_nanosleep.c
242 * sysdeps/unix/clock_settime.c
243 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
244 * sysdeps/unix/sysv/linux/clock_getres.c
245 * sysdeps/unix/sysv/linux/clock_gettime.c
246 * sysdeps/unix/sysv/linux/clock_nanosleep.c
247 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
248 defined by this file with default symbol version GLIBC_2_17,
249 and optionally a compatibility alias at symbol version GLIBC_2_2.
250 * include/time.h: Remove internal prototypes for clock_getres,
251 clock_nanosleep, and clock_getcpuclockid.
252
253 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
254 Remove unused function realtime_gettime.
255
256 * rt/Makefile (clock-routines, routines): Remove variable.
257 (librt-routines): Remove clock-compat.
258 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
259 and tst-cpuclock1.
260 * time/Makefile (routines): Add clock_getres, clock_gettime,
261 clock_settime, clock_getcpuclockid, and clock_nanosleep.
262 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
263 and tst-cpuclock1.
264
265 * rt/Versions (libc): Remove entire stanza.
266 (librt GLIBC_2.2): Remove all clock_* functions.
267 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
268 Add clock_getres, clock_gettime, clock_settime,
269 clock_getcpuclockid, and clock_nanosleep.
270 (libc GLIBC_PRIVATE): Add __clock_gettime.
271
272 * sysdeps/mach/hurd/i386/librt.abilist
273 * sysdeps/unix/sysv/linux/alpha/librt.abilist
274 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
275 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
276 * sysdeps/unix/sysv/linux/hppa/librt.abilist
277 * sysdeps/unix/sysv/linux/i386/librt.abilist
278 * sysdeps/unix/sysv/linux/ia64/librt.abilist
279 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
280 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
281 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
282 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
283 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
284 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
287 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
288 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
289 * sysdeps/unix/sysv/linux/sh/librt.abilist
290 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
291 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
292 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
293 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
294 Remove entries for clock_getres, clock_gettime, clock_settime,
295 clock_getcpuclockid, and clock_nanosleep.
296
297 * sysdeps/mach/hurd/i386/libc.abilist
298 * sysdeps/unix/sysv/linux/alpha/libc.abilist
299 * sysdeps/unix/sysv/linux/arm/libc.abilist
300 * sysdeps/unix/sysv/linux/hppa/libc.abilist
301 * sysdeps/unix/sysv/linux/i386/libc.abilist
302 * sysdeps/unix/sysv/linux/ia64/libc.abilist
303 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
304 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
305 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
306 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
307 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
308 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
312 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
313 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
314 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
315 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
316 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
317 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
318 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
319 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
320 Add another set of entries for clock_getres, clock_gettime,
321 clock_settime, clock_getcpuclockid, and clock_nanosleep at
322 whatever version GLIBC_2.2 maps to.
323
324 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
325
326 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
327
328 2019-09-03 Florian Weimer <fweimer@redhat.com>
329
330 [BZ #24950]
331 * locale/programs/charmap.h (struct charseq): Turn bytes into a
332 flexible array member.
333 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
334 replace.
335
336 2019-09-02 Florian Weimer <fweimer@redhat.com>
337
338 * misc/tst-mntent-autofs.c: New file.
339 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
340
341 2019-09-02 Ian Kent <ikent@redhat.com>
342
343 Use autofs "ignore" mount hint in getmntent_r/getmntent.
344 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
345 getmntent_r.
346 (__getmntent_r): Call it. Filter out autofs entries with an
347 "ignore" mount option.
348
349 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
350
351 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
352 (generic_memcpy): Include generic C memcpy.
353 * benchtests/bench-memmove.c (simple_memmove): Remove.
354 (generic_memmove): Include generic C memmove.
355 * benchtests/bench-memset.c (simple_memset): Remove.
356 (generic_memset): Include generic C memset.
357 * benchtests/bench-memset-large.c (simple_memset): Remove.
358 (generic_memset): Include generic C memset.
359 * benchtests/bench-memset-walk.c (simple_memset): Remove.
360 (generic_memset): Include generic C memset.
361 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
362 * string/memset.c (MEMSET): Likewise.
363 * sysdeps/x86_64/memcopy.h: Remove empty file.
364
365 2019-08-30 Florian Weimer <fweimer@redhat.com>
366
367 nptl: Move pthread_attr_getinheritsched implementation into libc.
368 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
369 (libpthread-routines): Remove pthread_attr_getinheritsched.
370 * nptl/Versions (libpthread GLIBC_2.0): Remove
371 pthread_attr_getinheritsched.
372 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
373 * nptl/nptl-init.c (pthread_functions): Remove initializer for
374 ptr_pthread_attr_getinheritsched.
375 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
376 Remove ptr_pthread_attr_getinheritsched member.
377 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
378 Remove pthread_attr_getinheritsched.
379 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
380 Likewise.
381 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
382 Likewise.
383 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
384 Likewise.
385 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
386 Likewise.
387 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
388 Likewise.
389 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
390 Likewise.
391 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
392 Likewise.
393 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
394 (GLIBC_2.4): Likewise.
395 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
396 (GLIBC_2.0): Likewise.
397 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
398 (GLIBC_2.18): Likewise.
399 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
400 (GLIBC_2.18): Likewise.
401 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
402 (GLIBC_2.0): Likewise.
403 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
404 (GLIBC_2.0): Likewise.
405 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
406 Likewise.
407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
408 (GLIBC_2.0): Likewise.
409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
410 (GLIBC_2.3): Likewise.
411 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
412 (GLIBC_2.17): Likewise.
413 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
414 (GLIBC_2.27): Likewise.
415 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
416 (GLIBC_2.0): Likewise.
417 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
418 (GLIBC_2.2): Likewise.
419 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
420 Likewise.
421 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
422 Likewise.
423 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
424 (GLIBC_2.0): Likewise.
425 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
426 (GLIBC_2.2): Likewise.
427 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
428 (GLIBC_2.2.5): Likewise.
429 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
430 (GLIBC_2.16): Likewise.
431
432 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
433
434 * sysdeps/mach/hurd/getcwd.c
435 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
436 slash if we got an unknown root directory. (__getcwd): Do not fail with
437 EGRATUITOUS if we got an unknown root directory.
438 * hurd/hurdselect.c (SELECT_ERROR): New macro.
439 (_hurd_select):
440 - Add `error' field to `d' structures array.
441 - If a poll descriptor is bogus, set EBADF, but continue with a zero
442 timeout.
443 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
444 EBADF there is any bit set above _hurd_dtablesize.
445 - Do not request io_select on bogus descriptors (SELECT_ERROR).
446 - On io_select request error, record the error.
447 - On io_select bogus reply, use EIO error code.
448 - On io_select bogus or error reply, record the error.
449 - Do not destroy reply port for bogus FDs.
450 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
451 EBADF case, or else POLLERR.
452 - On error, make select simulated readiness.
453
454 [BZ #19903]
455 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
456 as __vm_allocate.
457
458 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
459 unlocks SS and returns to the saved PC.
460 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
461 thread stack instead of the saved PC.
462
463 2019-08-30 Richard Braun <rbraun@sceen.net>
464
465 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
466 timeout.
467 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
468 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
469 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
470 <limits.h>.
471 (_hurd_select): Replace the call to __io_select with either
472 __io_select_request or __io_select_timeout_request, depending on the
473 timeout. Count the number of ready descriptors (replies for which at
474 least one type bit is set). Implement the timeout locally when there is
475 no file descriptor.
476
477 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
478
479 * elf/dl-addr.c (determine_info): Calculate the symbol index
480 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
481 * elf/dl-lookup.c (do_lookup_x): Ditto.
482 (_dl_setup_hash): Initialize MIPS xhash translation table.
483 * elf/elf.h (SHT_MIPS_XHASH): New define.
484 (DT_MIPS_XHASH): New define.
485 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
486 define.
487 (ELF_MACHINE_HASH_SYMIDX): Ditto.
488 (ELF_MACHINE_XHASH_SETUP): Ditto.
489 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
490 define.
491 (ELF_MACHINE_HASH_SYMIDX): Ditto.
492 (ELF_MACHINE_XHASH_SETUP): Ditto.
493 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
494 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
495 version.
496 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
497
498 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
499
500 * sysdeps/sh/preconfigure.ac: New file.
501 * sysdeps/sh/preconfigure: Regenerate.
502 * sysdeps/sh/be/sh3/Implies: New file.
503 * sysdeps/sh/be/sh4/Implies: Likewise.
504 * sysdeps/sh/le/sh3/Implies: Likewise.
505 * sysdeps/sh/le/sh4/Implies: Likewise.
506 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
507 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
508 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
509 sysdeps/unix/sysv/linux/sh/le/*.abilist.
510 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
511
512 * sysdeps/microblaze/preconfigure.ac: New file.
513 * sysdeps/microblaze/preconfigure: Regenerate.
514 * sysdeps/microblaze/be/implies: New file.
515 * sysdeps/microblaze/le/implies: Likewise.
516 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
517 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
518 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
519 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
520 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
521
522 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
523 * sysdeps/arm/preconfigure: Regenerate.
524 * sysdeps/arm/be/Implies: New file.
525 * sysdeps/arm/be/armv6/Implies: Likewise.
526 * sysdeps/arm/be/armv6t2/Implies: Likewise.
527 * sysdeps/arm/be/armv7/Implies: Likewise.
528 * sysdeps/arm/le/Implies: Likewise.
529 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
530 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
531 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
532 sysdeps/unix/sysv/linux/arm/le/*.abilist.
533 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
534
535 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
536
537 Fix posix/tst-regex by using UTF-8 and own test input
538 Problem reported by Stefan Liebler in:
539 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
540 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
541 (do_test, test_expr): Adjust to the fact that this source file,
542 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
543 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
544 so that it is now UTF-8.
545
546 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
547
548 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
549 (fegetenv_status): Generate 'mffsl' unconditionally.
550
551 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
552
553 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
554 FPSCR read.
555 (_FPU_MASK_ALL): Delete.
556
557 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
558
559 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
560 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
561 if possible.
562 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
563 with simpler required steps, set fewer FPSCR bits if possible.
564
565 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
566
567 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
568 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
569 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
570 weight access to FPSCR; remove unnecessary second FPSCR read and
571 validate.
572 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
573 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
574 access to FPSCR; Use macros in fenv_libc.h in favor of local.
575
576 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
577
578 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
579 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
580 (fenv_exceptions_to_reg): New.
581 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
582 operation with call to fenv_exceptions_to_reg().
583 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
584
585 2019-08-28 Florian Weimer <fweimer@redhat.com>
586
587 * misc/mntent.c (struct mntent_buffer): Define.
588 (mntent_buffer): Adjust type to void *.
589 (allocate): Adjust for allocate_once.
590 (deallocate): New function.
591 (getmntent): Call allocate_once.
592
593 2019-08-28 Florian Weimer <fweimer@redhat.com>
594
595 nptl: Move pthread_attr_setdetachstate implementation into libc.
596 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
597 (libpthread-routines): Remove pthread_attr_setdetachstate.
598 * nptl/Versions (libpthread GLIBC_2.0): Remove
599 pthread_attr_setdetachstate.
600 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
601 * nptl/nptl-init.c (pthread_functions): Remove initializer for
602 ptr_pthread_attr_setdetachstate.
603 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
604 Remove ptr_pthread_attr_setdetachstate member.
605 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
606 Remove pthread_attr_setdetachstate.
607 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
608 Likewise.
609 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
610 Likewise.
611 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
612 Likewise.
613 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
614 Likewise.
615 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
616 Likewise.
617 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
618 Likewise.
619 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
620 (GLIBC_2.4): Likewise.
621 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
622 (GLIBC_2.0): Likewise.
623 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
624 (GLIBC_2.18): Likewise.
625 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
626 (GLIBC_2.0): Likewise.
627 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
628 (GLIBC_2.0): Likewise.
629 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
630 Likewise.
631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
632 (GLIBC_2.0): Likewise.
633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
634 (GLIBC_2.3): Likewise.
635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
636 (GLIBC_2.17): Likewise.
637 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
638 (GLIBC_2.27): Likewise.
639 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
640 (GLIBC_2.0): Likewise.
641 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
642 (GLIBC_2.2): Likewise.
643 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
644 Likewise.
645 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
646 (GLIBC_2.0): Likewise.
647 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
648 (GLIBC_2.2): Likewise.
649 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
650 (GLIBC_2.2.5): Likewise.
651 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
652 (GLIBC_2.16): Likewise.
653
654 2019-08-28 Florian Weimer <fweimer@redhat.com>
655
656 [BZ #24902]
657 * login/Makefile (tests): Add tst-pututxline-lockfail.
658 (tst-pututxline-lockfail): Link with -lpthread.
659 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
660 (__libc_getutid_r): Adjust.
661 (__libc_pututline): Likewise. Check for file_offset == -1.
662 * login/tst-pututxline-lockfail.c: New file.
663
664 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
665
666 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
667 * posix/tst-regex.input: New file.
668
669 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
670
671 [BZ #24916]
672 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
673 tst-undefined-weak.
674 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
675 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
676 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
677 * sysdeps/mips/tst-undefined-weak.c: Likewise.
678 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
679 Increment highest valid ABIVERSION value.
680
681 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
682
683 * sysdeps/unix/sysv/linux/mips/Makefile
684 (test-xfail-check-execstack):
685 Move under mips-has-gnustack != yes.
686 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
687 Apply -Wa,-execstack if mips-force-execstack == yes.
688 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
689 * sysdeps/unix/sysv/linux/mips/configure.ac
690 (mips-force-execstack): New var.
691 Set to yes for hard-float builds with minimum_kernel < 4.8.0
692 or minimum_kernel not set at all.
693 (mips-has-gnustack): New var.
694 Use value of libc_cv_as_noexecstack
695 if mips-force-execstack != yes, otherwise set to no.
696
697 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
698 Florian Weimer <fweimer@redhat.com>
699
700 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
701 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
702 Make a compat_symbol.
703 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
704 (__profil_counter_global): Likewise.
705
706 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
707 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
708 uintptr_t.
709 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
710 sigcontext_get_pc and return aligned cast to uintptr_t.
711 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
712 * sysdeps/posix/profil.c (profil_count): Change PC argument to
713 uintptr_t.
714 (__profil): Use SA_SIGINFO.
715 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
716 uintptr_t.
717 (__sprofil): Use SA_SIGINFO.
718 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
719 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
720 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
721 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
722 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
723 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
724 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
725 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
726 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
727 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
728 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
729 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
730 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
731 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
732 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
733 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
734 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
735 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
736 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
737 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
738 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
739 GET_PC, __sigaction, sigaction): Remove defines.
740 (sigcontext_get_pc): New function.
741 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
742 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
743 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
744 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
745 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
746 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
747 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
748 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
749 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
750 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
751 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
752 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
753 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
754 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
755 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
756 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
757 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
758 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
759 Handle CTX argument as ucontext_t.
760 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
761 Likewise.
762 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
763 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
764 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
765 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
766 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
767 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
768 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
769 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
770 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
771 tst-sigcontextinfo-get_pc.
772 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
773 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
774
775 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
776
777 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
778 definition.
779
780 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
781
782 [BZ #24682]
783 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
784 * localedata/locales/ug_CN (first_weekday): Likewise.
785 * localedata/locales/zh_CN (first_weekday): Likewise.
786
787 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
788
789 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
790 field name in mcontext_t struct.
791
792 2019-08-22 Joseph Myers <joseph@codesourcery.com>
793
794 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
795 unsupported with libidn2 before 2.0.5.
796 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
797
798 * manual/time.texi (strftime): Document %Ob and %OB as C2X
799 features.
800
801 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
802
803 Remove dead regex code
804 * posix/regex_internal.c (re_node_set_insert):
805 Remove unnecessary assignment. Reported by Tim Rühsen in:
806 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
807
808 Fix bad pointer / leak in regex code
809 This was found by Coverity (CID 1484201). [BZ#24844]
810 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
811 pointer and/or memory leak when storage is exhausted.
812
813 2019-08-21 Zack Weinberg <zackw@panix.com>
814
815 * misc/syslog.c (__vsyslog_internal)
816 * time/getdate.c (__getdate_r)
817 * time/tst_wcsftime.c (main):
818 Use return value of time, not its argument.
819
820 * string/strfry.c (strfry)
821 * sysdeps/mach/sleep.c (__sleep):
822 Remove unnecessary casts of NULL in calls to time.
823
824 2019-08-21 Joseph Myers <joseph@codesourcery.com>
825
826 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
827 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
828 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
829 (__TGMATH_2_NARROW_F): Likewise.
830 (__TGMATH_2_NARROW_D): New macro.
831 (__TGMATH_2_NARROW_F16): Likewise.
832 (__TGMATH_2_NARROW_F32): Likewise.
833 (__TGMATH_2_NARROW_F64): Likewise.
834 (__TGMATH_2_NARROW_F32X): Likewise.
835 (__TGMATH_2_NARROW_F64X): Likewise.
836 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
837 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
838 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
839 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
840 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
841 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
842 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
843 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
844 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
845 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
846 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
847 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
848 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
849 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
850 Likewise.
851 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
852 Likewise.
853 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
854 Likewise.
855 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
856 Likewise.
857 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
858 Likewise.
859 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
860 Likewise.
861 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
862 Likewise.
863 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
864 Likewise.
865 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
866 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
867 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
868 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
869 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
870 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
871 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
872 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
873 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
874 Likewise.
875 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
876 Likewise.
877 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
878 Likewise.
879 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
880 Likewise.
881 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
882 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
883 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
884 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
885 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
886 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
887 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
888 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
889 * math/gen-tgmath-tests.py (Type): Add members
890 non_standard_real_argument_types_list, long_double_type,
891 complex_float64_type and float32x_ext_type.
892 (Type.__init__): Set the new members.
893 (Type.floating_type): Add new argument floatn.
894 (Type.real_floating_type): Likewise.
895 (Type.can_combine_types): Likewise.
896 (Type.combine_types): Likewise.
897 (Type.init_types): Create internal Float32x_ext type.
898 (Tests.__init__): Define Float32x_ext in generated C code.
899 (Tests.add_tests): Handle narrowing functions.
900 (Tests.add_all_tests): Likewise.
901 (Tests.tests_text): Allow variation in mant_dig for narrowing
902 functions with compilers before GCC 8.
903 * math/Makefile (tgmath3-narrow-types): New variable.
904 (tgmath3-narrow-macros): Likewise.
905 (tgmath3-macros): Add $(tgmath3-narrow-macros).
906
907 2019-08-20 Andreas Schwab <schwab@suse.de>
908
909 * sysdeps/i386/fpu/libm-test-ulps: Update.
910
911 2019-08-19 Carlos O'Donell <carlos@redhat.com>
912
913 * nscd/nscd.conf: Add warning and comment about shared option.
914
915 2019-08-19 Carlos O'Donell <carlos@redhat.com>
916
917 * nss/nsswitch.conf: Expand comments, and simplify defaults.
918 * manual/nss.texi (NSS Basics): List all known databases.
919 (Services in the NSS configuration): Mention automount.
920
921 2019-08-19 Florian Weimer <fweimer@redhat.com>
922
923 Do not print backtraces on fatal errors.
924 * debug/fortify_fail.c (__libc_argv): Remove declaration.
925 (__fortify_fail_abort): Remove definition.
926 (__fortify_fail): Call __libc_message directly.
927 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
928 (__stack_chk_fail): Call __fortify_fail instead of
929 __fortify_fail_abort.
930 * include/stdio.h (__fortify_fail_abort): Remove declaration.
931 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
932 definitions.
933 (__libc_message): Do not handle do_backtrace. Do not call
934 BEFORE_ABORT.
935 (__libc_fatal): Do not pass do_backtrace to __libc_message.
936 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
937 (before_abort): Remove definitions.
938
939 2019-08-16 Florian Weimer <fweimer@redhat.com>
940
941 nptl: Move pthread_attr_getdetachstate implementation into libc.
942 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
943 (libpthread-routines): Remove pthread_attr_getdetachstate.
944 * nptl/Versions (libpthread GLIBC_2.0): Remove
945 pthread_attr_getdetachstate.
946 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
947 * nptl/nptl-init.c (pthread_functions): Remove initializer for
948 ptr_pthread_attr_getdetachstate.
949 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
950 Remove ptr_pthread_attr_getdetachstate member.
951 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
952 Remove pthread_attr_getdetachstate.
953 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
954 Likewise.
955 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
956 Likewise.
957 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
958 Likewise.
959 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
960 Likewise.
961 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
962 Likewise.
963 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
964 Likewise.
965 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
966 (GLIBC_2.4): Likewise.
967 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
968 (GLIBC_2.0): Likewise.
969 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
970 (GLIBC_2.18): Likewise.
971 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
972 (GLIBC_2.0): Likewise.
973 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
974 (GLIBC_2.0): Likewise.
975 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
976 Likewise.
977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
978 (GLIBC_2.0): Likewise.
979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
980 (GLIBC_2.3): Likewise.
981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
982 (GLIBC_2.17): Likewise.
983 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
984 (GLIBC_2.27): Likewise.
985 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
986 (GLIBC_2.0): Likewise.
987 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
988 (GLIBC_2.2): Likewise.
989 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
990 Likewise.
991 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
992 (GLIBC_2.0): Likewise.
993 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
994 (GLIBC_2.2): Likewise.
995 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
996 (GLIBC_2.2.5): Likewise.
997 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
998 (GLIBC_2.16): Likewise.
999
1000 2019-08-16 Joseph Myers <joseph@codesourcery.com>
1001
1002 * math/libm-test-compat_totalorder.inc (do_test)
1003 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1004 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1005 * math/libm-test-compat_totalordermag.inc (do_test)
1006 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1007
1008 2019-08-15 Florian Weimer <fweimer@redhat.com>
1009
1010 nptl: Move pthread_attr_init implementation into libc.
1011 * nptl/Makefile (routines): Add pthread_attr_init.
1012 (libpthread-routines): Remove pthread_attr_init.
1013 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1014 (libpthread GLIBC_2.0): Likewise.
1015 * nptl/pthread_attr_init.c: Check for libc compat version instead
1016 of libpthread compat version.
1017 * nptl/forward.c (__pthread_attr_init_2_0)
1018 (__pthread_attr_init_2_1): Remove definitions.
1019 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1020 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1021 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1022 Remove members ptr___pthread_attr_init_2_0,
1023 ptr___pthread_attr_init_2_1.
1024 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1025 Remove pthread_attr_init.
1026 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1027 Likewise.
1028 (GLIBC_2.1): Likewise.
1029 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1030 Likewise.
1031 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1032 Likewise.
1033 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1034 Likewise.
1035 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1036 Likewise.
1037 (GLIBC_2.1): Likewise.
1038 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1039 Likewise.
1040 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1041 (GLIBC_2.4): Likewise.
1042 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1043 (GLIBC_2.0): Likewise.
1044 (GLIBC_2.1): Likewise.
1045 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1046 (GLIBC_2.18): Likewise.
1047 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1048 (GLIBC_2.0): Likewise.
1049 (GLIBC_2.1): Likewise.
1050 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1051 (GLIBC_2.0): Likewise.
1052 (GLIBC_2.1): Likewise.
1053 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1054 Likewise.
1055 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1056 (GLIBC_2.0): Likewise.
1057 (GLIBC_2.1): Likewise.
1058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1059 (GLIBC_2.3): Likewise.
1060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1061 (GLIBC_2.17): Likewise.
1062 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1063 (GLIBC_2.27): Likewise.
1064 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1065 (GLIBC_2.0): Likewise.
1066 (GLIBC_2.1): Likewise.
1067 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1068 (GLIBC_2.2): Likewise.
1069 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1070 Likewise.
1071 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1072 (GLIBC_2.0): Likewise.
1073 (GLIBC_2.1): Likewise.
1074 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1075 (GLIBC_2.2): Likewise.
1076 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1077 (GLIBC_2.2.5): Likewise.
1078 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1079 (GLIBC_2.16): Likewise.
1080
1081 2019-08-15 Florian Weimer <fweimer@redhat.com>
1082
1083 [BZ #24900]
1084 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1085 new object in __RTLD_OPENEXEC mode (except for the origin).
1086 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1087 check for the error message.
1088 (do_test): Call it. Add check using relative path.
1089 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1090 (tst-dlopen-aout-container): Link with libpthread.
1091 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1092
1093 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1094
1095 * math/bits/mathcalls.h
1096 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1097 (totalorder): Take pointer arguments.
1098 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1099 (totalordermag): Likewise.
1100 * manual/arith.texi (totalorder): Likewise.
1101 (totalorderf): Likewise.
1102 (totalorderl): Likewise.
1103 (totalorderfN): Likewise.
1104 (totalorderfNx): Likewise.
1105 (totalordermag): Likewise.
1106 (totalordermagf): Likewise.
1107 (totalordermagl): Likewise.
1108 (totalordermagfN): Likewise.
1109 (totalordermagfNx): Likewise.
1110 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1111 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1112 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1113 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1114 totalorderl, totalordermag, totalordermagf, totalordermagl,
1115 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1116 totalordermagf64, totalordermagf32x, totalorderf64x,
1117 totalordermagf64x, totalorderf128 and totalordermagf128.
1118 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1119 and compat_totalordermag.
1120 (libm-test-funcs-compat): New variable.
1121 (libm-tests-compat): Likewise.
1122 (tests): Do not include compat tests.
1123 (tests-internal): Add compat tests.
1124 ($(foreach t,$(libm-tests-base),
1125 $(objpfx)$(t)-compat_totalorder.o)): Depend
1126 on $(objpfx)libm-test-totalorder.c.
1127 ($(foreach t,$(libm-tests-base),
1128 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1129 $(objpfx)libm-test-totalordermag.c.
1130 (tgmath3-macros): Remove totalorder and totalordermag.
1131 * math/libm-test-compat_totalorder.inc: New file.
1132 * math/libm-test-compat_totalordermag.inc: Likewise.
1133 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1134 (RUN_TEST_fpfp_b): New macro.
1135 (RUN_TEST_LOOP_fpfp_b): Likewise.
1136 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1137 TEST_fpfp_b.
1138 (totalorder_test): Condition on [!COMPAT_TEST].
1139 (do_test): Likewise.
1140 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1141 TEST_fpfp_b.
1142 (totalordermag_test): Condition on [!COMPAT_TEST].
1143 (do_test): Likewise.
1144 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1145 totalorder and totalordermag.
1146 * math/test-tgmath.c (NCALLS): Change to 132.
1147 (F(compile_test)): Do not call totalorder or totalordermag.
1148 (F(totalorder)): Remove.
1149 (F(totalordermag)): Likewise.
1150 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1151 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1152 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1153 SJSTR_HELPER.
1154 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1155 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1156 [!_ISOMAC] (TEST_ALIGN): Likewise.
1157 [!_ISOMAC] (TEST_OFFSET): Likewise.
1158 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1159 and <first-versions.h>.
1160 (__totalorder): Take pointer arguments. Add symbol versions and
1161 compat symbols.
1162 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1163 <shlib-compat.h> and <first-versions.h>.
1164 (__totalordermag): Take pointer arguments. Add symbol versions
1165 and compat symbols.
1166 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1167 <shlib-compat.h> and <first-versions.h>.
1168 (__totalorder): Take pointer arguments. Add symbol versions and
1169 compat symbols.
1170 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1171 <shlib-compat.h> and <first-versions.h>.
1172 (__totalordermag): Take pointer arguments. Add symbol versions
1173 and compat symbols.
1174 * sysdeps/ieee754/float128/float128_private.h
1175 (__totalorder_compatl): New macro.
1176 (__totalordermag_compatl): Likewise.
1177 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1178 and <first-versions.h>.
1179 (__totalorderf): Take pointer arguments. Add symbol versions and
1180 compat symbols.
1181 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1182 <shlib-compat.h> and <first-versions.h>.
1183 (__totalordermagf): Take pointer arguments. Add symbol versions
1184 and compat symbols.
1185 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1186 <shlib-compat.h> and <first-versions.h>.
1187 (__totalorderl): Take pointer arguments. Add symbol versions and
1188 compat symbols.
1189 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1190 <shlib-compat.h> and <first-versions.h>.
1191 (__totalordermagl): Take pointer arguments. Add symbol versions
1192 and compat symbols.
1193 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1194 <shlib-compat.h>.
1195 (__totalorderl): Take pointer arguments. Add symbol versions and
1196 compat symbols.
1197 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1198 <shlib-compat.h>.
1199 (__totalordermagl): Take pointer arguments. Add symbol versions
1200 and compat symbols.
1201 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1202 <shlib-compat.h> and <first-versions.h>.
1203 (__totalorderl): Take pointer arguments. Add symbol versions and
1204 compat symbols.
1205 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1206 <shlib-compat.h> and <first-versions.h>.
1207 (__totalordermagl): Take pointer arguments. Add symbol versions
1208 and compat symbols.
1209 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1210 pointer arguments.
1211 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1212 Likewise.
1213 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1214 (do_test): Update calls to totalorderl and totalordermagl.
1215 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1216 Update calls to totalorderl and totalordermagl.
1217 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1218 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1219 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1220 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1221 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1222 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1223 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1224 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1225 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1226 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1227 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1228 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1229 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1230 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1232 Likewise.
1233 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1234 Likewise.
1235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1236 Likewise.
1237 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1238 Likewise.
1239 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1240 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1241 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1242 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1243 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1244 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1245 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1246 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1247
1248 2019-08-15 Florian Weimer <fweimer@redhat.com>
1249
1250 [BZ #24899]
1251 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1252 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1253 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1254 Likewise.
1255 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1256 __attribute_nonstring__ to ut_id.
1257 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1258 Likewise.
1259
1260 2019-08-15 Florian Weimer <fweimer@redhat.com>
1261
1262 [BZ #24880]
1263 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1264 (file_locking_unlock): Likewise.
1265
1266 2019-08-15 Florian Weimer <fweimer@redhat.com>
1267
1268 [BZ #24879]
1269 login: Disarm timer after utmp lock acquisition.
1270 * login/utmp_file.c (struct file_locking): Remove.
1271 (try_file_lock): Adjust.
1272 (file_lock_restore): Remove function.
1273 (__libc_getutent_r): .
1274 (internal_getut_r): Likewise.
1275 (__libc_getutline_r): Likewise.
1276 (__libc_pututline): Likewise.
1277 (__libc_updwtmp): Likewise.
1278
1279 2019-08-15 Florian Weimer <fweimer@redhat.com>
1280
1281 nptl: Remove pthread_self compatibility symbol from libpthread.
1282 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1283 pthread_equal.
1284 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1285 * nptl/compat-pthread_self.c: Remove file.
1286 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1287 Remove pthread_self.
1288 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1289 Likewise.
1290 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1291 Likewise.
1292 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1293 Likewise.
1294 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1295 Likewise.
1296 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1297 Likewise.
1298 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1299 (GLIBC_2.4): Likewise.
1300 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1301 (GLIBC_2.0): Likewise.
1302 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1303 (GLIBC_2.18): Likewise.
1304 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1305 (GLIBC_2.0): Likewise.
1306 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1307 (GLIBC_2.0): Likewise.
1308 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1309 Likewise.
1310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1311 (GLIBC_2.0): Likewise.
1312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1313 (GLIBC_2.3): Likewise.
1314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1315 (GLIBC_2.17): Likewise.
1316 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1317 (GLIBC_2.0): Likewise.
1318 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1319 (GLIBC_2.2): Likewise.
1320 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1321 Likewise.
1322 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1323 (GLIBC_2.0): Likewise.
1324 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1325 (GLIBC_2.2): Likewise.
1326 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1327 (GLIBC_2.2.5): Likewise.
1328 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1329 (GLIBC_2.16): Likewise.
1330
1331 2019-08-15 Florian Weimer <fweimer@redhat.com>
1332
1333 nptl: Move pthread_attr_destroy implementation into libc.
1334 * nptl/Makefile (routines): Add pthread_attr_destroy.
1335 (libpthread-routines): Remove pthread_attr_destroy.
1336 * nptl/Versions (libpthread GLIBC_2.0): Remove
1337 pthread_attr_destroy.
1338 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1339 libc compat version instead of libpthread compat version.
1340 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1341 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1342 ptr_pthread_attr_destroy.
1343 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1344 Remove ptr_pthread_attr_destroy member.
1345 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1346 Remove pthread_attr_destroy.
1347 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1348 Likewise.
1349 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1350 Likewise.
1351 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1352 Likewise.
1353 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1354 Likewise.
1355 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1356 Likewise.
1357 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1358 Likewise.
1359 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1360 (GLIBC_2.4): Likewise.
1361 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1362 (GLIBC_2.0): Likewise.
1363 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1364 (GLIBC_2.18): Likewise.
1365 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1366 (GLIBC_2.0): Likewise.
1367 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1368 (GLIBC_2.0): Likewise.
1369 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1370 Likewise.
1371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1372 (GLIBC_2.0): Likewise.
1373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1374 (GLIBC_2.3): Likewise.
1375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1376 (GLIBC_2.17): Likewise.
1377 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1378 (GLIBC_2.27): Likewise.
1379 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1380 (GLIBC_2.0): Likewise.
1381 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1382 (GLIBC_2.2): Likewise.
1383 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1384 Likewise.
1385 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1386 (GLIBC_2.0): Likewise.
1387 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1388 (GLIBC_2.2): Likewise.
1389 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1390 (GLIBC_2.2.5): Likewise.
1391 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1392 (GLIBC_2.16): Likewise.
1393
1394 2019-08-15 Andreas Schwab <schwab@suse.de>
1395
1396 * sysdeps/i386/fpu/libm-test-ulps: Update.
1397
1398 2019-08-15 Florian Weimer <fweimer@redhat.com>
1399
1400 * malloc/Makefile (tests): Only add tst-mxfast for
1401 $(have-tunables).
1402 * malloc/tst-mxfast.c: Fix copyright year.
1403 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1404 assert for checks.
1405
1406 2019-08-15 Florian Weimer <fweimer@redhat.com>
1407
1408 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1409 descriptor.
1410 * login/Makefile (tests): Add tst-updwtmpx.
1411 * login/tst-updwtmpx.c: New file.
1412
1413 2019-08-15 Florian Weimer <fweimer@redhat.com>
1414
1415 nptl: Move pthread_equal implementation into libc.
1416 * nptl/Makefile (routines): Add pthread_equal.
1417 * nptl/forward.c (pthread_equal): Remove definition.
1418 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1419 ptr_pthread_equal.
1420 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1421 Remove ptr_pthread_equal member.
1422 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1423 Remove pthread_equal.
1424 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1425 Likewise.
1426 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1427 Likewise.
1428 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1429 Likewise.
1430 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1431 Likewise.
1432 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1433 Likewise.
1434 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1435 Likewise.
1436 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1437 (GLIBC_2.4): Likewise.
1438 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1439 (GLIBC_2.0): Likewise.
1440 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1441 (GLIBC_2.18): Likewise.
1442 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1443 (GLIBC_2.0): Likewise.
1444 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1445 (GLIBC_2.0): Likewise.
1446 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1447 Likewise.
1448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1449 (GLIBC_2.0): Likewise.
1450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1451 (GLIBC_2.3): Likewise.
1452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1453 (GLIBC_2.17): Likewise.
1454 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1455 (GLIBC_2.27): Likewise.
1456 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1457 (GLIBC_2.0): Likewise.
1458 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1459 (GLIBC_2.2): Likewise.
1460 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1461 Likewise.
1462 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1463 (GLIBC_2.0): Likewise.
1464 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1465 (GLIBC_2.2): Likewise.
1466 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1467 (GLIBC_2.2.5): Likewise.
1468 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1469 (GLIBC_2.16): Likewise.
1470
1471 2019-08-14 Florian Weimer <fweimer@redhat.com>
1472
1473 * support/support_descriptors.c: Include <support/descriptors.h>.
1474
1475 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1476
1477 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1478 Disable DC ZVA code if this macro is defined as zero.
1479 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1480 Change to zero to disable using DC ZVA.
1481
1482 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1483
1484 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1485 Update comment.
1486 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1487 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1488 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1489 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1490 Likewise.
1491
1492 2019-08-13 Florian Weimer <fweimer@redhat.com>
1493
1494 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1495 Remove macros.
1496 (struct file_locking): New.
1497 (try_file_lock, file_unlock, file_lock_restore): New functions.
1498 (__libc_getutent_r): Use the new functions.
1499 (internal_getut_r): Likewise.
1500 (__libc_getutline_r): Likewise.
1501 (__libc_pututline): Likewise.
1502 (__libc_updwtmp): Likewise.
1503
1504 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1505
1506 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1507 comment.
1508 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1509 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1510 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1511 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1512 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1513 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1514 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1515 Likewise.
1516 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1517 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1518 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1519 Likewise.
1520 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1521 Likewise.
1522 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1523 Likewise.
1524 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1525 Likewise.
1526 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1527 Likewise.
1528 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1529 Likewise.
1530 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1531 Likewise.
1532 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1533 (IEC_60559_BFP_EXT)]: Likewise.
1534 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1535 Likewise.
1536 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1537 Likewise.
1538 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1539 Likewise.
1540 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1541 Likewise.
1542 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1543 Likewise.
1544 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1545 Likewise.
1546 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1547 Likewise.
1548 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1549 Likewise.
1550 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1551 Likewise, except for totalorder, totalordermag, getpayload,
1552 setpayload and setpayloadsig.
1553 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1554 except for totalorder and totalordermag.
1555
1556 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1557 (strdup): Likewise.
1558 (strndup): Likewise.
1559
1560 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1561 Undefine and define to 1 if [_GNU_SOURCE].
1562 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1563 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1564 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1565 (__USE_ISOC99): Likewise.
1566 (__USE_ISOC95): Likewise.
1567 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1568
1569 2019-08-13 Florian Weimer <fweimer@redhat.com>
1570
1571 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1572 are always true.
1573 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1574 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1575 * login/getutmpx.c (getutmpx): Likewise.
1576 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1577 true.
1578 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1579 _HAVE_UT_TV are always true.
1580 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1581 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1582 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1583 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1584 are always true.
1585 (internal_getut_r): _HAVE_UT_TYPE is always true.
1586 (__libc_pututline): Likewise.
1587 * login/programs/utmpdump.c (print_entry): Assume that
1588 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1589 _HAVE_UT_TV are always true.
1590 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1591 _HAVE_UT_ID are always true.
1592 * sysdeps/gnu/bits/utmp.h: Move to ...
1593 * bits/utmp.h: ... here, replacing the old file.
1594
1595 2019-08-12 Florian Weimer <fweimer@redhat.com>
1596
1597 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1598 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1599 not set.
1600 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1601 (do_test): Open the executable using an absolute path. Print
1602 error message to standard output.
1603
1604 2019-08-09 DJ Delorie <dj@redhat.com>
1605
1606 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1607 * manual/tunables.texi: Document it.
1608 * malloc/malloc.c (do_set_mxfast): New.
1609 (__libc_mallopt): Call it.
1610 * malloc/arena.c: Add mxfast tunable.
1611 * malloc/tst-mxfast.c: New.
1612 * malloc/Makefile: Add it.
1613
1614 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1615 Carlos O'Donell <carlos@redhat.com>
1616
1617 [BZ #24026]
1618 * malloc/malloc.c (__malloc_info): Account for top chunk.
1619
1620 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1621
1622 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1623 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1624
1625 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1626
1627 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1628
1629 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1630
1631 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1632
1633 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1634
1635 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1636 New macro.
1637
1638 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1639
1640 [BZ #19767]
1641 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1642 Remove definition.
1643 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1644 Likewise.
1645 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1646 Likewise.
1647 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1648 Likewise.
1649 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1650 (ALWAYS_USE_VSYSCALL): Likewise.
1651 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1652 (ALWAYS_USE_VSYSCALL): Likewise.
1653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1654 (ALWAYS_USE_VSYSCALL): Likewise.
1655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1656 (ALWAYS_USE_VSYSCALL): Likewise.
1657 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1658 Likewise.
1659 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1660 (ALWAYS_USE_VSYSCALL): Likewise.
1661 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1662 (ALWAYS_USE_VSYSCALL): Likewise.
1663 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1664 Likewise.
1665 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1666 Likewise.
1667 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1668 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1669 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1670 USE_VSYSCALL): Remove defitions.
1671
1672 [BZ #19767]
1673 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1674 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1675 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1676 Define.
1677
1678 [BZ #19767]
1679 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1680 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1681 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1682 (ALWAYS_USE_VSYSCALL): Define.
1683 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1684 (ALWAYS_USE_VSYSCALL): Likewise.
1685
1686 [BZ #19767]
1687 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1688 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1689 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1690 Define.
1691
1692 * sysdeps/sh/libm-test-ulps: Update.
1693
1694 2019-08-05 Florian Weimer <fweimer@redhat.com>
1695
1696 [BZ #23518]
1697 * login/uptmp-private.h (struct ufuncs): Remove definition.
1698 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1699 (__libc_utmp_jump_table): Remove declarations.
1700 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1701 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1702 (__libc_updwtmp): Declare.
1703 * login/getutent_r.c (__libc_utmp_unknown_functions)
1704 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1705 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1706 (endutent_unknown): Remove definitions.
1707 (__setutent): Call __libc_setutent.
1708 (__getutent_r): Call __libc_getutent_r.
1709 (__pututline): Call __libc_pututline.
1710 (__endutent): Call __libc_endutent.
1711 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1712 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1713 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1714 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1715 (__libc_setutent): Rename from stetutent_file. Drop static.
1716 (maybe_setutent): New function.
1717 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1718 Check for initialization.
1719 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1720 Check for initialization.
1721 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1722 Check for initialization.
1723 (__libc_pututline): Rename from pututline_file. Drop static.
1724 Check for initialization.
1725 (__libc_endutent): Rename from endutent_file. Drop static. Check
1726 for initialization.
1727 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1728 * login/utmpname.c (__utmpname): Call __libc_endutent.
1729 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1730 __libc_getutlien_r, __libc_endutent.
1731 * manual/users.texi (Who Logged In, Manipulating the Database):
1732 Adjust.
1733
1734 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1735
1736 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1737
1738 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1739
1740 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1741
1742 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1743 kernel version number to 5.2.
1744
1745 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1746
1747 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1748 mnemonics and set .machine power8.
1749 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1750 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1751 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1752 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1753 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1754 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1755 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1756 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1757 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1758 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1759
1760 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1761
1762 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1763
1764 2019-08-01 Florian Weimer <fweimer@redhat.com>
1765
1766 [BZ #24867]
1767 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1768 whitespace.
1769
1770 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1771
1772 [BZ #15813]
1773 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1774 attempt.
1775
1776 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1777
1778 * version.h (RELEASE): Set to "stable".
1779 (VERSION): Set to "2.30".
1780 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1781
1782 * manual/install.texi: Update component versions.
1783 * INSTALL: Regenerate.
1784 * NEWS: Update.
1785
1786 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1787
1788 * po/be.po: Update translations.
1789 * po/bg.po: Likewise.
1790 * po/ca.po: Likewise.
1791 * po/cs.po: Likewise.
1792 * po/da.po: Likewise.
1793 * po/de.po: Likewise.
1794 * po/el.po: Likewise.
1795 * po/eo.po: Likewise.
1796 * po/es.po: Likewise.
1797 * po/fi.po: Likewise.
1798 * po/fr.po: Likewise.
1799 * po/gl.po: Likewise.
1800 * po/hr.po: Likewise.
1801 * po/hu.po: Likewise.
1802 * po/ia.po: Likewise.
1803 * po/id.po: Likewise.
1804 * po/it.po: Likewise.
1805 * po/ja.po: Likewise.
1806 * po/ko.po: Likewise.
1807 * po/lt.po: Likewise.
1808 * po/nb.po: Likewise.
1809 * po/nl.po: Likewise.
1810 * po/pl.po: Likewise.
1811 * po/pt_BR.po: Likewise.
1812 * po/ru.po: Likewise.
1813 * po/rw.po: Likewise.
1814 * po/sk.po: Likewise.
1815 * po/sl.po: Likewise.
1816 * po/sv.po: Likewise.
1817 * po/tr.po: Likewise.
1818 * po/uk.po: Likewise.
1819 * po/vi.po: Likewise.
1820 * po/zh_CN.po: Likewise.
1821 * po/zh_TW.po: Likewise.
1822
1823 2019-07-31 Florian Weimer <fweimer@redhat.com>
1824
1825 [BZ #24583]
1826 [BZ #24677]
1827 iconv, libio: Revert reference counting changes.
1828 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1829 free the steps array.
1830 * libio/Makefile (tests): Remove tst-wfile-gconv.
1831 (tests-container): Do not add tst-wfile-ascii.
1832 (tst-wfile-gconv-ENV): Do not set.
1833 (generated): Do not add tst-wfile-gconv.mtrace,
1834 tst-wfile-gconv.check.
1835 [($run-built-tests)] (tests-special): Do not add
1836 tst-wfile-gconv-mem.out.
1837 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1838 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1839 instead of __wcsmbs_clone_conv.
1840 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1841 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1842
1843 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1844
1845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1846 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1847
1848 2019-07-30 Florian Weimer <fweimer@redhat.com>
1849
1850 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1851 type to uintptr_t. Update comment.
1852 (check_stack_top): Adjust.
1853
1854 2019-07-29 Florian Weimer <fweimer@redhat.com>
1855
1856 Linux: Move declaration of getdents64 to <dirent.h>.
1857 * bits/dirent_ext.h: New file.
1858 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1859 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1860 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1861 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1862 declaration.
1863 * manual/filesys.texi (Low-level Directory Access): Update header
1864 to dirent.h.
1865
1866 2019-07-29 DJ Delorie <dj@redhat.com>
1867 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1868
1869 [BZ #24794]
1870 * Makeconfig (all-subdirs): Improved source comments.
1871 * Makefile (testroot.pristine/install.stamp): Pass
1872 subdirs='$(sorted-subdirs)' to make install.
1873
1874 2019-07-25 Florian Weimer <fweimer@redhat.com>
1875
1876 [BZ #24677]
1877 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1878 counter before freeing array.
1879
1880 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1881
1882 [BZ #24603]
1883 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1884 works.
1885 * sysdeps/x86_64/configure: Regenerated.
1886 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1887 to -mprefer-vector-width=128 if supported.
1888
1889 2019-07-24 Florian Weimer <fweimer@redhat.com>
1890
1891 * scripts/build-many-glibcs.py (Context.checkout): Default to
1892 Linux 5.2.
1893
1894 2019-07-24 Florian Weimer <fweimer@redhat.com>
1895
1896 [BZ #24532]
1897 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1898 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1899 (sysdep_headers): Add bits/socket-constants.h.
1900 (tests-special): Add tst-socket-consts.out.
1901 (tst-socket-consts.out): New target.
1902 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1903 around <asm/unistd.h>.
1904 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1905 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1906 <asm/socket.h>.
1907 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1908 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1909 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1910 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1911 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1912 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1913 Likewise.
1914 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1915
1916 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1917
1918 [BZ #24794]
1919 * Makefile (testroot.pristine/install.stamp): Pass
1920 subdirs='$(all-subdirs)' to make install.
1921
1922 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1923 the same arguments used in all tests.
1924
1925 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1926
1927 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1928
1929 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1930
1931 [BZ #2872]
1932 * locale/C-translit.h.in: Add Cyrillic transliteration.
1933
1934 2019-07-19 Florian Weimer <fweimer@redhat.com>
1935
1936 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1937 from Linux 5.2.
1938 (fsconfig): Add system call name.
1939 (fsmount): Likewise.
1940 (fsopen): Likewise.
1941 (fspick): Likewise.
1942 (move_mount): Likewise.
1943 (open_tree): Likewise.
1944
1945 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1946
1947 * po/libc.pot: Regenerate.
1948
1949 2019-07-18 Mike Crowe <mac@mcrowe.com>
1950
1951 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1952 functions recently added to sysdeps/nptl/pthread.h:
1953 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1954 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1955
1956 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1957 pthread_cond_clockwait forwarding functions. There are no internal
1958 users, so it is unnecessary to expose these functions in libc.so.
1959 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1960 unnecessary ptr___pthread_cond_clockwait member.
1961 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1962 removed member.
1963
1964 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1965
1966 [BZ #21897]
1967 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1968 begin with an uppercase letter now.
1969 (abmon): Likewise.
1970 (mon): Update from CLDR, reword February from "Kudo" to
1971 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1972 and August from "Liiqen" to "Leqeeni".
1973 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1974 April from "Agda Baxisso" to "Agda Baxis" and August from
1975 "Leqeeni" to "Liiqen".
1976 * localedata/locales/aa_ER@saaho (mon): Likewise.
1977 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1978 abbreviated February from "Kud" to "Nah".
1979 (mon): Update from CLDR, reword February from "Kudo" to
1980 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1981
1982 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1983
1984 [BZ #23996]
1985 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1986
1987 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1988
1989 [BZ #23996]
1990 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1991 name_mrs, name_miss, and name_ms.
1992 * localedata/locales/nl_NL (LC_NAME): Likewise.
1993
1994 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1995
1996 [BZ #24200]
1997 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1998 * localedata/locales/en_IE (first_weekday): Likewise.
1999
2000 2019-07-12 Mike Crowe <mac@mcrowe.com>
2001
2002 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2003 that is only useful if futex_supports_exact_relative_timeouts ()
2004 returns false.
2005 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2006 Likewise.
2007 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2008 timeouts potentially being imprecise since it's no longer true.
2009 Remove declaration of futex_supports_exact_relative_timeouts.
2010 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2011 of futex_supports_exact_relative_timeouts.
2012
2013 * NEWS: Mention recently-added pthread_cond_clockwait,
2014 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2015 sem_clockwait functions.
2016
2017 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2018 works like pthread_mutex_timedlock but takes a clockid parameter to
2019 measure the abstime parameter against.
2020 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2021 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2022 * nptl/pthread_mutex_timedlock.c
2023 (__pthread_mutex_clocklock_common): Rename from
2024 __pthread_mutex_timedlock and add clockid parameter. Pass this
2025 parameter to lll_clocklock and lll_clocklock_elision in place of
2026 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2027 LIBC_PROBE and validate clockid parameter before calling
2028 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2029 implementation to add LIBC_PROBE and calls
2030 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2031 clockid.
2032 * nptl/Makefile: Add tst-mutex11.c.
2033 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2034 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2035 clockid parameters to pthread_mutex_clocklock.
2036 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2037 clockid parameter to indicate which clock to be used. Call
2038 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2039 (do_test): Call do_test_clock to separately test
2040 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2041 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2042 * nptl/tst-mutex9.c: Likewise.
2043 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2044 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2045 Likewise.
2046 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2047 Likewise.
2048 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2049 Likewise.
2050 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2051 Likewise.
2052 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2053 Likewise.
2054 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2055 Likewise.
2056 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2057 Likewise.
2058 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2059 (GLIBC_2.30): Likewise.
2060 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2061 (GLIBC_2.30): Likewise.
2062 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2063 (GLIBC_2.30): Likewise.
2064 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2065 (GLIBC_2.30): Likewise.
2066 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2067 (GLIBC_2.30): Likewise.
2068 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2069 Likewise.
2070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2071 (GLIBC_2.30): Likewise.
2072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2073 (GLIBC_2.30): Likewise.
2074 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2075 (GLIBC_2.30): Likewise.
2076 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2077 (GLIBC_2.30): Likewise.
2078 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2079 (GLIBC_2.30): Likewise.
2080 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2081 (GLIBC_2.30): Likewise.
2082 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2083 Likewise.
2084 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2085 (GLIBC_2.30): Likewise.
2086 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2087 (GLIBC_2.30): Likewise.
2088 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2089 (GLIBC_2.30): Likewise.
2090 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2091 (GLIBC_2.30): Likewise.
2092
2093 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2094 parameter to indicate the clock that the abstime parameter should
2095 be measured against in preparation for adding
2096 pthread_mutex_clocklock.
2097 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2098 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2099 from __lll_timedlock and add clockid parameter.
2100 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2101 Likewise.
2102 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2103 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2104 rather than __gettimeofday so that clockid can be used. This means
2105 that conversion from struct timeval is no longer required.
2106 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2107 Likewise.
2108 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2109 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2110 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2111 from lll_timedlock_elision, add clockid parameter and use
2112 meaningful names for other parameters. (__pthread_mutex_timedlock):
2113 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2114 lll_clocklock_elision.
2115 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2116 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2117 clockid parameter. (__lll_clocklock_elision): Rename from
2118 __lll_timedlock_elision and add clockid parameter.
2119 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2120 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2121 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2122 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2123 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2124 (LLL_LOCK): Likewise.
2125 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2126 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2127
2128 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2129 pthread_rwlock_clockwrlock which behave like
2130 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2131 respectively, except they always measure abstime against the
2132 supplied clockid. The functions currently support CLOCK_REALTIME
2133 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2134 specified.
2135 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2136 pthread_wrlock_clockwrlock.
2137 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2138 pthread_rwlock_clockwrlock.c.
2139 * nptl/pthread_rwlock_clockrdlock.c: Implement
2140 pthread_rwlock_clockrdlock.
2141 * nptl/pthread_rwlock_clockwrlock.c: Implement
2142 pthread_rwlock_clockwrlock.
2143 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2144 clockid parameter and verify that it indicates a supported clock on
2145 entry so that we fail even if it doesn't end up being used. Pass
2146 that clock on to futex_abstimed_wait when necessary.
2147 (__pthread_rwlock_wrlock_full): Likewise.
2148 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2149 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2150 be used because there's no timeout.
2151 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2152 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2153 be used because there is no timeout.
2154 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2155 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2156 uses that clock.
2157 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2158 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2159 uses that clock.
2160 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2161 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2162 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2163 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2164 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2165 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2166 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2167 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2168 (GLIBC_2.30): Likewise.
2169 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2170 (GLIBC_2.30): Likewise.
2171 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2172 (GLIBC_2.30): Likewise.
2173 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2174 (GLIBC_2.30): Likewise.
2175 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2176 (GLIBC_2.30): Likewise.
2177 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2179 (GLIBC_2.30): Likewise.
2180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2181 (GLIBC_2.30): Likewise.
2182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2183 (GLIBC_2.30): Likewise.
2184 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2185 (GLIBC_2.30): Likewise.
2186 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2187 (GLIBC_2.30): Likewise.
2188 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2189 (GLIBC_2.30): Likewise.
2190 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2191 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2192 (GLIBC_2.30): Likewise.
2193 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2194 (GLIBC_2.30): Likewise.
2195 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2196 (GLIBC_2.30): Likewise.
2197 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2198 (GLIBC_2.30): Likewise.
2199 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2200 pthread_rwlock_clockwrlock timeout tests to match the existing
2201 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2202 * nptl/tst-rwlock14.c (do_test): Likewise.
2203 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2204 ancillary output throughout. (tf): Accept thread_args structure so
2205 that rwlock, a clockid and function name can be passed to the
2206 thread. (do_test_clock): Rename from do_test. Accept clockid
2207 parameter to specify test clock. Use the magic clockid value of
2208 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2209 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2210 specified clockid to pthread_rwlock_clockrdlock and
2211 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2212 (do_test): Call do_test_clock to test each clockid in turn.
2213 * nptl/tst-rwlock7.c: Likewise.
2214 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2215 thread_args structure so that the (now int) thread number, the
2216 clockid and the function name can be passed to the thread.
2217 (do_test_clock): Renamed from do_test. Pass the necessary
2218 thread_args when creating the reader and writer threads. Use
2219 xpthread_create and xpthread_join.
2220 (do_test): Call do_test_clock to test each clockid in turn.
2221 * manual/threads.texi: Add documentation for
2222 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2223
2224 nptl: pthread_rwlock: Move timeout validation into _full functions
2225 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2226 Check validity of abstime parameter.
2227 (__pthread_rwlock_rwlock_full): Likewise.
2228 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2229 Remove check for validity of abstime parameter.
2230 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2231 Likewise.
2232
2233 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2234 like pthread_cond_timedwait except it always measures abstime
2235 against the supplied clockid.
2236 * nptl/Makefile: Add tst-cond26 and tst-cond27
2237 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2238 * sysdeps/nptl/pthread.h: Likewise
2239 * nptl/forward.c: Add __pthread_cond_clockwait
2240 * nptl/forward.c: Likewise
2241 * nptl/pthreadP.h: Likewise
2242 * sysdeps/nptl/pthread-functions.h: Likewise
2243 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2244 clockid parameter and comment describing why we don't need to check
2245 its value. Use that value when calling
2246 futex_abstimed_wait_cancelable rather than reading the clock from
2247 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2248 (__pthread_cond_timedwait): Read clock from flags and pass it to
2249 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2250 function with weak alias from pthread_cond_clockwait.
2251 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2252 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2253 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2254 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2255 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2256 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2257 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2258 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2259 (GLIBC_2.30): Likewise.
2260 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2261 (GLIBC_2.30): Likewise.
2262 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2263 (GLIBC_2.30): Likewise.
2264 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2265 (GLIBC_2.30): Likewise.
2266 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2267 (GLIBC_2.30): Likewise.
2268 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2270 (GLIBC_2.30): Likewise.
2271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2272 (GLIBC_2.30): Likewise.
2273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2274 (GLIBC_2.30): Likewise.
2275 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2276 (GLIBC_2.30): Likewise.
2277 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2278 (GLIBC_2.30): Likewise.
2279 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2280 (GLIBC_2.30): Likewise.
2281 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2282 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2283 (GLIBC_2.30): Likewise.
2284 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2285 (GLIBC_2.30): Likewise.
2286 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2287 (GLIBC_2.30): Likewise.
2288 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2289 (GLIBC_2.30): Likewise.
2290 * nptl/tst-cond11.c (run_test): Support testing
2291 pthread_cond_clockwait too by using a special magic
2292 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2293 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2294 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2295 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2296 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2297 clocks to pthread_cond_clockwait.
2298 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2299 struct timespec and pthread_cond_clockwait.
2300 * manual/threads.texi: Document pthread_cond_clockwait.
2301
2302 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2303 sem_timedwait, but measures abstime against the specified clock.
2304 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2305 clockid parameters to indicate the clock which abstime should be
2306 measured against.
2307 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2308 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2309 __new_sem_wait_slow.
2310 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2311 on sem_timedwait.c.
2312 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2313 sem_clockwait.c to match those used for sem_timedwait.c.
2314 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2315 * nptl/Versions (GLIBC_2.30): Likewise.
2316 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2317 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2318 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2319 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2320 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2321 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2322 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2323 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2324 (GLIBC_2.30): Likewise.
2325 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2326 (GLIBC_2.30): Likewise.
2327 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2328 (GLIBC_2.30): Likewise.
2329 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2330 (GLIBC_2.30): Likewise.
2331 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2332 (GLIBC_2.30): Likewise.
2333 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2335 (GLIBC_2.30): Likewise.
2336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2337 (GLIBC_2.30): Likewise.
2338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2339 (GLIBC_2.30): Likewise.
2340 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2341 (GLIBC_2.30): Likewise.
2342 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2343 (GLIBC_2.30): Likewise.
2344 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2345 (GLIBC_2.30): Likewise.
2346 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2347 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2348 (GLIBC_2.30): Likewise.
2349 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2350 (GLIBC_2.30): Likewise.
2351 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2352 (GLIBC_2.30): Likewise.
2353 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2354 (GLIBC_2.30): Likewise.
2355 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2356 sem_clockwait.
2357 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2358 tests to also test sem_clockwait.
2359 * manual/threads.texi: Document sem_clockwait.
2360
2361 nptl: Add clockid parameter to futex timed wait calls
2362 * sysdeps/nptl/lowlevellock-futex.h,
2363 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2364 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2365 takes a clockid rather than a special clockbit.
2366 * sysdeps/nptl/lowlevellock-futex.h: Add
2367 lll_futex_supported_clockid so that client functions can check
2368 whether their clockid parameter is valid even if they don't
2369 ultimately end up calling lll_futex_clock_wait_bitset.
2370 * sysdeps/nptl/futex-internal.h,
2371 sysdeps/unix/sysv/linux/futex-internal.h
2372 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2373 clockid_t parameter to indicate which clock the absolute time
2374 passed should be measured against. Pass that clockid onto
2375 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2376 returning -EINVAL.
2377 * sysdeps/nptl/futex-internal.h,
2378 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2379 futex_abstimed_supported_clockid so that client functions can check
2380 whether their clockid parameter is valid even if they don't
2381 ultimately end up calling futex_abstimed_wait.
2382 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2383 code to calculate relative timeout for
2384 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2385 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2386 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2387 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2388 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2389 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2390 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2391
2392 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2393
2394 [BZ #24699]
2395 * posix/tst-mmap-offset.c: Mention BZ #24699.
2396 (do_test_bz21270): Rename to do_test_large_offset and use
2397 mmap64_maximum_offset to check for maximum expected offset value.
2398 * sysdeps/generic/mmap_info.h: New file.
2399 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2400 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2401 __NR_mmap2 is used.
2402
2403 2019-07-10 DJ Delorie <dj@redhat.com>
2404 Sergei Trofimovich <slyfox@inbox.ru>
2405
2406 [BZ #24696]
2407 [BZ #24695]
2408 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2409 mappings.
2410 * nss/tst-nss-db-endgrent.c: New.
2411 * nss/tst-nss-db-endgrent.root: New.
2412 * nss/tst-nss-db-endpwent.c: New.
2413 * nss/tst-nss-db-endpwent.root: New.
2414 * nss/Makefile: Add new tests.
2415 * support/links-dso-program-c.c: Add selinux dependency.
2416 * support/links-dso-program.cc: Add selinux dependency.
2417 * support/Makefile: Build those with -lselinux if enabled.
2418
2419 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2420
2421 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2422 DT_AARCH64_VARIANT_PCS check.
2423 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2424 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2425 variant_pcs.
2426
2427 2019-07-10 Andreas Schwab <schwab@suse.de>
2428
2429 [BZ #23352]
2430 * malloc/malloc.h (__malloc_check_init): Don't declare.
2431 * include/malloc.h (__malloc_check_init): Likewise.
2432 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2433 * manual/memory.texi (__malloc_check_init): Don't mention it.
2434
2435 2019-07-10 Mao Han <han_mao@c-sky.com>
2436
2437 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2438
2439 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2440
2441 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2442 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2443
2444 2019-07-08 DJ Delorie <dj@redhat.com>
2445
2446 [BZ #23501]
2447 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2448 * io/tst-ftw-lnk.c: New test.
2449 * io/Makefile: Run it.
2450
2451 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2452
2453 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2454 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2455 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2456 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2457 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2458 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2459 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2460 Adjust implementation path.
2461 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2462 Adjust implementation path.
2463 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2464 Adjust implementation path.
2465 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2466 (libm-sysdep_routines): Add s_log* objects.
2467 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2468 CFLAGS-s_logb-power7.c): New fule.
2469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2470 to ...
2471 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2472 ... here.
2473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2474 to ...
2475 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2476 ... here.
2477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2478 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2480 to ...
2481 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2482 ... here.
2483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2484 to ...
2485 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2486 ... here.
2487 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2488 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2490 to ...
2491 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2492 ... here.
2493 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2494 to ...
2495 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2496 ... here.
2497 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2498 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2499 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2500 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2501 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2502 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2503
2504 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2505 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2506 powerpc32 integer 0 converting to -0.
2507
2508 * benchtests/Makefile (bench-math): Add logb.
2509 * benchtests/logb-inputs: New file.
2510 * benchtests/logbf-inputs: New file.
2511
2512 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2513 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2514 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2515 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2516 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2517 Adjust include.
2518 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2519 Likewise.
2520 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2521 sysdep_routines): Add s_modf* objects.
2522 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2523 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2524 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2525 to ...
2526 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2527 ... here.
2528 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2529 to ...
2530 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2531 ... here.
2532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2533 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2534 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2535 to ...
2536 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2537 ... here.
2538 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2539 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2540 ... here.
2541 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2542 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2543
2544 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2545 twoM500, twoM600, two60factor, pdnum): Remove.
2546 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2547 (__ieee754_hypot): Replace static variables with inline definition,
2548 remove ununsed branches.
2549 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2550 (libm-sysdep_routines): Remove e_hypot-* objects.
2551 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2552 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2553 file.
2554 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2555 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2556 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2557 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2558 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2559
2560 * benchtests/Makefile (bench-math): Add hypot.
2561 * benchtests/hypot-inputs: New file.
2562
2563 2019-07-08 Vincent Chen <vincentc@andestech.com>
2564
2565 * sysdeps/unix/sysv/linux/dl-vdso.h
2566 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2567
2568 2019-07-04 Andreas Schwab <schwab@suse.de>
2569
2570 [BZ #24484]
2571 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2572
2573 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2574
2575 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2576 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2577 * sysdeps/aarch64/sys/ifunc.h: New file.
2578 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2579 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2580
2581 2019-07-01 Florian Weimer <fweimer@redhat.com>
2582
2583 [BZ #20188]
2584 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2585 Replace __vfork with __libpthread_version_placeholder for
2586 GLIBC_2.1.2.
2587 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2588 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2589 libpthread-compat.
2590 * nptl/pt-vfork.c: Remove file.
2591 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2592 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2593 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2594 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2595 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2596 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2597 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2598 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2599 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2600 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2601 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2602 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2603 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2604 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2605 Remove vfork, __vfork.
2606 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2607 Remove vfork.
2608 (GLIBC_2.1.2): Replace __vfork with
2609 __libpthread_version_placeholder.
2610 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2611 Remove vfork, __vfork.
2612 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2613 Likewise.
2614 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2615 Remove vfork.
2616 (GLIBC_2.1.2): Replace __vfork with
2617 __libpthread_version_placeholder.
2618 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2619 Remove vfork.
2620 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2621 (GLIBC_2.4): Remove vfork, __vfork.
2622 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2623 (GLIBC_2.0): Remove vfork.
2624 (GLIBC_2.1.2): Replace __vfork with
2625 __libpthread_version_placeholder.
2626 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2627 (GLIBC_2.18): Remove vfork, __vfork.
2628 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2629 (GLIBC_2.0): Remove vfork.
2630 (GLIBC_2.2): Remove __vfork.
2631 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2632 (GLIBC_2.2): Remove vfork, __vfork.
2633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2634 (GLIBC_2.0): Remove vfork.
2635 (GLIBC_2.1.2): Replace __vfork with
2636 __libpthread_version_placeholder.
2637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2638 (GLIBC_2.3): Remove vfork, __vfork.
2639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2640 (GLIBC_2.17): Likewise.
2641 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2642 (GLIBC_2.0): Remove vfork.
2643 (GLIBC_2.1.2): Replace __vfork with
2644 __libpthread_version_placeholder.
2645 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2646 (GLIBC_2.2): Remove vfork, __vfork.
2647 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2648 Likewise.
2649 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2650 (GLIBC_2.0): Remove vfork.
2651 (GLIBC_2.1.2): Replace __vfork with
2652 __libpthread_version_placeholder.
2653 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2654 (GLIBC_2.2): Remove vfork, __vfork.
2655 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2656 (GLIBC_2.2.5): Likewise.
2657 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2658 (GLIBC_2.16): Likewise.
2659 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2660 Remove __errno_location.
2661
2662 2019-07-02 Florian Weimer <fweimer@redhat.com>
2663
2664 [BZ #24757]
2665 * malloc/Depend: Add nptl and htl, due to potential indirect
2666 libpthread dependency of memusagestat.
2667
2668 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2669
2670 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2671 warning.
2672
2673 2019-07-01 Florian Weimer <fweimer@redhat.com>
2674
2675 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2676 variant for arm-linux-gnueabi.
2677
2678 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2679
2680 [BZ #24259]
2681 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2682 relocation.
2683 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2684 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2685 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2686 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2687 and tst-cet-legacy-mod-6c.
2688 (CFLAGS-tst-cet-legacy-5a.c): New.
2689 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2690 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2691 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2692 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2693 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2694 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2695 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2696 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2697 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2698 ($(objpfx)tst-cet-legacy-5a): Likewise.
2699 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2700 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2701 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2702 ($(objpfx)tst-cet-legacy-5b): Likewise.
2703 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2704 (tst-cet-legacy-5b-ENV): Likewise.
2705 ($(objpfx)tst-cet-legacy-6a): Likewise.
2706 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2707 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2708 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2709 ($(objpfx)tst-cet-legacy-6b): Likewise.
2710 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2711 (tst-cet-legacy-6b-ENV): Likewise.
2712 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2713 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2714 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2715 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2716 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2717 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2718 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2719 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2720 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2721 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2722 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2723 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2724 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2725 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2726
2727 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2728
2729 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2730 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2731 (__fegetround_ISA300) New.
2732 (__fegetround_ISA2) New.
2733 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2734 (_FPU_MFFS): Move implementation...
2735 (_FPU_GETCW): Here.
2736 (_FPU_MFFSL): Move implementation....
2737 (_FPU_GET_RC_ISA300): Here. New.
2738 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2739 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2740 (fegetenv_status): New.
2741 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2742 instead of fegetenv_register().
2743 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2744
2745 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2746
2747 * benchtests/bench-math-inlines.c: Increase iterations.
2748 * benchtests/bench-memcmp.c: Likewise.
2749 * benchtests/bench-rawmemchr.c: Likewise.
2750 * benchtests/bench-strcmp.c: Likewise.
2751 * benchtests/bench-strcpy_chk.c: Likewise.
2752 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2753 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2754 (INNER_LOOP_ITERS_SMALL): Likewise.
2755 * benchtests/bench-strncat.c: Increase iterations.
2756 * benchtests/bench-strncmp.c: Increase iterations.
2757 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2758 * benchtests/bench-strrchr.c: Increase iterations.
2759 * benchtests/bench-strstr.c: Keep iterations unchanged.
2760 * benchtests/bench-strtod.c: Increase iterations.
2761
2762 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2763
2764 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2765 with INNER_LOOP_ITERS_LARGE.
2766 * benchtests/bench-memchr.c: Likewise.
2767 * benchtests/bench-rawmemchr.c: Likewise.
2768 * benchtests/bench-strcat.c: Likewise.
2769 * benchtests/bench-strchr.c: Likewise.
2770 * benchtests/bench-string.h: Likewise.
2771 * benchtests/bench-strlen.c: Likewise.
2772 * benchtests/bench-strncpy.c: Likewise.
2773 * benchtests/bench-strnlen.c: Likewise.
2774
2775 2019-06-28 Florian Weimer <fweimer@redhat.com>
2776
2777 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2778 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2779 entire allocated memory range.
2780
2781 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2782
2783 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2784 (prepare_version_base): New helper inline function.
2785 (prepare_version): New macro replacing PREPARE_VERSION.
2786 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2787
2788 2019-06-28 Florian Weimer <fweimer@redhat.com>
2789
2790 [BZ #24741]
2791 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2792 mismatch in a versioned symbol reference.
2793 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2794 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2795 tst-sonamemove-dlopen.
2796 (module-names): Add tst-sonamemove-linkmod1,
2797 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2798 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2799 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2800 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2801 (tst-sonamemove-runmod1.so): Link against
2802 tst-sonamemove-runmod2.so.
2803 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2804 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2805 tst-sonamemove-runmod2.so.
2806 (tst-sonamemove-dlopen): Link with -ldl.
2807 (tst-sonamemove-dlopen.out): Likewise.
2808 * elf/tst-sonamemove-link.c: New file.
2809 * elf/tst-sonamemove-dlopen.c: Likewise.
2810 * elf/tst-sonamemove-linkmod1.c: Likewise.
2811 * elf/tst-sonamemove-linkmod1.map: Likewise.
2812 * elf/tst-sonamemove-runmod1.c: Likewise.
2813 * elf/tst-sonamemove-runmod1.map: Likewise.
2814 * elf/tst-sonamemove-runmod2.c: Likewise.
2815 * elf/tst-sonamemove-runmod2.map: Likewise.
2816
2817 2019-06-28 Florian Weimer <fweimer@redhat.com>
2818
2819 * support/xdlfcn.h (xdlvsym): Declare function.
2820 * support/xdlfcn.c (xdlvsym): Define funciton.
2821
2822 2019-06-28 Florian Weimer <fweimer@redhat.com>
2823
2824 [BZ #24744]
2825 io: Remove the copy_file_range emulation.
2826 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2827 not define and call copy_file_range_compat.
2828 * io/Makefile (tests-static, tests-internal): Do not add
2829 tst-copy_file_range-compat.
2830 * io/copy_file_range-compat.c: Remove file.
2831 * io/copy_file_range.c (copy_file_range): Define as stub.
2832 * io/tst-copy_file_range-compat.c: Remove file.
2833 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2834 (typical_sizes): Update comment. Remove 16K sizes.
2835 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2836 Remove variables.
2837 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2838 (delayed_write_failure_beginning, delayed_write_failure_end)
2839 (cross_device_failure, enospc_failure_1, enospc_failure)
2840 (oappend_failure): Remove functions.
2841 (tests): Adjust test case list.
2842 (do_test): Remove file system search code. Check for ENOSYS from
2843 copy_file_range. Do not free xdevfile.
2844 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2845 copy_file_range. Do not document the EXDEV error, which future
2846 kernels may not report. Update the wording to reflect that
2847 further errors are possible.
2848 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2849 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2850 not undefine.
2851 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2852 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2853 Likewise.
2854 * sysdeps/unix/sysv/linux/kernel-features.h
2855 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2856 Remove definition.
2857 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2858 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2859 not undefine.
2860 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2861 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2862 Likewise.
2863
2864 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2865
2866 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2867 used as a mask for the mode argument of __vfprintf_internal.
2868 * stdio-common/printf-parse.h (printf_arg): New union member:
2869 pa_float128.
2870 * stdio-common/vfprintf-internal.c
2871 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2872 (PARSE_FLOAT_VA_ARG): Likewise.
2873 (SETUP_FLOAT128_INFO): Likewise.
2874 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2875 SETUP_FLOAT128_INFO.
2876 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2877 floating-point value to the new union member, pa_float128.
2878 (printf_positional): Zero-initialize args_value[cnt] with memset.
2879
2880 2019-06-27 Florian Weimer <fweimer@redhat.com>
2881
2882 [BZ #24740]
2883 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2884 buffer size if necessary.
2885 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2886 Likewise.
2887 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2888 New function.
2889 (large_buffer_checks): Likewise.
2890 (do_test): Call large_buffer_checks.
2891
2892 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2893
2894 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2895 * sysdeps/x86/dl-lookupcfg.h: Here.
2896 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2897
2898 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2899
2900 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2901 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2902 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2903 file.
2904 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2905 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2906 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2907 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2908 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2909
2910 * sysdeps/powerpc/powerpc32/fpu/Makefile
2911 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2912 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2913 and fctidz optimization.
2914 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2915 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2917 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2918 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2919 CFLAGS-s_lround-power5+.c): New rule.
2920 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2921 New file.
2922 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2923 Likewise.
2924 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2925 Likewise.
2926 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2927 Likewise.
2928 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2929 Likewise.
2930 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2931 Remove file.
2932 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2933 Likewise.
2934 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2935 Likewise.
2936 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2937 Likewise.
2938 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2939 Likewise.
2940 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2941 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2942 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2943 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2944 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2945 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2946 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2947
2948 2019-06-26 Vincent Chen <vincentc@andestech.com>
2949
2950 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2951 specific system calls, fp_udfiex_crtl and udftrap.
2952
2953 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2954
2955 * nptl/tst-eintr1.c (tf1): Add return statement.
2956 (do_test): Remove unused th variable.
2957
2958 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2959
2960 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2961 Return error if get_character fails.
2962
2963 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2964
2965 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2966
2967 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2968
2969 [BZ #24652]
2970 * localedata/locales/szl_PL (day): Use the correct Unicode
2971 sequences instead of non-ASCII characters.
2972
2973 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2974
2975 [BZ #24652]
2976 * localedata/locales/szl_PL (abday): Spelling corrections.
2977 (day): Likewise.
2978 (abmon): Likewise.
2979 (mon): Rename to...
2980 (alt_mon): This, then apply spelling corrections.
2981 (mon): New entry, month names in the genitive case.
2982
2983 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2984
2985 [BZ #23831]
2986 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2987 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2988 (thousands_sep): Likewise.
2989 (grouping): Set to 3;3.
2990
2991 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2992
2993 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2994 PREPARE_VERSION_KNOWN.
2995 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2996 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2997 define.
2998 (VDSO_HASH_LINUX_2_6_39): Likewise.
2999 (VDSO_NAME_LINUX_4_9): Likewise.
3000 (VDSO_HASH_LINUX_4_9): Likewise.
3001 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3002 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3003 (_libc_vdso_platform_setup): Likewise.
3004 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3005 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3006 Likewise.
3007 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3008 Likewise.
3009
3010 2019-06-20 Mike Crowe <mac@mcrowe.com>
3011
3012 * nptl/eintr.c: Use libsupport.
3013 * nptl/tst-eintr1.c: Likewise.
3014 * nptl/tst-eintr2.c: Likewise.
3015 * nptl/tst-eintr3.c: Likewise.
3016 * nptl/tst-eintr4.c: Likewise.
3017 * nptl/tst-eintr5.c: Likewise.
3018 * nptl/tst-mutex-errorcheck.c: Likewise.
3019 * nptl/tst-mutex5.c: Likewise.
3020
3021 * support/test-driver.h: Add verbose_printf macro.
3022
3023 * support/xtime.h: Add xclock_now() helper function.
3024
3025 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3026 Florian Weimer <fweimer@redhat.com>
3027
3028 [BZ #24228]
3029 * libio/genops.c (_IO_unbuffer_all)
3030 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3031 buffers and access _IO_FILE_complete members of legacy libio streams.
3032 * libio/tst-bz24228.c: New file.
3033 * libio/tst-bz24228.map: Likewise.
3034 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3035 [build-shared] (generated): Add tst-bz24228.mtrace and
3036 tst-bz24228.check.
3037 [run-built-tests && build-shared] (tests-special): Add
3038 $(objpfx)tst-bz24228-mem.out.
3039 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3040 ($(objpfx)tst-bz24228-mem.out): New rule.
3041
3042 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3043
3044 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3045 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3046 (__FPU_MFFSL): Likewise.
3047 (_FPU_SETCW): Likewise.
3048
3049 2019-06-19 Stan Shebs <stanshebs@google.com>
3050 Raoni Fassina Firmino <raoni@linux.ibm.com>
3051
3052 [BZ #24640]
3053 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3054 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3055 static-linking version.
3056 * sysdeps/unix/sysv/linux/powerpc/Makefile
3057 (tests-static): Add test-gettimebasefreq-static.
3058 (tests): Likewise.
3059 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3060 New file.
3061
3062 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
3063
3064 [BZ #24614]
3065 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3066 between the currency symbol and the minus sign).
3067 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3068
3069 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3070
3071 [BZ #24556]
3072 * string/test-strcasestr.c (check_result): Add NULL check.
3073 * nss/tst-field.c (check_rewrite): Likewise.
3074 * benchtests/bench-strstr.c (do_one_test): Likewise.
3075 * string/test-strstr.c (check_result): Likewise.
3076 * argp/argp-test.c (popt): Increase size of buf to 12.
3077 * benchtests/bench-malloc-simple.c (bench):
3078 Do not initialize tests array out of bounds.
3079
3080 2019-06-19 Florian Weimer <fweimer@redhat.com>
3081
3082 [BZ #24166]
3083 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3084 dls_serpath field.
3085
3086 2019-06-18 Florian Weimer <fweimer@redhat.com>
3087
3088 [BZ #24323]
3089 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3090 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3091 fail when called from dlopen.
3092 * elf/Makefile [have-fpie && build-shared] (tests): Add
3093 tst-dlopen-pie.
3094 (tst-dlopen-pie): Link with -ldl.
3095 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3096 * elf/tst-dlopen-pie.c (do_test): New file.
3097
3098 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
3099
3100 [BZ #24614]
3101 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3102 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3103 between the currency symbol and the minus sign).
3104 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3105 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3106
3107 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3108
3109 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3110 sysdep-rtld-routines): Remove rules.
3111 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3112 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3113 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3114 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3115 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3116 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3117 vDSO path for SHARED.
3118 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3119 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3120 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3121 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3122 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3123 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3124
3125 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3126 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3127 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3128 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3129 CFLAGS-s_llround-power5+.c): New rule.
3130 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3131 New file.
3132 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3133 Likewise.
3134 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3135 Likewise.
3136 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3137 Likewise.
3138 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3139 Likewise.
3140 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3141 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3143 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3145 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3146 * sysdeps/powerpc/powerpc64/fpu/Makefile
3147 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3148 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3149 (libm-sysdep_routines): Remove s_llround-* objects.
3150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3151 file.
3152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3153 Likewise.
3154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3155 Likewise.
3156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3157 Likewise.
3158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3159 Likewise.
3160 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3161 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3162 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3163 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3164 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3165 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3166 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3167 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3168 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3169 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3170 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3171 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3172 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3173 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3174
3175 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3176 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3177 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3178 * sysdeps/powerpc/powerpc32/fpu/Makefile
3179 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3180 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3181 optimization.
3182 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3183 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3184 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3185 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3186 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3187 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3188 CFLAGS-s_lrint-ppc32.c): New rule.
3189 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3190 Remove file.
3191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3192 Likewise.
3193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3194 Likewise.
3195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3196 Likewise.
3197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3198 Likewise.
3199 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3200 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3201 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3202 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3203 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3204 New file.
3205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3206 Likewise.
3207 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3208 Likewise.
3209 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3210 Likewise.
3211 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3212 Likewise.
3213
3214 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3215 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3216 s_llrint-ppc64.
3217 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3218 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3219 file.
3220 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3221 Likewise.
3222 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3223 Likewise.
3224 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3225 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3226 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3227 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3229 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3230 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3231 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3232 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3233 (libm-sysdep_routines): Remove s_llrint-* objects.
3234 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3235 file.
3236 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3237 Likewise.
3238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3239 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3240 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3241 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3242 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3243 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3244 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3245 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3246 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3247 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3248
3249 2019-06-14 Florian Weimer <fweimer@redhat.com>
3250
3251 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3252 argument to __glibc_has_include to inhibit macro expansion.
3253
3254 2019-06-14 Florian Weimer <fweimer@redhat.com>
3255
3256 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3257 function-like macro, so that __has_include can inhibit expansion
3258 of its argument.
3259
3260 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3261
3262 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3263 New macro.
3264
3265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3266 Allow memset in libc.so.
3267
3268 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3269
3270 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3271 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3272 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3273 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3274 symbols at load time.
3275 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3276
3277 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3278
3279 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3280 (DT_AARCH64_VARIANT_PCS): Define.
3281
3282 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3283
3284 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3285 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3286 objects.
3287 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3288 Remove file.
3289 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3290 Likewise.
3291 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3292 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3293 Likewise.
3294 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3295 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3296 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3297 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3298 Remove s_finite* objects.
3299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3300 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3301 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3303 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3304 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3305 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3306 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3307 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3308 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3309
3310 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3311 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3312
3313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3314 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3315 objects.
3316 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3317 Remove file.
3318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3319 Likewise.
3320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3321 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3322 Likewise.
3323 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3324 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3325 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3326 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3327 Remove s_isinf* and s_isinf* objects.
3328 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3334 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3335 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3336 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3337 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3338
3339 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3340 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3341
3342 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3343 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3344 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3346 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3347 s_isnanf-* objects.
3348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3349 Remove file
3350 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3351 Likewise.
3352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3353 Likewise.
3354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3355 Likewise.
3356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3358 Likewise.
3359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3360 Likewise.
3361 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3362 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3363 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3364 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3365 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3366 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3367 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3368 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3369 Remove s_isnan-* and s_isnanf-* objects.
3370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3373 Likewise.
3374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3379 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3380 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3381 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3382 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3383 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3384 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3385 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3386 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3387
3388 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3389 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3390
3391 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3392 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3393 CFLAGS-bench-isfinite.c): New rule.
3394 * benchtests/isnan-input: New file.
3395 * benchtests/isinf-input: New file.
3396 * benchtests/isfinite-input: New file.
3397
3398 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3399 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3400 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3401 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3403 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3404 s_copysign-ppc32.
3405 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3406 Remove file.
3407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3408 Likewise.
3409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3410 Likewise.
3411 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3412 Likewise.
3413 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3414 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3415 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3416 Remove s_copysign-power6 s_copysign-ppc64.
3417 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3418 Remove file.
3419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3420 Likewise.
3421 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3422 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3423 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3424 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3425 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3426 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3427
3428 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3429 round_to_integer_float, round_mode): Add RINT handling.
3430 (reset_fenv_mode): New symbol.
3431 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3432 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3433 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3434 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3435 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3436 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3437
3438 2019-06-12 Florian Weimer <fweimer@redhat.com>
3439
3440 [BZ #24632]
3441 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3442 * libio/freopen.c (freopen): Use it.
3443
3444 2019-06-12 Florian Weimer <fweimer@redhat.com>
3445
3446 Linux: Deprecate sysctl.
3447 * include/sysctl.h (__sysctl): Remove declaration.
3448 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3449 check.
3450 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3451 (sysctl): Add deprecation attribute.
3452 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3453 directly, to avoid the deprecation warning. Do not include
3454 <string.h>.
3455 (__sysctl): Remove hidden alias.
3456
3457 2019-06-12 Florian Weimer <fweimer@redhat.com>
3458
3459 Linux: Use kernel headers for statx definitions if available.
3460 * include/bits/statx-generic.h: New file.
3461 * include/bits/types/struct_statx.h: Likewise.
3462 * include/bits/types/struct_statx_timestamp.h: Likewise.
3463 * io/Makefile (headers): Add bits/statx-generic.h.
3464 * io/bits/statx-generic.h: New file. Partly copied from
3465 io/bits/statx.h.
3466 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3467 define original_statx.
3468 * io/bits/types/struct_statx.h: Likewise.
3469 * io/bits/types/struct_statx_timestamp.h: Likewise.
3470 (statx_generic): Use original_statx.
3471 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3472 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3473
3474 2019-06-12 Florian Weimer <fweimer@redhat.com>
3475
3476 * misc/sys/cdefs.h (__glibc_has_include): Define.
3477
3478 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3479
3480 * string/memmem.c (__memmem): Rewrite to improve performance.
3481
3482 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3483
3484 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3485 warning.
3486 (two_way_long_needle): Block inlining.
3487 * string/strstr.c (strstr2): Add new function.
3488 (strstr3): Likewise.
3489 (STRSTR): Completely rewrite strstr to improve performance.
3490
3491 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3492
3493 * benchtests/bench-strstr.c (test_hard_needle): New function.
3494
3495 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3496
3497 * malloc/tst-calloc.c: Include <libc-diag.h>.
3498 (null_test): Ignore -Wunused-result around calls to calloc.
3499 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3500 (do_test): Ignore -Wunused-result around call to malloc.
3501
3502 2019-06-07 Florian Weimer <fweimer@redhat.com>
3503
3504 Linux: Add getdents64 system call.
3505 * include/dirnent.h (getdents): Add comment and change buffer
3506 argument type to void *.
3507 (getdents64): Likewise. Add hidden prototype.
3508 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3509 getdents64.
3510 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3511 Add tst-getdents64.
3512 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3513 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3514 argument type to void *.
3515 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3516 Add hidden definition and getdents64 alias.
3517 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3518 Likewise.
3519 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3520 * manual/filesys.texi (Accessing Directories): Add Low-level
3521 Directory Access node reference.
3522 (Opening a Directory): Cross-reference it.
3523 (Low-level Directory Access): New node.
3524 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3525 getdents64.
3526 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3527 Likewise.
3528 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3529 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3530 Likewise.
3531 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3532 Likewise.
3533 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3534 Likewise.
3535 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3536 Likewise.
3537 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3538 Likewise.
3539 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3540 Likewise.
3541 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3542 Likewise.
3543 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3544 (GLIBC_2.30): Likewise.
3545 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3546 (GLIBC_2.30): Likewise.
3547 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3548 (GLIBC_2.30): Likewise.
3549 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3550 (GLIBC_2.30): Likewise.
3551 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3552 Likewise.
3553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3554 (GLIBC_2.30): Likewise.
3555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3556 (GLIBC_2.30): Likewise.
3557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3558 (GLIBC_2.30): Likewise.
3559 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3560 (GLIBC_2.30): Likewise.
3561 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3562 Likewise.
3563 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3564 Likewise.
3565 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3566 Likewise.
3567 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3568 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3569 Likewise.
3570 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3571 Likewise.
3572 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3573 Likewise.
3574 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3575 Likewise.
3576
3577 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3578
3579 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3580 (__FPU_MFFS): New.
3581 (__FPU_MFFSL): New.
3582 (_FPU_GET_RC): New.
3583 (_FPU_GETCW): Use __FPU_MFFS().
3584 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3585
3586 2019-06-06 Florian Weimer <fweimer@redhat.com>
3587
3588 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3589 internal GCC preprocessor identifier __has_include__.
3590
3591 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3592
3593 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3594 with call to equivalent function.
3595
3596 2019-06-04 Florian Weimer <fweimer@redhat.com>
3597
3598 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3599 (do_release_shlib): Adjust for __twalk_r.
3600 (__gconv_release_shlib): Call __twalk_r.
3601
3602 2019-06-04 Andreas Schwab <schwab@suse.de>
3603
3604 [BZ #18830]
3605 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3606 no irreversible characters occurred.
3607 * iconv/gconv_simple.c (internal_ucs4_loop)
3608 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3609 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3610 (ucs4_internal_loop_single, internal_ucs4le_loop)
3611 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3612 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3613 (ucs4le_internal_loop_single): Add const to outend.
3614 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3615 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3616 * iconv/Makefile (tests): Add tst-iconv7.
3617 * iconv/tst-iconv7.c: New file.
3618
3619 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3620
3621 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3622
3623 2019-06-01 Florian Weimer <fweimer@redhat.com>
3624
3625 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3626 * sysdeps/unix/sysv/linux/arm/Makefile
3627 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3628 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3629 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3630 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3631 compatibility symbols.
3632
3633 2019-05-31 Florian Weimer <fweimer@redhat.com>
3634
3635 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3636 system calls for the arm architecture: breakpoint, get_tls,
3637 set_tls, usr26, usr32.
3638
3639 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3640
3641 * sysdeps/powerpc/Makefile
3642 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3643 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3644 Declare '.machine power7' to get support for ldbrx.
3645 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3646 directive based on the directory of the file.
3647 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3648 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3649 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3650 '.machine' directive.
3651 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3652 (VADDUQM_V7_V8): Remove.
3653 (__STRCASECMP): Replace macros with actual instructions.
3654 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3655 '.machine' directive.
3656 (VCLZD_V8_v7): Remove.
3657 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3658
3659 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3660
3661 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3662 Remove file.
3663 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3664
3665 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3666
3667 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3668 NEARBYINT handling.
3669 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3670 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3671 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3672 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3673 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3674 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3675
3676 2019-05-28 mansayk <6688000@gmail.com>
3677
3678 [BZ #24370]
3679 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3680
3681 2019-05-28 mansayk <6688000@gmail.com>
3682
3683 [BZ #24369]
3684 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3685 (abmon): Likewise, but remove the trailing dots.
3686
3687 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3688
3689 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3690
3691 2019-05-27 Florian Weimer <fweimer@redhat.com>
3692
3693 * nptl/nptl-init.c: Add comment.
3694
3695 2019-05-24 Florian Weimer <fweimer@redhat.com>
3696
3697 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3698 struct in_addr/struct in6_addr alignment.
3699
3700 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3701
3702 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3703 (F_SEAL_FUTURE_WRITE): New macro.
3704
3705 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3706
3707 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3708 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3709 * elf/tst-ldconfig_aux-cache.root: New directory.
3710 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3711 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3712 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3713
3714 2019-05-22 Zack Weinberg <zackw@panix.com>
3715
3716 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3717 host type.
3718 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3719 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3720
3721 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3724 Delete.
3725
3726 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3727 Issue an #error if used with a compiler in SPE-float mode.
3728 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3729 * sysdeps/powerpc/powerpc32/setjmp_common.S
3730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3733 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3736 Remove code to preserve SPE register state.
3737
3738 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3739 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3740 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3741 Remove __SPE__ ifndefs.
3742
3743 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3744
3745 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3746 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3747 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3748 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3749 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3750 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3751 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3752 (INNER_LOOP_ITERS_MEDIUM): New define.
3753 (INNER_LOOP_ITERS_SMALL): New define.
3754 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3755 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3756 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3757 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3758 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3759
3760 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3761
3762 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3763 New define.
3764 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3765 (SEMTIMEDOP_IPC_ARGS): Likewise.
3766
3767 2019-05-21 Florian Weimer <fweimer@redhat.com>
3768
3769 [BZ #24584]
3770 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3771 before updating __counter field and release it afterwards. Add
3772 overflow check.
3773 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3774 requirement for __counter member.
3775
3776 2019-05-21 Florian Weimer <fweimer@redhat.com>
3777
3778 [BZ #24583]
3779 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3780 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3781 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3782 instead of __gconv_release_step.
3783 * libio/Makefile (tests): Add tst-wfile-gconv.
3784 (tests-container): Add tst-wfile-ascii.
3785 (tst-wfile-gconv-ENV): Enable mtrace.
3786 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3787 (tests-special): Add tst-wfile-gconv-mem.out.
3788 (tst-wfile-gconv.out): Depend on locales.
3789 (tst-wfile-gconv-mem.out): Add mtrace rule.
3790 * libio/tst-wfile-ascii.c: New file.
3791 * libio/tst-wfile-gconv.c: Likewise.
3792
3793 2019-05-20 Florian Weimer <fweimer@redhat.com>
3794
3795 [BZ #24588]
3796 libio: Remove codecvt vtable.
3797 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3798 __libio_codecvt.
3799 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3800 __libio_codecvt_encoding.
3801 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3802 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3803 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3804 * libio/iofwide.c (__libio_codecvt): Remove variable.
3805 (_IO_fwide): Do not copy __libio_codecvt.
3806 (__libio_codecvt_out): Rename from do_out and export.
3807 (do_unshift): Remove function.
3808 (__libio_codecvt_in): Rename from do_in and export.
3809 (__libio_codecvt_encoding): Rename from do_encoding and export.
3810 (do_always_noconv): Remove function.
3811 (__libio_codecvt_length): Rename from do_length and export.
3812 (do_max_length): Remove function.
3813 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3814 to libioP.h.
3815 (struct _IO_codecvt): Remove fields __codecvt_destr,
3816 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3817 __codecvt_do_encoding, __codecvt_do_always_noconv,
3818 __codecvt_do_length, __codecvt_do_max_length.
3819 * libio/libioP.h (enum __codecvt_result): Define; moved from
3820 libio.h.
3821 (__libio_codecvt_out, __libio_codecvt_in)
3822 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3823 functions.
3824 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3825 (_IO_wfile_underflow): Call __libio_codecvt_in.
3826 (_IO_wfile_underflow): Likewise.
3827 (_IO_wfile_underflow_mmap): Likewise.
3828 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3829 __libio_codecvt_length.
3830 (adjust_wide_data): Call __libio_codecvt_encoding,
3831 __libio_codecvt_in.
3832 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3833 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3834 __libio_codecvt_length.
3835
3836 2019-05-20 Florian Weimer <fweimer@redhat.com>
3837
3838 * support/support.h (support_sbindir_prefix): Declare.
3839 (support_install_rootsbindir): Update comment.
3840 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3841 * support/support_paths.c (support_sbindir_prefix): Define.
3842
3843 2019-05-20 Mike Crowe <mac@mcrowe.com>
3844
3845 * support/timespec.c: Add backslash to correct newline in failure
3846 message.
3847
3848 * support/timespec.h: Correct confusing comment.
3849
3850 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3851
3852 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3853 define.
3854 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3855 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3856 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3857 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3858
3859 [BZ #24570]
3860 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3861 usage.
3862
3863 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3864
3865 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3866 (NT_ARM_PACG_KEYS): Likewise.
3867
3868 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3869
3870 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3871 (tcache_put): Remove redundant assert.
3872 (tcache_get): Remove redundant asserts.
3873 (__libc_malloc): Check tcache count is not zero.
3874 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3875
3876 2019-05-17 Florian Weimer <fweimer@redhat.com>
3877
3878 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3879
3880 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3881
3882 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3883 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3884 0x050100].
3885 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3886 Likewise.
3887 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3888 (__ASSUME_STATX): Likewise.
3889
3890 2019-05-16 Florian Weimer <fweimer@redhat.com>
3891
3892 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3893 flags argument.
3894 (LINE_PARSER): Do not map IPv4 addresses.
3895 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3896 to parse_line.
3897 (_nss_nis_gethostent_r): Always pass AF_INET to
3898 internal_nis_gethostent_r.
3899 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3900 to parse_line.
3901 (_nss_nis_gethostbyname2_r): Adjust call to
3902 internal_nis_gethostent_r.
3903 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3904 call to internal_nis_gethostent_r.
3905 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3906 from parse_line.
3907 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3908 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3909 Remove flags argument. Do not map IPv4 addresses.
3910 (internal_nisplus_gethostent_r): Adjust call to
3911 _nss_nisplus_parse_hostent.
3912 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3913 to _nss_nisplus_parse_hostent.
3914 (_nss_nisplus_gethostbyname2_r): Adjust call to
3915 internal_gethostbyname2_r.
3916 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3917 Adjust call to internal_gethostbyname2_r.
3918 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3919 _nss_nisplus_parse_hostent.
3920 (_nss_nisplus_gethostbyname4_r): Adjust call to
3921 internal_gethostbyname2_r.
3922
3923 2019-05-16 Florian Weimer <fweimer@redhat.com>
3924
3925 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3926 Remove flags.
3927 (LINE_PARSER): Remove address mapping.
3928 (EXTRA_ARGS_VALUE): Remove flags argument.
3929 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3930 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3931 gethostbyname3_multi.
3932 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3933 _nss_files_gethostbyname3_r.
3934 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3935
3936 2019-05-16 Florian Weimer <fweimer@redhat.com>
3937
3938 * support/support_test_compare_blob.c (report_blob): Report
3939 incorrect NULL blobs.
3940
3941 2019-05-15 Mark Wielaard <mark@klomp.org>
3942
3943 [BZ# 24476]
3944 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3945 __libc_once_get (once) and static_buf == NULL.
3946 (__dlerror): Check we have a valid key, set result to static_buf
3947 otherwise.
3948
3949 2019-05-15 Andreas Schwab <schwab@suse.de>
3950
3951 [BZ #20568]
3952 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3953 __codecvt_do_length.
3954 * libio/Makefile (tests): Add tst-wfile-sync.
3955 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3956 * libio/tst-wfile-sync.c: New file.
3957 * libio/tst-wfile-sync.input: New file.
3958
3959 2019-05-15 Florian Weimer <fweimer@redhat.com>
3960
3961 nss: Turn __nss_database_lookup into a compatibility symbol.
3962 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3963 __nss_database_lookup.
3964 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3965 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3966 __nss_database_lookup.
3967 (__nss_next): Move to …
3968 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3969 unconditionally.
3970 (__nss_database_lookup): New function.
3971 * nss/Versions (GLIBC_2.0): Update comment.
3972 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3973 * grp/initgroups.c (internal_getgrouplist): Call
3974 __nss_database_lookup2 instead of __nss_database_lookup.
3975 * nscd/aicache.c (addhstaiX): Likewise.
3976 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3977 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3978 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3979 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3980 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3981 Likewise.
3982 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3983 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3984 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3985
3986 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3987
3988 * support/support.h (support_install_rootsbindir): New variable.
3989 * support/support_paths.c: Likewise.
3990 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3991
3992 2019-05-15 Florian Weimer <fweimer@redhat.com>
3993
3994 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3995 * iconv/gconv_int.h (__gconv_transliterate): … here.
3996 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3997 * iconv/skeleton.c: Likewise.
3998
3999 2019-05-14 Florian Weimer <fweimer@redhat.com>
4000
4001 Linux: Add the tgkill function.
4002 * bits/signal_ext.h: New file.
4003 * manual/signal.texi (Signaling Another Process): Document tgkill.
4004 * signal/Makefile (headers): Add bits/signal_ext.h.
4005 * signal/signal.h: Include <bits/signal_ext.h>.
4006 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4007 (tst-tgkill): Link with libpthread.
4008 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4009 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4010 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4011 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4012 tgkill.
4013 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4014 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4015 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4016 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4017 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4018 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4019 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4020 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4021 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4022 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4023 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4024 Likewise.
4025 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4026 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4027 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4029 Likewise.
4030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4031 Likewise.
4032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4033 Likewise.
4034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4035 Likewise.
4036 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4037 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4038 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4039 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4040 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4041 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4042 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4043 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4044
4045 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4046
4047 * manual/search.texi (Tree Search Function): Adjust twalk_r
4048 documentation.
4049
4050 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4051
4052 [BZ #24544]
4053 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4054 pre-defined value.
4055
4056 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4057 * support/support.h (support_bindir_prefix): New variable.
4058 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4059
4060 * config.make.in (bindir): New variable.
4061
4062 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4063 (lll_trylock): Call __lll_trylock.
4064 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4065 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4066 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4067 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4068 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4069 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4070 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4071 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4072 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4073 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4074 lowlevellock-futex.h.
4075
4076 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4077 initialization for LLL_LOCK_INITIALIZER different than 0.
4078 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4079 Assume LLL_LOCK_INITIALIZER being 0.
4080 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4081 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4082 Likewise.
4083 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4084 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4085
4086 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4087 Optimize futex call and add systemtap probe.
4088
4089 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4090 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4091 __libc_disable_asynccancel, __librt_enable_asynccancel,
4092 __libc_disable_asynccancel, __librt_enable_asynccancel,
4093 __librt_disable_asynccancel): Move to ...
4094 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4095 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4096 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4097 * sysdeps/generic/single-thread.h: New file.
4098 * sysdeps/unix/sysdep.h: Include single-thread.h.
4099 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4100 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4101
4102 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4103
4104 [BZ #24535]
4105 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4106 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4107 Unicode 12.1.0.
4108 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4109 * localedata/unicode-gen/PropList.txt: Likewise.
4110 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4111 * localedata/charmaps/UTF-8: Regenerate.
4112 * localedata/locales/i18n_ctype: Likewise.
4113 * localedata/locales/tr_TR: Likewise.
4114 * localedata/locales/translit_circle: Likewise.
4115 * localedata/locales/translit_cjk_compat: Likewise.
4116 * localedata/locales/translit_combining: Likewise.
4117 * localedata/locales/translit_compat: Likewise.
4118 * localedata/locales/translit_font: Likewise.
4119 * localedata/locales/translit_fraction: Likewise.
4120
4121 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4122
4123 [BZ #24531]
4124 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4125 (do_set_tcache_count): Only update if count is small enough.
4126 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4127
4128 2019-05-10 Florian Weimer <fweimer@redhat.com>
4129
4130 * nptl/sem_close.c (struct walk_closure): Define.
4131 (walker): Adjust for __twalk_r.
4132 (sem_close): Call __twalk_r.
4133
4134 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4135
4136 * support/timespec.c (test_timespec_before_impl,
4137 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4138 insted of long int.
4139
4140 2019-05-09 Mike Crowe <mac@mcrowe.com>
4141
4142 * nptl/tst-abstime.c: Use libsupport.
4143
4144 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4145 small bug where only tv.tv_usec was checked which could cause an
4146 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4147 than a second.
4148
4149 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4150 libsupport.
4151
4152 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4153 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4154
4155 * nptl/tst-cond11.c: Use libsupport.
4156
4157 * support/timespec.h: New file. Provide timespec helper functions
4158 along with macros in the style of those in check.h.
4159 * support/timespec.c: New file. Implement check functions declared
4160 in support/timespec.h.
4161 * support/timespec-add.c: New file from gnulib containing
4162 timespec_add implementation that handles overflow.
4163 * support/timespec-sub.c: New file from gnulib containing
4164 timespec_sub implementation that handles overflow.
4165 * support/README: Mention timespec.h.
4166
4167 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4168
4169 [BZ #24537]
4170 * nptl/Makefile: Move tst-eintr1 to xtests.
4171
4172 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4173
4174 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4175 TRUNC handling.
4176 (round_mode): Add definition for TRUNC.
4177 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4178 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4179 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4180 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4181 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4182 Likewise.
4183 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4184 Likewise.
4185 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4186 Likewise.
4187 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4188 Likewise.
4189 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4190 file.
4191 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4192 Likewise.
4193 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4194 Likewise.
4195 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4196 Likewise.
4197 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4198 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4199 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4200 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4201 s_truncf-power5+, and s_truncf-ppc64.
4202 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4203 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4204 file.
4205 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4207 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4208 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4209 file.
4210 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4211 Likewise.
4212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4213 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4214 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4215 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4216 s_truncf-power5+, and s_truncf-ppc64.
4217 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4218 file.
4219 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4220 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4221 Likewise.
4222 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4223 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4224 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4225 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4226 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4227
4228 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4229 ROUND handling.
4230 (round_mode): Add definition for ROUND.
4231 (round_to_integer_float): Likewise.
4232 * sysdeps/powerpc/fpu/s_round.c: New file.
4233 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4234 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4235 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4236 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4237 Likewise.
4238 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4239 Likewise.
4240 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4241 Likewise.
4242 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4243 Likewise.
4244 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4245 file.
4246 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4247 Likewise.
4248 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4249 Likewise.
4250 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4251 Likewise.
4252 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4253 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4254 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4255 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4256 s_roundf-power5+, and s_roundf-ppc64.
4257 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4258 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4259 file.
4260 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4262 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4263 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4264 file.
4265 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4266 Likewise.
4267 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4268 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4269 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4270 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4271 s_roundf-power5+, and s_roundf-ppc64.
4272 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4273 file.
4274 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4275 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4276 Likewise.
4277 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4278 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4279 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4280 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4281 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4282
4283 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4284 Add FLOOR option.
4285 (round_mode): Add definition for FLOOR.
4286 * sysdeps/powerpc/fpu/s_floor.c: New file.
4287 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4288 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4289 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4290 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4291 Remove file.
4292 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4293 Likewise
4294 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4295 Likewise.
4296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4297 Likewise.
4298 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4299 New file.
4300 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4301 Likewise.
4302 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4303 Likewise.
4304 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4305 Likewise.
4306 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4307 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4308 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4309 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4310 s_floorf-power5+, and s_floorf-ppc64.
4311 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4312 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4313 file.
4314 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4315 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4316 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4317 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4318 file.
4319 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4320 Likewise.
4321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4322 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4323 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4324 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4325 s_floorf-power5+, and s_floorf-ppc64.
4326 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4327 file.
4328 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4329 file.
4330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4331 Likewise.
4332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4333 Likewise.
4334 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4335 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4336 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4337 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4338
4339 2019-05-08 Mike Crowe <mac@mcrowe.com>
4340
4341 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4342 clock_gettime wrapper for use in tests that fails the test rather
4343 than returning failure.
4344
4345 * support/xtime.h: New file to declare xclock_gettime.
4346
4347 * support/Makefile: Add xclock_gettime.c.
4348
4349 * support/README: Mention xtime.h.
4350
4351 2019-05-08 Florian Weimer <fweimer@redhat.com>
4352
4353 malloc/tst-mallocfork2: Use process-shared barriers.
4354 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4355 (signal_count, sigusr1_sender_pid): Remove.
4356 (iterations): Define constant.
4357 (shared): New variable.
4358 (sigusr1_received): Update comment.
4359 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4360 (signal_sender): Optional use barriers to avoid sending signals
4361 during irrelevant times.
4362 (do_it): Initialize variable shared. Use xfork for error
4363 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4364 the iteration count, independent of signal delivery. Check for
4365 deadlocks in fork. Introduce barriers for reducing signal
4366 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4367 replaced by the barriers. Count signals during fork/free/malloc
4368 and report them.
4369 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4370
4371 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4372
4373 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4374 version to 5.1.
4375 (clock_adjtime64) New syscall.
4376 (clock_getres_time64) Likewise.
4377 (clock_gettime64) Likewise.
4378 (clock_nanosleep_time64) Likewise.
4379 (clock_settime64) Likewise.
4380 (futex_time64) Likewise.
4381 (io_pgetevents_time64) Likewise.
4382 (io_uring_enter) Likewise.
4383 (io_uring_register) Likewise.
4384 (io_uring_setup) Likewise.
4385 (mq_timedreceive_time64) Likewise.
4386 (mq_timedsend_time64) Likewise.
4387 (pidfd_send_signal) Likewise.
4388 (ppoll_time64) Likewise.
4389 (pselect6_time64) Likewise.
4390 (recvmmsg_time64) Likewise.
4391 (rt_sigtimedwait_time64) Likewise.
4392 (sched_rr_get_interval_time64) Likewise.
4393 (semtimedop_time64) Likewise.
4394 (timer_gettime64) Likewise.
4395 (timer_settime64) Likewise.
4396 (timerfd_gettime64) Likewise.
4397 (timerfd_settime64) Likewise.
4398 (utimensat_time64) Likewise.
4399
4400 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4401 version to 9 branch.
4402
4403 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4404
4405 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4406 __memmove_thunderx2 to the list of implementations
4407 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4408 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4409 (__memmove_thunderx2): Rewritten using SIMD ld/st
4410 (__memcpy_thunderx2): Fixed handling overlapping cases.
4411 Used ldp/stp instead of ldr/str if possible. Made loops
4412 tails branchless.
4413
4414 2019-05-03 Florian Weimer <fweimer@redhat.com>
4415
4416 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4417
4418 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4419
4420 [BZ #24506]
4421 * elf/tst-pldd.c (in_str_list): New function.
4422 (do_test): Add default names for ld and libc as one option.
4423
4424 2019-05-02 Florian Weimer <fweimer@redhat.com>
4425
4426 misc: Add twalk_r function.
4427 * include/search.h (__twalk_r): Declare.
4428 * manual/examples/twalk.c: New file.
4429 * manual/search.texi (Tree Search Function): Document twalk_r.
4430 * misc/Versions (2.30): Export twalk_r.
4431 (GLIBC_PRIVATE): Export __twalk_r.
4432 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4433 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4434 (twalk_r): Add weak alias.
4435 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4436 (walk_trace): New variable.
4437 (struct twalk_with_twalk_r_closure): Define.
4438 (twalk_with_twalk_r_action): New function.
4439 (twalk_with_twalk_r): Likewise.
4440 (walk_action): Call walk_trace_add.
4441 (walk_tree_with): Rename from walk_tree. Add walk argument.
4442 (walk_tree): New function.
4443 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4444 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4445 Likewise.
4446 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4447 Likewise.
4448 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4449 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4450 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4451 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4452 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4453 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4454 Likewise.
4455 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4456 Likewise.
4457 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4458 Likewise.
4459 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4460 (GLIBC_2.30): Likewise.
4461 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4462 (GLIBC_2.30): Likewise.
4463 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4464 (GLIBC_2.30): Likewise.
4465 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4466 (GLIBC_2.30): Likewise.
4467 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4468 Likewise.
4469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4470 (GLIBC_2.30): Likewise.
4471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4472 (GLIBC_2.30): Likewise.
4473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4474 (GLIBC_2.30): Likewise.
4475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4476 (GLIBC_2.30): Likewise.
4477 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4478 Likewise.
4479 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4480 Likewise.
4481 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4482 Likewise.
4483 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4484 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4485 Likewise.
4486 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4487 Likewise.
4488 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4489 Likewise.
4490 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4491 Likewise.
4492
4493 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4494
4495 Make mktime etc. compatible with __time64_t
4496 Keep these functions compatible with Gnulib while adding
4497 __time64_t support. The basic idea is to move private API
4498 declarations from include/time.h to time/mktime-internal.h, since
4499 the former file cannot easily be shared with Gnulib whereas the
4500 latter can.
4501 Also, do some other minor cleanup while in the neighborhood.
4502 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4503 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4504 since Gnulib needs it.
4505 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4506 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4507 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4508 (in_time_t_range): New static function.
4509 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4510 so that glibc users are not tempted to use __time64_t.
4511 * time/mktime-internal.h: Rewrite so that it does both glibc
4512 and Gnulib work. Include time.h if not _LIBC.
4513 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4514 (__time64_t): New type or macro, moved here from
4515 posix/bits/types.h.
4516 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4517 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4518 from include/time.h.
4519 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4520 New macros, taken from GNulib.
4521 (__mktime_internal): New prototype, moved here from include/time.h.
4522 * time/mktime.c (mktime_min, mktime_max, convert_time)
4523 (ranged_convert, __mktime_internal, __mktime64):
4524 * time/timegm.c (__timegm64):
4525 Use __time64_t, not time_t.
4526 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4527 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4528 Rename from mktime.
4529 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4530 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4531 for libc_hidden_def.
4532 Include errno.h.
4533 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4534 Rename from timegm.
4535 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4536
4537 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4538
4539 [BZ #19444]
4540 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4541 from `-Wmaybe-uninitialized'.
4542 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4543
4544 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4545
4546 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4547 function.
4548 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4549 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4550 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4551 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4552 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4553 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4554 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4555 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4556 Remove file.
4557 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4558 Likewise.
4559 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4560 Likewise.
4561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4562 Likewise.
4563 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4564 New file.
4565 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4566 Likewise.
4567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4568 Likewise.
4569 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4570 Likewise.
4571 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4572 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4573 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4574 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4575 Likewise.
4576 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4577 Likewise.
4578 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4579 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4580 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4581 file.
4582 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4583 Likewise.
4584 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4585 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4586 * here.
4587 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4588 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4589 s_ceilf-power5+, and s_ceilf-ppc64.
4590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4591 file.
4592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4593 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4595 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4596 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4597 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4598 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4599
4600 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4601 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4602 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4603
4604 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4605
4606 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4607 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4608 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4609 (sem_getvalue): Likewise.
4610
4611 2019-04-26 Florian Weimer <fweimer@redhat.com>
4612
4613 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4614 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4615
4616 2019-04-26 Florian Weimer <fweimer@redhat.com>
4617
4618 Makeconfig: Move -Wl,-rpath-link options before library references.
4619 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4620 (link-libc): Remove $(link-libc-rpath-link).
4621
4622 2019-04-25 Florian Weimer <fweimer@redhat.com>
4623
4624 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4625 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4626 (+link-static-before-libc): Remove $(CC).
4627 (+link-static, +link-static-tests): Add $(CC).
4628 (+link-before-libc): Remove $(CC).
4629 (+link, +link-pie, +link-pie-printers): Add $(CC).
4630
4631 2019-04-26 Florian Weimer <fweimer@redhat.com>
4632
4633 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4634 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4635 (+link-static-before-libc): Remove $(CC).
4636 (+link-static, +link-static-tests): Add $(CC).
4637 (+link-before-libc): Remove $(CC).
4638 (+link, +link-pie, +link-pie-printers): Add $(CC).
4639
4640 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4641
4642 [BZ#24484]
4643 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4644
4645 2019-04-25 Florian Weimer <fweimer@redhat.com>
4646
4647 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4648 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4649 (bench-link-targets): New variable.
4650 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4651
4652 2019-04-25 Florian Weimer <fweimer@redhat.com>
4653
4654 Also enable BIND_NOW for programs if --enable-bind-now.
4655 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4656 (+link-pie): Use $(link-extra-flags).
4657 (+link-static): Likewise.
4658 [! $(build-pie-default)] (+link): Likewise.
4659 * manual/install.texi (Configuring and compiling): Update
4660 --enable-bind-now description.
4661 * INSTALL: Regenerated.
4662
4663 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4664
4665 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4666 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4667
4668 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4669
4670 [BZ #18465]
4671 * malloc/Makefile (others): Add memusagestat.
4672 ($(objpfx)memusagestat): Delete rule.
4673 (LDLIBS-memusagestat): New variable.
4674
4675 2019-04-24 Florian Weimer <fweimer@redhat.com>
4676
4677 * locale/Makefile (tests-special): Guard setting by
4678 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4679 to run while cross-compiling.
4680
4681 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4682
4683 [BZ #18035]
4684 * elf/Makefile (tests-container): Add tst-pldd.
4685 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4686 (E(find_maps)): Avoid use alloca, use default read file operations
4687 instead of explicit LFS names, and fix infinite loop.
4688 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4689 (get_process_info): Use _Static_assert instead of assert, use default
4690 directory operations instead of explicit LFS names, and free some
4691 leadek pointers.
4692 * elf/tst-pldd.c: New file.
4693
4694 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4695
4696 * malloc/arena.c (do_set_mallopt_check): Removed.
4697
4698 2019-04-23 Florian Weimer <fweimer@redhat.com>
4699
4700 locale: Add LOCPATH diagnostics to the locale program.
4701 * locale/programs/locale.c (setlocale_failed): New variable.
4702 (try_setlocale): New function.
4703 (quote_string): Likewise.
4704 (setlocale_diagnostics): Likewise.
4705 (main): Call try_setlocale instead of setlocale. Call
4706 setlocale_diagnostics.
4707 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4708 (tst-locale-locpath.out): New target.
4709 * locale/tst-locale-locpath.sh: New file.
4710
4711 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4712
4713 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4714 to 2.30 notes.
4715
4716 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4717
4718 [BZ #23741]
4719 * malloc/hooks.c (malloc_check, realloc_check): Use
4720 __builtin_add_overflow on overflow check and adapt to
4721 checked_request2size change.
4722 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4723 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4724 allocation size to PTRDIFF_MAX.
4725 (REQUEST_OUT_OF_RANGE): Remove macro.
4726 (checked_request2size): Change to inline function and limit maximum
4727 requested size to PTRDIFF_MAX.
4728 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4729 maximum allocation size to PTRDIFF_MAX.
4730 (_mid_memalign): Use _int_memalign call for overflow check.
4731 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4732 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4733 limit maximum requested size to PTRDIFF_MAX.
4734 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4735 valloc, pvalloc): Add __attribute_alloc_size__.
4736 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4737 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4738 larger than PTRDIFF_MAX.
4739 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4740 around tests of malloc with negative sizes.
4741 * malloc/tst-posix_memalign.c (do_test): Likewise.
4742 * malloc/tst-pvalloc.c (do_test): Likewise.
4743 * malloc/tst-valloc.c (do_test): Likewise.
4744 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4745 with resulting size allocation larger than PTRDIFF_MAX with
4746 reallocarray_nowarn.
4747 (reallocarray_nowarn): New function.
4748 * NEWS: Mention the malloc function semantic change.
4749
4750 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4751
4752 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4753 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4754
4755 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4756 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4757 * sysdeps/powerpc/fpu/s_fma.c: New file.
4758 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4759
4760 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4761 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4762
4763 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4764 the magic flag store.
4765 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4766 Likewise.
4767 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4768 Likewise.
4769 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4770 Remove rt_sigreturn call.
4771
4772 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4773 Remove rt_sigreturn call.
4774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4775 Likewise.
4776 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4778
4779 * support/Makefile (libsupport-routines): Add support_subprocess,
4780 xposix_spawn, xposix_spawn_file_actions_addclose, and
4781 xposix_spawn_file_actions_adddup2.
4782 (tst-support_capture_subprocess-ARGS): New rule.
4783 * support/capture_subprocess.h (support_capture_subprogram): New
4784 prototype.
4785 * support/support_capture_subprocess.c (support_capture_subprocess):
4786 Refactor to use support_subprocess and support_capture_poll.
4787 (support_capture_subprogram): New function.
4788 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4789 str_to_write_mode, test_common, parse_int, handle_restart,
4790 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4791 (do_test): Add support_capture_subprogram tests.
4792 * support/subprocess.h: New file.
4793 * support/support_subprocess.c: Likewise.
4794 * support/xposix_spawn.c: Likewise.
4795 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4796 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4797 * support/xspawn.h: Likewise.
4798
4799 2019-04-17 Mike Gerow <gerow@google.com>
4800
4801 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4802 groups limit.
4803
4804 2019-04-11 Florian Weimer <fweimer@redhat.com>
4805
4806 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4807 domain with empty string.
4808 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4809
4810 2019-04-11 Florian Weimer <fweimer@redhat.com>
4811
4812 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4813 comment.
4814 (alloc_buffer_next): Change return type to non-const. Update
4815 comment.
4816
4817 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4818
4819 * manual/time.texi (Formatting Calendar Time): Add missing percent
4820 sign to conversion specifier.
4821
4822 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4823 Kwok Cheung Yeung <kcy@codesourcery.com>
4824
4825 [BZ #16573]
4826 * malloc/mtrace.c: Define prototypes for all hooks.
4827 (set_default_hooks): New function.
4828 (set_trace_hooks): Likewise.
4829 (save_default_hooks): Likewise.
4830 (tr_freehook): Use new s*_hooks functions.
4831 (tr_mallochook): Likewise.
4832 (tr_reallochook): Likewise.
4833 (tr_memalignhook): Likewise.
4834 (mtrace): Likewise.
4835 (muntrace): Likewise.
4836
4837 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4838
4839 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4840 (generic_stpcpy): New function.
4841 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4842 (generic_stpncpy): New function.
4843 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4844 (generic_strcat): New function.
4845 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4846 (generic_strcpy): New function.
4847 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4848 (STUPID_STRNCAT): Remove function.
4849 (generic_strncat): New function.
4850 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4851 (STUPID_STRNCPY): Remove function.
4852 (generic_strncpy): New function.
4853 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4854 (generic_strnlen): New function.
4855 (memchr_strnlen): New function.
4856 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4857 (memchr_strlen): Likewise.
4858
4859 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4860
4861 * benchtests/bench-strstr.c (input): Add realistic input text.
4862 (stupid_strstr): Remove function.
4863 (basic_strstr): Add function.
4864 (twoway_strstr): Add function.
4865 (do_one_test): Add result checking.
4866 (do_test): Use new input text. Remove accidental early matches.
4867 (test_main): Improve range of tests, reduce unaligned cases.
4868
4869 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4870
4871 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4872 (basic_memmem): Add function.
4873 (twoway_memmem): Add function.
4874
4875 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4876
4877 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4878 * benchtests/bench-malloc-thread.c: Likewise.
4879 * benchtests/bench-skeleton.c: Likewise.
4880 * benchtests/bench-strtod.c: Likewise.
4881 * benchtests/bench-timing.h: Likewise.
4882
4883 2019-04-08 Florian Weimer <fweimer@redhat.com>
4884
4885 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4886 definitions.
4887 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4888 RES_INSECURE2 security checks.
4889 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4890 RES_INSECURE2 handling.
4891
4892 2019-04-08 Florian Weimer <fweimer@redhat.com>
4893
4894 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4895 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4896 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4897 GETHOSTBYNAME.
4898 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4899 (tests-internal): Update justification for tst-resolv-res_init,
4900 tst-resolv-res_init-thread.
4901 (tst-res_use_inet6): Remove target.
4902 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4903 * resolv/res_debug.c (p_option): Remove "inet6" support.
4904 * resolv/res_init.c (res_setoptions): Likewise.
4905 * resolv/res_use_inet6.h: Remove file.
4906 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4907 definition.
4908 (res_use_inet6): Always return false.
4909 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4910 * resolv/resolv_context.h: Adjust file comment.
4911 (struct resolv_context): Update comment on __next field.
4912 (__resolv_context_put): Update comment.
4913 * resolv/tst-res_use_inet6.c: Remove file.
4914 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4915 "inet6" support.
4916 (test_cases): Adjust test case.
4917 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4918 (thread_byname2_af_inet6): Use old byname_inet6 code.
4919 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4920 (gai): Remove do_inet6 argument.
4921 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4922 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4923 (thread_gai_unspec_inet6): Remove functions.
4924 (do_test): Adjust thread_funcs.
4925 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4926 RES_USE_INET6 flag.
4927 (gaih_inet): Do not disable RES_USE_INET6 flag.
4928
4929 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4930
4931 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4932 and remove redundant code.
4933
4934 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4935
4936 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4937 New rule.
4938 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4939 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4940 Likewise.
4941 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4942 Likewise.
4943 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4944 Likewise.
4945 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4946 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4947 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4948 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4949 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4950 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4951 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4952 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4953 wcsrchr-power7.
4954 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4955 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4956 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4957 Remove wcsrchr optimizations.
4958 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4959
4960 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4961 the loop unroll.
4962
4963 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4964 New rule.
4965 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4966 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4967 Likewise.
4968 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4969 Likewise.
4970 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4971 Likewise.
4972 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4973 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4974 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4975 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4976 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4977 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4978 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4979 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4980 wcschr-power7.
4981 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4982 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4983 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4984 Remove wcschr optimizations.
4985 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4986
4987 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4988 the loop unroll.
4989
4990 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4991 New rule.
4992 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4993 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4994 Likewise.
4995 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4996 Likewise.
4997 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4998 Likewise.
4999 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5000 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5001 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5002 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5003 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5004 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5005 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5006 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5007 wcscpy-power7.
5008 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5009 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5010 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5011 Remove wcscpy optimizations.
5012 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5013
5014 * include/loop_unroll.h: New file.
5015 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5016 besides generic implementation.
5017
5018 2019-04-03 DJ Delorie <dj@redhat.com>
5019
5020 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5021 snprintf truncating output.
5022
5023 2019-04-02 DJ Delorie <dj@redhat.com>
5024
5025 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5026 warning.
5027
5028 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5029
5030 [BZ #22964]
5031 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5032 era.
5033 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5034 (mkreftable): Add rules for the new Japanese era and the new dates.
5035
5036 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5037 Rafał Lużyński <digitalfreak@lingonborough.com>
5038
5039 * time/tst-strftime2.c (date_t): Explicitly define the type.
5040 (dates): Use natural month and year numbers to express a date.
5041 (is_before): New function to compare dates.
5042 (mkreftable): Minor improvements to simplify maintenance.
5043 (do_test): Reflect the changes in dates array.
5044
5045 [BZ #24293]
5046 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5047 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5048 * time/tst-strftime2.c (locales): Likewise.
5049 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5050 2010-04-01, and 2011-04-01.
5051 (mkreftable): Add rules for the new locales and the new dates.
5052
5053 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5054
5055 * localedata/locales/ja_JP: Add comments to era entries.
5056
5057 2019-04-01 DJ Delorie <dj@redhat.com>
5058
5059 [BZ #24394]
5060 * time/strptime_l.c (%Ey): Fix fencepost error.
5061 * time/tst-strftime3.c: New.
5062 * time/Makefile (tests): Add tst-strftime3.
5063
5064 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
5065
5066 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5067 conditional branch to DIVBYZERO. Fix unwind info.
5068 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5069 excb after conditional branch to $powerof2. Add missing unop
5070 instructions and .align directives and reorder instructions to
5071 match __divqu.
5072
5073 2019-04-01 Richard Henderson <rth@twiddle.net>
5074
5075 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5076 Do not redefine.
5077 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5078 Do not redefine.
5079
5080 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5081
5082 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5083 $libc_cv_riscv_float_abi in `test' invocation.
5084 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5085
5086 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5087
5088 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5089 asm with builtin.
5090 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5091 Likewise.
5092 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5093 (_GET_SI_FPSCR): Likewise.
5094 (_SET_SI_FPSCR): Likewise.
5095
5096 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5097
5098 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5099 clang 2.8.
5100 (signbit): Use builtin for clang 3.3.
5101 (isinf): Use builtin for clang 3.7.
5102
5103 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5104
5105 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5106
5107 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5108
5109 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5110 quote in printf.
5111
5112 2019-03-25 Mike Crowe <mac@mcrowe.com>
5113
5114 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5115 pthread_rwlock_timedrdlock with calls to
5116 pthread_rwlock_timedwrlock to ensure that the latter is tested
5117 too. Use new function name in diagnostic messages too.
5118
5119 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5120 (do_test) Use libsupport test macros rather than hand-coded
5121 conditionals and error messages. Ensure that sem_init returns zero
5122 rather than not -1. Use <support/test-driver.c> rather than
5123 test-skeleton.c.
5124
5125 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5126 test macros rather than hand-coded conditionals and error messages.
5127 Use <support/test-driver.c> rather than test-skeleton.c.
5128
5129 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5130
5131 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5132
5133 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5134 (NT_MIPS_MSA): Likewise.
5135
5136 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5137
5138 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5139 * benchtests/README: Update description.
5140 * benchtests/bench-timing.h: Default to hp-timing.
5141 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5142 HP_TIMING_PRINT): Remove.
5143 (HP_TIMING_NOW): Add generic implementation.
5144 (hp_timing_t): Change to uint64_t.
5145
5146 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5147 HP_TIMING_INLINE.
5148 * nptl/descr.h: Likewise.
5149 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5150 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5151 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5152 Abstract hp-timing usage with RTLD_* macros.
5153 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5154 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5155 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5156 HP_TIMING_NONAVAIL): Likewise.
5157 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5158 Likewise.
5159 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5160 HP_SMALL_TIMING_AVAIL): Likewise.
5161 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5162 HP_SMALL_TIMING_AVAIL): Likewise.
5163 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5164 HP_SMALL_TIMING_AVAIL): Likewise.
5165 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5166 HP_SMALL_TIMING_AVAIL): Likewise.
5167 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5168 Likewise.
5169 * sysdeps/generic/hp-timing-common.h: Update comment with
5170 HP_TIMING_AVAIL removal.
5171
5172 * include/random-bits.h: New file.
5173 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5174 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5175 random_bits.
5176 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5177 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5178 Likewise.
5179
5180 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5181 * rt/Makefile (clock-routines): Remove get_clockfreq.
5182 * rt/get_clockfreq.c: Remove file.
5183 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5184 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5185 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5186 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5187 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5188
5189 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5190 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5191 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5192 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5193 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5194
5195 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5196 pthread_clock_settime.
5197 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5198 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5199 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5200 * elf/rtld.c (_dl_start_final): Likewise.
5201 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5202 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5203 Remove.
5204 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5205 (_dl_cpuclock_offset): Remove.
5206 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5207 cpuclock_offset_ununsed.
5208 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5209 cpuclock_offset set.
5210 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5211 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5212 * nptl/pthread_clock_gettime.c: Remove file.
5213 * nptl/pthread_clock_settime.c: Likewise.
5214 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5215 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5216 and CLOCK_PROCESS_CPUTIME_ID support.
5217 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5218 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5219 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5220 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5221 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5222 Likewise.
5223 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5224
5225 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5226
5227 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5228 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5229 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5230 New defines.
5231 * sysdeps/s390/memmem-arch13.S: New file.
5232 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5233 if it is only used as fallback.
5234 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5235 * sysdeps/s390/multiarch/ifunc-impl-list.c
5236 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5237
5238 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5239
5240 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5241 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5242 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5243 New defines.
5244 * sysdeps/s390/multiarch/ifunc-impl-list.c
5245 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5246 * sysdeps/s390/strstr-arch13.S: New file.
5247 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5248 if it is only used as fallback.
5249 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5250
5251 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5252
5253 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5254 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5255 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5256 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5257 ifunc selector.
5258 * sysdeps/s390/multiarch/ifunc-impl-list.c
5259 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5260 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5261 S390_IS_ARCH13_MIE3): New defines.
5262
5263 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5264
5265 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5266 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5267 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5268 * sysdeps/s390/configure: Regenerated.
5269
5270 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5271
5272 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5273 Add vxe2, vxp, dflt, sort flags.
5274 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5275 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5276 capabilities.
5277 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5278 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5279 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5280 HWCAP_S390_DFLT): Define.
5281
5282 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5283
5284 [BZ #24372]
5285 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5286 of compiler warning.
5287 * locale/programs/ld-collate.c (collate_output): Likewise.
5288
5289 2019-03-21 DJ Delorie <dj@redhat.com>
5290
5291 [BZ #24372]
5292 * iconv/iconvconfig.c (write_output): Replace floating point math
5293 with integer math to avoid imprecise results.
5294 * locale/programs/ld-collate.c (collate_output): Likewise.
5295
5296 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5297
5298 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5299 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5300
5301 2019-03-20 mansayk <6688000@gmail.com>
5302
5303 [BZ #24296]
5304 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5305 (abday): Likewise, but remove the trailing dots.
5306
5307 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5308
5309 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5310 macro.
5311 (HWCAP_PACA): Likewise.
5312 (HWCAP_PACG): Likewise.
5313 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5314 Increase to 32.
5315 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5316
5317 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5318
5319 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5320 should be handled.
5321
5322 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5323
5324 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5325 version to 5.0.
5326 (old_getpagesize): New syscall.
5327
5328 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5329
5330 [BZ #24293]
5331 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5332 * localedata/locales/cmn_TW (era): Likewise.
5333 * localedata/locales/hak_TW (era): Likewise.
5334 * localedata/locales/lzh_TW (era): Likewise.
5335 * localedata/locales/nan_TW (era): Likewise.
5336
5337 2019-03-14 Adam Maris <amaris@redhat.com>
5338
5339 * malloc/malloc.c (_int_malloc): Check for large bin list
5340 corruption when inserting unsorted chunk.
5341
5342 2019-03-14 Florian Weimer <fweimer@redhat.com>
5343
5344 Remove obsolete, never-implemented XSI STREAMS declarations.
5345 * manual/terminal.texi (Allocation): Remove portability note and
5346 adjust example.
5347 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5348 _SC_STREAMS.
5349 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5350 * sysdeps/unix/inet/Subdirs (streams): Remove.
5351 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5352 (conformtest-headers-UNIX98): Likewise.
5353 (conformtest-headers-XOPEN2K): Likewise.
5354 (conformtest-headers-POSIX2008): Likewise.
5355 * posix/compat-streams.c: New file.
5356 * posix/Makefile (routines): Add it.
5357 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5358 getpmsg, isastream, putmsg, putpmsg.
5359 (GLIBC_2.30): New section.
5360 * bits/stropts.h: Remove file.
5361 * bits/xtitypes.h: Likewise.
5362 * conform/data/stropts.h-data: Likewise.
5363 * include/stropts.h: Likewise.
5364 * include/sys/stropts.h: Likewise.
5365 * include/xtitypes.h: Likewise.
5366 * streams/Makefile: Likewise.
5367 * streams/fattach.c: Likewise.
5368 * streams/fdetach.c: Likewise.
5369 * streams/getmsg.c: Likewise.
5370 * streams/getpmsg.c: Likewise.
5371 * streams/isastream.c: Likewise.
5372 * streams/putmsg.c: Likewise.
5373 * streams/putpmsg.c: Likewise.
5374 * streams/stropts.h: Likewise.
5375 * streams/sys/stropts.h: Likewise.
5376 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5377 * sysdeps/s390/bits/xtitypes.h: Likewise.
5378 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5379 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5380 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5381 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5382 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5383 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5384 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5385 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5386 * sysdeps/x86/bits/xtitypes.h: Likewise.
5387
5388 2019-03-14 Florian Weimer <fweimer@redhat.com>
5389
5390 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5391 libnss_files.
5392 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5393 but not with libnss_files.
5394 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5395
5396 2019-03-14 Zack Weinberg <zackw@panix.com>
5397
5398 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5399 Specify encoding="utf-8" when opening headers to check.
5400
5401 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5402
5403 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5404 version to 5.0.
5405 (Context.checkout_tar): Handle variable major version for Linux
5406 kernel.
5407
5408 2019-03-13 Florian Weimer <fweimer@redhat.com>
5409
5410 [BZ #24047]
5411 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5412
5413 2019-03-13 Zack Weinberg <zackw@panix.com>
5414
5415 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5416 Move to stdlib.
5417 * include/inttypes.h: Adjust to match.
5418 * include/stdint.h: New wrapper.
5419
5420 2019-03-13 Zack Weinberg <zackw@panix.com>
5421
5422 * scripts/check-obsolete-constructs.py: New test script.
5423 * scripts/check-installed-headers.sh: Remove tests for
5424 obsolete typedefs, superseded by check-obsolete-constructs.py.
5425 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5426 as a special test. Update commentary.
5427 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5428 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5429 Update commentary.
5430 * posix/sys/types.h (__u_intN_t): Remove.
5431 (u_int8_t): Typedef using __uint8_t.
5432 (u_int16_t): Typedef using __uint16_t.
5433 (u_int32_t): Typedef using __uint32_t.
5434 (u_int64_t): Typedef using __uint64_t.
5435
5436 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5437
5438 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5439 call _dl_procinfo.
5440 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5441 Ignore types other than AT_HWCAP.
5442 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5443 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5444 Likewise.
5445 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5446 in the case of falling back to generic output mechanism.
5447 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5448 Likewise.
5449
5450 2019-03-12 Florian Weimer <fweimer@redhat.com>
5451
5452 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5453
5454 2019-03-12 Florian Weimer <fweimer@redhat.com>
5455
5456 [BZ #24047]
5457 resolv: Enable full ICMP errors for UDP DNS sockets
5458 * resolv/res_enable_icmp.c: New file.
5459 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5460 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5461 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5462 socket.
5463
5464 2019-03-11 Mao Han <han_mao@c-sky.com>
5465
5466 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5467 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5468
5469 2019-03-11 Mao Han <han_mao@c-sky.com>
5470
5471 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5472 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5473 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5474
5475 2019-03-11 Mao Han <han_mao@c-sky.com>
5476
5477 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5478 directly.
5479 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5480 definition.
5481
5482 2019-03-11 Mao Han <han_mao@c-sky.com>
5483
5484 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5485 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5486 in mcontext_t
5487
5488 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5489
5490 [BZ #24307]
5491 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5492 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5493 Unicode 12.0.0.
5494 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5495 * localedata/unicode-gen/PropList.txt: Likewise.
5496 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5497 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5498 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5499 * localedata/charmaps/UTF-8: Regenerate.
5500 * localedata/locales/i18n_ctype: Likewise.
5501 * localedata/locales/tr_TR: Likewise.
5502 * localedata/locales/translit_circle: Likewise.
5503 * localedata/locales/translit_cjk_compat: Likewise.
5504 * localedata/locales/translit_combining: Likewise.
5505 * localedata/locales/translit_compat: Likewise.
5506 * localedata/locales/translit_font: Likewise.
5507 * localedata/locales/translit_fraction: Likewise.
5508
5509 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5510
5511 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5512 than after operators.
5513 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5514 (setitimer_locked): Likewise.
5515 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5516 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5517 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5518 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5519 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5520 (PPC_CPU_SUPPORTED): Likewise.
5521 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5522 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5523 (stat_overflow): Likewise.
5524 (statfs_overflow): Likewise.
5525 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5526 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5527 (eq_ttyname_r): Likewise.
5528 (run_chroot_tests): Likewise.
5529
5530 2019-03-07 Florian Weimer <fweimer@redhat.com>
5531
5532 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5533 header check.
5534
5535 2019-03-07 Martin Liska <mliska@suse.cz>
5536
5537 * math/Makefile: Change location where math-vector-fortran.h is
5538 installed.
5539 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5540 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5541 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5542 * scripts/check-installed-headers.sh: Skip Fortran header files.
5543 * scripts/check-wrapper-headers.py: Likewise.
5544
5545 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5546
5547 * nptl/nptl-init.c (__have_futex_clock_realtime,
5548 __have_futex_clock_realtime): Remove definition.
5549 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5550 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5551 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5552 __ASSUME_FUTEX_CLOCK_REALTIME support.
5553 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5554 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5555 * sysdeps/unix/sysv/linux/kernel-features.h
5556 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5557 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5558 Adjust comment.
5559
5560 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5561
5562 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5563 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5564 __GI___wcscpy and wcscpy.
5565
5566 2019-03-04 Florian Weimer <fweimer@redhat.com>
5567
5568 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5569 declaration.
5570 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5571 defined.
5572
5573 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5574
5575 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5576 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5577
5578 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5579
5580 [BZ #24162]
5581 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5582 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5583
5584 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5585
5586 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5587 tests.
5588 (do_test): Likewise.
5589 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5590 (do_test_call_varg): Likewise.
5591 (do_test_call_rarg): Likewise.
5592 * sysdeps/ieee754/ldbl-opt/Makefile
5593 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5594 tst-nldbl-error.
5595 ($(objpfx)tst-nldbl-warn.c): New rule.
5596 ($(objpfx)tst-nldbl-error.c): Likewise.
5597 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5598 New variables.
5599
5600 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5601
5602 [BZ #23984]
5603 * include/bits/error-ldbl.h: New file.
5604 * include/error.h: Include stdarg.h. Declare internal functions
5605 __error_internal and __error_at_line_internal.
5606 * misc/Makefile (headers): Add bits/error-ldbl.h.
5607 * misc/bits/error-ldbl.h: New file.
5608 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5609 avoid the inclusion of bits/error.h.
5610 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5611 and __nldbl_error_at_line.
5612 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5613 (__nldbl_error, __ndlbl_error_at_line): New functions.
5614 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5615 Redirect error and error_at_line.
5616 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5618 Likewise.
5619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5620 Likewise.
5621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5622 Likewise.
5623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5624 Likewise.
5625 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5626 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5627 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5628
5629 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5630
5631 [BZ #23984]
5632 * include/bits/err-ldbl.h: New file.
5633 * include/err.h: Add prototypes for the internal functions:
5634 __vwarnx_internal and __vwarn_internal.
5635 * misc/Makefile (headers): Add bits/err-ldbl.h.
5636 * misc/bits/err-ldbl.h: New file.
5637 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5638 defined, i.e.: when -mlong-double-64 is in use.
5639 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5640 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5641 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5642 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5643 (VA_CALL): New macro.
5644 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5645 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5646 functions.
5647 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5648 declare prototypes for the new functions.
5649 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5651 Likewise.
5652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5653 Likewise.
5654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5655 Likewise.
5656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5657 Likewise.
5658 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5659 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5660 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5661
5662 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5663
5664 * sysdeps/ieee754/ldbl-opt/Makefile
5665 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5666 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5667 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5668
5669 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5670
5671 [BZ #23983]
5672 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5673 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5674 * argp/bits/argp-ldbl.h: New file.
5675 * include/argp.h: Include stdarg.h. Add prototypes for internal
5676 functions: __argp_error_internal and __argp_failure_internal.
5677 * include/bits/argp-ldbl.h: New file.
5678 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5679 __nldbl_argp_error and __nldbl_argp_failure.
5680 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5681 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5682 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5683 Redirect argp_error and argp_failure calls.
5684 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5686 Likewise.
5687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5688 Likewise.
5689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5690 Likewise.
5691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5692 Likewise.
5693 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5694 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5695 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5696
5697 2019-03-01 Florian Weimer <fweimer@redhat.com>
5698
5699 [BZ #20419]
5700 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5701 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5702 code, to avoid creating an ABI tag note.
5703 (modules-names-nobuild): Add tst-big-note-lib.
5704
5705 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5706
5707 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5708 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5709
5710 2019-03-01 Florian Weimer <fweimer@redhat.com>
5711
5712 [BZ #20271]
5713 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5714 (__netlink_assert_response): Add additional missing newlines.
5715
5716 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5717
5718 * sysdeps/powerpc/powerpc32/dl-machine.c
5719 (__elf_machine_fixup_plt): Use space before '('.
5720 (__process_machine_rela): Likewise.
5721 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5722 Likewise.
5723 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5724 Likewise.
5725 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5726 Likewise.
5727 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5728 (pattern): Likewise.
5729 (delta): Likewise.
5730 (check_result): Likewise.
5731 (check_excepts): Likewise.
5732 (check_op): Likewise.
5733 (fail_xr): Likewise.
5734 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5735 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5736 (SCNHSZ): Likewise.
5737 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5738 Likewise.
5739 (ARGS): Likewise.
5740 (__makecontext): Likewise.
5741 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5742 Likewise.
5743
5744 2019-02-28 Florian Weimer <fweimer@redhat.com>
5745
5746 [BZ #23937]
5747 elf: Add test with a local IFUNC resolver.
5748 * elf/ifuncmain9.c: New file.
5749 * elf/ifuncmain9pic.c: Likewise.
5750 * elf/ifuncmain9picstatic.c: Likewise.
5751 * elf/ifuncmain9pie.c: Likewise.
5752 * elf/ifuncmain9static.c: Likewise.
5753 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5754 ifuncmain9static, ifuncmain9picstatic.
5755 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5756 Add ifuncmain9, ifuncmain9pic.
5757 * elf/Makefile [multi-arch && build-shared && have-fpie]
5758 (ifunc-pie-tests): Add ifuncmain9pie.
5759 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5760 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5761 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5762
5763 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5764
5765 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5766 * configure: Regenerated.
5767 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5768
5769 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5770
5771 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5772 symbol as __wcspcy instead of wcscpy.
5773
5774 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5775
5776 * include/stdio.h (__renameat2): New hidden prototype.
5777 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5778 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5779 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5780 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5781
5782 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5783
5784 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5785 if statement.
5786
5787 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5788 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5789 * benchtests/bench-strlen.c (do_test): Likewise.
5790 (test_main): Likewise.
5791 * catgets/gencat.c (read_old): Likewise.
5792 * elf/cache.c (load_aux_cache): Likewise.
5793 * iconvdata/bug-iconv8.c (do_test): Likewise.
5794 * math/test-tgmath-ret.c (do_test): Likewise.
5795 * nis/nis_call.c (rec_dirsearch): Likewise.
5796 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5797 * nptl/tst-audit-threads.c (do_test): Likewise.
5798 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5799 * nss/nss_test1.c (init): Likewise.
5800 * nss/test-netdb.c (test_hosts): Likewise.
5801 * posix/execvpe.c (maybe_script_execute): Likewise.
5802 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5803 * stdio-common/tst-printf.c (do_test): Likewise.
5804 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5805 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5806 * stdlib/qsort.c (STACK_SIZE): Likewise.
5807 * stdlib/test-canon.c (do_test): Likewise.
5808 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5809 * string/memcmp.c (OPSIZ): Likewise.
5810 * string/test-strcpy.c (do_test): Likewise.
5811 (do_random_tests): Likewise.
5812 * string/test-strlen.c (do_test): Likewise.
5813 (test_main): Likewise.
5814 * string/test-strrchr.c (do_test): Likewise.
5815 (do_random_tests): Likewise.
5816 * string/tester.c (test_memrchr): Likewise.
5817 (test_memchr): Likewise.
5818 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5819 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5820 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5821 (read_encoded_value_with_base): Likewise.
5822 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5823 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5824 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5825 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5826 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5827 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5828 Likewise.
5829 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5830 Likewise.
5831 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5832 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5833 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5834 Likewise.
5835 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5836 Likewise.
5837 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5838 Likewise.
5839 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5840 Likewise.
5841 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5842 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5843 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5844 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5845 * time/test_time.c (main): Likewise.
5846
5847 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5848
5849 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5850
5851 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5852 wmemcpy.
5853
5854 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5855 wmemcpy.
5856
5857 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5858
5859 * include/wchar.h (__wcscpy): New prototype.
5860 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5861 (__wcscpy): Route internal symbol to generic implementation.
5862 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5863 Add internal __wcscpy alias.
5864 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5865 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5866 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5867 * wcsmbs/wcscpy.c (wcscpy): Add
5868 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5869 use generic implementation.
5870 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5871
5872 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5873 wmemset.
5874
5875 * sysdeps/m68k/wcpcpy.c: Remove file.
5876 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5877
5878 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5879
5880 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5881 than after operators.
5882 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5883 * sysdeps/mach/hurd/getcwd.c
5884 (__hurd_canonicalize_directory_name_internal): Likewise.
5885 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5886 (pthread_mutex_consistent): Likewise.
5887 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5888 Likewise.
5889 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5890 (__pthread_mutex_transfer_np): Likewise.
5891 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5892 (__pthread_mutex_unlock): Likewise.
5893 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5894 (mtx_owned_p): Likewise.
5895 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5896 (pthread_mutexattr_getrobust): Likewise.
5897 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5898 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5899 Likewise.
5900 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5901 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5902 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5903 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5904 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5905 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5906 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5907 Likewise.
5908 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5909 Likewise.
5910 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5911 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5912 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5913 (____longjmp_chk): Likewise.
5914 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5915 Likewise.
5916 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5917 (INTERNAL_SYSCALL): Likewise.
5918 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5919 (INTERNAL_SYSCALL): Likewise.
5920 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5921 (__get_clockfreq_via_cpuinfo): Likewise.
5922
5923 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5924 comments.
5925 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5926 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5927 (WORD_COPY_BWD): Likewise.
5928 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5929 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5930 Likewise.
5931 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5932 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5933 comment.
5934 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5935
5936 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5937
5938 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5939 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5940 rather than after operators.
5941 * elf/cache.c (print_cache): Likewise.
5942 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5943 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5944 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5945 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5946 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5947 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5948 (reauth_proc): Likewise.
5949 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5950 (__file_name_split_at): Likewise.
5951 (__directory_name_split_at): Likewise.
5952 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5953 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5954 * iconv/gconv_dl.c (do_print): Likewise.
5955 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5956 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5957 * locale/setlocale.c (new_composite_name): Likewise.
5958 * malloc/memusagestat.c (main): Likewise.
5959 * misc/fstab.c (fstab_convert): Likewise.
5960 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5961 Likewise.
5962 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5963 (getgrent_next_file): Likewise.
5964 (internal_getgrnam_r): Likewise.
5965 (internal_getgrgid_r): Likewise.
5966 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5967 Likewise.
5968 (internal_getgrent_r): Likewise.
5969 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5970 (getpwent_next_nss): Likewise.
5971 (getpwent_next_file): Likewise.
5972 (internal_getpwnam_r): Likewise.
5973 (internal_getpwuid_r): Likewise.
5974 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5975 Likewise.
5976 (getspent_next_nss): Likewise.
5977 (internal_getspnam_r): Likewise.
5978 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5979 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5980 * string/strchr.c (STRCHR): Likewise.
5981 * string/strchrnul.c (STRCHRNUL): Likewise.
5982 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5983 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5984 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5985 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5986 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5987 Likewise.
5988 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5989 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5990 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5991 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5992 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5993 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5994 (open_file): Likewise.
5995 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5996 (pthread_mutexattr_setprotocol): Likewise.
5997 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5998 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5999 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6000 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6001 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6002 Likewise.
6003 (elf_machine_rela): Likewise.
6004 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6005 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6006 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6007 * sysdeps/posix/rename.c (rename): Likewise.
6008 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6009 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6010 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6011 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6012 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6013 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6014 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6015 Likewise.
6016 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6017 Likewise.
6018 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6019 * time/tzfile.c (__tzfile_compute): Likewise.
6020
6021 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6022
6023 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6024 rather than after operators.
6025 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6026 * crypt/md5.c (md5_finish_ctx): Likewise.
6027 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6028 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6029 * elf/cache.c (load_aux_cache): Likewise.
6030 * elf/dl-load.c (open_verify): Likewise.
6031 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6032 * elf/readelflib.c (process_elf_file): Likewise.
6033 * elf/rtld.c (dl_main): Likewise.
6034 * elf/sprof.c (generate_call_graph): Likewise.
6035 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6036 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6037 * hurd/dtable.c (reauth_dtable): Likewise.
6038 * hurd/getdport.c (__getdport): Likewise.
6039 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6040 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6041 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6042 Likewise.
6043 * hurd/hurdioctl.c (fioctl): Likewise.
6044 * hurd/hurdselect.c (_hurd_select): Likewise.
6045 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6046 (STOPSIGS): Likewise.
6047 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6048 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6049 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6050 * hurd/msgportdemux.c (msgport_server): Likewise.
6051 * hurd/setauth.c (_hurd_setauth): Likewise.
6052 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6053 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6054 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6055 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6056 * login/tst-utmp.c (do_check): Likewise.
6057 (simulate_login): Likewise.
6058 * mach/lowlevellock.h (lll_lock): Likewise.
6059 (lll_trylock): Likewise.
6060 * math/test-fenv.c (ALL_EXC): Likewise.
6061 * math/test-fenvinline.c (ALL_EXC): Likewise.
6062 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6063 * nis/nis_call.c (__do_niscall3): Likewise.
6064 * nis/nis_callback.c (cb_prog_1): Likewise.
6065 * nis/nis_defaults.c (searchaccess): Likewise.
6066 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6067 * nis/nis_ismember.c (internal_ismember): Likewise.
6068 * nis/nis_local_names.c (nis_local_principal): Likewise.
6069 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6070 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6071 Likewise.
6072 * nis/ypclnt.c (yp_match): Likewise.
6073 (yp_first): Likewise.
6074 (yp_next): Likewise.
6075 (yp_master): Likewise.
6076 (yp_order): Likewise.
6077 * nscd/hstcache.c (cache_addhst): Likewise.
6078 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6079 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6080 (internal_getpwuid_r): Likewise.
6081 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6082 * posix/glob.h (__GLOB_FLAGS): Likewise.
6083 * posix/regcomp.c (peek_token): Likewise.
6084 (peek_token_bracket): Likewise.
6085 (parse_expression): Likewise.
6086 * posix/regexec.c (sift_states_iter_mb): Likewise.
6087 (check_node_accept_bytes): Likewise.
6088 * posix/tst-spawn3.c (do_test): Likewise.
6089 * posix/wordexp-test.c (testit): Likewise.
6090 * posix/wordexp.c (parse_tilde): Likewise.
6091 (exec_comm): Likewise.
6092 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6093 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6094 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6095 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6096 * stdio-common/tst-fileno.c (do_test): Likewise.
6097 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6098 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6099 * stdlib/strtod_l.c (round_and_return): Likewise.
6100 (____STRTOF_INTERNAL): Likewise.
6101 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6102 * string/strcspn.c (STRCSPN): Likewise.
6103 * string/test-memmem.c (simple_memmem): Likewise.
6104 * termios/tcsetattr.c (tcsetattr): Likewise.
6105 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6106 * time/asctime.c (asctime_internal): Likewise.
6107 * time/strptime_l.c (__strptime_internal): Likewise.
6108 * time/sys/time.h (timercmp): Likewise.
6109 * time/tzfile.c (__tzfile_compute): Likewise.
6110
6111 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6112
6113 [BZ #21915]
6114 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6115
6116 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6117
6118 * argp/argp-help.c (__argp_error_internal): New function,
6119 renamed from __argp_error, but that takes a 'mode_flags'
6120 parameter to control the format of long double parameters.
6121 (__argp_error): Converted into a call __argp_error_internal.
6122 (__argp_failure_internal): New function, renamed from
6123 __argp_failure, but that takes a 'mode_flags' parameter.
6124 (__argp_failure): Converted into a call __argp_failure_internal.
6125 * misc/err.c (__vwarnx_internal): New function, renamed from
6126 vwarnx, but that takes a 'mode_flags' parameter.
6127 (vwarnx): Converted into a call to __vwarnx_internal.
6128 (__vwarn_internal): New function, renamed from vwarn, but that
6129 takes a 'mode_flags' parameter.
6130 (vwarn): Converted into a call to __vwarn_internal.
6131 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6132 call to __vfxprintf with 'mode_flags'.
6133 (__error_internal): New function, renamed from error, but that
6134 takes a 'mode_flags' parameter.
6135 (error): Converted into a call to __error_internal.
6136 (__error_at_line_internal): New function, renamed from
6137 error_at_line, but that takes a 'mode_flags' parameter.
6138 (error_at_line): Converted into a call to
6139 __error_at_line_internal.
6140 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6141 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6142 Likewise.
6143
6144 2019-02-20 Martin Liska <mliska@suse.cz>
6145
6146 * math/Makefile: Install math-vector-fortran.h.
6147 * bits/math-vector-fortran.h: New file.
6148 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6149
6150 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6151
6152 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6153 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6154
6155 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6156
6157 * nptl/pthread_mutex_trylock.c: Fix comment.
6158
6159 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6160
6161 * nptl/pthread_tryjoin.c: Fix comment.
6162
6163 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6164
6165 [BZ #24231]
6166 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6167 after R_SPARC_H34 case.
6168
6169 2019-02-18 Florian Weimer <fweimer@redhat.com>
6170
6171 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6172 (getanswer): Do not call Dprintf.
6173 (res_gethostbyname2_context): Likewise.
6174 (res_gethostbyaddr_context): Likewise.
6175
6176 2019-02-18 Florian Weimer <fweimer@redhat.com>
6177
6178 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6179 declaration.
6180 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6181 Remove definitions.
6182 * libio/stdfiles.c: Update comment.
6183 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6184 set _IO_stdin, _IO_stdout, _IO_stderr.
6185 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6186 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6187 inline function.
6188 (_IO_deallocate_file): New inline function.
6189 * libio/iolibio.h (_IO_vprintf): Remove definition.
6190 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6191 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6192 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6193 _IO_legacy_file.
6194 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6195 __builtin_expect. Use _IO_legacy_file.
6196
6197 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6198
6199 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6200 Initialize ctid with a known value and remove update of ctid
6201 after clone.
6202 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6203 as assumed current value of ctid_ptr.
6204
6205 2019-02-16 Florian Weimer <fweimer@redhat.com>
6206
6207 Check that non-sysdeps headers have wrapper headers.
6208 * scripts/check-wrapper-headers.py: New file.
6209 * Makefile (tests-special): Add check-wrapper-headers.out.
6210 (check-wrapper-headers.out): New target.
6211 * Rules (tests-special): Add check-wrapper-headers.out.
6212 (check-wrapper-headers.out): New target.
6213
6214 2019-02-16 Florian Weimer <fweimer@redhat.com>
6215
6216 Add missing header wrappers under include/.
6217 * include/ar.h: New file.
6218 * include/bits/mqueue2.h: Likewise.
6219 * include/bits/stdio.h: Likewise.
6220 * include/bits/stdio2.h: Likewise.
6221 * include/fstab.h: Likewise.
6222 * include/fts.h: Likewise.
6223 * include/lastlog.h: Likewise.
6224 * include/netinet/icmp6.h: Likewise.
6225 * include/netinet/igmp.h: Likewise.
6226 * include/netinet/ip6.h: Likewise.
6227 * include/re_comp.h: Likewise.
6228 * include/regexp.h: Likewise.
6229 * include/rpcsvc/bootparam.h: Likewise.
6230 * include/rpcsvc/yp_prot.h: Likewise.
6231 * include/sys/random.h: Likewise.
6232 * include/sys/stropts.h: Likewise.
6233 * include/sys/ttychars.h: Likewise.
6234 * include/sys/vfs.h: Likewise.
6235 * include/wait.h: Likewise.
6236
6237 2019-02-16 Florian Weimer <fweimer@redhat.com>
6238
6239 * nptl_db/proc_service.h: Move to ...
6240 * sysdeps/nptl/proc_service.h: ... here.
6241 * nptl_db/thread_db.h: Move to ...
6242 * sysdeps/nptl/thread_db.h: ... here.
6243 * nptl/descr.h: Include <thread_db.h>.
6244
6245 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6246
6247 * io/Makefile (tests): Add tst-lockf.
6248 * io/lockf.c (lockf): Use __fcntl and only define for
6249 !__OFF_T_MATCHES_OFF64_T.
6250 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6251 __OFF_T_MATCHES_OFF64_T case.
6252 * io/tst-lockf.c: New file.
6253 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6254 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6255 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6256 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6257 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6259 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6260 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6261 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6262
6263 2019-02-15 Florian Weimer <fweimer@redhat.com>
6264
6265 [BZ #24211]
6266 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6267 pd->result after the thread descriptor has been freed.
6268
6269 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6270
6271 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6272 from function return type.
6273
6274 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6275
6276 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6277
6278 * scripts/test_printers_common.py: Set TERM to a known harmless
6279 value.
6280
6281 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6282
6283 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6284 (xdr_u_int): Likewise.
6285 (xdr_enum): Likewise.
6286 (xdr_bytes): Reword fall-through comment.
6287 (xdr_string): Likewise.
6288
6289 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6290
6291 [BZ #2421]
6292 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6293 (tests): Add tst-join8 tst-join9.
6294 * nptl/lll_timedwait_tid.c: Remove file.
6295 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6296 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6297 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6298 * nptl/pthread_join_common.c (timedwait_tid): New function.
6299 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6300 is set.
6301 * nptl/tst-join5.c (thread_join): New function.
6302 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6303 check.
6304 * nptl/tst-join8.c: New file.
6305 * nptl/tst-join9.c: Likewise.
6306 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6307 lll_futex_timed_wait_cancel): Add generic macros.
6308 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6309 Remove definitions.
6310 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6311 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6312 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6313 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6314 Remove function.
6315 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6316 Likewise.
6317 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6318 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6319 (lll_futex_timed_wait_cancel): New macro.
6320
6321 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6322
6323 * benchtests/Makefile: Add malloc-simple benchmark.
6324 * benchtests/bench-malloc-simple.c: New benchmark.
6325
6326 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6327
6328 * benchtests/bench-memmove.c (do_one_test): Remove unused
6329 ORIG_SRC.
6330 (do_test): Adjust.
6331 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6332 ORIG_SRC.
6333 (do_test): Adjust.
6334
6335 2019-01-13 Jim Wilson <jimw@sifive.com>
6336
6337 [BZ #24040]
6338 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6339 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6340 (func): New.
6341 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6342 call func directly.
6343 * nptl/Makefile (tests): Add tst-unwind-thread.
6344 (CFLAGS-tst-unwind-thread.c): Define.
6345 * nptl/tst-unwind-thread.c: New file.
6346 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6347 as undefined.
6348
6349 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6350
6351 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6352 comment wording.
6353 * nis/nis_call.c (__do_niscall3): Likewise.
6354
6355 * catgets/gencat.c (normalize_line): Use braces around empty
6356 'else' body.
6357 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6358 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6359 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6360 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6361 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6362 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6363 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6364 definition.
6365
6366 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6367 execlp returns.
6368
6369 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6370
6371 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6372 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6373 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6374 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6375 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6376 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6377 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6378 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6379 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6380 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6381 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6382 * benchtests/bench-bcopy.c: Delete file.
6383 * benchtests/bench-bzero.c: Likewise.
6384 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6385 (simple_memccpy): Remove.
6386 (generic_memccpy): Add function.
6387 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6388 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6389 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6390 (generic_mempcpy): Add new function.
6391 * benchtests/bench-memset.c (simple_bzero): Remove.
6392 (builtin_bzero): Remove.
6393 (builtin_memset): Remove.
6394 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6395 (generic_rawmemchr): Add new function.
6396
6397 2019-02-12 Florian Weimer <fweimer@redhat.com>
6398
6399 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6400
6401 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6402
6403 [BZ #24122]
6404 * elf/Makefile (tests): Add tst-audit13.
6405 (modules-names): Add tst-audit13mod1.
6406 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6407 rule.
6408 * elf/tst-audit13.c: New file.
6409 * elf/tst-audit13mod1.c: Likewise.
6410
6411 2019-02-12 Florian Weimer <fweimer@redhat.com>
6412
6413 [BZ #24122]
6414 * elf/rtld.c (unload_audit_module): New function.
6415 (report_audit_module_load_error): Likewise.
6416 (load_audit_module): Likewise. Extracted from dl_main. Call
6417 _dl_close if the laversion symbol cannot be found. Use early
6418 returns for error handling. Add malloc error check. Check for a
6419 zero return value from la_version. Remove spurious comment about
6420 static TLS initialization. Remove useless casts.
6421 (notify_audit_modules_of_loaded_object): New function. Extracted
6422 from dl_main.
6423 (load_audit_module): Likewise.
6424 (dl_main): Call load_audit_modules.
6425
6426 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6427
6428 * elf/dl-exception.c (_dl_exception_create_format): Add
6429 fall-through comments.
6430 * elf/ldconfig.c (parse_conf_include): Likewise.
6431 * elf/rtld.c (print_statistics): Likewise.
6432 * locale/programs/charmap.c (parse_charmap): Likewise.
6433 * misc/mntent_r.c (__getmntent_r): Likewise.
6434 * posix/wordexp.c (parse_arith): Likewise.
6435 (parse_backtick): Likewise.
6436 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6437 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6438 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6439
6440 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6441
6442 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6443 Use float instead of double.
6444
6445 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6446
6447 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6448
6449 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6450
6451 * sysdeps/powerpc/bits/mathinline.h: Remove.
6452
6453 2019-02-08 Florian Weimer <fweimer@redhat.com>
6454
6455 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6456 * math/bits/math-finite.h: Move to ...
6457 * bits/math-finite.h: ... here.
6458
6459 2019-02-08 Florian Weimer <fweimer@redhat.com>
6460
6461 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6462 * bits/unistd_ext.h: here.
6463
6464 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6465
6466 [BZ #21915]
6467 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6468 * nss/tst-nss-files-hosts-long.c: New file.
6469 * nss/tst-nss-files-hosts-long.root: New directory.
6470 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6471 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6472
6473 2019-02-08 Florian Weimer <fweimer@redhat.com>
6474
6475 * include/bits/unistd_ext.h: Remove file.
6476 * posix/bits/unistd_ext.h: Move to ...
6477 * sysdeps/generic/bits/unistd_ext.h: ... here.
6478
6479 2019-02-08 Florian Weimer <fweimer@redhat.com>
6480
6481 * include/bits/unistd_ext.h: New file.
6482
6483 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6484
6485 * time/tst-strftime2.c: Use array_length macros instead of magic
6486 numbers.
6487
6488 2019-02-08 Florian Weimer <fweimer@redhat.com>
6489
6490 [BZ #24161]
6491 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6492 argument.
6493 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6494 locking if the new do_locking argument is true.
6495 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6496 __run_fork_handlers.
6497
6498 2019-02-08 Florian Weimer <fweimer@redhat.com>
6499
6500 [BZ #6399]
6501 Linux: Add gettid system call wrapper.
6502 * posix/Makefile (headers): Add bits/unistd_ext.h.
6503 * posix/bits/unistd_ext.h: New file.
6504 * posix/unistd.h: Include it.
6505 * manual/process.texi (Process Identification): Document gettid.
6506 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6507 tst-gettid, tst-gettid-kill.
6508 (tst-gettid): Link with $(shared-thread-library).
6509 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6510 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6511 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6512 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6513 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6514 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6515 Add gettid.
6516 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6517 Likewise.
6518 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6519 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6520 Likewise.
6521 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6522 Likewise.
6523 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6524 Likewise.
6525 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6526 Likewise.
6527 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6528 Likewise.
6529 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6530 Likewise.
6531 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6532 Likewise.
6533 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6534 (GLIBC_2.30): Likewise.
6535 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6536 (GLIBC_2.30): Likewise.
6537 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6538 (GLIBC_2.30): Likewise.
6539 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6540 (GLIBC_2.30): Likewise.
6541 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6542 Likewise.
6543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6544 (GLIBC_2.30): Likewise.
6545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6546 (GLIBC_2.30): Likewise.
6547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6548 (GLIBC_2.30): Likewise.
6549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6550 (GLIBC_2.30): Likewise.
6551 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6552 Likewise.
6553 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6554 Likewise.
6555 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6556 Likewise.
6557 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6558 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6559 Likewise.
6560 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6561 Likewise.
6562 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6563 Likewise.
6564 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6565 Likewise.
6566 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6567
6568 2019-02-08 Florian Weimer <fweimer@redhat.com>
6569
6570 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6571 compatibility symbols.
6572
6573 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6574
6575 [BZ #24180]
6576 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6577 Add compiler barriers and comments.
6578
6579 2019-02-07 Florian Weimer <fweimer@redhat.com>
6580
6581 * include/array_length.h (array_length): Do not use a statement
6582 expression and _Static_assert, so that array_length can be used at
6583 file scope and as a constant expression.
6584
6585 2019-02-07 Florian Weimer <fweimer@redhat.com>
6586
6587 * support/xdlfcn.h (xdlmopen): Declare.
6588 * support/xdlmopen.c: New file.
6589 * support/Makefile (libsupport-routines): Add xdlmopen.
6590
6591 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6592
6593 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6594 before return type, without separate inline.
6595 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6596 * elf/dl-tunables.h (tunable_is_name): Likewise.
6597 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6598 (do_set_top_pad): Likewise.
6599 (do_set_mmap_threshold): Likewise.
6600 (do_set_mmaps_max): Likewise.
6601 (do_set_mallopt_check): Likewise.
6602 (do_set_perturb_byte): Likewise.
6603 (do_set_arena_test): Likewise.
6604 (do_set_arena_max): Likewise.
6605 (do_set_tcache_max): Likewise.
6606 (do_set_tcache_count): Likewise.
6607 (do_set_tcache_unsorted_limit): Likewise.
6608 * nis/nis_subr.c (count_dots): Likewise.
6609 * nptl/allocatestack.c (advise_stack_range): Likewise.
6610 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6611 (do_sin): Likewise.
6612 (reduce_sincos): Likewise.
6613 (do_sincos): Likewise.
6614 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6615 (do_set_elision_enable): Likewise.
6616 (TUNABLE_CALLBACK_FNDECL): Likewise.
6617
6618 2019-02-06 Florian Weimer <fweimer@redhat.com>
6619
6620 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6621 (xdlsym): Use dlerror to detect a NULL symbol.
6622
6623 2019-02-06 Florian Weimer <fweimer@redhat.com>
6624
6625 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6626 <stap-probe.h>.
6627 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6628
6629 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6630
6631 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6632
6633 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6634
6635 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6636 __wmemcmp and weak alias to wmemcmp.
6637
6638 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6639
6640 [BZ #23403]
6641 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6642 TLS_TCB_AT_TP tls variant.
6643 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6644 Add alignment checks.
6645 * support/Makefile (libsupport-routines): Add xposix_memalign and
6646 xpthread_setstack.
6647 * support/support.h: Add xposix_memalign.
6648 * support/xthread.h: Add xpthread_attr_setstack.
6649 * support/xposix_memalign.c: New File.
6650 * support/xpthread_attr_setstack.c: Likewise.
6651
6652 2019-02-05 Florian Weimer <fweimer@redhat.com>
6653
6654 [BZ #24164]
6655 arm: Use "nr" constraint for Systemtap probes, to avoid the
6656 compiler using memory operands for constants, due to the "o"
6657 alternative in the default "nor" constraint.
6658 * include/stap-probe.h [USE_STAP_PROBE]: Include
6659 <stap-probe-machine.h>
6660 * sysdeps/generic/stap-probe-machine.h: New file.
6661 * sysdeps/arm/stap-probe-machine.h: Likewise.
6662
6663 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6664
6665 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6666 with 0, not tcache->entries[tc_idx].
6667
6668 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6669 once.
6670
6671 2019-02-04 Andreas Schwab <schwab@suse.de>
6672
6673 [BZ #16976]
6674 [BZ #17396]
6675 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6676 looking up collating elements match against (wide) character
6677 sequence instead of name. Correct alignment adjustment.
6678 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6679 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6680 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6681 (LOCALES): Add cs_CZ.ISO-8859-2.
6682 * posix/tst-fnmatch4.c: New file.
6683 * posix/tst-fnmatch5.c: New file.
6684 * include/wchar.h (__wmemcmp): Declare.
6685 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6686 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6687 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6688 * sysdeps/s390/wmemcmp.c: Likewise.
6689
6690 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6691
6692 [BZ #24155]
6693 CVE-2019-7309
6694 * NEWS: Updated for CVE-2019-7309.
6695 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6696 upper 32 bits of RDX register for x32. Use unsigned Jcc
6697 instructions, instead of signed.
6698 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6699 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6700
6701 2019-02-04 Florian Weimer <fweimer@redhat.com>
6702
6703 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6704 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6705 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6706 Likewise.
6707 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6708 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6709 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6710 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6711 Likewise.
6712 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6713 Likewise.
6714 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6715 Likewise.
6716 (posix_spawn_file_actions_addopen): Likewise.
6717 (posix_spawn_file_actions_addclose): Likewise.
6718 (posix_spawn_file_actions_adddup2): Likewise.
6719 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6720 qualifiers.
6721 (posix_spawn_file_actions_addfchdir_np): Likewise.
6722
6723 2019-02-04 David Newall <glibc@davidnewall.com>
6724
6725 elf: Implement --preload option for the dynamic linker.
6726 * elf/rtld.c (preloadarg): New variable.
6727 (handle_preload_list): Pass through “where” argument to
6728 do_preload.
6729 (dl_main): Handle "--preload" and add second call to
6730 handle_preload_list.
6731 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6732 (tst-rtld-preload-OBJS): Set variable.
6733 (tst-rtld-preload.out): New target.
6734 * elf/tst-rtld-preload.sh: New file.
6735
6736 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6737
6738 * Makefile (testrun.sh): Exit in case of incorrect argument.
6739
6740 2019-02-04 Florian Weimer <fweimer@redhat.com>
6741
6742 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6743 alignment gaps.
6744
6745 2019-02-03 Florian Weimer <fweimer@redhat.com>
6746
6747 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6748 implicit overflow checks.
6749
6750 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6751
6752 * stdlib/isomac.c: Include <unistd.h>.
6753
6754 2019-02-03 Florian Weimer <fweimer@redhat.com>
6755
6756 * include/time.h (__tzfile_default): Use int, not long int, for
6757 the GMT offsets.
6758 * time/tzfile.c (struct ttinfo): Change type of the offset member
6759 to int.
6760 (__tzfile_read): Remove useless cast.
6761 (__tzfile_default): Adjust prototype.
6762 * time/tzset.c (tz_rule): Change type of the offset member to int.
6763 (parse_offset): Change the type of the sign variable to int.
6764
6765 2019-02-03 Florian Weimer <fweimer@redhat.com>
6766
6767 [BZ #24153]
6768 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6769 * libio/getchar.c (getchar): Likewise.
6770 * libio/getchar_u.c (getchar_unlocked): Likewise.
6771 * libio/getwchar.c (getwchar): Likewise.
6772 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6773 * libio/iogets.c (_IO_gets): Likewise.
6774 * libio/vscanf.c (_IO_vscanf): Likewise.
6775 * libio/vwscanf.c (__vwscanf): Likewise.
6776 * libio/tst-bz24153.c: New file.
6777 * libio/Makefile (tests): Add it.
6778
6779 2019-02-02 Florian Weimer <fweimer@redhat.com>
6780
6781 [BZ #14829]
6782 * manual/resource.texi (Basic Scheduling Functions): Add
6783 portability note. Change process to task throughout the section.
6784 Remove incorrect comment about sched_yield as it affects
6785 tasks/threads, not entire processes.
6786 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6787 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6788
6789 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6790
6791 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6792 * configure: Regenerated.
6793 * manual/install.texi (Tools for Compilation): Update minimum GCC
6794 version.
6795 * INSTALL: Regenerated.
6796
6797 2019-02-01 Florian Weimer <fweimer@redhat.com>
6798
6799 * support/support_test_compare_string.c
6800 (support_test_compare_string): Use "string" in error message.
6801 * support/tst-test_compare_string.c (do_test): Adjust.
6802
6803 2019-02-01 Florian Weimer <fweimer@redhat.com>
6804
6805 * support/support_format_address_family.c
6806 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6807
6808 2019-02-01 Florian Weimer <fweimer@redhat.com>
6809
6810 * manual/socket.texi (Internet Address Formats): Clarify the byte
6811 order of struct sockaddr_in, struct sockaddr_in6. Document
6812 sin6_flowinfo and sin6_scope_id.
6813
6814 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6815
6816 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6817 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6818 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6819 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6820 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6821 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6822
6823 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6824
6825 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6826 [!MEMCHR](MEMCHR): Set to __memchr.
6827 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6828 Add memchr_generic and memchr_nosimd.
6829 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6830 (__libc_ifunc_impl_list): Add memchr ifuncs.
6831 * sysdeps/aarch64/multiarch/memchr.c: New file.
6832 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6833 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6834
6835 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6836
6837 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6838 Add memset_emag.
6839 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6840 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6841 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6842 Add IS_EMAG check for ifunc dispatch.
6843 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6844 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6845
6846 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6847
6848 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6849 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6850 Add emag.
6851 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6852 New macro.
6853
6854 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6855
6856 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6857
6858 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6859
6860 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6861 syscall-template file.
6862
6863 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6864 Torvald Riegel <triegel@redhat.com>
6865 Rik Prohaska <prohaska7@gmail.com>
6866
6867 [BZ# 23844]
6868 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6869 tst-rwlock-trywrlock-stall.
6870 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6871 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6872 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6873 Set __wrphase_fute to 1 only if we started the write phase.
6874 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6875 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6876 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6877 * support/xpthread_rwlock_destroy.c: New file.
6878 * support/xthread.h: Declare xpthread_rwlock_destroy.
6879
6880 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6881
6882 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6883 version to 4.0.2.
6884
6885 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6886
6887 [BZ #24051]
6888 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6889 * libio/fileops.c (_IO_new_file_underflow): Likewise
6890 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6891 * libio/putchar.c (putchar): Likewise.
6892 * libio/putchar_u.c (putchar_unlocked): Likewise.
6893 * libio/putwchar.c (putchar): Likewise.
6894 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6895 * libio/tst-bz24051.c: New test.
6896 * libio/Makefile (tests): Add tst-bz24051
6897
6898 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6899
6900 CVE-2019-9169
6901 regex: fix read overrun [BZ #24114]
6902 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6903 https://debbugs.gnu.org/34140
6904 * posix/regexec.c (proceed_next_node):
6905 Do not read past end of input buffer.
6906
6907 2019-01-31 Florian Weimer <fweimer@redhat.com>
6908
6909 [BZ #24059]
6910 * nss/nss_files/files-alias.c (get_next_alias): Handle
6911 continuation line without newline at the end.
6912 * nss/tst-nss-files-alias-truncated.c: New file.
6913 * nss/Makefile [$(build-shared)] (tests): Add
6914 tst-nss-files-alias-truncated.
6915 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6916 * support/namespace.h (struct support_chroot_configuration): Add
6917 aliases member.
6918 (struct support_chroot): Add path_aliases member.
6919 * support/support_chroot.c (support_chroot_create): Handle
6920 aliases.
6921 (support_chroot_free): Free path_aliases.
6922
6923 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6924
6925 * version.h (RELEASE): Set to "development".
6926 (VERSION): Set to "2.29.9000".
6927 * NEWS: Add section for 2.30.
6928
6929 * version.h (RELEASE): Set to "stable".
6930 (VERSION): Set to "2.29".
6931 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6932
6933 * NEWS: Add the list of bugs fixed in 2.29.
6934 * manual/contrib.texi: Update contributors list with some more
6935 names.
6936 * manual/install.texi: Update latest versions of packages
6937 tested.
6938 * INSTALL: Regenerated.
6939
6940 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6941
6942 * po/be.po: Update translations.
6943 * po/bg.po: Likewise.
6944 * po/ca.po: Likewise.
6945 * po/cs.po: Likewise.
6946 * po/da.po: Likewise.
6947 * po/de.po: Likewise.
6948 * po/el.po: Likewise.
6949 * po/eo.po: Likewise.
6950 * po/es.po: Likewise.
6951 * po/fi.po: Likewise.
6952 * po/fr.po: Likewise.
6953 * po/gl.po: Likewise.
6954 * po/hr.po: Likewise.
6955 * po/hu.po: Likewise.
6956 * po/ia.po: Likewise.
6957 * po/id.po: Likewise.
6958 * po/it.po: Likewise.
6959 * po/ja.po: Likewise.
6960 * po/ko.po: Likewise.
6961 * po/lt.po: Likewise.
6962 * po/nb.po: Likewise.
6963 * po/nl.po: Likewise.
6964 * po/pl.po: Likewise.
6965 * po/pt_BR.po: Likewise.
6966 * po/ru.po: Likewise.
6967 * po/rw.po: Likewise.
6968 * po/sk.po: Likewise.
6969 * po/sl.po: Likewise.
6970 * po/sv.po: Likewise.
6971 * po/tr.po: Likewise.
6972 * po/uk.po: Likewise.
6973 * po/vi.po: Likewise.
6974 * po/zh_CN.po: Likewise.
6975 * po/zh_TW.po: Likewise.
6976
6977 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6978
6979 [BZ #24130]
6980 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6981 of $f3 register on $y_is_neg path.
6982
6983 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6984
6985 [BZ #24110]
6986 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6987 sigaltstack.ss_flags.
6988
6989 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6990
6991 [BZ #23758]
6992 * manual/time.texi (strftime): Document "%Ey".
6993 * time/strftime_l.c (__strftime_internal): Set the default width
6994 padding with zero of "%Ey" to 2.
6995
6996 [BZ #24096]
6997 * manual/time.texi (strftime): Document "%EC" and "%EY".
6998 * time/Makefile (tests): Add tst-strftime2.
6999 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7000 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7001 override padding for "%Ey".
7002 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7003 "%Ey" in the subformat as if decorated with that flag.
7004 * time/tst-strftime2.c: New file.
7005
7006 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7007
7008 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7009 are not defined.
7010
7011 [BZ #24122]
7012 * elf/Makefile (tests): Add tst-audit13.
7013 (modules-names): Add tst-audit13mod1.
7014 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7015 rule.
7016 * elf/rtld.c (dl_main): Handle invalid audit module version.
7017 * elf/tst-audit13.c: New file.
7018 * elf/tst-audit13mod1.c: Likewise.
7019
7020 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7021
7022 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7023 returned by __hurd_at_flags.
7024 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7025 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7026 directly instead of __hurd_file_name_lookup.
7027
7028 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7029
7030 * scripts/build-many-glibcs.py (Context.checkout): Default
7031 binutils version to 2.32 branch.
7032
7033 2019-01-21 Florian Weimer <fweimer@redhat.com>
7034
7035 [BZ #20018]
7036 CVE-2016-10739
7037 resolv: Reject trailing characters in host names
7038 * include/arpa/inet.h (__inet_aton_exact): Declare.
7039 (inet_aton): Remove hidden prototype. No longer used internally.
7040 * nscd/gai.c (__inet_aton): Do not define.
7041 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7042 * nss/digits_dots.c (__inet_aton): Likewise.
7043 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7044 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7045 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7046 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7047 (tst-resolv-trailing): Likewise.
7048 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7049 libc.
7050 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7051 Make static. Add endp parameter.
7052 (__inet_aton_exact): New function.
7053 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7054 (__inet_addr): Call inet_aton_end.
7055 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7056 not just IPv6. Call __inet_aton_exact.
7057 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7058 (tests): Make const. Add additional test cases with trailing
7059 characters.
7060 (do_test): Use array_length.
7061 * resolv/tst-inet_aton_exact.c: New file.
7062 * resolv/tst-resolv-trailing.c: Likewise.
7063 * resolv/tst-resolv-nondecimal.c: Likewise.
7064 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7065
7066 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7067
7068 [BZ# 24097]
7069 CVE-2019-6488
7070 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7071 Clear the upper 32 bits of RSI register.
7072 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7073 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7074 and tst-size_t-wcsnlen.
7075 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7076 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7077
7078 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7079
7080 [BZ# 24097]
7081 CVE-2019-6488
7082 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7083 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7084 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7085 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7086 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7087
7088 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7089
7090 [BZ# 24097]
7091 CVE-2019-6488
7092 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7093 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7094 * sysdeps/x86_64/strcmp.S: Likewise.
7095 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7096 tst-size_t-strncmp and tst-size_t-wcsncmp.
7097 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7098 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7099 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7100
7101 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7102
7103 [BZ# 24097]
7104 CVE-2019-6488
7105 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7106 RDX_LP for length. Clear the upper 32 bits of RDX register.
7107 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7108 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7109 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7110 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7111
7112 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7113
7114 [BZ# 24097]
7115 CVE-2019-6488
7116 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7117 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7118 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7119 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7120
7121 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7122
7123 [BZ# 24097]
7124 CVE-2019-6488
7125 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7126 length. Clear the upper 32 bits of RDX register.
7127 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7128 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7129 Likewise.
7130 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7131 Likewise.
7132 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7133 tst-size_t-wmemchr.
7134 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7135
7136 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7137
7138 [BZ# 24097]
7139 CVE-2019-6488
7140 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7141 length. Clear the upper 32 bits of RDX register.
7142 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7143 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7144 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7145 tst-size_t-wmemcmp.
7146 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7147 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7148
7149 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7150
7151 [BZ# 24097]
7152 CVE-2019-6488
7153 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7154 upper 32 bits of RDX register.
7155 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7156 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7157 tst-size_t-wmemchr.
7158 * sysdeps/x86_64/x32/test-size_t.h: New file.
7159 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7160 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7161
7162 2019-01-18 Florian Weimer <fweimer@redhat.com>
7163
7164 [BZ #24112]
7165 resolv: Do not send queries for non-host-names in nss_dns.
7166 * resolv/nss_dns/dns-host.c (check_name): New function.
7167 (_nss_dns_gethostbyname2_r): Use it.
7168 (_nss_dns_gethostbyname_r): Likewise.
7169 (_nss_dns_gethostbyname4_r): Likewise.
7170
7171 2019-01-21 Florian Weimer <fweimer@redhat.com>
7172
7173 * resolv/inet_addr.c: Reformat to GNU style.
7174 (__inet_addr, __inet_aton): Update comment.
7175
7176 2019-01-18 Florian Weimer <fweimer@redhat.com>
7177
7178 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7179 ("malloc: Use current (C11-style) atomics for fastbin access").
7180 This commit introduces a substantial performance regression on
7181 POWER and Aarch64.
7182 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7183 (REMOVE_FB): Define.
7184 (_int_malloc): Use it and reindent.
7185 (_int_free): Use CAS loop with
7186 catomic_compare_and_exchange_val_rel.
7187 (malloc_consolidate): Use atomic_exchange_acq.
7188
7189
7190 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7191
7192 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7193 -Wl,-z,now.
7194 (LDFLAGS-tst-minsigstksz-2): Likewise.
7195 (LDFLAGS-tst-minsigstksz-3): Likewise.
7196 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7197 (LDFLAGS-tst-minsigstksz-4): Likewise.
7198
7199 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7200
7201 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7202 than "alternate".
7203
7204 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7205
7206 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7207
7208 2019-01-16 Zack Weinberg <zackw@panix.com>
7209
7210 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7211 (xget_sigstack_location): New test support functions.
7212 * support/xsigstack.c: New file, implementing them.
7213 * support/tst-xsigstack.c: New test for them.
7214 * support/Makefile: Update.
7215
7216 * signal/tst-minsigstksz-1.c
7217 * signal/tst-minsigstksz-2.c
7218 * signal/tst-minsigstksz-3.c
7219 * signal/tst-minsigstksz-3a.c
7220 * signal/tst-minsigstksz-4.c: New tests.
7221 * signal/Makefile: Run them.
7222
7223 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7224
7225 * po/libc.pot: Regenerate.
7226
7227 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7228
7229 * math/libm-test-fma.inc (fma_test_data): Set
7230 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7231
7232 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7233
7234 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7235 (do_test): Changed __vector __int128_t to __vector unsigned int.
7236
7237 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7238
7239 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7240 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7241 stpcpy-avx2 and stpncpy-avx2.
7242 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7243 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7244 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7245 and __stpncpy_avx2.
7246 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7247 ifunc-strcpy.h}: rename header for a more generic name.
7248 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7249 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7250 AVX unaligned load is fast and vzeroupper is preferred.
7251 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7252 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7253 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7254 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7255 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7256 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7257
7258 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7259
7260 * argp/argp-help.c: Fix typo in comment.
7261 * misc/sys/cdefs.h: Likewise.
7262 * posix/regexec.c (sift_states_iter_mb): Likewise.
7263 * socket/sockatmark.c: Likewise.
7264 * socket/sys/socket.h: Likewise.
7265 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7266 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7267 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7268 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7269 * sysdeps/unix/sockatmark.c: Likewise.
7270 * time/strptime_l.c: Likewise.
7271
7272 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7273
7274 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7275 missing space after the cast of "_NL_CURRENT".
7276
7277 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7278
7279 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7280 ifdef to fix read of VSCR.
7281 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7282 tst-ucontext-ppc64-vscr.c to test list.
7283 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7284
7285 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7286
7287 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7288 fall-through.
7289
7290 2019-01-09 Jim Wilson <jimw@sifive.com>
7291
7292 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7293
7294 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7295
7296 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7297 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7298 __memcpy_falkor for ares.
7299 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7300 Add new define.
7301 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7302 Add ares cpu.
7303
7304 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7305
7306 [BZ #24066]
7307 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7308 4_FP_W_TYPEs are used for IEEE quad precision.
7309 * soft-fp/extendhftf2.c: Likewise.
7310 * soft-fp/extendsftf2.c: Likewise.
7311 * soft-fp/extendxftf2.c: Likewise.
7312 * soft-fp/trunctfdf2.c: Likewise.
7313 * soft-fp/trunctfhf2.c: Likewise.
7314 * soft-fp/trunctfsf2.c: Likewise.
7315 * soft-fp/trunctfxf2.c: Likewise.
7316 * sysdeps/alpha/ots_cvttx.c: Likewise.
7317 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7318 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7319 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7320 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7321 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7322 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7323 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7324 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7325 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7326 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7327 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7328 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7329 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7330 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7331 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7332 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7333 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7334
7335 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7336
7337 [BZ #24024]
7338 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7339 code with -fmath-errno.
7340 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7341 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7342 * string/test-strerror-errno.c: New file.
7343
7344 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7345
7346 [BZ #24046]
7347 * localedata/locales/en_US (date_fmt): Add, set to
7348 "%a %d %b %Y %r %Z".
7349
7350 2019-01-07 Florian Weimer <fweimer@redhat.com>
7351
7352 [BZ #24063]
7353 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7354 instead of @var{errno}.
7355 (Parsing of Integers): Likewise.
7356 (Parsing of Floats): Likewise.
7357 * manual/filesys.texi (Working with Directory Trees): Likewise.
7358 (Temporary Files): Likewise.
7359 * manual/job.texi (Terminal Access Functions): Likewise.
7360 * manual/llio.texi (Synchronizing I/O): Likewise.
7361 * manual/math.texi (SVID Random): Likewise.
7362 * manual/message.texi (The catgets Functions): Likewise.
7363 (Translation with gettext): Likewise.
7364 (Locating gettext catalog): Likewise.
7365 (Charset conversion in gettext): Likewise.
7366 * manual/nss.texi (NSS Module Function Internals): Likewise.
7367 * manual/search.texi (Hash Search Function): Likewise.
7368 * manual/setjmp.texi (System V contexts): Likewise.
7369 * manual/time.texi (Sleeping): Likewise.
7370 * manual/users.texi (Lookup User): Likewise.
7371 (Lookup Group): Likewise.
7372
7373 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7374
7375 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7376 fix typo.
7377
7378 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7379
7380 [BZ #19444]
7381 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7382 __builtin_unreachable for default case in switch.
7383 (__ieee754_yn): Likewise.
7384 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7385 (__ieee754_ynl): Likewise.
7386 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7387 (__ieee754_ynl): Likewise.
7388 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7389 (__ieee754_ynl): Likewise.
7390
7391 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7392
7393 * manual/maint.texi: Use @{ and @}.
7394
7395 2019-01-04 Florian Weimer <fweimer@redhat.com>
7396
7397 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7398 function.
7399 (do_in_chroot_1): Call it.
7400 (run_chroot_tests):
7401 Improve error reporting in case it is not possible to create a
7402 collision for the PTY name required by the test.
7403
7404 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7405
7406 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7407 lll_wait_tid with timeout.
7408 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7409 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7410 futex_reltimed_wait_cancelable for cancelabla mode.
7411 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7412 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7413 macros.
7414 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7415 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7416 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7417 SYSCALL_CANCEL_NCS): New macro.
7418 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7419 (lll_timedwait_tid): Remove macro.
7420 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7421 Likewise.
7422 (lll_timedwait_tid): Likewise.
7423 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7424 Likewise.
7425 (lll_timedwait_tid): Likewise.
7426 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7427 Likewise.
7428 (lll_timedwait_tid): Likewise.
7429 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7430 Use INTERNAL_SYSCALL_CANCEL.
7431 * sysdeps/unix/sysv/linux/futex-internal.h
7432 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7433 instead of __pthread_{enable,disable}_asynccancel.
7434 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7435 (lll_futex_wait_cancel): New macro.
7436
7437 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7438 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7439
7440 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7441 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7442
7443 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7444 in backtrace analysis.
7445 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7446 side-effects.
7447 (tf_send): Likewise.
7448
7449 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7450 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7451 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7452 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7453 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7454 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7455 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7456 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7457 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7458 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7459 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7460 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7461 Likewise.
7462 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7463 tst-cancel-wrappers.sh.
7464 (generated): Remove tst-cancel-wrappers.out.
7465 (tst-cancel-wrappers.out): Remove rule.
7466 * nptl/tst-cancel-wrappers.sh: Remove file.
7467
7468 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7469
7470 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7471 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7472 Update.
7473
7474 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7475
7476 [BZ #23640]
7477 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7478 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7479 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7480 close-on-exec reset for adddup2 file action.
7481 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7482
7483 2019-01-03 Zack Weinberg <zackw@panix.com>
7484
7485 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7486 parameter. Only use deprecated scanf when __USE_GNU is defined
7487 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7488 than 201103L, whichever is relevant for the language being compiled.
7489
7490 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7491 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7492 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7493 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7494 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7495
7496 * libio/iovsscanf.c
7497 * libio/fwscanf.c
7498 * libio/iovswscanf.c
7499 * libio/swscanf.c
7500 * libio/vscanf.c
7501 * libio/vwscanf.c
7502 * libio/wscanf.c
7503 * stdio-common/fscanf.c
7504 * stdio-common/scanf.c
7505 * stdio-common/vfscanf.c
7506 * stdio-common/vfwscanf.c
7507 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7508 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7509 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7510 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7511 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7512 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7513 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7514 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7515 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7516 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7517 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7518 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7519 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7520 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7521 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7522
7523 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7524 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7525 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7526 not sscanf.
7527 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7528 with a preprocessor macro.
7529
7530 * stdio-common/bug21.c, stdio-common/scanf14.c:
7531 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7532 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7533 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7534 to xscanf, xfscanf, xsscanf.
7535
7536 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7537 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7538 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7539 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7540 xfscanf, xsscanf.
7541 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7542 override feature selection macros or provide definitions of u_char etc.
7543 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7544 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7545 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7546 with -std=gnu89.
7547
7548 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7549
7550 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7551 bits/termios-misc.h.
7552 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7553 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7554 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7555 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7556 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7557 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7558
7559 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7560 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7561 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7562 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7563 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7564 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7565 termios-misc.h.
7566 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7567 (sysdep_headers): Add termios-misc.h.
7568
7569 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7570 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7571 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7572
7573 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7574 termios-tcflow.h.
7575 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7576 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7577 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7578 TCSAFLUSH): Move to termios-tcflow.h.
7579 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7580 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7581 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7582 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7583
7584 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7585 termios-c_lflag.h.
7586 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7587 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7588 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7589 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7590 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7591 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7592 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7593 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7594 Likewise.
7595 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7596 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7597 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7598 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7599
7600 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7601 termios-c_cflag.h.
7602 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7603 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7604 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7605 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7606 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7607 termios-c_cflag.h.
7608 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7609 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7610 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7611 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7612
7613 [BZ #23783]
7614 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7615 termios-baud.h.
7616 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7617 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7618 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7619 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7620 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7621 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7622 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7623 __MAX_BAUD): Move to termios-baud.h.
7624 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7625 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7626 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7627 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7628 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7629
7630 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7631 termios-c_oflag.h.
7632 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7633 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7634 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7635 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7636 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7637 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7638 termios-c_oflag.h.
7639 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7640 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7641 FFR1): Likewise.
7642 [USE_MISC] (XTABS): Likewise.
7643 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7644 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7645 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7646 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7647
7648 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7649 termios-c_iflag.h.
7650 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7651 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7652 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7653 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7654 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7655 IUTF8): Move to termios-c_iflag.h.
7656 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7657 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7658 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7659 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7660
7661 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7662 termios-cc.h.
7663 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7664 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7665 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7666 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7667 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7668 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7669 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7670 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7671 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7672 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7673 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7674 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7675
7676 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7677 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7678 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7679 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7680 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7681 termios-struct.h.
7682 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7683 termios-struct.h.
7684 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7685 Likewise.
7686 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7687 Likewise.
7688 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7689 Likewise.
7690 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7691 Likewise.
7692 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7693 _HAVE_C_OSPEED): Define.
7694 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7695 _HAVE_C_OSPEED): Likewise.
7696 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7697 _HAVE_C_OSPEED): Likewise.
7698 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7699 (cfsetospeed): Check for define value instead of existence.
7700 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7701 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7702 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7703 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7704 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7705
7706 [BZ #17783]
7707 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7708 Define.
7709 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7710 (TIOCSER_TEMT): Likewise.
7711 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7712 (TEOCSER_TEMT): Likewise.
7713
7714 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7715
7716 [BZ #24011]
7717 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7718
7719 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7720
7721 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7722
7723 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7724
7725 * sysdeps/htl/pt-barrierattr-setpshared.c
7726 (pthread_barrierattr_setpshared): Add stub warning.
7727 * sysdeps/htl/pt-condattr-setpshared.c
7728 (pthread_condattr_setpshared): Likewise.
7729 * sysdeps/htl/pt-mutexattr-setpshared.c
7730 (pthread_mutexattr_setpshared): Likewise.
7731 * sysdeps/htl/pt-rwlockattr-setpshared.c
7732 (pthread_rwlockattr_setpshared): Likewise.
7733 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7734 (pthread_mutexattr_setpshared): Likewise.
7735
7736 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7737
7738 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7739 constants to match with Linux 4.20.
7740
7741 * sysdeps/mips/mips32/libm-test-ulps: Update.
7742 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7743
7744 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7745
7746 [BZ #24034]
7747 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7748 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7749 than __typeof (...) for the a_ptr variable.
7750
7751 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7752
7753 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7754 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7755 * libio/Makefile (tests): Add tst-sprintf-ub and
7756 tst-sprintf-chk-ub.
7757 (CFLAGS-tst-sprintf-ub.c): New variable.
7758 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7759 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7760 destination buffer and check for overflows in fortified mode.
7761 * libio/libioP.h (PRINTF_CHK): New macro.
7762 * libio/tst-sprintf-chk-ub.c: New file.
7763 * libio/tst-sprintf-ub.c: Likewise.
7764
7765 2019-01-02 Florian Weimer <fweimer@redhat.com>
7766
7767 [BZ #24018]
7768 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7769 failure.
7770
7771 2019-01-02 Florian Weimer <fweimer@redhat.com>
7772
7773 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7774
7775 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7776
7777 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7778 macro.
7779
7780 * sysdeps/unix/sysv/linux/netpacket/packet.h
7781 (PACKET_IGNORE_OUTGOING): New macro.
7782
7783 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7784 macro.
7785
7786 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7787 version to 4.20.
7788 (riscv_flush_icache): New syscall.
7789
7790 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7791 trailing whitespace removed.
7792 * scripts/config.guess: Update to version 2019-01-01.
7793 * scripts/config.sub: Update to version 2019-01-01.
7794 * scripts/move-if-change: Update from gnulib.
7795
7796 * NEWS: Update copyright dates.
7797 * catgets/gencat.c (print_version): Likewise.
7798 * csu/version.c (banner): Likewise.
7799 * debug/catchsegv.sh: Likewise.
7800 * debug/pcprofiledump.c (print_version): Likewise.
7801 * debug/xtrace.sh (do_version): Likewise.
7802 * elf/ldconfig.c (print_version): Likewise.
7803 * elf/ldd.bash.in: Likewise.
7804 * elf/pldd.c (print_version): Likewise.
7805 * elf/sotruss.sh: Likewise.
7806 * elf/sprof.c (print_version): Likewise.
7807 * iconv/iconv_prog.c (print_version): Likewise.
7808 * iconv/iconvconfig.c (print_version): Likewise.
7809 * locale/programs/locale.c (print_version): Likewise.
7810 * locale/programs/localedef.c (print_version): Likewise.
7811 * login/programs/pt_chown.c (print_version): Likewise.
7812 * malloc/memusage.sh (do_version): Likewise.
7813 * malloc/memusagestat.c (print_version): Likewise.
7814 * malloc/mtrace.pl: Likewise.
7815 * manual/libc.texinfo: Likewise.
7816 * nptl/version.c (banner): Likewise.
7817 * nscd/nscd.c (print_version): Likewise.
7818 * nss/getent.c (print_version): Likewise.
7819 * nss/makedb.c (print_version): Likewise.
7820 * posix/getconf.c (main): Likewise.
7821 * scripts/test-installation.pl: Likewise.
7822 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7823
7824 * All files with FSF copyright notices: Update copyright dates
7825 using scripts/update-copyrights.
7826 * locale/programs/charmap-kw.h: Regenerated.
7827 * locale/programs/locfile-kw.h: Likewise.
7828
7829 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7830
7831 * timezone/zdump.c: Update from tzcode 2018i.
7832 * timezone/zic.c: Likewise.
7833
7834 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7835
7836 regex: improve Gnulib port to AIX
7837 From the glibc point of view, this removes duplicate macro
7838 definitions and is obviously safe.
7839 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7840 * posix/regex_internal.h:
7841 (__attribute__, __attribute_warn_unused_result__):
7842 Remove; already defined elsewhere.
7843
7844 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7845
7846 [BZ #24027]
7847 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7848 copying operation. (ncopies had the wrong type, resulting in an
7849 integer wraparound and too few elements being copied.)
7850
7851 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7852
7853 [BZ #24022]
7854 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7855 <asm/syscalls.h> exists with __has_include__ before including it.
7856
7857 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7858
7859 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7860 version to 4.20.
7861
7862 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7863
7864 * hurd/lookup-retry: Include <unistd.h>.
7865 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7866 Release it on return. Handle "pid" magical lookup retry.
7867
7868 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7869
7870 [BZ #10496]
7871 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7872 (t_fmt_ampm): Likewise.
7873 * localedata/locales/aa_ER (t_fmt): Likewise.
7874 (t_fmt_ampm): Likewise.
7875 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7876 (t_fmt_ampm): Likewise.
7877 * localedata/locales/aa_ET (t_fmt): Likewise.
7878 (t_fmt_ampm): Likewise.
7879 * localedata/locales/am_ET (t_fmt): Likewise.
7880 (t_fmt_ampm): Likewise.
7881 * localedata/locales/byn_ER (t_fmt): Likewise.
7882 (t_fmt_ampm): Likewise.
7883 * localedata/locales/om_ET (t_fmt): Likewise.
7884 (t_fmt_ampm): Likewise.
7885 * localedata/locales/sid_ET (t_fmt): Likewise.
7886 (t_fmt_ampm): Likewise.
7887 * localedata/locales/so_DJ (t_fmt): Likewise.
7888 (t_fmt_ampm): Likewise.
7889 * localedata/locales/so_ET (t_fmt): Likewise.
7890 (t_fmt_ampm): Likewise.
7891 * localedata/locales/so_SO (t_fmt): Likewise.
7892 (t_fmt_ampm): Likewise.
7893 * localedata/locales/ti_ER (t_fmt): Likewise.
7894 (t_fmt_ampm): Likewise.
7895 * localedata/locales/ti_ET (t_fmt): Likewise.
7896 (t_fmt_ampm): Likewise.
7897 * localedata/locales/tig_ER (t_fmt): Likewise.
7898 (t_fmt_ampm): Likewise.
7899 * localedata/locales/wal_ET (t_fmt): Likewise.
7900 (t_fmt_ampm): Likewise.
7901
7902 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7903 * localedata/locales/ar_IN (t_fmt): Likewise.
7904 * localedata/locales/bhb_IN (t_fmt): Likewise.
7905 * localedata/locales/bho_IN (t_fmt): Likewise.
7906 * localedata/locales/bi_VU (t_fmt): Likewise.
7907 * localedata/locales/bn_BD (t_fmt): Likewise.
7908 * localedata/locales/bn_IN (t_fmt): Likewise.
7909 * localedata/locales/brx_IN (t_fmt): Likewise.
7910 * localedata/locales/doi_IN (t_fmt): Likewise.
7911 * localedata/locales/en_HK (t_fmt): Likewise.
7912 (t_fmt_ampm): Likewise.
7913 * localedata/locales/en_IN (t_fmt): Likewise.
7914 * localedata/locales/en_PH (t_fmt): Likewise.
7915 * localedata/locales/gu_IN (t_fmt): Likewise.
7916 * localedata/locales/hi_IN (t_fmt): Likewise.
7917 * localedata/locales/hif_FJ (t_fmt): Likewise.
7918 * localedata/locales/hne_IN (t_fmt): Likewise.
7919 * localedata/locales/kn_IN (t_fmt): Likewise.
7920 * localedata/locales/kok_IN (t_fmt): Likewise.
7921 * localedata/locales/ks_IN (t_fmt): Likewise.
7922 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7923 * localedata/locales/mag_IN (t_fmt): Likewise.
7924 * localedata/locales/mai_IN (t_fmt): Likewise.
7925 * localedata/locales/mjw_IN (t_fmt): Likewise.
7926 * localedata/locales/ml_IN (t_fmt): Likewise.
7927 * localedata/locales/mni_IN (t_fmt): Likewise.
7928 * localedata/locales/mr_IN (t_fmt): Likewise.
7929 * localedata/locales/ms_MY (t_fmt): Likewise.
7930 * localedata/locales/pa_IN (t_fmt): Likewise.
7931 * localedata/locales/raj_IN (t_fmt): Likewise.
7932 * localedata/locales/sa_IN (t_fmt): Likewise.
7933 * localedata/locales/sat_IN (t_fmt): Likewise.
7934 * localedata/locales/sd_IN (t_fmt): Likewise.
7935 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7936 * localedata/locales/tcy_IN (t_fmt): Likewise.
7937 * localedata/locales/the_NP (t_fmt): Likewise.
7938 * localedata/locales/to_TO (t_fmt): Likewise.
7939 * localedata/locales/ur_IN (t_fmt): Likewise.
7940
7941 * localedata/locales/hif_FJ (d_t_fmt): Set to
7942 "%A %d %b %Y %I:%M:%S %p".
7943 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7944
7945 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7946 * localedata/locales/ar_BH (t_fmt): Likewise.
7947 * localedata/locales/ar_DZ (t_fmt): Likewise.
7948 * localedata/locales/ar_EG (t_fmt): Likewise.
7949 * localedata/locales/ar_IQ (t_fmt): Likewise.
7950 * localedata/locales/ar_JO (t_fmt): Likewise.
7951 * localedata/locales/ar_KW (t_fmt): Likewise.
7952 * localedata/locales/ar_LB (t_fmt): Likewise.
7953 * localedata/locales/ar_LY (t_fmt): Likewise.
7954 * localedata/locales/ar_OM (t_fmt): Likewise.
7955 * localedata/locales/ar_QA (t_fmt): Likewise.
7956 * localedata/locales/ar_SD (t_fmt): Likewise.
7957 * localedata/locales/ar_SS (t_fmt): Likewise.
7958 * localedata/locales/ar_SY (t_fmt): Likewise.
7959 * localedata/locales/ar_TN (t_fmt): Likewise.
7960 * localedata/locales/ar_YE (t_fmt): Likewise.
7961
7962 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7963 (t_fmt_ampm): Likewise.
7964 * localedata/locales/gez_ET (t_fmt): Likewise.
7965 (t_fmt_ampm): Likewise.
7966
7967 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7968 (t_fmt_ampm): Likewise.
7969 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7970
7971 * localedata/locales/zh_HK (t_fmt):
7972 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7973
7974 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7975 because this locale does not use the 12-hour clock.
7976 (t_fmt): Set to "%Z %H:%M:%S".
7977 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7978
7979 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7980 because this locale does not use the 12-hour clock.
7981 (t_fmt): Set to "%H:%M:%S %Z".
7982 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7983
7984 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7985 because this locale does not use the 12-hour clock.
7986 (t_fmt): Set to "%T".
7987 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7988 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7989
7990 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7991 because this locale does not use the 12-hour clock.
7992 (t_fmt): Set to "%H:%M:%S %Z".
7993 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7994
7995 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7996 because this locale does not use the 12-hour clock.
7997 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7998 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7999
8000 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
8001
8002 [BZ #10496]
8003 [BZ #23724]
8004 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8005 (t_fmt_ampm): Likewise.
8006 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8007 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8008 (d_fmt): Set to "%-d.%-m.%y".
8009
8010 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8011
8012 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8013 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8014 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8015 Likewise.
8016 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8017 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8018 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8019 function.
8020 * support/blob_repeat.c (check_mul_overflow_size_t,
8021 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8022
8023 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8024
8025 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8026
8027 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8028
8029 regex: simplify Gnulib port
8030 This simplifies the code, by removing stuff intended for porting
8031 to Gnulib but no longer needed there.
8032 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8033 uses of libc_hidden_def, weak_alias.
8034 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8035 _Restrict_ except for public-facing headers.
8036 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8037 Remove; already defined elsewhere.
8038 * posix/regex.c, posix/regex_internal.h:
8039 Use __GNUC_PREREQ instead of rolling our own.
8040 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8041
8042 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8043
8044 * benchtests/bench-strlen.c (generic_strlen): New function.
8045 (memchr_strlen): New function.
8046
8047 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8048
8049 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8050 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8051 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8052
8053 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8054
8055 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8056
8057 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8058
8059 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8060 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8061 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8062 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8063 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8064 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8065 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8066
8067 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8068
8069 [BZ #24023]
8070 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8071 PLT reference in libc.so.
8072 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8073 _Q_lltoq and _Q_qtod PLT references in libc.so.
8074
8075 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8076
8077 * benchtests/bench-memchr.c: Cleanup defines.
8078 * benchtests/bench-memcmp.c: Likewise.
8079 * benchtests/bench-memset.c: Likewise.
8080 * benchtests/bench-memset-large.c: Likewise.
8081 * benchtests/bench-memset-walk.c: Likewise.
8082 * benchtests/bench-stpcpy.c: Likewise.
8083 * benchtests/bench-stpncpy.c: Likewise.
8084 * benchtests/bench-strcat.c: Likewise.
8085 * benchtests/bench-strchr.c: Likewise.
8086 * benchtests/bench-strcmp.c: Likewise.
8087 * benchtests/bench-strcpy.c: Likewise.
8088 * benchtests/bench-strcspn.c: Likewise.
8089 * benchtests/bench-string.h: Likewise.
8090 * benchtests/bench-strlen.c: Likewise.
8091 * benchtests/bench-strncat.c: Likewise.
8092 * benchtests/bench-strncmp.c: Likewise.
8093 * benchtests/bench-strncpy.c: Likewise.
8094 * benchtests/bench-strnlen.c: Likewise.
8095 * benchtests/bench-strpbrk.c: Likewise.
8096 * benchtests/bench-strrchr.c: Likewise.
8097 * benchtests/bench-strspn.c: Likewise.
8098
8099 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8100
8101 * stdlib/longlong.h: Update from GCC.
8102
8103 [BZ #23993]
8104 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8105 * configure: Regenerated.
8106 * manual/install.texi (Tools for Compilation): Update minimum GCC
8107 version.
8108 * INSTALL: Regenerated.
8109
8110 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8111
8112 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8113
8114 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8115
8116 * malloc/malloc.c (mremap_chunk): Additional checks.
8117
8118 2018-12-21 Mao Han <han_mao@c-sky.com>
8119
8120 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8121 * scripts/build-many-glibcs.py: Add C-SKY targets.
8122 * sysdeps/csky/Implies: New file.
8123 * sysdeps/csky/Makefile: Likewise.
8124 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8125 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8126 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8127 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8128 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8129 * sysdeps/csky/abiv2/memmove.S: Likewise.
8130 * sysdeps/csky/abiv2/memset.S: Likewise.
8131 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8132 * sysdeps/csky/abiv2/start.S: Likewise.
8133 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8134 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8135 * sysdeps/csky/abiv2/strlen.S: Likewise.
8136 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8137 * sysdeps/csky/abort-instr.h: Likewise.
8138 * sysdeps/csky/atomic-machine.h: Likewise.
8139 * sysdeps/csky/bits/endian.h: Likewise.
8140 * sysdeps/csky/bits/fenv.h: Likewise.
8141 * sysdeps/csky/bits/link.h: Likewise.
8142 * sysdeps/csky/bits/setjmp.h: Likewise.
8143 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8144 * sysdeps/csky/bsd-setjmp.S: Likewise.
8145 * sysdeps/csky/configure: Likewise.
8146 * sysdeps/csky/configure.ac: Likewise.
8147 * sysdeps/csky/dl-machine.h: Likewise.
8148 * sysdeps/csky/dl-procinfo.c: Likewise.
8149 * sysdeps/csky/dl-procinfo.h: Likewise.
8150 * sysdeps/csky/dl-sysdep.h: Likewise.
8151 * sysdeps/csky/dl-tls.h: Likewise.
8152 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8153 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8154 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8155 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8156 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8157 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8158 * sysdeps/csky/fpu/fegetround.c: Likewise.
8159 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8160 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8161 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8162 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8163 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8164 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8165 * sysdeps/csky/fpu/fesetround.c: Likewise.
8166 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8167 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8168 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8169 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8170 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8171 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8172 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8173 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8174 * sysdeps/csky/fpu_control.h: Likewise.
8175 * sysdeps/csky/gccframe.h: Likewise.
8176 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8177 * sysdeps/csky/ldsodefs.h: Likewise.
8178 * sysdeps/csky/libc-tls.c: Likewise.
8179 * sysdeps/csky/linkmap.h: Likewise.
8180 * sysdeps/csky/machine-gmon.h: Likewise.
8181 * sysdeps/csky/memusage.h: Likewise.
8182 * sysdeps/csky/nofpu/Implies: Likewise.
8183 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8184 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8185 * sysdeps/csky/nptl/Makefile: Likewise.
8186 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8187 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8188 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8189 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8190 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8191 * sysdeps/csky/nptl/tls.h: Likewise.
8192 * sysdeps/csky/preconfigure: Likewise.
8193 * sysdeps/csky/sfp-machine.h: Likewise.
8194 * sysdeps/csky/sotruss-lib.c: Likewise.
8195 * sysdeps/csky/stackinfo.h: Likewise.
8196 * sysdeps/csky/sysdep.h: Likewise.
8197 * sysdeps/csky/tininess.h: Likewise.
8198 * sysdeps/csky/tst-audit.h: Likewise.
8199 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8200 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8201 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8202 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8203 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8204 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8205 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8206 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8207 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8208 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8209 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8210 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8211 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8212 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8213 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8214 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8215 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8216 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8217 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8218 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8219 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8220 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8221 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8222 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8223 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8224 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8225 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8226 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8227 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8228 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8229 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8230 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8231 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8232 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8233 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8234 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8235 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8236 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8237 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8238 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8239 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8240 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8241 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8242 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8243
8244 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8245
8246 * include/time.h (__difftime64): Add.
8247 * time/difftime.c (subtract): convert to 64-bit time.
8248 * time/difftime.c (__difftime64): Add.
8249 * time/difftime.c (__difftime): Wrap around __difftime64.
8250
8251 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8252
8253 * manual/examples/add.c: Remove redundant "if not".
8254 * manual/examples/argp-ex1.c: Likewise.
8255 * manual/examples/argp-ex2.c: Likewise.
8256 * manual/examples/argp-ex3.c: Likewise.
8257 * manual/examples/argp-ex4.c: Likewise.
8258 * manual/examples/atexit.c: Likewise.
8259 * manual/examples/db.c: Likewise.
8260 * manual/examples/dir.c: Likewise.
8261 * manual/examples/dir2.c: Likewise.
8262 * manual/examples/execinfo.c: Likewise.
8263 * manual/examples/filecli.c: Likewise.
8264 * manual/examples/filesrv.c: Likewise.
8265 * manual/examples/fmtmsgexpl.c: Likewise.
8266 * manual/examples/genpass.c: Likewise.
8267 * manual/examples/inetcli.c: Likewise.
8268 * manual/examples/inetsrv.c: Likewise.
8269 * manual/examples/isockad.c: Likewise.
8270 * manual/examples/longopt.c: Likewise.
8271 * manual/examples/memopen.c: Likewise.
8272 * manual/examples/memstrm.c: Likewise.
8273 * manual/examples/mkdirent.c: Likewise.
8274 * manual/examples/mkfsock.c: Likewise.
8275 * manual/examples/mkisock.c: Likewise.
8276 * manual/examples/mygetpass.c: Likewise.
8277 * manual/examples/pipe.c: Likewise.
8278 * manual/examples/popen.c: Likewise.
8279 * manual/examples/rprintf.c: Likewise.
8280 * manual/examples/search.c: Likewise.
8281 * manual/examples/select.c: Likewise.
8282 * manual/examples/setjmp.c: Likewise.
8283 * manual/examples/sigh1.c: Likewise.
8284 * manual/examples/sigusr.c: Likewise.
8285 * manual/examples/stpcpy.c: Likewise.
8286 * manual/examples/strdupa.c: Likewise.
8287 * manual/examples/strftim.c: Likewise.
8288 * manual/examples/subopt.c: Likewise.
8289 * manual/examples/swapcontext.c: Likewise.
8290 * manual/examples/termios.c: Likewise.
8291 * manual/examples/testopt.c: Likewise.
8292 * manual/examples/testpass.c: Likewise.
8293 * manual/examples/timeval_subtract.c: Likewise.
8294
8295 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8296
8297 * sysdeps/x86/fpu/math_private.h: New file.
8298 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8299
8300 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8301 definition.
8302 (cosh): Likewise.
8303 (tanh): Likewise.
8304
8305 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8306
8307 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8308 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8309 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8310 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8311 fields.
8312 (_dl_show_auxv): Give a special treatment to
8313 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8314 and AT_L3_CACHEGEOMETRY.
8315 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8316 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8317 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8318 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8319
8320 2018-12-19 Andreas Schwab <schwab@suse.de>
8321
8322 * nscd/connections.c (check_use): Don't abort on invalid len.
8323
8324 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8325
8326 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8327 values in the 64bit value cases.
8328
8329 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8330
8331 * include/time.h
8332 (__ctime64_r): Add.
8333 * time/ctime_r.c
8334 (__ctime64_r): Add.
8335 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8336
8337 * include/time.h
8338 (__ctime64): Add.
8339 * time/gmtime.c
8340 (__ctime64): Add.
8341 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8342
8343 * include/time.h
8344 (__gmtime64_r): Add.
8345 * time/gmtime.c
8346 (__gmtime64_r): Add.
8347 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8348
8349 * include/time.h
8350 (__gmtime64): Add.
8351 * time/gmtime.c
8352 (__gmtime64): Add.
8353 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8354
8355 * include/time.h
8356 (__localtime64_r): Add.
8357 * time/localtime.c
8358 (__localtime64_r): Add.
8359 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8360
8361 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8362
8363 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8364 kernel_sigction definition.
8365
8366 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8367
8368 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8369
8370 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8371 __syscall_rt_sigaction.
8372 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8373 (kernel_sigaction): Use Linux generic defintion.
8374 (STUB): Define.
8375 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8376 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8377 (__syscall_rt_sigaction): Remove implementation.
8378 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8379 hidden.
8380 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8381 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8382 INTERNAL_SYSCALL): Remove definitions.
8383 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8384 action and signal set size.
8385 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8386 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8387
8388 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8389 James Clarke <jrtc27@jrtc27.com>
8390
8391 [BZ #23967]
8392 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8393 Define if SA_RESTORER is defined.
8394 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8395 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8396 already defined.
8397 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8398 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8399 definitions.
8400 (HAS_SA_RESTORER): Define.
8401 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8402 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8403 (HAS_SA_RESTORER): Define.
8404 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8405 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8406 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8407 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8408 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8409
8410 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8411
8412 * sysdeps/unix/sysv/linux/kernel-features.h
8413 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8414 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8415 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8416 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8417 (__ASSUME_ST_INO_64_BIT): Likewise.
8418 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8419 <kernel-features.h>.
8420 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8421 Remove conditional code.
8422 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8423 <kernel-features.h>.
8424 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8425 Remove conditional code.
8426 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8427 <kernel-features.h>.
8428 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8429 Remove conditional code.
8430 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8431 <kernel-features.h>.
8432 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8433 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8434
8435 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8436
8437 * sysdeps/s390/multiarch/ifunc-resolve.h
8438 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8439 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8440 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8441 Delete macro definition.
8442 (s390_libc_ifunc_init): Rename to
8443 s390_libc_ifunc_expr_stfle_init.
8444 * sysdeps/s390/bzero: Use
8445 s390_libc_ifunc_expr_stfle_init instead of
8446 s390_libc_ifunc_init.
8447 * sysdeps/s390/memcmp.c: Likewise.
8448 * sysdeps/s390/memcpy.c: Likewise.
8449 * sysdeps/s390/mempcpy.c: Likewise.
8450 * sysdeps/s390/memset.c: Likewise.
8451
8452 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8453
8454 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8455 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8456
8457 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8458
8459 * sysdeps/s390/multiarch/Makefile
8460 (sysdep_routines): Remove wmemcmp variants.
8461 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8462 * sysdeps/s390/multiarch/ifunc-impl-list.c
8463 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8464 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8465 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8466 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8467 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8468 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8469 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8470 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8471
8472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8473
8474 * sysdeps/s390/multiarch/Makefile
8475 (sysdep_routines): Remove wmemset variants.
8476 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8477 * sysdeps/s390/multiarch/ifunc-impl-list.c
8478 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8479 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8480 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8481 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8482 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8483 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8484 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8485 * sysdeps/s390/ifunc-wmemset.h: New file.
8486
8487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8488
8489 * sysdeps/s390/multiarch/Makefile
8490 (sysdep_routines): Remove wmemchr variants.
8491 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8492 * sysdeps/s390/multiarch/ifunc-impl-list.c
8493 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8494 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8495 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8496 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8497 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8498 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8499 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8500 * sysdeps/s390/ifunc-wmemchr.h: New file.
8501
8502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8503
8504 * sysdeps/s390/multiarch/Makefile
8505 (sysdep_routines): Remove wcscspn variants.
8506 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8507 * sysdeps/s390/multiarch/ifunc-impl-list.c
8508 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8509 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8510 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8511 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8512 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8513 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8514 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8515 * sysdeps/s390/ifunc-wcscspn.h: New file.
8516
8517 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8518
8519 * sysdeps/s390/multiarch/Makefile
8520 (sysdep_routines): Remove wcspbrk variants.
8521 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8522 * sysdeps/s390/multiarch/ifunc-impl-list.c
8523 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8524 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8525 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8526 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8527 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8528 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8529 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8530 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8531
8532 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8533
8534 * sysdeps/s390/multiarch/Makefile
8535 (sysdep_routines): Remove wcsspn variants.
8536 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8537 * sysdeps/s390/multiarch/ifunc-impl-list.c
8538 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8539 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8540 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8541 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8542 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8543 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8544 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8545 * sysdeps/s390/ifunc-wcsspn.h: New file.
8546
8547 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8548
8549 * sysdeps/s390/multiarch/Makefile
8550 (sysdep_routines): Remove wcsrchr variants.
8551 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8552 * sysdeps/s390/multiarch/ifunc-impl-list.c
8553 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8554 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8555 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8556 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8557 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8558 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8559 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8560 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8561
8562 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8563
8564 * sysdeps/s390/multiarch/Makefile
8565 (sysdep_routines): Remove wcschrnul variants.
8566 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8567 * sysdeps/s390/multiarch/ifunc-impl-list.c
8568 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8569 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8570 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8571 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8572 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8573 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8574 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8575 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8576
8577 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8578
8579 * sysdeps/s390/multiarch/Makefile
8580 (sysdep_routines): Remove wcschr variants.
8581 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8582 * sysdeps/s390/multiarch/ifunc-impl-list.c
8583 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8584 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8585 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8586 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8587 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8588 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8589 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8590 * sysdeps/s390/ifunc-wcschr.h: New file.
8591
8592 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8593
8594 * sysdeps/s390/multiarch/Makefile
8595 (sysdep_routines): Remove wcsncmp variants.
8596 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8597 * sysdeps/s390/multiarch/ifunc-impl-list.c
8598 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8599 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8600 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8601 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8602 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8603 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8604 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8605 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8606
8607 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8608
8609 * sysdeps/s390/multiarch/Makefile
8610 (sysdep_routines): Remove wcscmp variants.
8611 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8612 * sysdeps/s390/multiarch/ifunc-impl-list.c
8613 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8614 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8615 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8616 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8617 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8618 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8619 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8620 * sysdeps/s390/ifunc-wcscmp.h: New file.
8621
8622 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8623
8624 * sysdeps/s390/multiarch/Makefile
8625 (sysdep_routines): Remove wcsncat variants.
8626 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8627 * sysdeps/s390/multiarch/ifunc-impl-list.c
8628 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8629 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8630 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8631 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8632 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8633 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8634 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8635 * sysdeps/s390/ifunc-wcsncat.h: New file.
8636
8637 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8638
8639 * sysdeps/s390/multiarch/Makefile
8640 (sysdep_routines): Remove wcscat variants.
8641 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8642 * sysdeps/s390/multiarch/ifunc-impl-list.c
8643 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8644 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8645 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8646 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8647 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8648 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8649 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8650 * sysdeps/s390/ifunc-wcscat.h: New file.
8651
8652 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8653
8654 * sysdeps/s390/multiarch/Makefile
8655 (sysdep_routines): Remove wcpncpy variants.
8656 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8657 * sysdeps/s390/multiarch/ifunc-impl-list.c
8658 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8659 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8660 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8661 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8662 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8663 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8664 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8665 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8666
8667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8668
8669 * sysdeps/s390/multiarch/Makefile
8670 (sysdep_routines): Remove wcsncpy variants.
8671 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8672 * sysdeps/s390/multiarch/ifunc-impl-list.c
8673 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8674 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8675 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8676 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8677 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8678 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8679 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8680 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8681
8682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8683
8684 * sysdeps/s390/multiarch/Makefile
8685 (sysdep_routines): Remove wcpcpy variants.
8686 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8687 * sysdeps/s390/multiarch/ifunc-impl-list.c
8688 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8689 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8690 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8691 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8692 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8693 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8694 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8695 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8696
8697 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8698
8699 * sysdeps/s390/multiarch/Makefile
8700 (sysdep_routines): Remove wcscpy variants.
8701 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8702 * sysdeps/s390/multiarch/ifunc-impl-list.c
8703 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8704 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8705 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8706 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8707 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8708 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8709 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8710 * sysdeps/s390/ifunc-wcscpy.h: New file.
8711
8712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8713
8714 * sysdeps/s390/multiarch/Makefile
8715 (sysdep_routines): Remove wcsnlen variants.
8716 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8717 * sysdeps/s390/multiarch/ifunc-impl-list.c
8718 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8719 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8720 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8721 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8722 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8723 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8724 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8725 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8726
8727 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8728
8729 * sysdeps/s390/multiarch/Makefile
8730 (sysdep_routines): Remove wcslen variants.
8731 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8732 * sysdeps/s390/multiarch/ifunc-impl-list.c
8733 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8734 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8735 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8736 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8737 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8738 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8739 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8740 * sysdeps/s390/ifunc-wcslen.h: New file.
8741
8742 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8743
8744 * sysdeps/s390/multiarch/Makefile
8745 (sysdep_routines): Remove memrchr variants.
8746 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8747 * sysdeps/s390/multiarch/ifunc-impl-list.c
8748 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8749 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8750 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8751 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8752 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8753 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8754 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8755 * sysdeps/s390/ifunc-memrchr.h: New file.
8756
8757 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8758
8759 * sysdeps/s390/multiarch/Makefile
8760 (sysdep_routines): Remove memccpy variants.
8761 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8762 * sysdeps/s390/multiarch/ifunc-impl-list.c
8763 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8764 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8765 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8766 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8767 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8768 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8769 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8770 * sysdeps/s390/ifunc-memccpy.h: New file.
8771
8772 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8773
8774 * sysdeps/s390/multiarch/Makefile
8775 (sysdep_routines): Remove rawmemchr variants.
8776 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8777 * sysdeps/s390/multiarch/ifunc-impl-list.c
8778 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8779 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8780 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8781 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8782 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8783 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8784 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8785 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8786
8787 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8788
8789 * sysdeps/s390/multiarch/Makefile
8790 (sysdep_routines): Remove memchr variants.
8791 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8792 * sysdeps/s390/multiarch/ifunc-impl-list.c
8793 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8794 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8795 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8796 * sysdeps/s390/multiarch/memchr.c: Move to ...
8797 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8798 * sysdeps/s390/ifunc-memchr.h: New file.
8799 * sysdeps/s390/s390-64/memchr.S: Move to ...
8800 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8801 for 31/64bit and ifunc handling.
8802 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8803 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8804 * sysdeps/s390/s390-32/memchr.S: Likewise.
8805
8806 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8807
8808 * sysdeps/s390/multiarch/Makefile
8809 (sysdep_routines): Remove strcspn variants.
8810 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8811 * sysdeps/s390/multiarch/ifunc-impl-list.c
8812 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8813 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8814 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8815 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8816 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8817 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8818 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8819 * sysdeps/s390/ifunc-strcspn.h: New file.
8820
8821 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8822
8823 * sysdeps/s390/multiarch/Makefile
8824 (sysdep_routines): Remove strpbrk variants.
8825 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8826 * sysdeps/s390/multiarch/ifunc-impl-list.c
8827 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8828 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8829 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8830 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8831 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8832 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8833 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8834 * sysdeps/s390/ifunc-strpbrk.h: New file.
8835
8836 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8837
8838 * sysdeps/s390/multiarch/Makefile
8839 (sysdep_routines): Remove strspn variants.
8840 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8841 * sysdeps/s390/multiarch/ifunc-impl-list.c
8842 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8843 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8844 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8845 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8846 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8847 * sysdeps/s390/multiarch/strspn.c: Move to ...
8848 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8849 * sysdeps/s390/ifunc-strspn.h: New file.
8850
8851 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8852
8853 * sysdeps/s390/multiarch/Makefile
8854 (sysdep_routines): Remove strrchr variants.
8855 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8856 * sysdeps/s390/multiarch/ifunc-impl-list.c
8857 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8858 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8859 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8860 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8861 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8862 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8863 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8864 * sysdeps/s390/ifunc-strrchr.h: New file.
8865
8866 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8867
8868 * sysdeps/s390/multiarch/Makefile
8869 (sysdep_routines): Remove strchrnul variants.
8870 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8871 * sysdeps/s390/multiarch/ifunc-impl-list.c
8872 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8873 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8874 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8875 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8876 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8877 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8878 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8879 * sysdeps/s390/ifunc-strchrnul.h: New file.
8880
8881 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8882
8883 * sysdeps/s390/multiarch/Makefile
8884 (sysdep_routines): Remove strchr variants.
8885 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8886 * sysdeps/s390/multiarch/ifunc-impl-list.c
8887 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8888 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8889 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8890 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8891 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8892 * sysdeps/s390/multiarch/strchr.c: Move to ...
8893 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8894 * sysdeps/s390/ifunc-strchr.h: New file.
8895
8896 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8897
8898 * sysdeps/s390/multiarch/Makefile
8899 (sysdep_routines): Remove strncmp variants.
8900 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8901 * sysdeps/s390/multiarch/ifunc-impl-list.c
8902 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8903 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8904 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8905 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8906 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8907 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8908 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8909 * sysdeps/s390/ifunc-strncmp.h: New file.
8910
8911 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8912
8913 * sysdeps/s390/multiarch/Makefile
8914 (sysdep_routines): Remove strcmp variants.
8915 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8916 * sysdeps/s390/multiarch/ifunc-impl-list.c
8917 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8918 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8919 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8920 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8921 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8922 * sysdeps/s390/ifunc-strcmp.h: New file.
8923 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8924 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8925 for 31/64bit and ifunc handling.
8926 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8927 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8928 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8929
8930 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8931
8932 * sysdeps/s390/multiarch/Makefile
8933 (sysdep_routines): Remove strncat variants.
8934 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8935 * sysdeps/s390/multiarch/ifunc-impl-list.c
8936 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8937 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8938 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8939 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8940 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8941 * sysdeps/s390/multiarch/strncat.c: Move to ...
8942 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8943 * sysdeps/s390/ifunc-strncat.h: New file.
8944
8945 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8946
8947 * sysdeps/s390/multiarch/Makefile
8948 (sysdep_routines): Remove strcat variants.
8949 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8950 * sysdeps/s390/multiarch/ifunc-impl-list.c
8951 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8952 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8953 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8954 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8955 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8956 * sysdeps/s390/multiarch/strcat.c: Move to ...
8957 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8958 * sysdeps/s390/ifunc-strcat.h: New file.
8959
8960 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8961
8962 * sysdeps/s390/multiarch/Makefile
8963 (sysdep_routines): Remove stpncpy variants.
8964 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8965 * sysdeps/s390/multiarch/ifunc-impl-list.c
8966 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8967 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8968 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8969 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8970 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8971 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8972 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8973 * sysdeps/s390/ifunc-stpncpy.h: New file.
8974
8975 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8976
8977 * sysdeps/s390/multiarch/Makefile
8978 (sysdep_routines): Remove strncpy variants.
8979 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8980 * sysdeps/s390/multiarch/ifunc-impl-list.c
8981 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8982 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8983 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8984 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8985 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8986 * sysdeps/s390/ifunc-strncpy.h: New file.
8987 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8988 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8989 and adjust ifunc handling.
8990 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8991 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8992 and adjust ifunc handling.
8993 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8994 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8995
8996 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8997
8998 * sysdeps/s390/multiarch/Makefile
8999 (sysdep_routines): Remove stpcpy variants.
9000 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9001 * sysdeps/s390/multiarch/ifunc-impl-list.c
9002 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9003 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9004 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9005 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9006 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9007 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9008 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9009 * sysdeps/s390/ifunc-stpcpy.h: New file.
9010
9011 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9012
9013 * sysdeps/s390/multiarch/Makefile
9014 (sysdep_routines): Remove strcpy variants.
9015 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9016 * sysdeps/s390/multiarch/ifunc-impl-list.c
9017 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9018 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9019 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9020 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9021 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9022 * sysdeps/s390/ifunc-strcpy.h: New file.
9023 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9024 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9025 for 31/64bit and ifunc handling.
9026 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9027 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9028 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9029
9030 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9031
9032 * sysdeps/s390/multiarch/Makefile
9033 (sysdep_routines): Remove strnlen variants.
9034 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9035 * sysdeps/s390/multiarch/ifunc-impl-list.c
9036 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9037 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9038 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9039 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9040 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9041 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9042 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9043 * sysdeps/s390/ifunc-strnlen.h: New file.
9044
9045 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9046
9047 * sysdeps/s390/multiarch/Makefile
9048 (sysdep_routines): Remove strlen variants.
9049 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9050 * sysdeps/s390/multiarch/ifunc-impl-list.c
9051 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9052 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9053 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9054 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9055 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9056 * sysdeps/s390/multiarch/strlen.c: Move to ...
9057 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9058 * sysdeps/s390/ifunc-strlen.h: New file.
9059
9060 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9061
9062 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9063 * sysdeps/s390/multiarch/ifunc-impl-list.c
9064 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9065 * sysdeps/s390/ifunc-memmem.h: New file.
9066 * sysdeps/s390/memmem.c: Likewise.
9067 * sysdeps/s390/memmem-c.c: Likewise.
9068 * sysdeps/s390/memmem-vx.c: Likewise.
9069
9070 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9071
9072 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9073 * sysdeps/s390/multiarch/ifunc-impl-list.c
9074 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9075 * sysdeps/s390/ifunc-strstr.h: New file.
9076 * sysdeps/s390/strstr.c: Likewise.
9077 * sysdeps/s390/strstr-c.c: Likewise.
9078 * sysdeps/s390/strstr-vx.c: Likewise.
9079
9080 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9081
9082 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9083 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9084 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9085 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9086 New defines.
9087 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9088 * sysdeps/s390/memmove-c.c: New file.
9089 * sysdeps/s390/memmove.c: Likewise.
9090 * sysdeps/s390/multiarch/ifunc-impl-list.c
9091 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9092
9093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9094
9095 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9096 * sysdeps/s390/configure.ac: Add check for z13 support.
9097 * sysdeps/s390/configure: Regenerated.
9098
9099 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9100
9101 * sysdeps/s390/memcopy.h: New file.
9102
9103 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9104
9105 * sysdeps/s390/s390-32/bcopy.S: Remove.
9106 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9107
9108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9109
9110 * sysdeps/s390/ifunc-memcpy.h: New File.
9111 * sysdeps/s390/memcpy.S: Move to ...
9112 * sysdeps/s390/memcpy-z900.S ... here.
9113 Move implementations from memcpy-s390x.s to here.
9114 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9115 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9116 Remove memcpy/mempcpy variants.
9117 * sysdeps/s390/Makefile (sysdep_routines):
9118 Add memcpy/mempcpy variants.
9119 * sysdeps/s390/multiarch/ifunc-impl-list.c
9120 (__libc_ifunc_impl_list): Adjust ifunc variants for
9121 memcpy and mempcpy.
9122 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9123 to ...
9124 * sysdeps/s390/memcpy.c: ... here.
9125 Adjust ifunc variants for memcpy.
9126 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9127 * sysdeps/s390/mempcpy.c: ... here.
9128 Adjust ifunc variants for mempcpy.
9129 * sysdeps/s390/mempcpy.S: Delete file.
9130
9131 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9132
9133 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9134 * sysdeps/s390/memcpy.S: ... here.
9135 Adjust to be usable for 31/64bit.
9136 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9137 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9138 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9139 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9140 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9141 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9142 Adjust to be usable for 31/64bit.
9143 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9144 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9145 * sysdeps/s390/multiarch/memcpy.c: ... here.
9146 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9147
9148 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9149
9150 * sysdeps/s390/ifunc-memcmp.h: New File.
9151 * sysdeps/s390/memcmp.S: Move to ...
9152 * sysdeps/s390/memcmp-z900.S ... here.
9153 Move implementations from memcmp-s390x.s to here.
9154 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9155 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9156 Remove memcmp variants.
9157 * sysdeps/s390/Makefile (sysdep_routines):
9158 Add memcmp variants.
9159 * sysdeps/s390/multiarch/ifunc-impl-list.c
9160 (__libc_ifunc_impl_list): Adjust ifunc variants for
9161 memcmp.
9162 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9163 to ...
9164 * sysdeps/s390/memcmp.c: ... here.
9165 Adjust ifunc variants for memcmp.
9166
9167 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9168
9169 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9170 * sysdeps/s390/memcmp.S: ... here.
9171 Adjust to be usable for 31/64bit.
9172 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9173 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9174 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9175 Remove memcmp.
9176 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9177 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9178 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9179 Adjust to be usable for 31/64bit.
9180 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9181 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9182 * sysdeps/s390/multiarch/memcmp.c: ... here.
9183 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9184
9185 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9186
9187 * sysdeps/s390/s390-32/bzero.S: Delete file.
9188 * sysdeps/s390/s390-64/bzero.S: Likewise.
9189 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9190 * sysdeps/s390/bzero.c: New file.
9191 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9192 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9193 * sysdeps/s390/multiarch/ifunc-impl-list.c
9194 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9195
9196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9197
9198 * sysdeps/s390/ifunc-memset.h: New File.
9199 * sysdeps/s390/memset.S: Move to ...
9200 * sysdeps/s390/memset-z900.S ... here.
9201 Move implementations from memset-s390x.s to here.
9202 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9203 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9204 Remove memset variants.
9205 * sysdeps/s390/Makefile (sysdep_routines):
9206 Add memset variants.
9207 * sysdeps/s390/multiarch/ifunc-impl-list.c
9208 (__libc_ifunc_impl_list): Adjust ifunc variants for
9209 memset.
9210 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9211 to ...
9212 * sysdeps/s390/memset.c: ... here.
9213 Adjust ifunc variants for memset.
9214
9215 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9216
9217 * sysdeps/s390/s390-64/memset.S: Move to ...
9218 * sysdeps/s390/memset.S: ... here.
9219 Adjust to be usable for 31/64bit.
9220 * sysdeps/s390/s390-32/memset.S: Delete File.
9221 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9222 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9223 Remove memset.
9224 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9225 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9226 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9227 Adjust to be usable for 31/64bit.
9228 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9229 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9230 * sysdeps/s390/multiarch/memset.c: ... here.
9231 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9232
9233 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9234
9235 * sysdeps/s390/multiarch/ifunc-resolve.h
9236 (s390_libc_ifunc_init, s390_libc_ifunc,
9237 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9238
9239 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9240
9241 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9242 * sysdeps/s390/configure.ac: Add check for z10 support.
9243 * sysdeps/s390/configure: Regenerated.
9244
9245 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9246
9247 * sysdeps/i386/atomic-machine.h: Merged with ...
9248 * sysdeps/x86_64/atomic-machine.h: To ...
9249 * sysdeps/x86/atomic-machine.h: This. New file.
9250
9251 2018-12-18 Florian Weimer <fweimer@redhat.com>
9252
9253 Rewrite locale/gen-translit.pl in Python.
9254 * locale/Makefile (generated): Add C-translit.h.
9255 (before-compile): Add $(objpfx)C-translit.h.
9256 (C-translit.h): Move to $(objpfx). Create target directory.
9257 Build using Python script.
9258 * locale/gen-translit.py: New file.
9259 * locale/gen-translit.pl: Remove file.
9260 * locale/C-translit.h.in: Change comment character to '#' for
9261 easier parsing without a C preprocessor.
9262 * locale/C-translit.h: Remove generated file.
9263 * manual/install.texi (Tools for Compilation): Do not mention
9264 C-translit.h.
9265 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9266 Remove locale/C-translit.h.
9267 * scripts/update-copyrights: Likewise.
9268 * INSTALL: Regenerate.
9269
9270 2018-12-18 Florian Weimer <fweimer@redhat.com>
9271
9272 [BZ #23995]
9273 * localedata/locales/bi_VU: Remove executable bit from file.
9274
9275 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9276
9277 * include/time.h
9278 (__localtime64): Add.
9279 * manual/maint.texi: Document Y2038 symbol handling.
9280 * time/localtime.c
9281 (__localtime64): Add.
9282 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9283
9284 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9285
9286 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9287 Do not clobber r12.
9288
9289 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9290 to allow extra macros from first or second sources.
9291 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9292 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9293 (tests-special): Add $(objpfx)tst-mman-consts.out.
9294 ($(objpfx)tst-mman-consts.out): New makefile target.
9295
9296 2018-12-17 Mao Han <han_mao@c-sky.com>
9297
9298 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9299 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9300 without stat64 system call support.
9301 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9302 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9303 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9304 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9305 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9306 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9307 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9308 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9309 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9310 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9311 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9312
9313 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9314
9315 regex: fix storage-exhaustion error
9316 [BZ #18040]
9317 * posix/regexec.c (get_subexp):
9318 Do not continue if storage is exhausted.
9319
9320 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9321
9322 regex: fix heap-use-after-free error
9323 [BZ #18040]
9324 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9325 https://debbugs.gnu.org/32592
9326 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9327 call extend_buffers which reallocates the re_string_t internal buffer.
9328 Local variable 'buf' was not updated in such case, resulting in
9329 use-after-free.
9330 * posix/regexec.c (get_subexp): Update 'buf' after call to
9331 get_subexp_sub.
9332
9333 2018-12-15 Florian Weimer <fweimer@redhat.com>
9334
9335 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9336 (minimum_stride_size): Use it.
9337 (support_blob_repeat_allocate): Likewise.
9338
9339 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9340
9341 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9342 definition.
9343 (acosh): Likewise.
9344 (atanh): Likewise.
9345
9346 2018-12-14 Florian Weimer <fweimer@redhat.com>
9347
9348 * manual/process.texi (Process Creation Concepts): Remove
9349 documentation of process (ID) lifetime. List more process
9350 creation functions. Reference Process Identification section.
9351 (Process Identification): Add information about process ID
9352 lifetime. Describe Linux thread/task IDs.
9353 * manual/signal.texi (Signaling Another Process): Mention that the
9354 signal is always sent to the process.
9355
9356 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9357
9358 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9359 and tst-ldbl-efgcvt.
9360 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9361 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9362 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9363 (fcvt_tests, output_error, output_r_error, do_test): Use the
9364 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9365 select the type of floating-point variables and arguments; to
9366 produce extra tests for double and conversion specifiers for
9367 printf; and to set the names of called functions.
9368 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9369 in tst-efgcvt-template.c.
9370 * misc/tst-ldbl-efgcvt.c: Likewise.
9371
9372 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9373
9374 * nss/Makefile (tst-nss-test3.out): New rule.
9375
9376 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9377
9378 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9379 clobber sp.
9380
9381 2018-12-13 fanjinke <fanjinke@hygon.cn>
9382
9383 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9384 "HygonGenuine".
9385
9386 2018-12-13 Andreas Schwab <schwab@suse.de>
9387
9388 [BZ #23861]
9389 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9390 (__pthread_rwlock_rdlock_full): Update expected value for
9391 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9392 * nptl/tst-rwlock-pwn.c: New file.
9393 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9394
9395 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9396
9397 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9398 definition.
9399
9400 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9401
9402 * benchtests/scripts/compare_bench.py (do_compare): write to
9403 stderr in casestat is not present.
9404 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9405 stderr in case timings field is not present. Also string showing
9406 the output filename goes into the stderr.
9407
9408 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9409
9410 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9411 and ZeroDivisorError exceptions.
9412 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9413 argument to loop through user provided statistics.
9414 * benchtests/scripts/compare_bench.py (main): Include the --stats
9415 argument.
9416
9417 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9418
9419 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9420 instead of return.
9421
9422 2018-12-12 Florian Weimer <fweimer@redhat.com>
9423
9424 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9425 clause to copyright header.
9426
9427 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9428
9429 [BZ #23614]
9430 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9431 registers saved in the stack frame.
9432 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9433 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9434
9435 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9436
9437 * include/bits/monetary-ldbl.h: New file.
9438 * include/bits/printf-ldbl.h: Likewise.
9439 * include/bits/stdio-ldbl.h: Likewise.
9440 * include/bits/stdlib-ldbl.h: Likewise.
9441 * include/bits/syslog-ldbl.h: Likewise.
9442 * include/bits/wchar-ldbl.h: Likewise.
9443
9444 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9445
9446 * libio/libio.h: Remove redirection for _IO_vfprintf.
9447
9448 2018-12-11 Andreas Schwab <schwab@suse.de>
9449
9450 * Makerules: Remove all references to abilist-pattern.
9451 (update-all-abi): Simplify find expression.
9452
9453 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9454
9455 [BZ #23961]
9456 * math/auto-libm-test-in: Add new test case.
9457 * math/auto-libm-test-out-pow: Regenerated.
9458 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9459
9460 2018-12-10 DJ Delorie <dj@redhat.com>
9461
9462 [BZ #23948]
9463 * support/test-container.c: Move postclean step to before we
9464 change namespaces.
9465
9466 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9467
9468 * scripts/gen-as-const.py (main): Handle --python option.
9469 * scripts/gen-py-const.awk: Remove.
9470 * Makerules (py-const-script): Use gen-as-const.py.
9471 ($(py-const)): Likewise.
9472 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9473 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9474 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9475 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9476 ~PTHREAD_MUTEX_NO_ELISION_NP.
9477 * manual/README.pretty-printers: Update reference to
9478 gen-py-const.awk.
9479
9480 * scripts/glibcextract.py: New file.
9481 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9482 or tempfile. Import glibcexctract.
9483 (compute_c_consts): Remove. Moved to glibcextract.py.
9484 (gen_test): Update reference to compute_c_consts.
9485 (main): Likewise.
9486 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9487 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9488 * sysdeps/unix/sysv/linux/Makefile
9489 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9490 Redirect stderr as well as stdout.
9491
9492 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9493
9494 [BZ #19767]
9495 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9496 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9497 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9498 ALWAYS_USE_VSYSCALL.
9499 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9500 ALWAYS_USE_VSYSCALL.
9501 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9502 ALWAYS_USE_VSYSCALL.
9503
9504 2018-12-10 Florian Weimer <fweimer@redhat.com>
9505
9506 [BZ #23972]
9507 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9508 offset instead of count for clarity. Fix typo in comment.
9509 (__old_getdents64): Keep track of previous offset. Use it to call
9510 handle_overflow.
9511 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9512 that d_off is never zero.
9513
9514 2018-12-10 Andreas Schwab <schwab@suse.de>
9515
9516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9517 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9519 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9520 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9521
9522 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9523
9524 * timezone/private.h: Update from tzcode 2018g.
9525 * timezone/tzfile.h: Likewise.
9526 * timezone/tzselect.ksh: Likewise.
9527 * timezone/zdump.c: Likewise.
9528 * timezone/zic.c: Likewise.
9529
9530 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9531
9532 [BZ #23490]
9533 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9534 (do_test): Adjust buffer size and fix format.
9535
9536 2018-12-07 DJ Delorie <dj@redhat.com>
9537
9538 [BZ #23907]
9539 * malloc/tst-tcfree3.c: New.
9540 * malloc/Makefile: Add it.
9541
9542 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9543
9544 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9545
9546 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9547
9548 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9549 used as a mask for the mode argument of __vfscanf_internal and
9550 __vfwscanf_internal.
9551 * stdio-common/vfscanf-internal.c
9552 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9553 (__strtof128_internal): Define to __wcstof128_internal.
9554 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9555 __strtof128_internal or __wcstof128_internal when the format of
9556 long double is the same as _Float128.
9557
9558 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9559
9560 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9561 * posix/confstr.c (confstr): Rename to __confstr.
9562 (__confstr): Add hidden def.
9563 (confstr): Add weak alias for __confstr.
9564 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9565 confstr.
9566
9567 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9568
9569 * NEWS: Mention getcpu.
9570 * include/sched.h (__getcpu): New libc_hidden_proto.
9571 * manual/resource.texi: Document getcpu.
9572 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9573 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9574 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9575 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9576 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9577 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9578 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9579 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9580 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9581 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9582 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9583 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9584 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9585 Likewise.
9586 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9587 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9588 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9589 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9590 Likewise.
9591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9592 Likewise.
9593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9594 Likewise.
9595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9596 Likewise.
9597 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9598 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9599 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9600 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9601 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9602 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9603 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9604 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9605 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9606 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9607 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9608 Also check getcpu.
9609
9610 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9611
9612 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9613 functions.
9614 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9615
9616 2018-12-07 Florian Weimer <fweimer@redhat.com>
9617
9618 [BZ #17405]
9619 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9620 * posix/Versions (GLIBC_2.29): Export
9621 posix_spawn_file_actions_addfchdir_np.
9622 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9623 * posix/spawn_faction_destroy.c
9624 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9625 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9626 and the field action.fchdir_action.
9627 * posix/tst-spawn-chdir.c (add_chdir): New function.
9628 (do_test): Add do_fchdir loop. Call add_chdir.
9629 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9630 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9631 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9632 posix_spawn_file_actions_addfchdir_np.
9633 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9634 Likewise.
9635 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9636 Likewise.
9637 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9638 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9639 Likewise.
9640 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9641 Likewise.
9642 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9643 Likewise.
9644 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9645 Likewise.
9646 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9647 Likewise.
9648 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9649 Likewise.
9650 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9651 (GLIBC_2.29): Likewise.
9652 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9653 (GLIBC_2.29): Likewise.
9654 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9655 (GLIBC_2.29): Likewise.
9656 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9657 (GLIBC_2.29): Likewise.
9658 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9659 Likewise.
9660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9661 (GLIBC_2.29): Likewise.
9662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9663 (GLIBC_2.29): Likewise.
9664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9665 (GLIBC_2.29): Likewise.
9666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9667 (GLIBC_2.29): Likewise.
9668 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9669 Likewise.
9670 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9671 Likewise.
9672 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9673 Likewise.
9674 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9675 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9676 Likewise.
9677 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9678 Likewise.
9679 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9680 Likewise.
9681 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9682 Likewise.
9683
9684 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9685
9686 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9687 trailing whitespace removed.
9688 * scripts/config.guess: Update to version 2018-11-28.
9689 * scripts/config.sub: Update to version 2018-11-28.
9690 * scripts/install-sh: Update to version 2018-03-11.20.
9691 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9692 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9693
9694 2018-12-07 Florian Weimer <fweimer@redhat.com>
9695
9696 [BZ #23927]
9697 CVE-2018-19591
9698 * inet/tst-if_index-long.c: New file.
9699 * inet/Makefile (tests): Add tst-if_index-long.
9700
9701 2018-12-07 Florian Weimer <fweimer@redhat.com>
9702
9703 * support/check.h (support_record_failure_is_failed): Declare.
9704 * support/descriptors.h: New file.
9705 * support/support_descriptors.c: Likewise.
9706 * support/tst-support_descriptors.c: Likewise.
9707 * support/support_record_failure.c
9708 (support_record_failure_is_failed): New function.
9709 * support/Makefile (libsupport-routines): Add support_descriptors.
9710 (tests): Add tst-support_descriptors.
9711
9712 2018-12-05 Zack Weinberg <zackw@panix.com>
9713 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9714
9715 * stdio-common/vfprintf-internal.c
9716 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9717 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9718 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9719 and __no_long_double.
9720 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9721 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9722 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9723 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9724 and __nldbl_*syslog* functions.
9725 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9726 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9727 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9728 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9729 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9730 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9731 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9732 (__nldbl_vwprintf, __nldbl_wprintf):
9733 Directly call the appropriate __v*printf_internal routine, passing
9734 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9735 variable names.
9736 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9737 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9738 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9739 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9740 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9741 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9742 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9743 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9744 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9745 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9746 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9747 (__nldbl_syslog, __nldbl_vsyslog):
9748 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9749 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9750 appropriate.
9751 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9752 appropriate.
9753
9754 2018-12-05 Zack Weinberg <zackw@panix.com>
9755 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9756
9757 [BZ #11319]
9758 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9759 Moved here from debug/vsprintf_chk.c.
9760 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9761 and completion logic for the strfile to match exactly what
9762 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9763 _IO_str_init_static_internal instead of maxlen-1.
9764 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9765 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9766 __vsprintf_internal.
9767
9768 * debug/vsprintf_chk.c (__vsprintf_chk)
9769 * debug/sprintf_chk.c (__sprintf_chk):
9770 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9771 'flags' argument is positive, and slen as maxlen. No need to lock
9772 the FILE and/or construct a temporary FILE. Minimize and normalize
9773 header inclusions and variable names. Do not libc_hidden_def anything.
9774
9775 * debug/asprintf_chk.c (__asprintf_chk)
9776 * debug/dprintf_chk.c (__dprintf_chk)
9777 * debug/fprintf_chk.c (__fprintf_chk)
9778 * debug/fwprintf_chk.c (__fwprintf_chk)
9779 * debug/printf_chk.c (__printf_chk)
9780 * debug/snprintf_chk.c (__snprintf_chk)
9781 * debug/swprintf_chk.c (__swprintf_chk)
9782 * debug/vasprintf_chk.c (__vasprintf_chk)
9783 * debug/vdprintf_chk.c (__vdprintf_chk)
9784 * debug/vfprintf_chk.c (__vfprintf_chk)
9785 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9786 * debug/vprintf_chk.c (__vprintf_chk)
9787 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9788 * debug/vswprintf_chk.c (__vswprintf_chk)
9789 * debug/vwprintf_chk.c (__vwprintf_chk)
9790 * debug/wprintf_chk.c (__wprintf_chk):
9791 Directly call the corresponding vxxprintf_internal function, passing
9792 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9793 the FILE and/or construct a temporary FILE. Minimize and normalize
9794 header inclusions and variable names. Do not libc_hidden_def anything.
9795
9796 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9797 __obstack_vprintf_internal.
9798 (__obstack_vprintf_chk): Convert into a wrapper that calls
9799 __obstack_vprintf_internal (these two functions already had the
9800 same code) and move to new file...
9801 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9802 file.
9803 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9804 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9805 * debug/Makefile (routines): Add vobprintf_chk.
9806
9807 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9808 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9809 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9810 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9811 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9812 (__nldbl___obstack_vfprintf_chk):
9813 Directly call the corresponding vxxprintf_internal function,
9814 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9815 duplicate comparison of slen with 0 or maxlen from the corresponding
9816 non-__nldbl function.
9817
9818 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9819 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9820 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9821 Remove libc_hidden_proto.
9822
9823 * stdio-common/vfprintf-internal.c
9824 (__vfprintf_internal, __vfwprintf_internal):
9825 Do not check _IO_FLAGS2_FORTIFY.
9826 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9827 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9828 a comment explaining why it has the maxlen argument.
9829 (_IO_acquire_lock_clear_flags2_fct): Remove.
9830 (_IO_acquire_lock_clear_flags2): Remove.
9831 (_IO_release_lock): Remove conditional statement which will
9832 now never execute.
9833 (_IO_acquire_lock): Remove variable which is now unused.
9834 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9835 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9836
9837 * stdio-common/Makefile (tests): Add tst-bz11319 and
9838 tst-bz11319-fortify2.
9839 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9840 * stdio-common/tst-bz11319-fortify2.c: New file.
9841 * stdio-common/tst-bz11319.c: Likewise.
9842
9843 2018-12-05 Zack Weinberg <zackw@panix.com>
9844 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9845
9846 * misc/syslog.c: Include libioP.h, not iolibio.h.
9847 (__vsyslog_internal): New function with the former body of
9848 __vsyslog_chk; takes mode_flags argument same as
9849 __v*printf_internal. Call __vfprintf_internal directly.
9850
9851 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9852 Remove libc_hidden_def.
9853 (__syslog, __syslog_chk): Use __vsyslog_internal.
9854 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9855
9856 * include/sys/syslog.h: Add multiple inclusion guard.
9857 Add prototype for __vsyslog_internal.
9858 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9859
9860 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9861 Use __vsyslog_internal.
9862
9863 2018-12-05 Zack Weinberg <zackw@panix.com>
9864 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9865
9866 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9867 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9868 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9869 New functions.
9870 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9871 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9872
9873 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9874 Include wctype.h here if COMPILE_WPRINTF is defined.
9875 Define __vfprintf_internal or __vfwprintf_internal, depending
9876 on COMPILE_WPRINTF.
9877 Temporarily, on entry to this function, update mode_flags
9878 according to the environmental settings corresponding to
9879 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9880 Throughout, check mode_flags instead of __ldbl_is_dbl and
9881 _IO_FLAGS2_FORTIFY on the destination FILE.
9882 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9883 Include vfprintf-internal.c. Don't include wctype.h.
9884 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9885 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9886 and vfprintf.
9887 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9888 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9889 and vfwprintf.
9890 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9891
9892 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9893 and add mode_flags argument; use __vfprintf_internal.
9894 (__vdprintf): New function. Alias vdprintf to this.
9895 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9896 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9897 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9898 (__obstack_printf): Use __obstack_printf_internal.
9899 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9900 public aliases __vsnprintf and vsnprintf.
9901 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9902 called internally.
9903 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9904 public aliases _IO_vsprintf and vsprintf.
9905 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9906 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9907 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9908 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9909 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9910
9911 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9912 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9913 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9914 * stdio-common/printf.c: Use __vfprintf_internal.
9915
9916 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9917 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9918 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9919
9920 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9921 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9922 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9923 __vfwprintf_internal.
9924
9925 * libio/libio.h: Remove libc_hidden_proto and declaration for
9926 _IO_vfprintf.
9927 Remove declaration of _IO_vfwprintf.
9928 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9929 _IO_vsprintf.
9930 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9931 _IO_obstack_printf.
9932 * include/stdio.h: Add prototype for __vasprintf.
9933 (__vsnprintf): Remove declaration, because there are no more
9934 internal calls.
9935 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9936 declaration, because there are no more internal calls.
9937
9938 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9939 __vsnprintf_internal, instead of _IO_vsnprintf.
9940 * argp/argp-help.c (__argp_error, __argp_failure): Use
9941 __vasprintf_internal, instead of _IO_vasprintf.
9942 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9943 redefine, because there are no more internal calls.
9944
9945 2018-12-05 Zack Weinberg <zackw@panix.com>
9946 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9947
9948 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9949 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9950 Include libio/strfile.h instead of libioP.h.
9951 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9952 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9953 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9954 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9955 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9956 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9957 necessary. Do not set __no_long_double. Normalize variable names.
9958 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9959 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9960 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9961 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9962 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9963 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9964 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9965 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9966 Do not set __no_long_double. Normalize variable names.
9967
9968 2018-12-05 Zack Weinberg <zackw@panix.com>
9969 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9970
9971 * stdio-common/isoc99_scanf.c
9972 * stdio-common/isoc99_fscanf.c
9973 * stdio-common/isoc99_sscanf.c
9974 * stdio-common/isoc99_vscanf.c
9975 * stdio-common/isoc99_vfscanf.c
9976 * stdio-common/isoc99_vsscanf.c
9977 * wcsmbs/isoc99_wscanf.c
9978 * wcsmbs/isoc99_fwscanf.c
9979 * wcsmbs/isoc99_swscanf.c
9980 * wcsmbs/isoc99_vwscanf.c
9981 * wcsmbs/isoc99_vfwscanf.c
9982 * wcsmbs/isoc99_vswscanf.c:
9983 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9984 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9985 No need to lock and unlock the FILE passed to that function.
9986
9987 * stdio-common/vfscanf-internal.c
9988 (__vfscanf_internal, __vfwscanf_internal):
9989 Don't look at _IO_FLAGS2_SCANF_STD.
9990 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9991 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9992 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9993
9994 2018-12-05 Zack Weinberg <zackw@panix.com>
9995 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9996
9997 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9998 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9999 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10000 * libio/strfile.h: Add multiple inclusion guard.
10001 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10002
10003 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10004 consistency with the other version of this file.
10005 (ldbl_compat_symbol): New macro.
10006 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10007 New macro.
10008
10009 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10010 Define __vfscanf_internal or __vfwscanf_internal, depending on
10011 COMPILE_WSCANF; don't define any other public symbols.
10012 Remove errval and code to set errp.
10013 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10014 as the mode_flags argument.
10015 (encode_error, conv_error, input_error): Don't set errval.
10016 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10017 Include vfscanf-internal.c.
10018 * stdio-common/vfscanf.c: New file defining the public entry
10019 point vfscanf, which calls __vfscanf_internal.
10020 * stdio-common/vfwscanf.c: New file defining the public entry
10021 point vfwscanf, which calls __vfwscanf_internal.
10022
10023 * stdio-common/iovfscanf.c: New file.
10024 * stdio-common/iovfwscanf.c: Likewise.
10025
10026 * stdio-common/Makefile (routines): Add vfscanf-internal,
10027 vfwscanf-internal, iovfscanf, iovfwscanf.
10028 * stdio-common/Versions: Mention GLIBC_2.29, so that
10029 it can be used in SHLIB_COMPAT expressions.
10030 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10031 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10032 Call __vfscanf_internal, instead of _IO_vfscanf.
10033 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10034 _IO_vfscanf.
10035 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10036 _IO_vfwscanf.
10037
10038 * libio/iovsscanf.c: Clean up includes, when possible. Use
10039 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10040 __vfscanf_internal or __vfwscanf_internal directly.
10041 * libio/iovswscanf.c: Likewise.
10042 * libio/swscanf.c: Likewise.
10043 * libio/vscanf.c: Likewise.
10044 * libio/vwscanf.c: Likewise.
10045 * libio/wscanf.c: Likewise.
10046 * stdio-common/isoc99_fscanf.c: Likewise.
10047 * stdio-common/isoc99_scanf.c: Likewise.
10048 * stdio-common/isoc99_sscanf.c: Likewise.
10049 * stdio-common/isoc99_vfscanf.c: Likewise.
10050 * stdio-common/isoc99_vscanf.c: Likewise.
10051 * stdio-common/isoc99_vsscanf.c: Likewise.
10052 * stdio-common/scanf.c: Likewise.
10053 * stdio-common/sscanf.c: Likewise.
10054 * wcsmbs/isoc99_fwscanf.c: Likewise.
10055 * wcsmbs/isoc99_swscanf.c: Likewise.
10056 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10057 * wcsmbs/isoc99_vswscanf.c: Likewise.
10058 * wcsmbs/isoc99_vwscanf.c: Likewise.
10059 * wcsmbs/isoc99_wscanf.c: Likewise.
10060
10061 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10062
10063 * include/time.h
10064 (__tz_compute): Replace time_t with __time64_t.
10065 (__tz_convert): Replace time_t* with __time64_t.
10066 (__offtime): Replace time_t* with __time64_t.
10067 * time/gmtime.c
10068 (__gmtime_r): Adjust call to __tz_convert.
10069 (gmtime): Likewise.
10070 * time/localtime.c
10071 (__localtime_r): Likewise.
10072 (localtime): Likewise.
10073 * time/offtime.c: Replace time_t with __time64_t.
10074 * time/tzset.c: Likewise.
10075
10076 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10077
10078 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10079 dynamic linker unless [$(run-built-tests) = yes].
10080
10081 2018-12-03 DJ Delorie <dj@delorie.com>
10082
10083 * support/test-container.c (check_for_unshare_hints): New.
10084 (main): Call it if unshare fails. Add support for "su" scriptlet
10085 command.
10086
10087 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10088
10089 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10090 'START' to indicate that start text should be output.
10091 (gen_test): Likewise.
10092 (main): Generate 'START' for first symbol or '--' line, or at end
10093 of input if not previously generated.
10094
10095 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10096
10097 [BZ #19767]
10098 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10099 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10100 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10101 ALWAYS_USE_VSYSCALL.
10102
10103 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10104
10105 [BZ #23913]
10106 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10107 new_argv by one.
10108
10109 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10110
10111 [BZ #23923]
10112 * locale/programs/localedef.c: Declare boolean hard_links default true.
10113 (options): Add --no-hard-links option.
10114 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10115 * locale/programs/localedef.h: Declare prototype for hard_links.
10116 * locale/programs/locfile.c (write_locale_data): Don't use hard
10117 links if hard_links is false.
10118
10119 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10120
10121 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10122 cpu_features_basic.
10123 (__cache_sysconf): Likewise.
10124 (init_cacheinfo): Likewise.
10125 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10126 populate COMMON_CPUID_INDEX_80000007 and
10127 COMMON_CPUID_INDEX_80000008.
10128 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10129 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10130 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10131 (init_cpu_features): Use _Static_assert on
10132 index_arch_Fast_Unaligned_Load.
10133 __get_cpuid_registers and __get_arch_feature. Updated for
10134 cpu_features_basic. Set stepping in cpu_features.
10135 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10136 (FEATURE_INDEX_2): New.
10137 (FEATURE_INDEX_MAX): Changed to enum.
10138 (COMMON_CPUID_INDEX_D_ECX_1): New.
10139 (COMMON_CPUID_INDEX_80000007): Likewise.
10140 (COMMON_CPUID_INDEX_80000008): Likewise.
10141 (cpuid_registers): Likewise.
10142 (cpu_features_basic): Likewise.
10143 (CPU_FEATURE_USABLE): Likewise.
10144 (bit_arch_XXX_Usable): Likewise.
10145 (cpu_features): Use cpuid_registers and cpu_features_basic.
10146 (bit_arch_XXX): Reweritten.
10147 (bit_cpu_XXX): Likewise.
10148 (index_cpu_XXX): Likewise.
10149 (reg_XXX): Likewise.
10150 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10151 <support/check.h>.
10152 (CHECK_CPU_FEATURE): New.
10153 (CHECK_CPU_FEATURE_USABLE): Likewise.
10154 (cpu_kinds): Likewise.
10155 (do_test): Print vendor, family, model and stepping. Check
10156 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10157 (TEST_FUNCTION): Removed.
10158 Include <support/test-driver.c> instead of
10159 "../../test-skeleton.c".
10160 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10161 Check POPCNT instead of POPCOUNT.
10162 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10163
10164 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10165
10166 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10167 there is no element in `consts'.
10168
10169 2018-12-01 Florian Weimer <fweimer@redhat.com>
10170
10171 * support/support_capture_subprocess.c
10172 (support_capture_subprocess): Check that pipe descriptors have
10173 expected values. Close original pipe descriptors in subprocess.
10174
10175 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10176
10177 [BZ #23032]
10178 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10179 attr with __pthread_default_barrierattr.
10180 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10181 attr with __pthread_default_condattr.
10182 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10183 attr with __pthread_default_mutexattr.
10184 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10185 attr with __pthread_default_rwlockattr.
10186
10187 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10188
10189 * manual/tunables.texi (POSIX Thread Tunables): New node.
10190 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10191 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10192 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10193 __pthread_tunables_init.
10194 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10195 (max_adaptive_count): Define.
10196 * nptl/pthread_mutex_conf.c: New file.
10197 * nptl/pthread_mutex_conf.h: New file.
10198 * sysdeps/generic/adaptive_spin_count.h: New file.
10199 * sysdeps/nptl/dl-tunables.list: New file.
10200 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10201 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10202 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10203 Likewise.
10204
10205 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10206
10207 [BZ #20544]
10208 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10209 * stdlib/on_exit.c (__on_exit): Likewise.
10210 * stdlib/Makefile (tests): Add tst-bz20544.
10211 * stdlib/tst-bz20544.c: New test.
10212
10213 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10214
10215 [BZ #19767]
10216 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10217 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10218 New.
10219
10220 2018-11-30 Florian Weimer <fweimer@redhat.com>
10221
10222 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10223 Extend error logging.
10224 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10225 symbol.
10226
10227 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10228
10229 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10230 __sigismember instead of sigismember.
10231 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10232 cancel_handler): New definitions.
10233 (do_system): Use posix_spawn instead of fork and execl and remove
10234 reentracy code.
10235 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10236 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10237 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10238 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10239 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10240 * sysdeps/unix/sysv/linux/system.c: Likewise.
10241
10242 [BZ #22834]
10243 [BZ #17490]
10244 * NEWS: Add new semantic for atfork with popen and system.
10245 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10246 fork and execl.
10247
10248 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10249
10250 [BZ #23690]
10251 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10252 modification order when accessing reloc_result->addr.
10253 * include/link.h (reloc_result): Add field init.
10254 * nptl/Makefile (tests): Add tst-audit-threads.
10255 (modules-names): Add tst-audit-threads-mod1 and
10256 tst-audit-threads-mod2.
10257 Add rules to build tst-audit-threads.
10258 * nptl/tst-audit-threads-mod1.c: New file.
10259 * nptl/tst-audit-threads-mod2.c: Likewise.
10260 * nptl/tst-audit-threads.c: Likewise.
10261 * nptl/tst-audit-threads.h: Likewise.
10262
10263 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10264
10265 * scripts/gen-as-const.py: New file.
10266 * scripts/gen-as-const.awk: Remove.
10267 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10268 gen-as-const.py.
10269 ($(objpfx)test-as-const-%.c): Likewise.
10270
10271 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10272
10273 * elf/dl-exception.c: Include <_itoa.h>.
10274
10275 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10276
10277 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10278 returned by __f_setlk.
10279
10280 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10281 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10282
10283 * elf/Makefile (tests-internal): Add tst-create_format1.
10284 * elf/dl-exception.c (_dl_exception_create_format): Support
10285 %x, %lx and %zx.
10286 * elf/tst-create_format1.c: New file.
10287
10288 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10289
10290 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10291 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10292 gnulib.)
10293 * argp/argp-help.c (__argp_failure): Likewise.
10294
10295 2018-11-29 Mao Han <han_mao@c-sky.com>
10296
10297 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10298 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10299 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10300 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10301 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10302 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10303 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10304 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10305 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10306 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10307 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10308 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10309 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10310 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10311 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10312 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10313 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10314 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10315 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10316 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10317 (R_CKCORE_TLS_TPOFF32): New defines.
10318
10319 2018-11-29 Florian Weimer <fweimer@redhat.com>
10320
10321 * posix/Makefile (before-compile): Remove testcases.h and
10322 ptestcases.h.
10323 (generated): Add testcases.h and ptestcases.h.
10324 (testcases.h, ptestcases.h): Move to $(objpfx).
10325 (runtests.o): Add dependency on testcases.h.
10326 (runptests.o): Add dependency on ptestcases.h.
10327 * posix/testcases.h, posix/ptestcases.h: Remove files.
10328 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10329 not touch posix/testcases.h and posix/ptestcases.h.
10330
10331 2018-11-28 Florian Weimer <fweimer@redhat.com>
10332
10333 support: Add signal support to support_capture_subprocess_check.
10334 * support/capture_subprocess.h (support_capture_subprocess_check):
10335 Adjust comment and rename parameter.
10336 * support/support_capture_subprocess_check.c
10337 (print_actual_status): New function.
10338 (support_capture_subprocess_check): Support negative
10339 status_or_signal. Call print_actual_status.
10340 * support/tst-support_capture_subprocess.c (do_test): Call
10341 support_capture_subprocess_check.
10342 * libio/tst-vtables-common.c (termination_status)
10343 (init_termination_status): Remove.
10344 (check_for_termination): Adjust support_capture_subprocess_check
10345 call.
10346 (do_test): Remove call to init_termination_status.
10347
10348 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10349
10350 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10351 source directory instead of a copy.
10352 (CommandList.create_copy_dir): Remove.
10353
10354 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10355
10356 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10357
10358 2018-11-28 Florian Weimer <fweimer@redhat.com>
10359
10360 * support/support.h (support_quote_string): Do not use str
10361 parameter name.
10362
10363 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10364
10365 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10366 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10367
10368 2018-11-27 Florian Weimer <fweimer@redhat.com>
10369
10370 * support/support.h (support_quote_string): Declare.
10371 * support/support_quote_string.c: New file.
10372 * support/tst-support_quote_string.c: Likewise.
10373 * support/Makefile (libsupport-routines): Add
10374 support_quote_string.
10375 (tests): Add tst-support_quote_string.
10376
10377 2018-11-27 Florian Weimer <fweimer@redhat.com>
10378
10379 [BZ #23927]
10380 CVE-2018-19591
10381 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10382 descriptor leak in case of ENODEV error.
10383
10384 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10385
10386 [BZ #19767]
10387 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10388 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10389 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10390
10391 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10392
10393 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10394 Error for unknown lines.
10395
10396 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10397
10398 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10399 Touch additional files.
10400
10401 2018-11-26 Florian Weimer <fweimer@redhat.com>
10402
10403 [BZ #23907]
10404 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10405 double-frees.
10406
10407 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10408
10409 [BZ #19767]
10410 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10411 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10412 SHARED. Include sysdep.h.
10413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10414 ALWAYS_USE_VSYSCALL.
10415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10416 ALWAYS_USE_VSYSCALL.
10417
10418 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10419
10420 [BZ #19767]
10421 * nptl/Makefile (tests-static): Add tst-cond11-static.
10422 (tests): Likewise.
10423 * nptl/tst-cond11-static.c: New File.
10424 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10425 tst-affinity-static.
10426 (tests): Likewise.
10427 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10428 instead of SHARED.
10429 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10430 (USE_VSYSCALL): Likewise.
10431 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10432 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10433 instead of SHARED.
10434 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10435 SHARED.
10436 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10437 New.
10438
10439 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10440
10441 [BZ #23915]
10442 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10443 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10444 Undefine.
10445
10446 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10447
10448 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10449 (tst-cet-legacy-1a-ARGS): New.
10450 ($(objpfx)tst-cet-legacy-1a): New target.
10451 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10452
10453 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10454
10455 * conform/conformtest.py (CompileSubTest.__init__): Set
10456 self.run_early to False.
10457 (ExecuteSubTest.__init__): Likewise.
10458 (HeaderTests.run): Try running all non-optional, non-XFAILed
10459 compilation tests in a single execution of the compiler.
10460
10461 * conform/conformtest.py (CompileSubTest): New class.
10462 (ExecuteSubTest): Likewise.
10463 (ElementTest.run): Rename to gen_subtests. Append tests to
10464 self.subtests instead of running them.
10465 (ConstantTest.run): Likewise.
10466 (SymbolTest.run): Likewise.
10467 (TypeTest.run): Likewise.
10468 (TagTest.run): Likewise.
10469 (FunctionTest.run): Likewise.
10470 (VariableTest.run): Likewise.
10471 (MacroFunctionTest.run): Likewise.
10472 (MacroStrTest.run): Likewise.
10473 (HeaderTests.handle_test_line): Generate subtests for tests.
10474 (HeaderTests.run): Run subtests for tests.
10475
10476 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10477
10478 * math/Versions (GLIBC_2.29): Add pow.
10479 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10480 symbol.
10481 * math/w_pow.c: New file.
10482 * sysdeps/i386/fpu/w_pow.c: New file.
10483 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10484 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10485 and add necessary aliases.
10486 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10487 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10488 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10489 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10490 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10491 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10492 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10493 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10494 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10495 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10496 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10497 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10498 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10499 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10500 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10504 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10505 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10506 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10507 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10508 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10509 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10510 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10511 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10512 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10513 __pow.
10514 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10515 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10516 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10517
10518 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10519
10520 * math/Versions (GLIBC_2.29): Add log2.
10521 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10522 symbol.
10523 * math/w_log2.c: New file.
10524 * sysdeps/i386/fpu/w_log2.c: New file.
10525 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10526 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10527 and add necessary aliases.
10528 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10529 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10530 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10531 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10532 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10533 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10534 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10535 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10536 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10537 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10538 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10539 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10540 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10541 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10542 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10544 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10547 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10548 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10549 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10550 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10551 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10552 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10553 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10554
10555 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10556
10557 * math/Versions (GLIBC_2.29): Add log.
10558 * math/w_log_compat.c (__log_compat): Change to versioned compat
10559 symbol.
10560 * math/w_log.c: New file.
10561 * sysdeps/i386/fpu/w_log.c: New file.
10562 * sysdeps/ia64/fpu/e_log.S: Update.
10563 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10564 and add necessary aliases.
10565 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10566 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10567 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10568 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10569 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10570 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10571 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10572 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10573 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10574 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10575 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10576 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10577 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10578 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10579 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10581 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10584 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10585 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10586 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10587 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10588 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10589 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10590 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10591 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10592 __log.
10593 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10594 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10595 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10596 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10597
10598 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10599
10600 * math/Versions (GLIBC_2.29): Add exp and exp2.
10601 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10602 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10603 * math/w_exp_compat.c (__exp_compat): Likewise.
10604 * math/w_exp.c: New file.
10605 * math/w_exp2.c: New file.
10606 * sysdeps/i386/fpu/w_exp.c: New file.
10607 * sysdeps/i386/fpu/w_exp2.c: New file.
10608 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10609 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10610 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10611 and add necessary aliases.
10612 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10613 and add necessary aliases.
10614 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10615 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10616 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10617 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10618 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10619 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10620 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10621 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10622 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10623 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10624 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10625 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10626 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10627 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10628 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10629 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10630 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10635 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10636 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10637 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10638 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10639 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10640 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10641 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10642 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10643 (__ieee754_exp): Rename to __exp.
10644 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10645 (__ieee754_exp): Rename to __exp.
10646 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10647 (__ieee754_exp): Rename to __exp.
10648 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10649 __exp.
10650 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10651
10652 2018-11-20 DJ Delorie <dj@redhat.com>
10653
10654 * malloc/malloc.c (tcache_entry): Add key field.
10655 (tcache_put): Set it.
10656 (tcache_get): Likewise.
10657 (_int_free): Check for double free in tcache.
10658 * malloc/tst-tcfree1.c: New.
10659 * malloc/tst-tcfree2.c: New.
10660 * malloc/Makefile: Run the new tests.
10661 * manual/probes.texi: Document memory_tcache_double_free probe.
10662
10663 * dlfcn/dlerror.c (check_free): Prevent double frees.
10664
10665 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10666
10667 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10668
10669 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10670
10671 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10672 in tests. Use names for format arguments.
10673 (ConstantTest.run): Likewise.
10674 (SymbolTest.run): Likewise.
10675 (TypeTest.run): Likewise.
10676 (TagTest.run): Likewise.
10677 (FunctionTest.run): Likewise.
10678 (VariableTest.run): Likewise.
10679 (MacroFunctionTest.run): Likewise.
10680 (MacroStrTest.run): Likewise.
10681 (HeaderTests.__init__): Set self.num_tests.
10682 (HeaderTests.handle_test_line): Set test.num. Increment
10683 self.num_tests.
10684
10685 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10686
10687 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10688 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10689 SEEK_SET.
10690
10691 2018-11-19 Mao Han <han_mao@c-sky.com>
10692
10693 * scripts/config.guess: Update to version 2018-08-29.
10694 * scripts/config.sub: Update to version 2018-08-29.
10695
10696 2018-11-19 Florian Weimer <fweimer@redhat.com>
10697
10698 support: Print timestamps in timeout handler.
10699 * support/support_test_main.c (print_timestamp): New function.
10700 (signal_handler): Use it to print the termination time and the
10701 time of the last write to standard output.
10702
10703 2018-11-16 Zack Weinberg <zackw@panix.com>
10704 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10705
10706 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10707 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10708 argument.
10709 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10710 and add flags argument. Check flags instead of __ldbl_is_dbl when
10711 deciding whether to set is_long_double.
10712 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10713 passing zero for flags argument.
10714 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10715
10716 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10717 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10718 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10719 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10720 variable names. Remove libc_hidden_def/libc_hidden_proto from
10721 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10722 longer called from within the library.
10723 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10724 for __nldbl___vstrfmon_l, declare it explicitly.
10725
10726 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10727
10728 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10729
10730 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10731 macros
10732 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10733 F_SETLK64, F_SETLKW64, respectively.
10734 * sysdeps/mach/hurd/f_setlk.c: New file.
10735 * sysdeps/mach/hurd/f_setlk.h: New file.
10736 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10737 f_setlk.
10738 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10739 (__libc_fcntl): Move non-flock operations to...
10740 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10741 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10742
10743 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10744
10745 mktime: DEBUG_MKTIME cleanup
10746 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10747 And it’s no longer needed now that glibc and Gnulib both have
10748 their own testing mechanisms for mktime.
10749 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10750
10751 mktime: fix non-EOVERFLOW errno handling
10752 [BZ#23789]
10753 mktime was not properly reporting failures when the underlying
10754 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10755 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10756 The problem could happen on non-glibc platforms, with Gnulib.
10757 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10758 (tm_diff): ... this simpler function, which does not change errno.
10759 All callers changed to deal with errno themselves.
10760 (ranged_convert, __mktime_internal): Return failure immediately if
10761 the underlying function reports any failure other than EOVERFLOW.
10762 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10763 gap code fails.
10764
10765 mktime: fix bug with Y2038 DST transition
10766 [BZ#23789]
10767 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10768 mishandle a DST transition that jumps over the Y2038 boundary.
10769 No such DST transitions are known so this is only a theoretical
10770 bug, but we might as well do things right.
10771
10772 mktime: make more room for overflow
10773 [BZ#23789]
10774 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10775 This is so that we can add tm_diff results to a previous guess,
10776 which will be useful in a later patch.
10777
10778 mktime: simplify offset guess
10779 [BZ#23789]
10780 * time/mktime.c (__mktime_internal): Omit excess precision.
10781
10782 mktime: new test for mktime failure
10783 [BZ#23789]
10784 Based on a test suggested by Albert Aribaud in:
10785 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10786 * time/Makefile (tests): Add bug-mktime4.
10787 * time/bug-mktime4.c: New file.
10788
10789 mktime: fix EOVERFLOW bug
10790 [BZ#23789]
10791 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10792 Include libc-config.h, not config.h, for __set_errno.
10793 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10794
10795 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10796
10797 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10798 __attribute_copy__ to copy attributes from name. Drop static qualifier
10799 to avoid warnings about leaf attribute not having effect on static
10800 functions.
10801
10802 2018-11-13 Florian Weimer <fweimer@redhat.com>
10803
10804 * malloc/malloc.c (fastbin_push_entry): New function.
10805 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10806 (REMOVE_FB): Remove macro.
10807 (_int_malloc): Use fastbin_pop_entry and reindent.
10808 (_int_free): Use fastbin_push_entry.
10809 (malloc_consolidate): Use atomic_exchange_acquire.
10810
10811 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10812
10813 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10814 alias attribute, not with strong_alias.
10815
10816 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10817 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10818 with additional parameter thread.
10819 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10820 in terms of __hidden_ver2.
10821 (hidden_tls_def): New macro.
10822 (libc_hidden_tls_def): Likewise.
10823 (rtld_hidden_tls_def): Likewise.
10824 (libm_hidden_tls_def): Likewise.
10825 (libmvec_hidden_tls_def): Likewise.
10826 (libresolv_hidden_tls_def): Likewise.
10827 (librt_hidden_tls_def): Likewise.
10828 (libdl_hidden_tls_def): Likewise.
10829 (libnss_files_hidden_tls_def): Likewise.
10830 (libnsl_hidden_tls_def): Likewise.
10831 (libnss_nisplus_hidden_tls_def): Likewise.
10832 (libutil_hidden_tls_def): Likewise.
10833 (libutil_hidden_tls_def): Likweise.
10834 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10835 libc_hidden_tls_def.
10836 (__sim_disabled_exceptions_thread): Likewise.
10837 (__sim_round_mode_thread): Likewise.
10838
10839 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10840 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10841 copy attributes from name.
10842
10843 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10844
10845 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10846 Use __attribute_copy__ to copy attributes from name.
10847
10848 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10849 with __hidden_ver1 call.
10850 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10851 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10852 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10853 (__cosf): Do not declare here.
10854 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10855 (__sincosf): Do not declare here.
10856 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10857 (__sinf): Do not declare here.
10858
10859 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10860 (__BIG_ENDIAN): Likewise.
10861 (__BYTE_ORDER): Likewise.
10862 (strong_alias): Likewise.
10863 (_strong_alias): Likewise.
10864
10865 2018-11-12 Florian Weimer <fweimer@redhat.com>
10866
10867 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10868 function. Move after the definition of in_smallbin_range. Do not
10869 use __builtin_expect for paths that lead to a noreturn function.
10870 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10871 because it is unclear whether this is in fact an unlikely
10872 condition.
10873 (_int_malloc, _int_free): Adjust.
10874 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10875 variables.
10876 * malloc/arena.c (heap_trim): Likewise.
10877
10878 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10879
10880 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10881 it, free it if needed.
10882 (reauthenticate): Test and use ccwdir.
10883 (child_init_port): In non-resetids case, test and use ccwdir.
10884 (child_chdir): New nested function to set ccwdir.
10885 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10886 * hurd/hurd/port.h (_hurd_port_move): New function.
10887 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10888 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10889 * hurd/Versions (_hurd_port_move): Export function.
10890 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10891 symbol.
10892 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10893 of dtablesize for allocating dtable_cloexec.
10894
10895 2018-11-09 Martin Sebor <msebor@redhat.com>
10896
10897 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10898 it's already defined.
10899 (_strong_alias): Use __attribute_copy__.
10900 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10901 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10902 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10903 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10904 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10905 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10906 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10907 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10908 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10909 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10910 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10911 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10912 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10913 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10914 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10915 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10916 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10917 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10918 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10919
10920 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10921
10922 * misc/tst-efgcvt.c: Include support/check.h and
10923 support/test-driver.c. Do not include test-skeleton.c.
10924 (error_count): Remove.
10925 (output_error): Replace increments to error_count with calls to
10926 support_record_failure.
10927 (output_r_error): Likewise.
10928 (special): Likewise.
10929 (do_test): Unconditionally return zero.
10930 (TEST_FUNCTION): Remove.
10931
10932 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10933
10934 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10935 not $(@D)/scratch.
10936 ($(linknamespace-header-tests)): Likewise.
10937
10938 * conform/conformtest.py: New file.
10939 * conform/conformtest.pl: Remove.
10940 * conform/GlibcConform.pm: Likewise.
10941 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10942 (KEYWORDS_C99): Likewise.
10943 (KEYWORDS): Likewise.
10944 * conform/Makefile ($(conformtest-header-tests)): Use
10945 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10946 option. Use --header instead of --headers.
10947 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10948 function entries.
10949 * conform/data/spawn.h-data: Likewise.
10950 * conform/data/fcntl.h-data (openat): Add space after function
10951 name.
10952 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10953 (wcscasecmp_l): Likewise.
10954 * conform/data/termios.h-data (c_cc): Add space after element
10955 name.
10956
10957 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10958
10959 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10960 instead of manually comparing and reporting mismatching strings.
10961 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10962 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10963
10964 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10965
10966 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10967 __ASSUME_SOCKETCALL.
10968 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10969 (__ASSUME_SOCKETCALL): Remove.
10970 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10971 (__ASSUME_SOCKETCALL): Likewise.
10972 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10973 (__ASSUME_SOCKETCALL): Likewise.
10974 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10975 (__ASSUME_SOCKETCALL): Likewise.
10976 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10977 (__ASSUME_SOCKETCALL): Likewise.
10978 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10979 (__ASSUME_SOCKETCALL): Likewise.
10980 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10981 (__ASSUME_SOCKETCALL): Likewise.
10982
10983 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10984
10985 [BZ #23509]
10986 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10987 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10988 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10989 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10990 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10991 lc_unknown.
10992
10993 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10994
10995 [BZ #17630]
10996 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10997
10998 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10999
11000 [BZ #23867]
11001 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11002 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11003 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11004 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11005
11006 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11007
11008 * support/support_test_compare_string.c
11009 (support_test_compare_string): Fix printf format.
11010
11011 2018-11-07 Florian Weimer <fweimer@redhat.com>
11012
11013 Implement TEST_COMPARE_STRING.
11014 * support/check.h (TEST_COMPARE_STRING): Define.
11015 (support_test_compare_string): Declare.
11016 * support/Makefile (libsupport-routines): Add
11017 support_test_compare_string.
11018 (tests): Add tst-test_compare_string.
11019 * support/support_test_compare_string.c: New file.
11020 * support/tst-test_compare_string.c: Likewise.
11021
11022 2018-11-07 Andreas Schwab <schwab@suse.de>
11023
11024 [BZ #23864]
11025 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11026 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11027 Undef.
11028
11029 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11030
11031 [BZ #23862]
11032 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11033 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11034 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11035 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11036 Likewise.
11037
11038 2018-11-06 Florian Weimer <fweimer@redhat.com>
11039
11040 [BZ #17405]
11041 * posix/Makefile (routines): Add spawn_faction_addchdir.
11042 (tests): Add tst-spawn-chdir.
11043 * posix/Versions (GLIBC_2.29): Add
11044 posix_spawn_file_actions_addchdir_np.
11045 * posix/spawn_faction_addchdir.c: New file.
11046 * posix/spawn_faction_destroy.c
11047 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11048 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11049 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11050 chdir_action.
11051 * posix/tst-spawn-chdir.c: New file.
11052 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11053 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11054 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11055 posix_spawn_file_actions_addchdir_np.
11056 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11057 Likewise.
11058 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11059 Likewise.
11060 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11061 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11062 Likewise.
11063 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11064 Likewise.
11065 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11066 Likewise.
11067 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11068 Likewise.
11069 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11070 Likewise.
11071 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11072 Likewise.
11073 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11074 (GLIBC_2.29): Likewise.
11075 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11076 (GLIBC_2.29): Likewise.
11077 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11078 (GLIBC_2.29): Likewise.
11079 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11080 (GLIBC_2.29): Likewise.
11081 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11082 Likewise.
11083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11084 (GLIBC_2.29): Likewise.
11085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11086 (GLIBC_2.29): Likewise.
11087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11088 (GLIBC_2.29): Likewise.
11089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11090 (GLIBC_2.29): Likewise.
11091 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11092 Likewise.
11093 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11094 Likewise.
11095 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11096 Likewise.
11097 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11098 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11099 Likewise.
11100 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11101 Likewise.
11102 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11103 Likewise.
11104 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11105 Likewise.
11106
11107 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11108
11109 * misc/Makefile (tests): Add tst-ldbl-error.
11110 * misc/tst-ldbl-error.c: New file.
11111
11112 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11113
11114 * misc/Makefile (tests): Add tst-ldbl-warn.
11115 * misc/tst-ldbl-warn.c: New file.
11116
11117 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11118
11119 * argp/Makefile (tests): Add tst-ldbl-argp.
11120 * argp/tst-ldbl-argp.c: New file.
11121
11122 2018-11-05 Arjun Shankar <arjun@redhat.com>
11123
11124 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11125 __gconv_path_elem and call __gconv_get_path unconditionally.
11126
11127 2018-11-05 Andreas Schwab <schwab@suse.de>
11128
11129 [BZ #22927]
11130 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11131 creating the first helper thread failed.
11132
11133 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11134
11135 * sysdeps/mach/hurd/msync.c: New file.
11136
11137 2018-11-02 Florian Weimer <fweimer@redhat.com>
11138
11139 * support/shell-container.c (copy_func): Call
11140 support_copy_file_range instead of copy_file_range to support
11141 cross-device copies.
11142
11143 2018-11-02 Florian Weimer <fweimer@redhat.com>
11144
11145 * support/test-container.c: Include <libc-pointer-arith.h> for
11146 ALIGN_UP.
11147
11148 2018-11-01 Zong Li <zong@andestech.com>
11149
11150 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11151 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11152 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11153 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11154
11155 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11156 variable to avoid overlap arguments.
11157
11158 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11159
11160 * posix/bug-regex22.c (main): Use puts with distinct error
11161 messages for unexpected success of re_compile_pattern, not printf
11162 with NULL argument to %s.
11163
11164 * stdio-common/bug22.c: Include <libc-diag.h>.
11165 (do_test): Disable -Wformat-overflow= warnings around fprintf
11166 calls outputting more than INT_MAX characters.
11167 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11168 around printf call with NULL %s argument.
11169
11170 [BZ #23848]
11171 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11172 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11173 Undefine.
11174 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11175 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11176 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11177 (__ASSUME_SENDTO_SYSCALL): Likewise.
11178 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11179 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11180 [!__arch64__].
11181 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11182 (__ASSUME_CONNECT_SYSCALL): Likewise.
11183 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11184 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11185 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11186 Define.
11187 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11188 Likewise.
11189 [__LINUX_KERNEL_VERSION >= 0x040400]
11190 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11191 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11192 Remove.
11193 (listen): Likewise.
11194 (setsockopt): Likewise.
11195
11196 2018-11-01 Fredrik Noring <noring@nocrew.org>
11197
11198 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11199 with the ISA override.
11200
11201 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11202
11203 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11204 #endif.
11205
11206 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11207
11208 * manual/errno.texi (EIEIO): Document how translators should
11209 translate the error message.
11210 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11211 printing trailing whitespaces refused by git.
11212 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11213 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11214 * hurd/Makefile (user-interfaces): Add pci.
11215
11216 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11217
11218 * conform/linknamespace.py: New file.
11219 * conform/linknamespace.pl: Remove file.
11220 * conform/Makefile ($(linknamespace-header-tests)): Use
11221 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11222 option.
11223
11224 2018-10-30 Florian Weimer <fweimer@redhat.com>
11225
11226 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11227 memory leaks.
11228
11229 2018-10-30 Florian Weimer <fweimer@redhat.com>
11230
11231 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11232
11233 2018-10-30 Florian Weimer <fweimer@redhat.com>
11234
11235 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11236 support_blob_repeat.
11237
11238 2018-10-30 Florian Weimer <fweimer@redhat.com>
11239
11240 Avoid spurious test failures in stdlib/test-bz22786.
11241 * support/Makefile (libsupport-routines): Add blob_repeat.
11242 (tests): Add tst-support_blob_repeat.
11243 * support/blob_repeat.h: New file.
11244 * support/blob_repeat.c: Likewise.
11245 * support/tst-support_blob_repeat.c: Likewise.
11246 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11247 support_blob_repeat_allocate.
11248
11249 2018-10-30 Andreas Schwab <schwab@suse.de>
11250
11251 [BZ #23125]
11252 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11253 Don't use tail call.
11254 * elf/tst-unwind-main.c: New file.
11255 * elf/Makefile (tests): Add tst-unwind-main.
11256 (CFLAGS-tst-unwind-main.c): Define.
11257
11258 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11259
11260 [BZ #23791]
11261 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11262 n_cs_precedes to 0.
11263 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11264
11265 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11266
11267 * conform/glibcconform.py: Do not import shutil.
11268 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11269 of mkdtemp.
11270
11271 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11272 critic_missing for versions before 3.4.
11273 * configure: Regenerated.
11274 * manual/install.texi (Tools for Compilation): Document
11275 requirement for Python to build glibc.
11276 * INSTALL: Regenerated.
11277 * Rules [PYTHON]: Make code unconditional.
11278 * benchtests/Makefile [PYTHON]: Likewise.
11279 * conform/Makefile [PYTHON]: Likewise.
11280 * manual/Makefile [PYTHON]: Likewise.
11281 * math/Makefile [PYTHON]: Likewise.
11282
11283 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11284
11285 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11286 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11287 answer to interrupt_operation, return EIEIO instead of EINTR.
11288 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11289 _hurd_intr_rpc_msg_about_to global point to start of controlled
11290 assembly snippet. Make it check canceled flag.
11291 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11292 the _hurd_intr_rpc_msg_about_to point.
11293 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11294 issue, remove cancel flag check.
11295
11296 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11297
11298 * scripts/build-many-glibcs.py: Remove compatibility for missing
11299 os.cpu_count and re.fullmatch.
11300
11301 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11302
11303 [BZ #23822]
11304 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11305 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11306 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11307
11308 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11309
11310 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11311 macro.
11312
11313 2018-10-25 Florian Weimer <fweimer@redhat.com>
11314
11315 [BZ #23562]
11316 [BZ #23821]
11317 XFAIL siginfo_t si_band conform test on sparc64.
11318 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11319 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11320 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11321 (conformtest-xfail-conds): Add sparc64-linux.
11322 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11323 sparc64.
11324 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11325
11326 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11327
11328 * elf/elf.h (NT_MIPS_DSP): New macro.
11329 (NT_MIPS_FP_MODE): Likewise.
11330
11331 2018-10-25 Zong Li <zong@andestech.com>
11332
11333 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11334 name by adding the file extension (.so).
11335
11336 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11337
11338 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11339 (test-xfail-ISO11/threads.h/linknamespace,
11340 test-xfail-ISO11/threads.h/conform): Add.
11341
11342 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11343
11344 * math/gen-libm-test.py: Import os.
11345 (ALL_FLOATS_MANUAL): New constant.
11346 (ALL_FLOATS_SUFFIX): Likewise.
11347 (Ulps.all_functions): New function.
11348 (real_all_ulps): Likewise.
11349 (generate_err_table_sub): Likewise.
11350 (generate_err_table): Likewise.
11351 (main): Handle -s and -m options.
11352 * manual/libm-err-tab.pl: Remove.
11353 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11354 instead of libm-err-tab.pl.
11355 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11356 != no].
11357 * manual/install.texi (Tools for Compilation): Document
11358 requirement for Python to build manual.
11359 * INSTALL: Regenerated.
11360
11361 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11362
11363 * bits/time64.h: New file.
11364 * include/time.h: Replace internal_time_t with __time64_t.
11365 * posix/bits/types (__time64_t): Add.
11366 * stdlib/Makefile: Add bits/time64.h to includes.
11367 * time/tzfile.c: Replace internal_time_t with __time64_t.
11368
11369 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11370
11371 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11372 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11373 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11374 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11375 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11376 prototype.
11377 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11378 * posix/spawn_faction_addclose.c
11379 (__posix_spawn_file_actions_addclose): Add hidden definition.
11380 * posix/spawn_faction_adddup2.c
11381 (__posix_spawn_file_actions_adddup2): Likewise.
11382 * posix/spawn_faction_destroy.c
11383 (__posix_spawn_file_actions_destroy): Likewise.
11384 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11385 Likewise.
11386 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11387 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11388 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11389 Likewise.
11390 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11391 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11392 Likewise.
11393
11394 2018-10-24 Andreas Schwab <schwab@suse.de>
11395
11396 [BZ #18093]
11397 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11398 format cache.
11399 * elf/cache.c (print_cache): Likewise.
11400
11401 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11402
11403 * bits/timesize.h: New file.
11404 * stdlib/Makefile (headers): Add bits/timesize.h.
11405 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11406 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11407 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11408 (__SEM_PAD_AFTER_TIME): Likewise.
11409 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11410 (__SHM_PAD_AFTER_TIME): Likewise.
11411 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11412 (__MSQ_PAD_BEFORE_TIME): Likewise.
11413 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11414 (__SEM_PAD_BEFORE_TIME): Likewise.
11415 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11416 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11417 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11418 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11419 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11420 (__MSQ_PAD_BEFORE_TIME): Likewise.
11421 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11422 (__SEM_PAD_BEFORE_TIME): Likewise.
11423 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11424 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11425 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11426 (__MSQ_PAD_BEFORE_TIME): Likewise.
11427 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11428 (__SEM_PAD_BEFORE_TIME): Likewise.
11429 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11430 (__SHM_PAD_BEFORE_TIME): Likewise.
11431 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11432 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11433 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11434
11435 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11436
11437 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11438 USE_RDTSCP is defined.
11439 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11440 USE_RDTSCP is defined.
11441
11442 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11443
11444 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11445 defined.
11446
11447 [BZ #23709]
11448 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11449 independently of other flags.
11450
11451 2018-10-23 Florian Weimer <fweimer@redhat.com>
11452
11453 * time/tst-mktime2.c (N_STRINGS): Remove.
11454 (set_timezone): New function.
11455 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11456 (mktime_test1): Report localtime failure and check errno value.
11457 Use TEST_COMPARE.
11458 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11459 (do_test): Remove alarm call. Use set_timezone and array_length.
11460
11461 2018-10-23 Andreas Schwab <schwab@suse.de>
11462
11463 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11464 (__start_context): Use END instead of PSEUDO_END.
11465
11466 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11467
11468 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11469 version to 4.19.
11470
11471 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11472 version to 4.19.
11473
11474 [BZ #23793]
11475 * wcsmbs/c32rtomb.c: New file.
11476 * wcsmbs/mbrtoc32.c: Likewise.
11477 * wcsmbs/tst-c32-state.c: Likewise.
11478 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11479 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11480 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11481 (tests): Add tst-c32-state.
11482 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11483 $(gen-locales).
11484
11485 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11486
11487 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11488 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11489
11490 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11491
11492 [BZ #23794]
11493 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11494 pair and return 0 in that case, and use saved character to
11495 interpret following character.
11496 * wcsmbs/tst-c16-surrogate.c: New file.
11497 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11498 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11499 Depend on $(gen-locales)
11500
11501 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11502
11503 [BZ #23562]
11504 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11505 (struct siginfo_t): Use correct type for si_band.
11506
11507 2018-10-19 Florian Weimer <fweimer@redhat.com>
11508
11509 [BZ #23689]
11510 * resource/bits/types/struct_rusage.h (struct rusage): Update
11511 comment on struct. Remove extraneous field comment.
11512
11513 2018-10-18 David S. Miller <davem@davemloft.net>
11514
11515 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11516 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11517 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11518 sysdep_routines in subdir elf.
11519 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11520 version for __vdso_clock_gettime.
11521 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11522 Define.
11523 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11524 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11525
11526 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11527
11528 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11529
11530 * sysdeps/i386/init-arch.h: Removed.
11531 * sysdeps/i386/i586/init-arch.h: Likewise.
11532 * sysdeps/i386/i686/init-arch.h: Likewise.
11533 * sysdeps/i386/i686/hp-timing.h: Likewise.
11534 * sysdeps/x86_64/hp-timing.h: Likewise.
11535 * sysdeps/i386/isa.h: New file.
11536 * sysdeps/i386/i586/isa.h: Likewise.
11537 * sysdeps/i386/i686/isa.h: Likewise.
11538 * sysdeps/x86_64/isa.h: Likewise.
11539 * sysdeps/x86/hp-timing.h: New file.
11540 * sysdeps/x86/init-arch.h: Include <isa.h>.
11541
11542 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11543
11544 * math/libm-test-pow.inc (pow_test_data): Do not allow
11545 divide-by-zero exception for pow(+/- 0, -Inf).
11546
11547 2018-10-17 Zack Weinberg <zackw@panix.com>
11548
11549 * manual/job.texi (Job Control is Optional): Remove node, as
11550 job control has not been optional in quite some time.
11551 (Job Control): Mention briefly that systems older than
11552 POSIX.1-2001 might not support job control.
11553 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11554 defined on systems conforming to POSIX.1-2001.
11555
11556 2018-10-17 Arjun Shankar <arjun@redhat.com>
11557
11558 [BZ #22062]
11559 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11560 indentation.
11561 * (__gconv_read_conf): Mark function static.
11562 * (once): New static variable.
11563 * (__gconv_load_conf): New function.
11564 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11565 * iconv/gconv_db.c (once): Remove static variable.
11566 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11567 __gconv_read_conf.
11568 * (__gconv_find_transform): Likewise.
11569 * iconv/tst-iconv-mt.c: New test.
11570 * iconv/Makefile: Add tst-iconv_mt.
11571
11572 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11573
11574 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11575 bits/shm-pad.h.
11576 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11577 (shmatt_t): Define as __syscall_ulong_t.
11578 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11579 and [__SHM_PAD_AFTER_TIME].
11580 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11581 Define shm_segsz and associated padding based on
11582 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11583 Use __syscall_ulong_t instead of unsigned long int.
11584 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11585 unsigned long int.
11586 [__USE_MISC] (struct shm_info): Likewise.
11587 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11588 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11589 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11590 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11591 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11592 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11593 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11594 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11595 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11596 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11597 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11598
11599 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11600 bits/shmlba.h.
11601 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11602 (SHMLBA): Remove macro.
11603 (__getpagesize): Remove function declaration.
11604 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11605 <bits/shmlba.h>.
11606 (SHMLBA): Remove macro.
11607 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11608 <bits/shmlba.h>.
11609 (SHMLBA): Remove macro.
11610 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11611 <bits/shmlba.h>.
11612 (SHMLBA): Remove macro.
11613 (__getpagesize): Remove function declaration.
11614 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11615 <bits/shmlba.h>.
11616 (SHMLBA): Remove macro.
11617 (__getshmlba): Remove function declaration.
11618 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11619 (SHMLBA): Remove macro.
11620 (__getpagesize): Remove function declaration.
11621 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11622 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11623 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11624 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11625 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11626 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11627 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11628 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11629 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11630 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11631
11632 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11633
11634 [BZ #23275]
11635 * nptl/tst-mutex10.c: New File.
11636 * nptl/Makefile (tests): Add tst-mutex10.
11637 (tst-mutex10-ENV): New variable.
11638 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11639 Ensure that elision path is used if elision is available.
11640 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11641 Likewise.
11642 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11643 Likewise.
11644 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11645 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11646 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11647 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11648 Likewise.
11649 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11650 (__pthread_mutex_cond_lock_adjust): Likewise.
11651 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11652 Likewise.
11653 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11654 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11655 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11656 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11657 Add comments.
11658 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11659 Use atomic_load_relaxed and atomic_store_relaxed.
11660 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11661 Use atomic_store_relaxed.
11662
11663 2018-10-17 Andreas Schwab <schwab@suse.de>
11664
11665 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11666 * crypt/badsalttest.c (TIMEOUT): Likewise.
11667 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11668 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11669 * io/test-lfs.c (TIMEOUT): Likewise.
11670 * libio/tst-atime.c (TIMEOUT): Likewise.
11671 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11672 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11673 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11674 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11675 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11676 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11677 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11678 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11679 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11680 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11681 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11682 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11683 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11684 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11685 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11686 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11687 * nptl/tst-once2.c (TIMEOUT): Likewise.
11688 * nptl/tst-once3.c (TIMEOUT): Likewise.
11689 * nptl/tst-once4.c (TIMEOUT): Likewise.
11690 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11691 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11692 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11693 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11694 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11695 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11696 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11697 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11698 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11699 * posix/tst-chmod.c (TIMEOUT): Likewise.
11700 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11701 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11702 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11703 * posix/tst-regex2.c (TIMEOUT): Likewise.
11704 * posix/tst-waitid.c (TIMEOUT): Likewise.
11705 * rt/tst-aio.c (TIMEOUT): Likewise.
11706 * rt/tst-aio10.c (TIMEOUT): Likewise.
11707 * rt/tst-aio4.c (TIMEOUT): Likewise.
11708 * rt/tst-aio5.c (TIMEOUT): Likewise.
11709 * rt/tst-aio6.c (TIMEOUT): Likewise.
11710 * rt/tst-aio64.c (TIMEOUT): Likewise.
11711 * rt/tst-aio7.c (TIMEOUT): Likewise.
11712 * rt/tst-aio9.c (TIMEOUT): Likewise.
11713 * rt/tst-clock.c (TIMEOUT): Likewise.
11714 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11715 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11716 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11717 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11718 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11719 * rt/tst-timer4.c (TIMEOUT): Likewise.
11720 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11721 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11722 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11723 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11724 * time/tst-ftime.c (TIMEOUT): Likewise.
11725 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11726
11727 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11728
11729 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11730 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11731 for thunderX2.
11732
11733 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11734
11735 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11736 bits/sem-pad.h.
11737 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11738 instead of <bits/wordsize.h>.
11739 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11740 and [__SEM_PAD_AFTER_TIME].
11741 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11742 __syscall_ulong_t instead of unsigned long int.
11743 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11744 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11745 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11746 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11747 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11748 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11749 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11750 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11751 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11752 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11753 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11754
11755 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11756
11757 regex: simplify by using intprops.h
11758 [BZ#23744]
11759 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11760 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11761 intprops.h defines them.
11762
11763 regex: __builtin_expect → __glibc_unlikely
11764 [BZ#23744]
11765 This refactoring was prompted by a problem when the regex code is
11766 used as part of Gnulib and when the builder’s compiler does not grok
11767 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11768 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11769 Although this refactoring does not fix the problem directly,
11770 we might as well have Gawk use the now-preferred glibc style for when
11771 __builtin_expect is unavailable.
11772 * posix/regex_internal.h (BE): Remove.
11773 All uses replaced by __glibc_unlikely or __glibc_likely.
11774
11775 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11776
11777 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11778 bits/msq-pad.h.
11779 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11780 instead of <bits/wordsize.h>.
11781 (msgqnum_t): Define as __syscall_ulong_t.
11782 (msglen_t): Likewise.
11783 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11784 and [__MSQ_PAD_AFTER_TIME].
11785 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11786 __syscall_ulong_t instead of unsigned long int.
11787 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11788 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11789 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11790 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11791 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11792 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11793 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11794 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11795 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11796 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11797 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11798
11799 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11800
11801 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11802 (struct shmid_ds): Condition padding after time fields on
11803 [__WORDSIZE == 32].
11804 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11805 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11806 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11807
11808 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11809 (struct semid_ds): Condition padding after time fields on
11810 [__WORDSIZE == 32].
11811 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11812 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11813 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11814 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11815
11816 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11817 (struct msqid_ds): Condition padding after time fields on
11818 [__WORDSIZE == 32].
11819 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11820 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11821 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11822 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11823
11824 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11825
11826 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11827
11828 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11829
11830 * libio/tst-readline.c (TIMEOUT): Define.
11831
11832 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11833
11834 mktime fix for Gnulib + coreutils
11835 [BZ#23745]
11836 This fix affects only Gnulib. Problem discovered when
11837 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11838 * time/mktime.c:
11839 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11840 Do not define since it is not used. Defining an unused static
11841 function prompts a warning from GCC when Coreutils is configured
11842 with --enable-gcc-warnings.
11843
11844 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11845
11846 * benchtests/scripts/compare_bench.py (main): set float type on
11847 threshold argument.
11848
11849 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11850
11851 [BZ #23740]
11852 * localedata/locales/kl_GL (mon): Update, the relative case.
11853 (alt_mon): Add, fill with month names in the nominative case.
11854 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11855 (d_fmt): Set to "%b %d %Y".
11856
11857 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11858
11859 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11860 <bits/mman-linux.h>.
11861 (PROT_READ): Don't define here.
11862 (PROT_WRITE): Likewise.
11863 (PROT_EXEC): Likewise.
11864 (PROT_NONE): Likewise.
11865 (PROT_GROWSDOWN): Likewise.
11866 (PROT_GROWSUP): Likewise.
11867 (MAP_SHARED): Likewise.
11868 (MAP_PRIVATE): Likewise.
11869 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11870 [__USE_MISC] (MAP_FILE): Likewise.
11871 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11872 [__USE_MISC] (MAP_ANON): Likewise.
11873 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11874 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11875 (MCL_CURRENT): Likewise.
11876 (MCL_FUTURE): Likewise.
11877 (MCL_ONFAULT): Likewise.
11878 [__USE_MISC] (MADV_NORMAL): Likewise.
11879 [__USE_MISC] (MADV_RANDOM): Likewise.
11880 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11881 [__USE_MISC] (MADV_WILLNEED): Likewise.
11882 [__USE_MISC] (MADV_DONTNEED): Likewise.
11883 [__USE_MISC] (MADV_FREE): Likewise.
11884 [__USE_MISC] (MADV_REMOVE): Likewise.
11885 [__USE_MISC] (MADV_DONTFORK): Likewise.
11886 [__USE_MISC] (MADV_DOFORK): Likewise.
11887 [__USE_MISC] (MADV_HWPOISON): Likewise.
11888 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11889 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11890 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11891 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11892 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11893 (__MAP_ANONYMOUS): New macro.
11894 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11895 <bits/mman-linux.h> inclusion.
11896 (MAP_FIXED): Likewise.
11897 (MS_SYNC): Likewise.
11898 (MS_ASYNC): Likewise.
11899 (MS_INVALIDATE): Likewise.
11900 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11901 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11902 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11903 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11904 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11905 [__USE_MISC] (MADV_DODUMP): Likewise.
11906 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11907 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11908
11909 [BZ #23735]
11910 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11911 Define.
11912 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11913 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11914 Add test-nldbl-redirect.
11915 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11916 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11917 $(objpfx)libnldbl_nonshared.a.
11918
11919 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11920
11921 * support/support.h (support_objdir_elf_ldso): New variable.
11922 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11923 * support/Makefile (CFLAGS-support_paths.c): Add definition
11924 for OBJDIR_ELF_LDSO_PATH.
11925 * support/test-container.c (main): Search for the ld.so
11926 which is also used by the testsuite.
11927
11928 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11929
11930 [BZ #20209]
11931 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11932 should be "sap" rather than "sab".
11933 (day): Fix spelling of Sunday, should be "sapaat" rather than
11934 "sabaat".
11935
11936 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11937
11938 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11939
11940 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11941
11942 [BZ #19444]
11943 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11944 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11945 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11946
11947 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11948
11949 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11950
11951 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11952
11953 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11954 Add -mrtm.
11955 (CFLAGS-elision-unlock.c): Likewise.
11956 (CFLAGS-elision-timed.c): Likewise.
11957 (CFLAGS-elision-trylock.c): Likewise.
11958 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11959
11960 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11961
11962 [BZ #21037]
11963 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11964 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11965 new fd_to_filename interface.
11966 * libio/freopen64.c (freopen64): Likewise.
11967 * libio/tst-memstream.h: New file.
11968 * libio/tst-memstream4.c: Likewise.
11969 * libio/tst-wmemstream4.c: Likewise.
11970 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11971 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11972 and remove internal dynamic allocation.
11973
11974 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11975
11976 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11977 (MREMAP_MAYMOVE): Do not define here.
11978 [__USE_GNU] (MREMAP_FIXED): Likewise.
11979 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11980 (MREMAP_MAYMOVE): Define here instead.
11981 [__USE_GNU] (MREMAP_FIXED): Likewise.
11982 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11983 (MREMAP_MAYMOVE): Remove.
11984 [__USE_GNU] (MREMAP_FIXED): Likewise.
11985
11986 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11987
11988 * math/fromfp.h: Do not include <math_private.h>.
11989 * math/s_cacosh_template.c: Likewise.
11990 * math/s_casin_template.c: Likewise.
11991 * math/s_casinh_template.c: Likewise.
11992 * math/s_ccos_template.c: Likewise.
11993 * math/s_cproj_template.c: Likewise.
11994 * math/s_fdim_template.c: Likewise.
11995 * math/s_fmaxmag_template.c: Likewise.
11996 * math/s_fminmag_template.c: Likewise.
11997 * math/s_iseqsig_template.c: Likewise.
11998 * math/s_ldexp_template.c: Likewise.
11999 * math/s_nextdown_template.c: Likewise.
12000 * math/w_log1p_template.c: Likewise.
12001 * math/w_scalbln_template.c: Likewise.
12002 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12003 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12004 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12005 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12006 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12007 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12008 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12009 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12010 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12011 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12012 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12013 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12014 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12015 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12016 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12017 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12018 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12019 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12020 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12021 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12022 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12023 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12024 * sysdeps/ieee754/k_standardf.c: Likewise.
12025 * sysdeps/ieee754/k_standardl.c: Likewise.
12026 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12027 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12028 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12029 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12030 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12031 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12032 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12033 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12034 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12035 * sysdeps/ieee754/s_signgam.c: Likewise.
12036 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12037 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12038 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12039 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12040 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12041 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12042 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12043 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12044 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12045 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12046 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12047 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12048 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12049 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12050 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12051 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12052 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12053 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12054 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12055 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12056 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12057 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12058 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12059 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12060 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12061 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12062 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12063 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12064 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12065 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12066 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12067 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12068 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12069 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12070 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12071 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12072 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12073 <math_private.h>.
12074 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12075
12076 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12077
12078 [BZ #23716]
12079 * sysdeps/i386/dl-cet.c: Removed.
12080 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12081 prototype.
12082 (_dl_runtime_profile_shstk): Likewise.
12083 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12084 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12085
12086 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12087
12088 [BZ #23579]
12089 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12090 do_test_with_invalid_iov): New tests.
12091 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12092 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12093 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12094 errno is ENOSYS.
12095 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12096 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12097 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12098
12099 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12100
12101 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12102 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12103 (MATH_REDIRECT_BINARY_ARGS): New macro.
12104 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12105 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12106 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12107 header inclusion.
12108 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12109 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12110 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12111 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12112 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12113 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12114 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12115 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12116 Likewise.
12117 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12118 Likewise.
12119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12121 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12122 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12124 Likewise.
12125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12126 Likewise.
12127 * sysdeps/generic/math_private_calls.h
12128 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12129 Do not declare and define as an inline function.
12130 * math/divtc3.c (__divtc3): Use copysign functions instead of
12131 __copysign variants.
12132 * math/multc3.c (__multc3): Likewise.
12133 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12134 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12135 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12136 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12137 Likewise.
12138 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12139 (__ieee754_yn): Likewise.
12140 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12141 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12142 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12143 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12144 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12145 (__sin): Likewise.
12146 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12147 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12148 Likewise.
12149 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12150 Likewise.
12151 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12152 Likewise.
12153 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12154 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12155 Likewise.
12156 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12157 (__ieee754_ynf): Likewise.
12158 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12159 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12160 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12161 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12162 Likewise.
12163 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12164 (__ieee754_ynl): Likewise.
12165 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12166 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12167 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12168 Likewise.
12169 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12170 (__ieee754_ynl): Likewise.
12171 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12172 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12173 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12174 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12175 Likewise.
12176 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12177 (__ieee754_ynl)
12178 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12179 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12180 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12181 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12182 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12183
12184 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12185 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12186 using MATH_REDIRECT.
12187 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12188 header inclusion.
12189 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12190 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12191 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12192 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12193 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12194 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12195 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12196 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12197 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12200 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12201 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12202 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12203 (round): Redirect to __round.
12204 (__roundl): Call round instead of __round.
12205 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12206 Remove macro.
12207 [_ARCH_PWR5X] (__roundf): Likewise.
12208 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12209 functions instead of __round variants.
12210 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12211 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12212 Likewise.
12213 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12214 Likewise.
12215 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12216 Likewise.
12217 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12218 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12219 __lroundl.
12220 (__ieee754_expl): Call roundl instead of __roundl.
12221
12222 2018-09-27 Andreas Schwab <schwab@suse.de>
12223
12224 [BZ #23717]
12225 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12226 (do_test): Make st1 static.
12227
12228 2018-09-26 Andreas Schwab <schwab@suse.de>
12229
12230 [BZ #23707]
12231 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12232 * elf/Makefile (tests): Add tst-unwind-ctor.
12233 (modules-names): Add tst-unwind-ctor-lib.
12234 ($(objpfx)tst-unwind-ctor): Depend on
12235 $(objpfx)tst-unwind-ctor-lib.so.
12236
12237 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12238
12239 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12240 file. Most contents moved from ....
12241 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12242 and include <bits/mman-map-flags-generic.h>.
12243 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12244 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12245 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12246 <bits/mman-map-flags-generic.h>.
12247 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12248 macros defined in <bits/mman-map-flags-generic.h>.
12249 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12250 <bits/mman-map-flags-generic.h>.
12251 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12252 defined in <bits/mman-map-flags-generic.h>.
12253
12254 2018-09-26 Andreas Schwab <schwab@suse.de>
12255
12256 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12257 output.
12258
12259 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12260 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12261 Fangrui Song <maskray@google.com>
12262
12263 [BZ #20480]
12264 * config.make.in (have-textrel_ifunc): New define.
12265 * configure.ac: Add check if linker supports textrel relocation with
12266 ifunc.
12267 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12268 tst-ifunc-textrel.
12269 (CFLAGS-tst-ifunc-textrel.c): New rule.
12270 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12271 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12272 * elf/tst-ifunc-textrel.c: New file.
12273
12274 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12275
12276 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12277 <bits/procfs-prregset.h>.
12278 (prgregset_t): Define using __prgregset_t.
12279 (prfpregset_t): Define using __prfpregset_t.
12280 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12281 (sysdep_headers): Add bits/procfs-prregset.h.
12282 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12283 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12284 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12285 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12286
12287 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12288 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12289 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12290 pr_uid and pr_gid.
12291 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12292 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12293 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12294 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12295 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12296 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12297 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12298 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12299 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12300 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12301 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12302 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12303 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12304 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12305 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12306 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12307 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12308 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12309 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12310 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12311 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12312 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12313 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12314 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12315
12316 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12317 AArch64 version. Include <bits/procfs.h>.
12318 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12319 (sysdep_headers): Add bits/procfs.h.
12320 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12321 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12322 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12323 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12324 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12325 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12326 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12327 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12328 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12329 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12330 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12331 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12332 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12333 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12334 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12335 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12336 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12337
12338 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12339
12340 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12341 Use libsupport.
12342
12343 2018-09-25 Arjun Shankar <arjun@redhat.com>
12344
12345 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12346 (__gconv_max_path_elem_len): Likewise.
12347 (__gconv_nmodules): Likewise.
12348 (__gconv_get_path): Likewise.
12349 (path_elem): Move to ...
12350 * iconv/gconv_conf.c: ... here.
12351 (__gconv_get_path): Mark function static.
12352 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12353 * iconv/gconv_open.c: ... here.
12354
12355 2018-09-24 Andreas Schwab <schwab@suse.de>
12356
12357 * scripts/haveversions.awk: New file.
12358 * Makerules ($(common-objpfx)Versions.def)
12359 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12360 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12361 Move rules ...
12362 * Makeconfig ($(common-objpfx)Versions.def)
12363 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12364 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12365 ... here.
12366 ($(common-objpfx)Versions.mk): New rule. Include it.
12367 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12368 Emit error if build-obsolete-nsl = yes.
12369 * manual/install.texi (Configuring and compiling): Describe
12370 --enable-obsolete-nsl as unavaiable after version 2.28.
12371 * INSTALL: Regenerate.
12372
12373 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12374
12375 * NEWS: Add note about new TLE support on powerpc64le.
12376 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12377 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12378 __ununsed1.
12379 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12380 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12381 * sysdeps/powerpc/powerpc32/sysdep.h,
12382 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12383 ABORT_TRANSACTION): Remove macros.
12384 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12385 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12386 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12388 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12389 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12390 usage.
12391 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12392
12393 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12394
12395 [BZ #10425]
12396 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12397 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12398 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12399 which is the same as in it_IT.
12400 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12401 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12402
12403 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12404
12405 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12406 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12407 using MATH_REDIRECT.
12408 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12409 header inclusion.
12410 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12411 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12412 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12413 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12414 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12415 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12417 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12420 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12421 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12422 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12423 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12424 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12425 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12426 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12427 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12428 (ceil): Redirect to __ceil.
12429 (floor): Redirect to __floor.
12430 (trunc): Redirect to __trunc.
12431 (__truncl): Call trunc instead of __trunc.
12432 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12433 Remove macro.
12434 [_ARCH_PWR5X] (__truncf): Likewise.
12435 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12436 trunc functions instead of __trunc variants.
12437 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12438 Likewise.
12439 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12440 Likewise.
12441 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12442 Likewise.
12443 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12444 Likewise.
12445
12446 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12447 [__i586__ || __pentium__].
12448 [__i486__]: Handle explicitly.
12449 (HAS_CPUID): Define to 1 if above macros are undefined.
12450 (HAS_I586): Likewise.
12451 (HAS_I686): Likewise.
12452
12453 2018-09-20 Florian Weimer <fweimer@redhat.com>
12454
12455 * misc/tst-gethostid.c: New file.
12456 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12457 (tst-gethostid): Link with -ldl.
12458
12459 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12460
12461 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12462 value from gethostbyname_r.
12463
12464 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12465
12466 * stdlib/tst-setcontext9.c (f1): Rename to...
12467 (f1a): ... this.
12468 (f1b): New function implementing lower half of f1 in alternate stack.
12469
12470 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12471
12472 Fix mktime localtime offset confusion
12473 [BZ #23603]
12474 * include/time.h (__mktime_internal): The localtime offset is now
12475 of type long int instead of time_t. This is the longstanding type
12476 in glibc, and it is more than enough to represent difference
12477 between localtime and gmtime even if it is 32 bits and time_t is
12478 64. Changing it now will let us avoid an unnecessary change when
12479 time_t is widened to 64 bits on 32-bit platforms.
12480 * time/mktime-internal.h (mktime_offset_t): Now long int.
12481
12482 Merge mktime, timegm from upstream Gnulib
12483 [BZ #23603][BZ #16346]
12484 This fixes some obscure problems with integer overflow.
12485 Although it looks scary, it is almost all a byte-for-byte copy
12486 from Gnulib, and the Gnulib code has been tested reasonably well.
12487 * include/intprops.h: New file, copied from Gnulib.
12488 * include/verify.h, time/mktime-internal.h:
12489 New tiny files, simplified from Gnulib.
12490 * time/mktime.c: Copy from Gnulib. This has the following changes:
12491 Do not include config.h if DEBUG_MKTIME is nonzero.
12492 Include stdbool.h, intprops.h, verify.h.
12493 Include string.h only if needed.
12494 Include stdlib.h on MS-Windows.
12495 Include mktime-internal.h.
12496 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12497 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12498 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12499 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12500 simplify later conditionals; default the others to zero. Use
12501 these conditionals to express only the code needed on the current
12502 platform. In uses of these conditionals, explicitly spell out how
12503 _LIBC affects things, so it’s easier to review from a glibc
12504 viewpoint.
12505 (WRAPV): Remove; no longer needed now that we have
12506 systematic overflow checking.
12507 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12508 compartmentalize tzset issues. Move system-dependent tzsettish
12509 code here from mktime.
12510 (verify): Remove; now done by verify.h. All uses changed.
12511 (long_int): Use a more-conservative definition, to avoid
12512 integer overflow.
12513 (SHR): Remove, replacing with ...
12514 (shr): New function, which means we needn’t worry about side
12515 effects in args, and conversion analysis is simpler.
12516 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12517 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12518 (time_t_avg, time_t_add_ok): Remove.
12519 (mktime_min, mktime_max): New constants.
12520 (leapyear, isdst_differ): Use bool for booleans.
12521 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12522 Use long_int, not time_t, for mktime differences.
12523 (long_int_avg): New function, replacing time_t_avg.
12524 INT_ADD_WRAPV replaces time_t_add_ok.
12525 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12526 All uses changed.
12527 (convert_time): New function.
12528 (ranged_convert): Use it.
12529 (__mktime_internal): Last arg now points to mktime_offset_t, not
12530 time_t. All uses changed. This is a no-op on glibc, where
12531 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12532 offset guess. Directly check for integer overflow instead of
12533 using a heuristic that works only 99.9...% of the time.
12534 Access *OFFSET only once, to avoid an unlikely race if the
12535 compiler delays a load and if this cascades into a signed integer
12536 overflow.
12537 (mktime): Move tzsettish code to my_tzset, and move
12538 localtime_offset to within mktime so that it doesn’t
12539 need a separate ifdef.
12540 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12541 instead of localtime.
12542 * time/timegm.c: Copy from Gnulib. This has the following changes:
12543 Include mktime-internal.h.
12544 [!_LIBC]: Include config.h and time.h. Do not include
12545 timegm.h or time_r.h. Make __mktime_internal a macro,
12546 and include mktime-internal.h to get its declaration.
12547 (timegm): Temporary is now mktime_offset_t, not time_t.
12548 This affects only Gnulib.
12549
12550 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12551
12552 [BZ #23637]
12553 * string/test-strstr.c (pr23637): New function.
12554 (test_main): Add tests with longer needles.
12555 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12556 * string/strstr.c (AVAILABLE): Likewise.
12557
12558 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12559
12560 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12561
12562 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12563
12564 * NEWS: Mention pow improvements.
12565 * math/Makefile (type-double-routines): Add e_pow_log_data.
12566 * sysdeps/generic/math_private.h (__exp1): Remove.
12567 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12568 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12569 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12570 contraction.
12571 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12572 (exp_inline): Remove.
12573 (__ieee754_exp): Only single double input is handled.
12574 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12575 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12576 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12577 (__pow_log_data): Define.
12578 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12579 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12580 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12581 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12582 contraction.
12583 (CFLAGS-e_pow-fma4.c): Likewise.
12584
12585 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12586
12587 Simplify tzfile fstat failure code
12588 [BZ #21716]
12589 * time/tzfile.c (__tzfile_read): Simplify slightly.
12590
12591 Fix tzfile low-memory assertion failure
12592 [BZ #21716]
12593 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12594 when registering time zone abbreviations.
12595
12596 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12597
12598 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12599 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12600 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12601 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12602 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12603 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12604 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12605 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12606 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12607
12608 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12609 __ceil.
12610 (__ceill): Call ceil instead of __ceil.
12611 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12612 __floor.
12613 (__floorl): Call floor instead of __floor.
12614
12615 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12616
12617 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12618 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12619 using MATH_REDIRECT.
12620 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12621 header inclusion.
12622 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12623 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12624 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12625 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12626 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12627 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12628 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12629 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12631 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12634 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12635 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12636 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12637 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12638 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12639 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12640 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12641 Remove macro.
12642 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12643 functions instead of __ceil variants.
12644 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12645 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12646 Likewise.
12647 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12648 Likewise.
12649 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12650 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12651 Likewise.
12652 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12653 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12654
12655 [BZ #21286]
12656 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12657 constant.
12658 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12659 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12660 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12661 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12662 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12663 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12664 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12665 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12666 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12667 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12668 (ILL_BADIADDR): Remove constant.
12669 (TRAP_BRANCH): Likewise.
12670 (TRAP_HWBKPT): Likewise.
12671
12672 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12673
12674 [BZ #23656]
12675 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12676 Remove [_MIPS_SIM = _ABIN32] conditional case.
12677 (struct elf_prpsinfo): Likewise.
12678
12679 [BZ #23649]
12680 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12681 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12682 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12683 Likewise.
12684 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12685 elf_prpsinfo): Likewise.
12686 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12687 elf_prpsinfo): Likewise.
12688 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12689 Likewise.
12690
12691 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12692 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12693 using MATH_REDIRECT.
12694 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12695 header inclusion.
12696 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12697 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12698 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12699 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12700 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12701 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12702 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12703 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12704 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12705 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12706 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12707 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12708 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12709 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12710 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12711 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12712 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12713 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12714 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12715 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12717 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12718 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12719 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12720 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12721 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12722 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12723 __rint variants.
12724 * math/e_scalbf.c (invalid_fn): Likewise.
12725 * math/e_scalbl.c (invalid_fn): Likewise.
12726 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12727 Likewise.
12728 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12729 Likewise.
12730 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12731 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12732 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12733 Likewise.
12734 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12735 Likewise.
12736 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12737 Likewise.
12738 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12739 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12740
12741 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12742 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12743 New macro.
12744 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12745 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12746 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12747 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12748 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12749 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12750 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12751 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12752 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12753 && !NO_MATH_REDIRECT] (floor): Likewise.
12754 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12755 header inclusion.
12756 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12757 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12758 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12759 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12760 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12761 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12762 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12763 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12765 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12767 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12768 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12769 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12770 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12771 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12772 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12773 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12774 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12775 Remove macro.
12776 [_ARCH_PWR5X] (__floorf): Likewise.
12777 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12778 inline function.
12779 [__SSE4_1__] (__floorf): Likewise.
12780 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12781 instead of __floor variants.
12782 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12783 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12784 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12785 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12786 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12787 * math/w_tgamma_compat.c (__tgamma): Likewise.
12788 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12789 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12790 * math/w_tgammal_compat.c (__tgammal): Likewise.
12791 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12792 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12793 Likewise.
12794 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12795 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12796 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12797 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12798 Likewise.
12799 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12800 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12801 Likewise.
12802 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12803 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12804 Likewise.
12805 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12806 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12807 Likewise.
12808 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12809 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12810 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12811 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12812 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12813 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12814
12815 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12816
12817 * elf/Makefile (modules-names-tests): New variable.
12818
12819 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12820
12821 * NEWS: Mention log2 improvements.
12822 * math/Makefile (type-double-routines): Add e_log2_data.
12823 * sysdeps/i386/fpu/e_log2_data.c: New file.
12824 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12825 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12826 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12827 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12828 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12829 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12830
12831 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12832
12833 * NEWS: Mention log improvement.
12834 * math/Makefile (type-double-routines): Add e_log_data.
12835 * sysdeps/i386/fpu/e_log_data.c: New file.
12836 * sysdeps/ia64/fpu/e_log_data.c: New file.
12837 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12838 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12839 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12840 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12841 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12842 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12843
12844 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12845 Xuepeng Guo <xuepeng.guo@intel.com>
12846
12847 [BZ #23606]
12848 * sysdeps/i386/start.S: Include <sysdep.h>
12849 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12850 enabled. Add cfi_undefined (eip).
12851
12852 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12853
12854 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12855 (MOVQ): Likewise.
12856 (EXTRACT_WORDS64): Likewise.
12857 (INSERT_WORDS64): Likewise.
12858 (GET_FLOAT_WORD): Likewise.
12859 (SET_FLOAT_WORD): Likewise.
12860
12861 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12862 argument.
12863 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12864 build, but not for second build if --full-gcc. Use
12865 --enable-languages=all for second build if --full-gcc.
12866 (get_parser): Add --full-gcc option.
12867 (main): Update call to Context.
12868
12869 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12870
12871 [BZ #10797]
12872 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12873 Single Quotation Mark).
12874 (thousands_sep): Likewise.
12875 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12876 * localedata/locales/it_IT (thousands_sep): Use ".".
12877 (grouping): Use "3;3".
12878
12879 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12880
12881 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12882 x86_64 and i686 configs using --enable-obsolete-rpc
12883 --enable-obsolete-nsl.
12884
12885 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12886
12887 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12888
12889 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12890
12891 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12892 Increment size of new_argv by one.
12893
12894 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12895
12896 [BZ #17426]
12897 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12898 * localedata/locales/ar_IN (d_fmt): Likewise.
12899 * localedata/locales/bhb_IN (d_fmt): Likewise.
12900 * localedata/locales/bho_IN (d_fmt): Likewise.
12901 * localedata/locales/bn_BD (d_fmt): Likewise.
12902 * localedata/locales/bn_IN (d_fmt): Likewise.
12903 * localedata/locales/doi_IN (d_fmt): Likewise.
12904 * localedata/locales/gu_IN (d_fmt): Likewise.
12905 * localedata/locales/hi_IN (d_fmt): Likewise.
12906 * localedata/locales/hne_IN (d_fmt): Likewise.
12907 * localedata/locales/kn_IN (d_fmt): Likewise.
12908 * localedata/locales/mag_IN (d_fmt): Likewise.
12909 * localedata/locales/mai_IN (d_fmt): Likewise.
12910 * localedata/locales/mjw_IN (d_fmt): Likewise.
12911 * localedata/locales/ml_IN (d_fmt): Likewise.
12912 * localedata/locales/mni_IN (d_fmt): Likewise.
12913 * localedata/locales/mr_IN (d_fmt): Likewise.
12914 * localedata/locales/pa_IN (d_fmt): Likewise.
12915 * localedata/locales/raj_IN (d_fmt): Likewise.
12916 * localedata/locales/sat_IN (d_fmt): Likewise.
12917 * localedata/locales/sd_IN (d_fmt): Likewise.
12918 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12919 * localedata/locales/ta_IN (d_fmt): Likewise.
12920 * localedata/locales/ta_LK (d_fmt): Likewise.
12921 * localedata/locales/tcy_IN (d_fmt): Likewise.
12922 * localedata/locales/ur_IN (d_fmt): Likewise.
12923
12924 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12925 * localedata/locales/ks_IN (d_fmt): Likewise.
12926 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12927
12928 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12929 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12930 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12931 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12932
12933 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12934
12935 * NEWS: Mention exp and exp2 improvements.
12936 * math/Makefile (libm-support): Remove t_exp.
12937 (type-double-routines): Add math_err and e_exp_data.
12938 * sysdeps/aarch64/libm-test-ulps: Update.
12939 * sysdeps/arm/libm-test-ulps: Update.
12940 * sysdeps/i386/fpu/e_exp_data.c: New file.
12941 * sysdeps/i386/fpu/math_err.c: New file.
12942 * sysdeps/i386/fpu/t_exp.c: Remove.
12943 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12944 * sysdeps/ia64/fpu/math_err.c: New file.
12945 * sysdeps/ia64/fpu/t_exp.c: Remove.
12946 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12947 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12948 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12949 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12950 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12951 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12952 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12953 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12954 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12955 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12956 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12957 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12958 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12959 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12960 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12961 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12962
12963 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12964
12965 * sysdeps/alpha/fpu/math_private.h: Remove.
12966
12967 * sysdeps/generic/math_private.h
12968 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12969 Move this inline function ....
12970 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12971 * include/math.h [!_ISOMAC]: To here....
12972
12973 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12974
12975 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12976 code ....
12977 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12978 * include/fenv.h [!_ISOMAC]: ... to here.
12979 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12980 (feraiseexcept): Likewise.
12981 * math/fromfp.h: Do not include <fenv_private.h>.
12982 * math/s_cexp_template.c: Likewise.
12983 * math/s_csin_template.c: Likewise.
12984 * math/s_csinh_template.c: Likewise.
12985 * math/s_ctan_template.c: Likewise.
12986 * math/s_ctanh_template.c: Likewise.
12987 * math/s_iseqsig_template.c: Likewise.
12988 * math/w_acos_compat.c: Likewise.
12989 * math/w_acosf_compat.c: Likewise.
12990 * math/w_acosl_compat.c: Likewise.
12991 * math/w_asin_compat.c: Likewise.
12992 * math/w_asinf_compat.c: Likewise.
12993 * math/w_asinl_compat.c: Likewise.
12994 * math/w_j0_compat.c: Likewise.
12995 * math/w_j0f_compat.c: Likewise.
12996 * math/w_j0l_compat.c: Likewise.
12997 * math/w_j1_compat.c: Likewise.
12998 * math/w_j1f_compat.c: Likewise.
12999 * math/w_j1l_compat.c: Likewise.
13000 * math/w_jn_compat.c: Likewise.
13001 * math/w_jnf_compat.c: Likewise.
13002 * math/w_log10_compat.c: Likewise.
13003 * math/w_log10f_compat.c: Likewise.
13004 * math/w_log10l_compat.c: Likewise.
13005 * math/w_log2_compat.c: Likewise.
13006 * math/w_log2f_compat.c: Likewise.
13007 * math/w_log2l_compat.c: Likewise.
13008 * math/w_log_compat.c: Likewise.
13009 * math/w_logf_compat.c: Likewise.
13010 * math/w_logl_compat.c: Likewise.
13011 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13012 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13013 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13014 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13015 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13016 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13017 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13018 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13019 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13020 * sysdeps/ieee754/k_standardl.c: Likewise.
13021 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13022 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13023 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13024 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13025 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13026 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13027 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13028 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13029 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13030 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13031 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13032 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13033 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13034 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13035 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13036 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13037 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13038 * math/w_ilogb_template.c: Include <fenv.h> instead of
13039 <fenv_private.h>.
13040 * math/w_llogb_template.c: Likewise.
13041 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13042 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13043
13044 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13045
13046 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13047 * math/fromfp.h: Include <fenv_private.h>.
13048 * math/math-narrow.h: Likewise.
13049 * math/s_cexp_template.c: Likewise.
13050 * math/s_csin_template.c: Likewise.
13051 * math/s_csinh_template.c: Likewise.
13052 * math/s_ctan_template.c: Likewise.
13053 * math/s_ctanh_template.c: Likewise.
13054 * math/s_iseqsig_template.c: Likewise.
13055 * math/w_acos_compat.c: Likewise.
13056 * math/w_acosf_compat.c: Likewise.
13057 * math/w_acosl_compat.c: Likewise.
13058 * math/w_asin_compat.c: Likewise.
13059 * math/w_asinf_compat.c: Likewise.
13060 * math/w_asinl_compat.c: Likewise.
13061 * math/w_ilogb_template.c: Likewise.
13062 * math/w_j0_compat.c: Likewise.
13063 * math/w_j0f_compat.c: Likewise.
13064 * math/w_j0l_compat.c: Likewise.
13065 * math/w_j1_compat.c: Likewise.
13066 * math/w_j1f_compat.c: Likewise.
13067 * math/w_j1l_compat.c: Likewise.
13068 * math/w_jn_compat.c: Likewise.
13069 * math/w_jnf_compat.c: Likewise.
13070 * math/w_llogb_template.c: Likewise.
13071 * math/w_log10_compat.c: Likewise.
13072 * math/w_log10f_compat.c: Likewise.
13073 * math/w_log10l_compat.c: Likewise.
13074 * math/w_log2_compat.c: Likewise.
13075 * math/w_log2f_compat.c: Likewise.
13076 * math/w_log2l_compat.c: Likewise.
13077 * math/w_log_compat.c: Likewise.
13078 * math/w_logf_compat.c: Likewise.
13079 * math/w_logl_compat.c: Likewise.
13080 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13081 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13082 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13083 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13084 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13085 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13086 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13087 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13088 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13089 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13090 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13091 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13092 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13093 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13094 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13095 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13096 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13097 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13098 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13099 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13100 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13101 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13102 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13103 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13104 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13105 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13106 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13107 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13108 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13109 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13110 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13111 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13112 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13113 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13114 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13115 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13116 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13117 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13118 * sysdeps/ieee754/k_standardl.c: Likewise.
13119 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13120 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13121 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13122 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13123 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13124 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13125 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13126 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13127 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13128 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13129 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13130 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13131 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13132 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13133 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13134 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13135 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13136 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13137 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13138 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13139 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13140 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13141 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13142 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13143 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13144 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13145 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13146 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13147 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13148 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13149 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13150 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13151 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13152 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13153 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13154 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13155 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13156 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13157 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13158 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13159 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13160 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13161 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13162 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13163 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13164 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13165 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13166 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13167 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13168 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13169 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13170 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13171 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13172 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13173 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13174 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13175 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13176 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13177 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13178 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13179 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13180 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13181 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13182 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13183 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13184 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13185 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13186 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13187 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13188 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13189 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13190
13191 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13192
13193 [BZ #20271]
13194 * include/stdio.h (__libc_fatal): Mention newline in comment.
13195 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13196 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13197 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13198 * nss/nsswitch.c (__nss_next2): Likewise.
13199 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13200 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13201 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13202 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13203 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13204 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13205 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13206 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13207 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13208 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13209 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13210 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13211 (__netlink_assert_response): Likewise.
13212
13213 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13214
13215 * conform/glibcconform.py: New file.
13216 * conform/list-header-symbols.py: Likewise.
13217 * conform/list-header-symbols.pl: Remove.
13218 * conform/Makefile (tests-special): Only add linknamespace tests
13219 if [PYTHON].
13220 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13221
13222 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13223
13224 [BZ #23597]
13225 * support/Makefile (libsupport-routines): Add
13226 support_copy_file_range and xcopy_file_range.
13227 * support/support.h: Include <sys/types.h>.
13228 (support_copy_file_range): New prototype.
13229 * support/support_copy_file_range.c: New file. Copied and
13230 modified from io/copy_file_range-compat.c.
13231 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13232 instead of copy_file_range.
13233 * support/xcopy_file_range.c: New file.
13234 * support/xunistd.h (xcopy_file_range): New prototype.
13235
13236 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13237
13238 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13239 xpthread_create and xpthread_join.
13240
13241 2018-08-30 Florian Weimer <fweimer@redhat.com>
13242
13243 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13244
13245 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13246
13247 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13248 if malloc fails.
13249
13250 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13251
13252 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13253 and minus_oflow as non-finite.
13254
13255 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13256
13257 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13258 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13259 moved to fenv_private.h except for ...
13260 (TOINT_INTRINSICS): Kept in math_private.h.
13261 (roundtoint): Likewise.
13262 (converttoint): Likewise.
13263 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13264 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13265 * sysdeps/arm/math_private.h: Remove.
13266 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13267 ....
13268 * sysdeps/generic/math_private.h: ... this file. Include
13269 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13270 Include <fenv_private.h>. Remove functions and macros moved to
13271 fenv_private.h.
13272 * sysdeps/i386/fpu/math_private.h: Remove.
13273 * sysdeps/mips/math_private.h: Move to ....
13274 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13275 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13276 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13277 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13278 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13279 * sysdeps/powerpc/fpu/math_private.h: Do not include
13280 <fenv_private.h>.
13281 * sysdeps/riscv/rvf/math_private.h: Move to ....
13282 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13283 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13284 <fenv_private.h>.
13285 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13286 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13287 * sysdeps/sparc/fpu/math_private.h: Remove.
13288 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13289 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13290 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13291 <fenv_private.h>.
13292 * sysdeps/x86_64/fpu/math_private.h: Do not include
13293 <sysdeps/i386/fpu/fenv_private.h>.
13294
13295 2018-08-28 Florian Weimer <fweimer@redhat.com>
13296
13297 [BZ #23578]
13298 * posix/tst-regcomp-truncated.c: New file.
13299 * posix/Makefile (tests): Add it.
13300 (tst-regcomp-truncated.out): Depend on generated locales.
13301
13302 2018-08-28 Florian Weimer <fweimer@redhat.com>
13303
13304 * support/test-container.c (main): Treat unshare failure with
13305 EPERM as an unsupported test.
13306
13307 2018-08-28 Florian Weimer <fweimer@redhat.com>
13308
13309 [BZ #23520]
13310 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13311 * nscd/netgroupcache.c
13312 (addgetnetgrentX): Add tofreep parameter. Do not free
13313 heap-allocated buffer.
13314 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13315 (addgetnetgrentX_ignore): New function.
13316 (addgetnetgrent): Call it.
13317 (readdgetnetgrent): Likewise.
13318
13319 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13320
13321 * string/memmem.c: Use memcmp for first match.
13322
13323 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13324
13325 [BZ #17426]
13326 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13327
13328 2018-08-27 DJ Delorie <dj@redhat.com>
13329
13330 * support/Makefile (others): Don't list programs explicitly as a
13331 dependency of "others".
13332
13333 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13334
13335 * sysdeps/generic/math-tests-trap-force.h: New file.
13336 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13337 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13338 * sysdeps/powerpc/math-tests.h: Remove file.
13339 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13340
13341 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13342 Torvald Riegel <triegel@redhat.com>
13343
13344 [BZ #23538]
13345 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13346 Update r to include the set wake-request flag if waiters are
13347 remaining after spinning.
13348
13349 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13350
13351 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13352
13353 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13354
13355 [BZ #23578]
13356 regex: fix uninitialized memory access
13357 I introduced this bug into gnulib in commit
13358 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13359 eventually it was merged into glibc. The bug was found by
13360 project-repo <bugs@feusi.co> and reported here:
13361 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13362 Diagnosis and draft fix reported by Assaf Gordon here:
13363 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13364 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13365 * posix/regex_internal.c (build_wcs_upper_buffer):
13366 Fix bug when mbrtowc returns 0.
13367
13368 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13369
13370 * po/be.po: Update translation.
13371
13372 2018-08-24 DJ Delorie <dj@delorie.com>
13373
13374 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13375 $(libunwind).
13376
13377 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13378
13379 [BZ #23400]
13380 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13381 create temporary files in source tree.
13382
13383 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13384
13385 * sysdeps/generic/math-tests-trap.h: New file.
13386 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13387 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13388 * sysdeps/aarch64/math-tests.h: Remove file.
13389 * sysdeps/arm/math-tests.h: Likewise.
13390 * sysdeps/riscv/math-tests.h: Likewise.
13391 * sysdeps/aarch64/math-tests-trap.h: New file.
13392 * sysdeps/arm/math-tests-trap.h: Likewise.
13393 * sysdeps/riscv/math-tests-trap.h: Likewise.
13394
13395 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13396
13397 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13398 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13399 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13400 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13401 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13402 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13403 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13404 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13405 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13406 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13407 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13408 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13409 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13410 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13411 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13412 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13413 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13414 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13415
13416 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13417
13418 * sysdeps/generic/math-tests-exceptions.h: New file.
13419 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13420 (EXCEPTION_TESTS_float): Do not define here.
13421 (EXCEPTION_TESTS_double): Likewise.
13422 (EXCEPTION_TESTS_long_double): Likewise.
13423 (EXCEPTION_TESTS_float128): Likewise.
13424 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13425 Likewise.
13426 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13427 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13428 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13429 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13430 * sysdeps/mips/math-tests.h: Likewise.
13431 * sysdeps/nios2/math-tests.h: Likewise.
13432 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13433 (EXCEPTION_TESTS_float): Do not define here.
13434 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13435 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13436 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13437
13438 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13439
13440 * NEWS: Move optimized sinf entry to 2.29.
13441
13442 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13443
13444 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13445
13446 2018-08-22 DJ Delorie <dj@redhat.com>
13447
13448 * Makefile (testroot.pristine): New rules to initialize the
13449 test-in-container "testroot".
13450 * Makerules (all-testsuite): Add tests-container.
13451 * Rules (tests-expected): Add tests-container.
13452 (binaries-all-tests): Likewise.
13453 (tests-container): New, run these tests in the testroot container.
13454 * support/Makefile (others): Add *-container, support_paths.c,
13455 xmkdirp, and links-dso-program.
13456 * support/links-dso-program-c.c: New.
13457 * support/links-dso-program.cc: New.
13458 * support/test-container.c: New.
13459 * support/shell-container.c: New.
13460 * support/echo-container.c: New.
13461 * support/true-container.c: New.
13462 * support/xmkdirp.c: New.
13463 * support/xsymlink.c: New.
13464 * support/support_paths.c: New.
13465 * support/support.h: Add support paths prototypes.
13466 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13467
13468 * nss/tst-nss-test3.c: Convert to test-in-container.
13469 * nss/tst-nss-test3.root/: New.
13470
13471 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13472
13473 regex: port Gnulib code to z/OS POSIX environment
13474 Problem reported by Arnold Robbins in:
13475 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13476 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13477 Undef.
13478
13479 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13480
13481 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13482 (ROUNDING_TESTS_double): Remove.
13483 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13484 (ROUNDING_TESTS_double): Remove.
13485 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13486 (ROUNDING_TESTS_double): Remove.
13487 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13488 (ROUNDING_TESTS_float): Remove.
13489 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13490 (ROUNDING_TESTS_float): Remove.
13491 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13492 (ROUNDING_TESTS_float): Remove.
13493 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13494 !TEST_MATHVEC here.
13495 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13496 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13497
13498 * sysdeps/generic/math-tests-rounding.h: New file.
13499 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13500 (ROUNDING_TESTS_float): Do not define here.
13501 (ROUNDING_TESTS_double): Likewise.
13502 (ROUNDING_TESTS_long_double): Likewise.
13503 (ROUNDING_TESTS_float128): Likewise.
13504 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13505 (ROUNDING_TESTS_double): Undefine before defining.
13506 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13507 (ROUNDING_TESTS_double): Undefine before defining.
13508 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13509 (ROUNDING_TESTS_double): Undefine before defining.
13510 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13511 (ROUNDING_TESTS_float): Undefine before defining.
13512 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13513 (ROUNDING_TESTS_float): Undefine before defining.
13514 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13515 (ROUNDING_TESTS_float): Undefine before defining.
13516 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13517 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13518 not define here.
13519 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13520 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13521 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13522 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13523 (ROUNDING_TESTS_float): Do not define here.
13524 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13525 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13526 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13527 (ROUNDING_TESTS_float): Likewise.
13528 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13529 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13530 * sysdeps/mips/math-tests.h [__mips_soft_float]
13531 (ROUNDING_TESTS_float): Likewise.
13532 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13533 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13534 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13535 (ROUNDING_TESTS_double): Likewise.
13536 (ROUNDING_TESTS_long_double): Likewise.
13537
13538 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13539
13540 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13541 (PF_XDP): New macro.
13542 (AF_XDP): New macro.
13543 (SOL_XDP): New macro.
13544
13545 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13546
13547 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13548 (TCP_INQ): Likewise.
13549 (TCP_CM_INQ): Likewise.
13550 (TCP_REPAIR_ON): Likewise.
13551 (TCP_REPAIR_OFF): Likewise.
13552 (TCP_REPAIR_OFF_NO_WP): Likewise.
13553 (struct tcp_zerocopy_receive): New type.
13554
13555 2018-08-21 Florian Weimer <fweimer@redhat.com>
13556
13557 * support/support.h (support_descriptor_supports_holes): Declare.
13558 * support/Makefile (libsupport-routines): Add
13559 support_descriptor_supports_holes.
13560 * support/support_descriptor_supports_holes.c: New file.
13561 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13562 and stop testing if holes are not supported.
13563 * io/test-lfs.c (do_prepare): Likewise.
13564 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13565 Likewise.
13566 * timezone/tst-tzset.c (create_tz_file): Likewise.
13567 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13568 variable.
13569 (do_prepare): Set it.
13570 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13571
13572 2018-08-21 Florian Weimer <fweimer@redhat.com>
13573
13574 [BZ #17248]
13575 * Makeconfig (+cflags): Do not sort (and deduplicate).
13576
13577 2018-08-21 Florian Weimer <fweimer@redhat.com>
13578
13579 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13580 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13581
13582 2018-08-20 Florian Weimer <fweimer@redhat.com>
13583
13584 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13585 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13586
13587 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13588
13589 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13590 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13591 and ssi_arch members.
13592
13593 * elf/elf.c (NT_VMCOREDD): New macro.
13594 (AT_MINSIGSTKSZ): Likewise.
13595
13596 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13597
13598 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13599 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13600 s_cosf-ppc64 and s_cosf-power8.
13601 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13602 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13603 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13604 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13606 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13607 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13609 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13610 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13611 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13612 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13613
13614 2018-08-17 Florian Weimer <fweimer@redhat.com>
13615
13616 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13617
13618 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13619
13620 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13621
13622 2018-08-16 Florian Weimer <fweimer@redhat.com>
13623
13624 * configure.ac: Add --with-nonshared-cflags option.
13625 * config.make.in (extra-nonshared-cflags): Set variable.
13626 * Makeconfig (CFLAGS-.oS): Use it.
13627 * manual/install.texi (Configuring and compiling): Document
13628 --with-nonshared-cflags.
13629 * configure: Regenerate.
13630 * INSTALL: Likewise.
13631
13632 2018-08-16 Florian Weimer <fweimer@redhat.com>
13633
13634 * Makeconfig (ASFLAGS): Always append required assembler flags.
13635
13636 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13637
13638 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13639 (malloc_consolidate): Likewise.
13640
13641 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13642
13643 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13644
13645 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13646
13647 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13648 every strlen call.
13649
13650 * benchtests/bench-strlen.c: Print performance numbers in json.
13651
13652 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13653
13654 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13655 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13656 only for little endian.
13657 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13658 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13659 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13660 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13661 Add check for little endian.
13662 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13663 (__strcmp_power9): Add check for little endian.
13664 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13665 Add check for little endian.
13666 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13667 (__strncmp_power9): Add check for little endian.
13668 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13669 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13670 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13671 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13672 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13673
13674 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13675
13676 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13677 [!STRLEN](STRLEN): Set to __strlen.
13678 * sysdeps/aarch64/multiarch/strlen.c: New file.
13679 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13680 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13681 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13682 (__libc_ifunc_impl_list): Add strlen.
13683 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13684 strlen_generic and strlen_asimd.
13685
13686 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13687
13688 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13689 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13690 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13691
13692 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13693
13694 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13695
13696 2018-08-14 Florian Weimer <fweimer@redhat.com>
13697
13698 [BZ #23519]
13699 * include/stdio.h (__vfxprintf): Declare.
13700 * stdio-common/fxprintf.c (__vfxprintf): New function.
13701 (__fxprintf): Call it.
13702 * misc/err.c (convert_and_print): Remove function.
13703 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13704 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13705 * misc/Makefile (tests): Add tst-warn-wide.
13706 * misc/tst-warn-wide.c: New file.
13707
13708 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13709 Szabolcs Nagy <szabolcs.nagy@arm.com>
13710
13711 * NEWS: Mention sinf, cosf, sincosf.
13712 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13713 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13714 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13715 constants rather than including generic sincosf.h.
13716 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13717 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13718 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13719 (reduced_cos): Remove.
13720 (sinf_poly): New function.
13721 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13722
13723 2018-08-14 Florian Weimer <fweimer@redhat.com>
13724
13725 [BZ #23521]
13726 [BZ #23522]
13727 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13728 processing, bail out if no room, and close the stream before
13729 returning ERANGE.
13730 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13731 (tst-nss-files-alias-leak): Link with libdl.
13732 (tst-nss-files-alias-leak.out): Depend on nss_files.
13733
13734 * nss/tst-nss-files-alias-leak.c: New file.
13735
13736 2018-08-14 Florian Weimer <fweimer@redhat.com>
13737
13738 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13739 server_user, stat_user.
13740
13741 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13742
13743 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13744 version to 4.18.
13745 (io_pgetevents): New syscall.
13746 (rseq): Likewise.
13747
13748 * manual/install.texi (Configuring and compiling): Do not list
13749 tools used for testing pretty printers here.
13750 (Tools for Compilation): List Python, PExpect and GDB here.
13751 Update descriptions of uses of Perl and Python.
13752 * INSTALL: Regenerate.
13753
13754 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13755 version to 4.18.
13756
13757 2018-08-13 Florian Weimer <fweimer@redhat.com>
13758
13759 * misc/error.c (error): Add missing va_end call.
13760 (error_at_line): Likewise.
13761
13762 2018-08-13 Florian Weimer <fweimer@redhat.com>
13763
13764 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13765
13766 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13767
13768 * benchtests/scripts/benchout.schema.json (properties): Add
13769 new properties.
13770
13771 * benchtests/bench-skeleton.c (main): Add duration and
13772 iterations attributes.
13773
13774 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13775
13776 regex: Gnulib unibyte RRI uses bytes not chars
13777 Adjust the non-glibc code to agree with what Gawk needs for
13778 rational range interpretation (RRI) for regular expression ranges.
13779 In unibyte locales, Gawk wants ranges to use the underlying byte
13780 rather than the character code point. This change does not affect
13781 glibc proper.
13782 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13783 In unibyte locales, use the byte value rather than
13784 running it through btowc.
13785
13786 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13787
13788 * sysdeps/generic/math-tests-snan.h: New file.
13789 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13790 (SNAN_TESTS_float): Do not define here.
13791 (SNAN_TESTS_double): Likewise.
13792 (SNAN_TESTS_long_double): Likewise.
13793 (SNAN_TESTS_float128): Likewise.
13794 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13795 * sysdeps/i386/fpu/math-tests.h: Remove file.
13796 * sysdeps/ia64/math-tests-snan.h: New file.
13797 * sysdeps/ia64/math-tests.h: Remove file.
13798 * sysdeps/x86/math-tests.h: Likewise.
13799 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13800
13801 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13802 Szabolcs Nagy <szabolcs.nagy@arm.com>
13803
13804 * math/Makefile: Add s_sincosf_data.c.
13805 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13806 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13807 (sincosf_poly): Likewise.
13808 (reduce_small): Likewise.
13809 (reduce_large): Likewise.
13810 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13811 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13812 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13813 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13814
13815 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13816 Szabolcs Nagy <szabolcs.nagy@arm.com>
13817
13818 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13819 (converttoint): Use lround.
13820 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13821 document the semantics when TOINT_INTRINSICS is set.
13822 (converttoint): Likewise.
13823 (TOINT_RINT): Remove.
13824 (TOINT_SHIFT): Remove.
13825 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13826 path.
13827
13828 2018-08-10 Florian Weimer <fweimer@redhat.com>
13829
13830 [BZ #23497]
13831 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13832 function.
13833 (__old_getdents64): Use getdents64. Convert entries without
13834 moving them.
13835 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13836 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13837 tst-readdir64-compat.
13838
13839 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13840
13841 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13842 Fix unwind.
13843
13844 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13845
13846 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13847 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13848 code to s390x-mcount.h and #include it.
13849 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13850 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13851 (__fentry__): Add.
13852
13853 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13854
13855 * stdlib/Versions: Remove __fentry__.
13856 * sysdeps/i386/Versions: Add __fentry__.
13857 * sysdeps/x86_64/Versions: Add __fentry__.
13858
13859 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13860
13861 * sysdeps/s390/Makefile: Register the new tests.
13862 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13863 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13864 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13865 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13866 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13867 * sysdeps/s390/tst-dl-runtime.c: New file.
13868
13869 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13870
13871 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13872 Do not clobber R0.
13873
13874 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13875
13876 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13877 Do not clobber R0.
13878
13879 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13880
13881 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13882 Do not clobber R0.
13883
13884 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13885
13886 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13887 Do not clobber R0.
13888
13889 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13890
13891 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13892 Use symbolic offsets for stack variables.
13893
13894 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13895
13896 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13897 Use symbolic offsets for stack variables.
13898
13899 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13900
13901 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13902 Use symbolic offsets for stack variables.
13903
13904 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13905
13906 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13907 Use symbolic offsets for stack variables.
13908
13909 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13910
13911 * math/gen-libm-test.py: New file.
13912 * math/gen-libm-test.pl: Remove.
13913 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13914 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13915 gen-libm-test.pl.
13916 ($(libm-test-c-noauto-obj)): Likewise.
13917 ($(libm-test-c-auto-obj)): Likewise.
13918 ($(libm-test-c-narrow-obj)): Likewise.
13919 (regen-ulps): Likewise.
13920 * math/README.libm-test: Update references to gen-libm-test.pl.
13921 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13922 referencing gen-libm-test.pl.
13923 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13924 * math/libm-test-support.c: Likewise.
13925 * math/libm-test-support.h: Likewise.
13926 * sysdeps/generic/libm-test-ulps: Likewise.
13927
13928 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13929
13930 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13931 Fix value.
13932
13933 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13934
13935 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13936 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13937
13938 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13939
13940 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13941 symbols.
13942 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13943 __pthread_setspecific): Add hidden proto.
13944 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13945 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13946
13947 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13948
13949 * benchtests/bench-string.h (buf1_size, buf2_size): New
13950 variables.
13951 (init_sizes): New function.
13952 (test_init): Use it.
13953 (alloc_buf, exit_error): New functions.
13954 (alloc_bufs): Use ALLOC_BUF.
13955 (realloc_bufs): Remove.
13956 * benchtests/bench-memcmp.c (do_test): Adjust.
13957 * benchtests/bench-memset-large.c (do_test): Likewise.
13958 * benchtests/bench-memset-walk.c (do_test): Likewise.
13959 * benchtests/bench-memset.c (do_test): Likewise.
13960 * benchtests/bench-strncmp.c (do_test): Likewise.
13961
13962 2018-08-06 Andreas Schwab <schwab@suse.de>
13963
13964 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13965 of CONST_THREAD_AREA.
13966
13967 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13968
13969 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13970 (STATE_SAVE_MASK): Likewise.
13971 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13972 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13973 (STATE_SAVE_MASK): Likewise.
13974 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13975 instead of <cpu-features.h>.
13976
13977 2018-08-03 DJ Delorie <dj@redhat.com>
13978
13979 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13980 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13981
13982 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13983
13984 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13985
13986 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13987 after TEST_* calls.
13988 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13989 * math/libm-test-logb.inc (logb_test_data): Likewise.
13990
13991 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13992
13993 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13994 * string/strstr.c (AVAILABLE): Likewise.
13995
13996 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13997
13998 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13999 <init-arch.h>.
14000 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14001 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14002 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14003
14004 2018-08-03 Carlos O'Donell <carlos@redhat.com>
14005
14006 * po/be.po: Update translation.
14007
14008 * po/be.po: Update translation.
14009
14010 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14011
14012 * sysdeps/x86/cpu-features-offsets.sym
14013 (rtld_global_ro_offsetof): Removed.
14014 (CPU_FEATURES_SIZE): Likewise.
14015 (CPUID_OFFSET): Likewise.
14016 (CPUID_SIZE): Likewise.
14017 (CPUID_EAX_OFFSET): Likewise.
14018 (CPUID_EBX_OFFSET): Likewise.
14019 (CPUID_ECX_OFFSET): Likewise.
14020 (CPUID_EDX_OFFSET): Likewise.
14021 (FAMILY_OFFSET): Likewise.
14022 (MODEL_OFFSET): Likewise.
14023 (FEATURE_OFFSET): Likewise.
14024 (FEATURE_SIZ): Likewise.
14025 (COMMON_CPUID_INDEX_1): Likewise.
14026 (COMMON_CPUID_INDEX_7): Likewise.
14027 (FEATURE_INDEX_1): Likewise.
14028 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14029
14030 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14031
14032 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14033 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14034 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14035 (install-locales): Depend on install-locale-archive.
14036 (install-locale-archive): Define.
14037 (install-locale-files): Define.
14038 (build-one-locale): Define macro.
14039 * manual/install.texi (Running make install): Document.
14040 * manual/INSTALL: Regenerate.
14041
14042 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14043
14044 * benchtests/scripts/compare_strings.py: Import traceback.
14045 (parse_file): Pretty-print error.
14046
14047 * NEWS: Mention the change.
14048 * elf/dl-tunables.list: Rename tune namespace to cpu.
14049 * sysdeps/powerpc/dl-tunables.list: Likewise.
14050 * sysdeps/x86/dl-tunables.list: Likewise.
14051 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14052 cpu.name.
14053 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14054 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14055 * manual/README.tunables: Likewise.
14056 * manual/tunables.texi: Likewise.
14057 * sysdeps/powerpc/cpu-features.c: Likewise.
14058 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14059 (init_cpu_features): Likewise.
14060 * sysdeps/x86/cpu-features.c: Likewise.
14061 * sysdeps/x86/cpu-features.h: Likewise.
14062 * sysdeps/x86/cpu-tunables.c: Likewise.
14063 * sysdeps/x86_64/Makefile: Likewise.
14064 * sysdeps/x86/dl-cet.c: Likewise.
14065
14066 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14067
14068 [BZ #23479]
14069 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14070 [__mips_hard_float].
14071 (FE_UNDERFLOW): Likewise.
14072 (FE_OVERFLOW): Likewise.
14073 (FE_DIVBYZERO): Likewise.
14074 (FE_INVALID): Likewise.
14075 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14076 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14077 (FE_UPWARD): Likewise.
14078 (FE_DOWNWARD): Likewise.
14079 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14080 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14081 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14082 [__mips_hard_float].
14083 (FP_ROUNDMODE): Likewise.
14084 (FP_RND_NEAREST): Likewise.
14085 (FP_RND_ZERO): Likewise.
14086 (FP_RND_PINF): Likewise.
14087 (FP_RND_MINF): Likewise.
14088 (FP_EX_INVALID): Likewise.
14089 (FP_EX_OVERFLOW): Likewise.
14090 (FP_EX_UNDERFLOW): Likewise.
14091 (FP_EX_DIVZERO): Likewise.
14092 (FP_EX_INEXACT): Likewise.
14093 (FP_INIT_ROUNDMODE): Likewise.
14094 * sysdeps/mips/nofpu/fesetenv.c: New file.
14095 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14096
14097 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14098
14099 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14100 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14101 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14102 conditional on [FE_UPWARD].
14103
14104 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14105
14106 regex: fix memory leak in Gnulib
14107 Problem and fix reported by Assaf Gordon in:
14108 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14109 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14110 range_ends members too, as they are defined in 'struct
14111 re_charset_t' even if not _LIBC. This affects only Gnulib.
14112
14113 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14114
14115 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14116 ...
14117 (get_common_indices): This.
14118 (init_cpu_features): Updated.
14119
14120 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14121
14122 * sysdeps/generic/math-tests-snan-payload.h: New file.
14123 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14124 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14125 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14126 * sysdeps/generic/math-tests.h: Include
14127 <math-tests-snan-payload.h>.
14128 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14129 * sysdeps/hppa/math-tests.h: Remove file.
14130 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14131 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14132 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14133 Likewise.
14134
14135 * sysdeps/generic/math-tests-snan-cast.h: New file.
14136 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14137 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14138 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14139 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14140
14141 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14142
14143 * version.h (RELEASE): Set to "development".
14144 (VERSION): Set to "2.28.9000".
14145 * NEWS (2.29): New section.
14146
14147 * version.h (RELEASE): Set to "stable".
14148 (VERSION): Set to "2.28".
14149 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14150 * NEWS: Add the list of bugs fixed in 2.28.
14151
14152 * po/ca.po: Update to latest version.
14153 * po/cs.po: Likewise
14154 * po/da.po: Likewise
14155 * po/el.po: Likewise
14156 * po/eo.po: Likewise
14157 * po/es.po: Likewise
14158 * po/fi.po: Likewise
14159 * po/fr.po: Likewise
14160 * po/gl.po: Likewise
14161 * po/hu.po: Likewise
14162 * po/ia.po: Likewise
14163 * po/id.po: Likewise
14164 * po/it.po: Likewise
14165 * po/ja.po: Likewise
14166 * po/ko.po: Likewise
14167 * po/lt.po: Likewise
14168 * po/nb.po: Likewise
14169 * po/nl.po: Likewise
14170 * po/pt_BR.po: Likewise
14171 * po/ru.po: Likewise
14172 * po/rw.po: Likewise
14173 * po/sk.po: Likewise
14174 * po/sl.po: Likewise
14175 * po/tr.po: Likewise
14176 * po/zh_CN.po: Likewise
14177 * po/zh_TW.po: Likewise
14178
14179 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14180
14181 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14182 initialization...
14183 (init): ... before initializing libpthread.
14184
14185 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14186 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14187 (__mach_setup_tls): ... new function.
14188 (mach_setup_tls): New alias.
14189 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14190 __mach_setup_thread.
14191 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14192 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14193 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14194 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14195
14196 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14197
14198 * manual/install.texi: Update versions.
14199 * INSTALL: Regenerate.
14200
14201 * manual/contrib.texi (Contributors): Update contributions.
14202
14203 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14204
14205 * po/be.po: Update translations.
14206
14207 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14208
14209 * sysdeps/sh/libm-test-ulps: Update.
14210
14211 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14212
14213 * po/bg.po: Update translations.
14214 * po/de.po: Likewise.
14215 * po/hr.po: Likewise.
14216 * po/pt_BR.po: Likewise.
14217 * po/sv.po: Likewise.
14218 * po/vi.po: Likewise.
14219
14220 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14221
14222 [BZ #23467]
14223 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14224 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14225 (CFLAGS-tst-cet-property-1.o): New.
14226 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14227 ($(objpfx)tst-cet-property-2): Likewise.
14228 ($(objpfx)tst-cet-property-2.out): Likewise.
14229 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14230 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14231 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14232 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14233 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14234
14235 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14236
14237 [BZ #23458]
14238 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14239
14240 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14241
14242 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14243 __sbrk): Do not set attribute_hidden.
14244 * sysdeps/mach/hurd/not-errno.h: New file.
14245 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14246 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14247
14248 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14249
14250 * po/uk.po: Update translations.
14251 * po/cs.po: Likewise.
14252 * po/pl.po: Likewise.
14253
14254 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14255
14256 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14257 parse beyond the note end.
14258
14259 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14260
14261 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14262 kernel does not support OFD locks.
14263 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14264
14265 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14266
14267 * sysdeps/mach/hurd/Versions (libc): Make __access and
14268 __access_noerrno external so they can override the ld symbols.
14269 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14270 __writev, __open64, __access_noerrno extern so they can be overrided.
14271 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14272 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14273
14274 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14275
14276 * po/libc.pot: Regenerate.
14277
14278 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14279
14280 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14281
14282 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14283
14284 [BZ #23459]
14285 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14286 function.
14287 (init_cpu_features): Call get_extended_indices for both Intel
14288 and AMD CPUs.
14289 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14290 Remove "for AMD" comment.
14291
14292 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14293
14294 [BZ # 23456]
14295 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14296 COMMON_CPUID_INDEX_80000001.
14297
14298 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14299
14300 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14301 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14302
14303 2018-07-26 Florian Weimer <fweimer@redhat.com>
14304
14305 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14306 aliases for symbols not in the implementation namespace.
14307
14308 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14309
14310 [BZ #23393]
14311 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14312 lowercase in LATIN script.
14313 * localedata/Makefile (test-input): Add en_US.UTF-8.
14314 * localedata/en_US.UTF-8.in: New file.
14315 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14316 and restore old tests.
14317 * posix/tst-regexloc.c (do_test): Add back range expression test.
14318
14319 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14320
14321 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14322
14323 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14324
14325 * nptl/threads.h: Move to ...
14326 * sysdeps/nptl/threads.h: ... here.
14327 * sysdeps/hurd/stdc-predef.h: New file.
14328
14329 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14330
14331 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14332 tst-cet-setcontext-1 if CET is enabled.
14333 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14334 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14335
14336 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14337
14338 * include/threads.h: Move to ...
14339 * sysdeps/nptl/threads.h: ... here.
14340 * sysdeps/htl/threads.h: New file.
14341 * conform/Makefile (linknamespace-libs-ISO11): Use
14342 static-thread-library instead of linking libpthread.
14343 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14344
14345 2018-07-25 Florian Weimer <fweimer@redhat.com>
14346
14347 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14348 nanoseconds into seconds.
14349 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14350 (do_test): Likewise.
14351 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14352 (do_test): Likewise. Avoid nanosecond overflow and spurious
14353 timeouts due to system load.
14354 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14355 (child_wait): Increment it.
14356 (do_test): Wait as long as necessary until all expected threads
14357 have arrived.
14358
14359 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14360 H.J. Lu <hongjiu.lu@intel.com>
14361
14362 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14363 __ssp.
14364 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14365 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14366 (__push___start_context): New.
14367 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14368 <asm/prctl.h>.
14369 (__getcontext): Record the current shadow stack base. Save the
14370 caller's shadow stack pointer and base.
14371 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14372 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14373 (__push___start_context): New prototype.
14374 (__makecontext): Call __push___start_context to allocate a new
14375 shadow stack, push __start_context onto the new stack as well
14376 as the new shadow stack.
14377 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14378 <asm/prctl.h>.
14379 (__setcontext): Restore the target shadow stack.
14380 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14381 <asm/prctl.h>.
14382 (__swapcontext): Record the current shadow stack base. Save
14383 the caller's shadow stack pointer and base. Restore the target
14384 shadow stack.
14385 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14386 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14387 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14388
14389 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14390
14391 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14392 tst-setcontext8 and tst-setcontext9.
14393 * stdlib/tst-setcontext6.c: New file.
14394 * stdlib/tst-setcontext7.c: Likewise.
14395 * stdlib/tst-setcontext8.c: Likewise.
14396 * stdlib/tst-setcontext9.c: Likewise.
14397
14398 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14399
14400 * stdlib/Makefile ((tests): Add tst-setcontext5.
14401 * stdlib/tst-setcontext5.c: New file.
14402
14403 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14404
14405 * stdlib/Makefile (tests): Add tst-setcontext4.
14406 * stdlib/tst-setcontext4.c: New file.
14407
14408 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14409
14410 * stdlib/Makefile (tests): Add tst-swapcontext1.
14411 * stdlib/tst-swapcontext1.c: New test.
14412
14413 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14414
14415 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14416 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14417 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14418 and tst-cet-legacy-4c.
14419 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14420 and tst-cet-legacy-mod-4.
14421 (CFLAGS-tst-cet-legacy-2.c): New.
14422 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14423 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14424 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14425 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14426 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14427 ($(objpfx)tst-cet-legacy-1): Likewise.
14428 ($(objpfx)tst-cet-legacy-2): Likewise.
14429 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14430 ($(objpfx)tst-cet-legacy-2a): Likewise.
14431 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14432 ($(objpfx)tst-cet-legacy-4): Likewise.
14433 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14434 ($(objpfx)tst-cet-legacy-4a): Likewise.
14435 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14436 (tst-cet-legacy-4a-ENV): Likewise.
14437 ($(objpfx)tst-cet-legacy-4b): Likewise.
14438 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14439 (tst-cet-legacy-4b-ENV): Likewise.
14440 ($(objpfx)tst-cet-legacy-4c): Likewise.
14441 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14442 (tst-cet-legacy-4c-ENV): Likewise.
14443 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14444 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14445 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14446 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14447 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14448 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14449 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14450 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14451 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14452 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14453 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14454
14455 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14456
14457 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14458 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14459 with ssp_base.
14460 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14461 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14462 with ssp_base.
14463
14464 2018-07-25 Andreas Schwab <schwab@suse.de>
14465
14466 [BZ #23442]
14467 * locale/weightwc.h (findidx): Handle the case where usrc is a
14468 prefix of cp but one character too short.
14469
14470 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14471
14472 * NEWS: Add ISO C threads addition.
14473
14474 2018-07-24 Florian Weimer <fweimer@redhat.com>
14475
14476 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14477 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14478 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14479 4.13.
14480
14481 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14482
14483 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14484 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14485 <sys/prctl.h> and <asm/prctl.h>.
14486 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14487 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14488 and <asm/prctl.h>.
14489 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14490 ARCH_CET_LEGACY_BITMAP.
14491 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14492 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14493 * sysdeps/x86/libc-start.c: Include <startup.h>.
14494
14495 2018-07-24 Florian Weimer <fweimer@redhat.com>
14496
14497 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14498 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14499
14500 2018-07-24 Rical Jasan <rj@2c3t.io>
14501 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14502 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14503
14504 [BZ #14092]
14505 * manual/debug.texi: Update adjacent chapter name.
14506 * manual/probes.texi: Likewise.
14507 * manual/threads.texi (ISO C Threads): New section.
14508 (POSIX Threads): Convert to a section.
14509
14510 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14511 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14512
14513 [BZ# 14092]
14514 * nptl/Makefile (tests): Add new test files.
14515 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14516 * nptl/tst-cnd-basic.c: Likewise.
14517 * nptl/tst-cnd-broadcast.c: Likewise.
14518 * nptl/tst-cnd-timedwait.c: Likewise.
14519 * nptl/tst-mtx-basic.c: Likewise.
14520 * nptl/tst-mtx-recursive.c: Likewise.
14521 * nptl/tst-mtx-timedlock.c: Likewise.
14522 * nptl/tst-mtx-trylock.c: Likewise.
14523 * nptl/tst-thrd-basic.c: Likewise.
14524 * nptl/tst-thrd-detach.c: Likewise.
14525 * nptl/tst-thrd-sleep.c: Likewise.
14526 * nptl/tst-tss-basic.c: Likewise.
14527
14528 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14529
14530 [BZ #14092]
14531 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14532 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14533 symbols.
14534 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14535 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14536 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14537 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14538 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14539 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14540 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14541 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14542 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14543 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14544 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14545 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14546 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14547 Likewise.
14548 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14549 Likewise.
14550 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14551 Likewise.
14552 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14553 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14554 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14555 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14556 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14557 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14559 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14560 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14561 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14562 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14563 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14564 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14565 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14566 Likewise.
14567 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14569 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14570 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14571 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14572 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14573 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14574 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14575 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14576 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14578 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14579 ikewise.
14580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14582 Likewise.
14583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14584 Likewise.
14585 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14586 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14587 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14588 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14589 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14590 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14592 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14593
14594 [BZ #14092]
14595 * conform/data/threads.h-data (thread_local): New macro.
14596 (TSS_DTOR_ITERATIONS): Likewise.
14597 (tss_t): New type.
14598 (tss_dtor_t): Likewise.
14599 (tss_create): New function.
14600 (tss_get): Likewise.
14601 (tss_set): Likewise.
14602 (tss_delete): Likewise.
14603 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14604 tss_get, and tss_set objects.
14605 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14606 * nptl/tss_create.c: New file.
14607 * nptl/tss_delete.c: Likewise.
14608 * nptl/tss_get.c: Likewise.
14609 * nptl/tss_set.c: Likewise.
14610 * sysdeps/nptl/threads.h (thread_local): New define.
14611 (TSS_DTOR_ITERATIONS): Likewise.
14612 (tss_t): New typedef.
14613 (tss_dtor_t): Likewise.
14614 (tss_create): New prototype.
14615 (tss_get): Likewise.
14616 (tss_set): Likewise.
14617 (tss_delete): Likewise.
14618
14619 [BZ #14092]
14620 * conform/data/threads.h-data (cnd_t): New type.
14621 (cnd_init): New function.
14622 (cnd_signal): Likewise.
14623 (cnd_broadcast): Likewise.
14624 (cnd_wait): Likewise.
14625 (cnd_timedwait): Likewise.
14626 (cnd_destroy): Likewise.
14627 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14628 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14629 object.
14630 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14631 * nptl/cnd_broadcast.c: New file.
14632 * nptl/cnd_destroy.c: Likewise.
14633 * nptl/cnd_init.c: Likewise.
14634 * nptl/cnd_signal.c: Likewise.
14635 * nptl/cnd_timedwait.c: Likewise.
14636 * nptl/cnd_wait.c: Likewise.
14637 * sysdeps/nptl/threads.h (cnd_t): New type.
14638 (cnd_init): New prototype.
14639 (cnd_signa): Likewise.
14640 (cnd_broadcast): Likewise.
14641 (cnd_wait): Likewise.
14642 (cnd_timedwait): Likewise.
14643 (cnd_destroy): Likewise.
14644
14645 [BZ #14092]
14646 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14647 (once_flag): New type.
14648 (call_once): New function.
14649 * nptl/Makefile (libpthread-routines): Add call_once object.
14650 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14651 * nptl/call_once.c: New file.
14652 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14653 (once_flag): New type.
14654 (call_once): New prototype.
14655
14656 [BZ #14092]
14657 * conform/data/threads.h-data (mtx_plain): New constant.
14658 (mtx_recursive): Likewise.
14659 (mtx_timed): Likewise.
14660 (mtx_t): New type.
14661 (mtx_init): New function.
14662 (mtx_lock): Likewise.
14663 (mtx_timedlock): Likewise.
14664 (mtx_trylock): Likewise.
14665 (mtx_unlock): Likewise.
14666 (mtx_destroy): Likewise.
14667 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14668 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14669 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14670 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14671 * nptl/mtx_destroy.c: New file.
14672 * nptl/mtx_init.c: Likewise.
14673 * nptl/mtx_lock.c: Likewise.
14674 * nptl/mtx_timedlock.c: Likewise.
14675 * nptl/mtx_trylock.c: Likewise.
14676 * nptl/mtx_unlock.c: Likewise.
14677 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14678 (mtx_recursive): Likewise.
14679 (mtx_timed): Likewise.
14680 (mtx_t): New type.
14681 (mtx_init): New prototype.
14682 (mtx_lock): Likewise.
14683 (mtx_timedlock): Likewise.
14684 (mtx_trylock): Likewise.
14685 (mtx_unlock): Likewise.
14686 (mtx_destroy): Likewise.
14687
14688 [BZ #14092]
14689 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14690 (linknamespace-libs-ISO11): Add libpthread.a.
14691 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14692 functions.
14693 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14694 * nptl/Makefile (headers): Add threads.h.
14695 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14696 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14697 thrd_yield.
14698 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14699 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14700 thrd_join, thrd_sleep, and thrd_yield symbols.
14701 * nptl/descr.h (struct pthread): Add c11 field.
14702 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14703 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14704 routine with expected function prototype.
14705 (__pthread_create_2_1): Add C11 threads check based on attribute
14706 value.
14707 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14708 * nptl/thrd_create.c: New file.
14709 * nptl/thrd_current.c: Likewise.
14710 * nptl/thrd_detach.c: Likewise.
14711 * nptl/thrd_equal.c: Likewise.
14712 * nptl/thrd_exit.c: Likewise.
14713 * nptl/thrd_join.c: Likewise.
14714 * nptl/thrd_priv.h: Likewise.
14715 * nptl/thrd_sleep.c: Likewise.
14716 * nptl/thrd_yield.c: Likewise.
14717 * include/threads.h: Likewise.
14718
14719 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14720
14721 * bits/indirect-return.h: New file.
14722 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14723 * sysdeps/x86/bits/indirect-return.h: Likewise.
14724 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14725 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14726 (swapcontext): Add __INDIRECT_RETURN.
14727 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14728 (prepare_test_buffer): Use it.
14729
14730 2018-07-24 Andreas Schwab <schwab@suse.de>
14731
14732 [BZ #23448]
14733 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14734 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14735
14736 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14737
14738 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14739 Redefine if shadow stack is enabled.
14740 (SYSCALL_ERROR_LABEL): Likewise.
14741 (__vfork): Pop shadow stack and jump back to to caller directly
14742 when shadow stack is in use.
14743 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14744 Redefine if shadow stack is enabled.
14745 (SYSCALL_ERROR_LABEL): Likewise.
14746 (__vfork): Pop shadow stack and jump back to to caller directly
14747 when shadow stack is in use.
14748
14749 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14750
14751 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14752 enabled.
14753 (foo): Likewise.
14754 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14755 (foo): Likewise.
14756
14757 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14758
14759 * scripts/build-many-glibcs.py (Context.checkout): Default
14760 binutils version to 2.31 branch.
14761
14762 2018-07-20 Zong Li <zong@andestech.com>
14763
14764 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14765 URL of gcc's tarball.
14766
14767 2018-07-20 Florian Weimer <fweimer@redhat.com>
14768
14769 [BZ #23396]
14770 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14771 not compare an extra byte after the end of the weights.
14772
14773 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14774
14775 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14776 to 1.
14777 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14778 hidden prototypes.
14779 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14780 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14781 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14782 list of libraries whose stack executability is expected.
14783 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14784 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14785 variable.
14786 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14787 libc.so libpthread.so.
14788
14789 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14790
14791 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14792 SOCK_NONBLOCK.
14793 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14794 and SOCK_NONBLOCK.
14795 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14796 implement __pipe2.
14797 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14798
14799 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14800
14801 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14802 library to improve command line parsing.
14803 (__main__): make schema file as optional parameter (--schema),
14804 defaulting to benchtests/scripts/benchout.schema.json.
14805 (main): move out of the parsing stuff to __main_  and leave it
14806 only as caller of main comparison functions.
14807
14808 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14809
14810 * NEWS: Add a note for Intel CET status.
14811 * manual/install.texi: Likewise.
14812 * INSTALL: Regenerated.
14813
14814 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14815
14816 [BZ #23140]
14817 * localedata/locales/oc_FR (mon): Rename to...
14818 (alt_mon): This, then update October (typo fix).
14819 (mon): New content (genitive case, month names preceded by
14820 "de" or "d’").
14821
14822 [BZ #23422]
14823 * localedata/locales/oc_FR (abday): Update all items.
14824 (day): Update Wednesday and Saturday (typo fixes).
14825 (abmon): Update all items, except May.
14826 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14827 (LC_IDENTIFICATION): Bump the revision number and date.
14828 Keep the "category" entries in alphabetic order.
14829 (LC_ADDRESS): Remove no longer needed comment.
14830 (LC_COLLATE): Use “copy "ca_ES"”.
14831 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14832 "name_mrs".
14833
14834 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14835
14836 * grp/tst_fgetgrent.c: Include <unistd.h>.
14837 (main): Use mkstemp instead of tmpnam.
14838 * io/test-utime.c (main): Likewise.
14839 * posix/annexc.c (macrofile): Change to modifiable array.
14840 (main): Remove macrofile here.
14841 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14842 macrofile here.
14843 (check_header): Do not remove macrofile here.
14844 * posix/bug-getopt1.c: Include <stdlib.h>.
14845 (do_test): Use mkstemp instead of tmpnam.
14846 * posix/bug-getopt2.c: Include <stdlib.h>.
14847 (do_test): Use mkstemp instead of tmpnam.
14848 * posix/bug-getopt3.c: Include <stdlib.h>.
14849 (do_test): Use mkstemp instead of tmpnam.
14850 * posix/bug-getopt4.c: Include <stdlib.h>.
14851 (do_test): Use mkstemp instead of tmpnam.
14852 * posix/bug-getopt5.c: Include <stdlib.h>.
14853 (do_test): Use mkstemp instead of tmpnam.
14854 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14855 (main): Use mkstemp instead of tmpnam.
14856 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14857 (main): Use mkstemp instead of tmpnam.
14858 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14859 (main): use mkstemp instead of tmpnam.
14860 * stdlib/isomac.c (macrofile): Change to modifiable array.
14861 (main): Remove macrofile here.
14862 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14863 macrofile here.
14864 (check_header): Do not remove macrofile here.
14865
14866 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14867
14868 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14869 glibc.tune.x86_shstk.
14870
14871 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14872
14873 * NEWS: Mention --enable-cet.
14874 * manual/install.texi: Document --enable-cet.
14875 * INSTALL: Regenerated.
14876
14877 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14878
14879 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14880 Add _CET_NOTRACK before indirect jump to jump table.
14881
14882 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14883
14884 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14885 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14886 to jump table.
14887
14888 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14889
14890 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14891 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14892 to jump table.
14893
14894 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14895
14896 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14897 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14898 to jump table.
14899
14900 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14901
14902 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14903 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14904 to jump table.
14905
14906 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14907
14908 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14909 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14910 to jump table.
14911 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14912
14913 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14914
14915 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14916 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14917 to jump table.
14918
14919 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14920
14921 * sysdeps/i386/i686/multiarch/memset-sse2.S
14922 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14923 to jump table.
14924
14925 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14926
14927 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14928 indirect jump to jump table.
14929
14930 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14931
14932 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14933 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14934 to jump table.
14935 (MEMCPY): Likewise.
14936
14937 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14938
14939 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.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/strcmp-sse42.S (STRCMP_SSE42): Add
14947 _CET_NOTRACK before indirect jump to jump table.
14948
14949 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14950
14951 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14952 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14953 to jump table.
14954
14955 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14956
14957 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14958 indirect jump to jump table.
14959
14960 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14961
14962 [BZ #22241]
14963 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14964 (LOCALES): Likewise.
14965 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14966 * localedata/locales/sah_RU: New file.
14967 * localedata/sah_RU.UTF-8.in: New file.
14968
14969 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14970
14971 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14972 "sysdep.h".
14973 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14974 _CET_ENDBR to indirect jump targets and adjust jump destination
14975 for _CET_ENDBR.
14976 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14977 "sysdep.h".
14978 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14979 _CET_ENDBR to indirect jump targets and adjust jump destination
14980 for _CET_ENDBR.
14981 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14982 "sysdep.h".
14983 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14984 _CET_ENDBR to indirect jump targets and adjust jump destination
14985 for _CET_ENDBR.
14986
14987 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14988
14989 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14990 _CET_ENDBR.
14991
14992 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14993
14994 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14995 _CET_ENDBR.
14996 (_dl_tlsdesc_undefweak): Likewise.
14997 (_dl_tlsdesc_dynamic): Likewise.
14998 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14999 (_dl_tlsdesc_resolve_rel): Likewise.
15000 (_dl_tlsdesc_resolve_rela): Likewise.
15001 (_dl_tlsdesc_resolve_hold): Likewise.
15002 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15003 (_dl_tlsdesc_undefweak): Likewise.
15004 (_dl_tlsdesc_dynamic): Likewise.
15005 (_dl_tlsdesc_resolve_rela): Likewise.
15006 (_dl_tlsdesc_resolve_hold): Likewise.
15007
15008 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15009
15010 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15011 (_fini): Likewise.
15012 * sysdeps/x86_64/crti.S (_init): Likewise.
15013 (_fini): Likewise.
15014
15015 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
15016
15017 [BZ #23140]
15018 * localedata/locales/os_RU (mon): Rename to...
15019 (alt_mon): This.
15020 (mon): Import from CLDR (genitive case).
15021
15022 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15023
15024 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15025 cet-tunables.h> when CET is enabled.
15026
15027 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15028
15029 [BZ #21598]
15030 * configure.ac: Add --enable-cet.
15031 * configure: Regenerated.
15032 * elf/Makefille (all-built-dso): Add a comment.
15033 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15034 Include <dl-prop.h>.
15035 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15036 segment.
15037 * elf/dl-open.c: Include <dl-prop.h>.
15038 (dl_open_worker): Call _dl_open_check.
15039 * elf/rtld.c: Include <dl-prop.h>.
15040 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15041 _rtld_main_check.
15042 * sysdeps/generic/dl-prop.h: New file.
15043 * sysdeps/i386/dl-cet.c: Likewise.
15044 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15045 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15046 * sysdeps/x86/cet-tunables.h: Likewise.
15047 * sysdeps/x86/check-cet.awk: Likewise.
15048 * sysdeps/x86/configure: Likewise.
15049 * sysdeps/x86/configure.ac: Likewise.
15050 * sysdeps/x86/dl-cet.c: Likewise.
15051 * sysdeps/x86/dl-procruntime.c: Likewise.
15052 * sysdeps/x86/dl-prop.h: Likewise.
15053 * sysdeps/x86/libc-start.h: Likewise.
15054 * sysdeps/x86/link_map.h: Likewise.
15055 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15056 _CET_ENDBR.
15057 (_dl_runtime_profile): Likewise.
15058 (_dl_runtime_resolve_shstk): New.
15059 (_dl_runtime_profile_shstk): Likewise.
15060 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15061 if CET is enabled.
15062 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15063 (CFLAGS-.os): Likewise.
15064 (CFLAGS-.op): Likewise.
15065 (CFLAGS-.oS): Likewise.
15066 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15067 is enabled.
15068 (tests-special): Add $(objpfx)check-cet.out.
15069 (cet-built-dso): New.
15070 (+$(cet-built-dso:=.note)): Likewise.
15071 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15072 ($(objpfx)check-cet.out): New.
15073 (generated): Add check-cet.out.
15074 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15075 <cet-tunables.h>.
15076 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15077 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15078 (init_cpu_features): Call get_cet_status to check CET status
15079 and update dl_x86_feature_1 with CET status. Call
15080 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15081 (set_x86_shstk). Disable and lock CET in libc.a.
15082 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15083 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15084 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15085 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15086 (_CET_ENDBR): Define if not defined.
15087 (ENTRY): Add _CET_ENDBR.
15088 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15089 x86_shstk.
15090 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15091 _CET_ENDBR.
15092 (_dl_runtime_profile): Likewise.
15093
15094 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15095
15096 [BZ #21895]
15097 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15098 restore r2 on longjmp.
15099 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15100 test list.
15101 Added rules to build test tst-setjmp-bug21895-static.
15102 Added module setjmp-bug21895 and rules to build a shared object from it.
15103 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15104 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15105
15106 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15107
15108 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15109 * benchtests/bench-strstr.c: Likewise.
15110 * string/memmem.c (FASTSEARCH): Define.
15111 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15112 Add support for FASTSEARCH.
15113 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15114 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15115 (FASTSEARCH): Define.
15116 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15117 * string/test-strstr.c: Likewise.
15118
15119 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15120
15121 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15122 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15123
15124 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15125 H.J. Lu <hongjiu.lu@intel.com>
15126
15127 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15128 (__longjmp): Restore shadow stack pointer if shadow stack is
15129 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15130 isn't defined for __longjmp_cancel.
15131 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15132 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15133 and SHADOW_STACK_POINTER_OFFSET is defined.
15134 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15135 (setjmp): Save shadow stack pointer if shadow stack is enabled
15136 and SHADOW_STACK_POINTER_OFFSET is defined.
15137 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15138 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15139 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15140 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15141 <jmp_buf-ssp.h>.
15142 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15143 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15144 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15145 Remove jmp_buf-ssp.sym.
15146 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15147 <jmp_buf-ssp.h>.
15148 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15149 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15150 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15151 jmp_buf-ssp.sym.
15152 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15153 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15154 (__longjmp): Restore shadow stack pointer if shadow stack is
15155 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15156 isn't defined for __longjmp_cancel.
15157 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15158 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15159 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15160
15161 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15162
15163 [BZ #22563]
15164 * nptl/pthread_create.c: Include <tls-setup.h>.
15165 (__pthread_create_2_1): Call tls_setup_tcbhead.
15166 * sysdeps/generic/tls-setup.h: New file.
15167 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15168 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15169 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15170 Likewise.
15171 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15172 to feature_1.
15173 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15174 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15175 (X86_FEATURE_1_SHSTK): Likewise.
15176 (CET_ENABLED): Likewise.
15177 (IBT_ENABLED): Likewise.
15178 (SHSTK_ENABLED): Likewise.
15179
15180 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15181
15182 [BZ #23208]
15183 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15184 (LOCALES): Likewise.
15185 * localedata/dsb_DE.UTF-8.in: New file.
15186 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15187
15188 2018-07-12 Florian Weimer <fweimer@redhat.com>
15189
15190 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15191 __mprotect, not mprotect.
15192
15193 2018-07-11 Florian Weimer <fweimer@redhat.com>
15194
15195 * io/Makefile (headers): Add bits/statx.h.
15196
15197 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15198
15199 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15200 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15201 and headers.
15202 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15203 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15204 for utf8_gen.py
15205
15206 2018-07-10 Florian Weimer <fweimer@redhat.com>
15207
15208 * io/Makefile (routines): Add statx.
15209 (tests-internal): Add tst-statx.
15210 * io/Versions (GLIBC_2.28): Export statx.
15211 * io/bits/statx.h: New file.
15212 * io/sys/stat.h [__USE_GNU]: Include it.
15213 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15214 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15215 Define.
15216 * io/statx.c: New file.
15217 * io/statx_generic.: Likewise.
15218 * io/tst-statx.: Likewise.
15219 * include/bits/statx.h: Likewise.
15220 * sysdeps/unix/sysv/linux/kernel-features.h
15221 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15222 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15223 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15224 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15225 Undefine.
15226 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15227 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15228 * sysdeps/unix/sysv/linux/statx.c: New file.
15229 * manual/filesys.texi: Note that statx is undocumented.
15230 * sysdeps/**/libc*.abilist: Update.
15231
15232 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15233
15234 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15235 a kernel issue which lead to test failure in some cases.
15236
15237 2018-07-10 Florian Weimer <fweimer@redhat.com>
15238
15239 [BZ #23036]
15240 * posix/regexec.c (check_node_accept_bytes): When comparing
15241 weights, do not compare an extra byte after the end of the
15242 weights.
15243
15244 2018-07-10 Florian Weimer <fweimer@redhat.com>
15245
15246 * libio/readline.c: Fix copyright year.
15247 * libio/tst-readline.c Likewise.
15248 * nss/tst-nss-files-hosts-getent.c: Likewise.
15249
15250 2018-07-06 Florian Weimer <fweimer@redhat.com>
15251
15252 [BZ #18991]
15253 * nss/nss_files/files-XXX.c (internal_getent): Use
15254 __libc_readline_unlocked. Seek back to the start of the line if
15255 parsing failes with ERANGE.
15256 (get_contents_ret, get_contents): Remove.
15257 * nss/tst-nss-files-hosts-getent.c: New file.
15258 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15259 (tst-nss-files-hosts-getent): Link with -ldl.
15260
15261 2018-07-06 Florian Weimer <fweimer@redhat.com>
15262
15263 * include/stdio.h (__libc_readline_unlocked): Declare.
15264 (__ftello64, __fseeko64): Declare aliases.
15265 * libio/readline.c: New file.
15266 * libio/tst-readline.c: Likewise.
15267 (routines): Add readline.
15268 (tests-internal): Add tst-readlime.
15269 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15270 __libc_readline_unlocked.
15271 * libio/fseeko.c (__fseeko): Rename from fseeko.
15272 (fseeko): Add alias.
15273 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15274 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15275 (fseeko64): Add alias.
15276 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15277 * libio/ftello64.c (__ftello64): Rename from ftello64.
15278 (ftello64): Add alias.
15279
15280 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15281
15282 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15283 HWCAP_ATOMICS.
15284
15285 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15286
15287 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15288 Use dl_hwcap without masking.
15289 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15290 Remove HWCAP_CPUID.
15291
15292 2018-07-06 Florian Weimer <fweimer@redhat.com>
15293
15294 * conform/conformtest.pl (checknamespace): Escape literal braces
15295 in regular expressions.
15296
15297 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15298
15299 * sysdeps/x86/cpu-features.c (get_common_indeces):
15300 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15301 * sysdeps/x86/cpu-features.c (init_cpu_features):
15302 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15303
15304 2018-07-05 Florian Weimer <fweimer@redhat.com>
15305
15306 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15307 protector.
15308 (CFLAGS-elf-init.oS): Likewise.
15309
15310 2018-07-05 Florian Weimer <fweimer@redhat.com>
15311 Carlos O'Donell <carlos@redhat.com>
15312
15313 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15314 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15315 with stack protector enabled because there is no risk of infinite
15316 recursion.
15317
15318 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15319
15320 [BZ #19818]
15321 [BZ #23307]
15322 * libc-abis (ABSOLUTE): New ABI.
15323 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15324 * NEWS: Mention the new ABI.
15325
15326 2018-07-05 Florian Weimer <fweimer@redhat.com>
15327
15328 [BZ # 17662]
15329 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15330 (RENAME_WHITEOUT): Define.
15331 [__USE_GNU] (renameat2): Declare.
15332 * stdio-common/Makefile (routines): Add renameat2.
15333 (tests): Add tst-renameat2.
15334 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15335 * stdio-common/renameat2.c: New file.
15336 * stdio-common/tst-renameat2.c: Likewise.
15337 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15338 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15339 undocumented.
15340 * sysdeps/unix/sysv/linux/kernel-features.h
15341 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15342 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15343 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15344 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15345 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15346 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15347 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15348 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15349 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15350 * include/stdio.h (__renameat): Add alias for renameat.
15351 * stdio-common/renameat.c (__renameat): Rename from renameat.
15352 Add hidden definition and alias.
15353 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15354 * sysdeps/mach/hurd/renameat.c: Likewise.
15355 * sysdeps/**/libc*.abilist: Add renameat2.
15356
15357 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15358
15359 * posix/bug-regex33.c: Fix build after regex sync.
15360
15361 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15362
15363 [BZ #23164]
15364 * localedata/tst-langinfo-setlocale.c: New file.
15365 * localedata/tst-langinfo-setlocale-static.c: New file.
15366 * localedata/tst-langinfo-newlocale.c: New file.
15367 * localedata/tst-langinfo-newlocale-static.c: New file.
15368 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15369 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15370 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15371 (tests-static): Remove tst-langinfo-static. Add
15372 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15373 (tests-special): Remove $(objpfx)tst-langinfo.out,
15374 $(objpfx)tst-langinfo-static.out. Add
15375 $(objpfx)tst-langinfo-setlocale.out,
15376 $(objpfx)tst-langinfo-newlocale.out,
15377 $(objpfx)tst-langinfo-setlocale-static.out,
15378 $(objpfx)tst-langinfo-newlocale-static.out.
15379 ($(objpfx)tst-langinfo.out): Remove.
15380 ($(objpfx)tst-langinfo-static.out): Remove.
15381 ($(objpfx)tst-langinfo-newlocale.out): New target.
15382 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15383 (test-xfail-tst-langinfo-newlocale-static): Add.
15384 ($(objpfx)tst-langinfo-setlocale.out): New target.
15385 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15386 * localedata/tst-langinfo.c: Call test_locale.
15387 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15388 data.
15389
15390 2018-07-04 Florian Weimer <fweimer@redhat.com>
15391
15392 testrun.sh: Implement --tool=strace, --tool=valgrind
15393 * Makefile (testrun-script): Define variable.
15394 (testrun.sh): Use variable.
15395 * manual/install.texi (Tools for Compilation): make 4.0 or later
15396 is required.
15397 * configure.ac: Check for make 4.0 or later.
15398 * INSTALL: Regenerate.
15399 * configure: Likewise.
15400
15401 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15402
15403 [BZ #23233]
15404 [BZ #21163]
15405 [BZ #18986]
15406 [BZ #13762]
15407 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15408 * posix/PCRE.tests: Remove invalid test.
15409 * posix/bug-regex28.c: Fix expected values for used syntax.
15410 * posix/bug-regex37.c: New file.
15411 * posix/bug-regex38.c: Likewise.
15412 * posix/regcomp.c: Sync with gnulib.
15413 * posix/regex.c: Likewise.
15414 * posix/regex.h: Likewise.
15415 * posix/regex_internal.c: Likewise.
15416 * posix/regex_internal.h: Likewise.
15417 * posix/regexec.c: Likewise.
15418
15419 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15420
15421 [BZ #23308]
15422 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15423 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15424 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15425 * localedata/unicode-gen/PropList.txt: likewise.
15426 * localedata/unicode-gen/UnicodeData.txt: likewise.
15427 * localedata/charmaps/UTF-8: Regenerate.
15428 * localedata/locales/i18n_ctype: likewise.
15429 * localedata/locales/tr_TR: likewise.
15430 * localedata/locales/translit_circle: likewise.
15431 * localedata/locales/translit_cjk_compat: likewise.
15432 * localedata/locales/translit_combining: likewise.
15433 * localedata/locales/translit_compat: likewise.
15434 * localedata/locales/translit_font: likewise.
15435 * localedata/locales/translit_fraction: likewise.
15436
15437 2018-07-03 Florian Weimer <fweimer@redhat.com>
15438
15439 [BZ #23363]
15440 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15441 * stdio-common/tst-printf.sh: Adjust expected output.
15442 * LICENSES: Update.
15443
15444 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15445
15446 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15447 symbol.
15448
15449 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15450
15451 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15452 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15453 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15454 * stdio-common/tst-printfsz-islongdouble.c: New file.
15455 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15456 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15457 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15458 [subdir == stdio-common] (tests-internal): Add
15459 test-printf-size-ieee128, and test-printf-size-ibm128.
15460 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15461 (CFLAGS-test-printf-size-ibm128.c): New variables.
15462 [subdir == stdio-common] (tests-special): Add
15463 $(objpfx)test-printf-size-ieee128.out and
15464 $(objpfx)test-printf-size-ibm128.out.
15465 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15466 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15467 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15468 __printf_sizeieee128.
15469 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15470 New file.
15471 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15472 Likewise.
15473 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15474 Likewise.
15475
15476 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15477
15478 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15479 (exp2f_inline): Likewise.
15480 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15481 (__math_uflowf): Likewise.
15482 (__math_may_uflowf): Likewise.
15483 (__math_divzerof): Likewise.
15484 (__math_invalidf): Likewise.
15485 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15486 (__math_oflowf): Likewise.
15487 (__math_uflowf): Likewise.
15488 (__math_may_uflowf): Likewise.
15489 (__math_divzerof): Likewise.
15490 (__math_invalidf): Likewise.
15491
15492 2018-06-29 DJ Delorie <dj@redhat.com>
15493 Carlos O'Donell <carlos@redhat.com>
15494
15495 [BZ #23329]
15496 * include/libc-symbols.h: Comment the freeres framework.
15497 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15498 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15499 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15500 * dlfcn/dlerror.c: Include libc-symbols.h
15501 (__dlerror_main_freeres): New function.
15502 * dlfcn/dlfreeres.c: New file.
15503 * dlfcn/sdlfreeres.c: New file.
15504 * include/dlfcn.h: Declare __dlerror_main_freeres.
15505 * malloc/set-freeres.c: Declare __libdl_freeres, and
15506 __libpthread_freeres.
15507 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15508 the releavant libraries are loaded.
15509 * malloc/thread-freeres.c: Add comments.
15510 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15511 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15512 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15513 (__free_stacks): Rename to...
15514 (free_stacks): ...this. Mark static.
15515 (queue_stack): Call free_stacks.
15516 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15517 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15518 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15519 ptr_freeres element from struct.
15520 (pthread_functions): Remove .ptr_freeres from struct initializer.
15521 [SHARED] (nptl_freeres): Remove.
15522 * nptl/nptlfreeres.c: New file.
15523 * nptl/pthreadP.h
15524 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15525 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15526 attribute_hidden.
15527 (__free_stacks): Rename to...
15528 (__nptl_stacks_freeres): ...this.
15529 (__shm_directory_freeres): Declare.
15530 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15531 (__nptl_unwind_freeres): ...this.
15532 * resolv/res-close.c: Add comment.
15533 * resolv/resolv_conf.c: Include libc-symbols.h.
15534 * string/strerror_l.c: Include libc-symbols.h.
15535 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15536 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15537 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15538 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15539
15540 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15541
15542 * stdlib/tst-strfmon_l.c: Add tests for long double.
15543
15544 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15545
15546 [BZ #23208]
15547 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15548 * localedata/locales/dsb_DE: New file.
15549
15550 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15551
15552 [BZ #23140]
15553 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15554 genitive case).
15555 (alt_mon): New entry, import from CLDR (nominative case).
15556
15557 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15558
15559 [BZ #22996]
15560 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15561
15562 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15563
15564 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15565 Use vector registers.
15566
15567 * sysdeps/aarch64/multiarch/memmove_falkor.S
15568 (__memcpy_falkor): Use vector registers.
15569
15570 2018-06-29 Martin Sebor <msebor@redhat.com>
15571
15572 * manual/stdio.texi (Customizing Printf): Mention interaction
15573 with GCC built-ins.
15574
15575 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15576
15577 [BZ #23307]
15578 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15579 `st_value' is 0 if `st_shndx' is SHN_ABS.
15580 * elf/tst-absolute-zero.c: New file.
15581 * elf/tst-absolute-zero-lib.c: New file.
15582 * elf/tst-absolute-zero-lib.lds: New file.
15583 * elf/Makefile (tests): Add `tst-absolute-zero'.
15584 (modules-names): Add `tst-absolute-zero-lib'.
15585 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15586 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15587 ($(objpfx)tst-absolute-zero: New dependency.
15588
15589 2018-06-29 Zack Weinberg <zackw@panix.com>
15590
15591 * configure.ac: New command-line option --disable-crypt.
15592 Force --disable-nss-crypt when --disable-crypt is given, with a
15593 warning if it was explicitly enabled.
15594 * configure: Regenerate.
15595 * config.make.in: New boolean substitution variable $(build-crypt).
15596 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15597 when $(build-crypt).
15598 * manual/install.texi: Document --disable-crypt.
15599 * INSTALL: Regenerate.
15600
15601 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15602 which is never set.
15603 * conform/Makefile: Only include libcrypt.a in
15604 linknamespace-libs-xsi and linknamespace-libs-XPG4
15605 when $(build-crypt).
15606 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15607 USE_CRYPT to 1 when $(build-crypt).
15608 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15609 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15610 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15611
15612 2018-06-29 Zack Weinberg <zackw@panix.com>
15613
15614 * crypt/crypt.h, posix/unistd.h: Update comments and
15615 prototypes for crypt and crypt_r.
15616
15617 * manual/crypt.texi (Cryptographic Functions): New initial
15618 exposition.
15619 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15620 (Unpredictable Bytes): Improve initial exposition. Clarify error
15621 behavior of getentropy and getrandom.
15622 * manual/examples/genpass.c: Generate a salt using getentropy
15623 instead of the current time. Use hash $5$ (SHA-2-256).
15624 * manual/examples/testpass.c: Demonstrate validation against
15625 hashes generated with three different one-way functions.
15626
15627 * manual/intro.texi: crypt.texi does not need an overview
15628 anymore.
15629
15630 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15631 * manual/terminal.texi: Consistently refer to "passphrases"
15632 * instead of "passwords", and to the "user database" instead
15633 * of the "password database".
15634 * manual/users.texi: Similarly. Add notes about how actual
15635 passphrase hashes are now stored in the shadow database.
15636 Remove 20-year-old junk todo note.
15637
15638 2018-06-29 Zack Weinberg <zackw@panix.com>
15639
15640 * manual/crypt.texi: Use a normal top-level @node declaration.
15641 Move most of the introductory text to the 'crypt' section.
15642 Move the example programs below the @deftypefun for 'crypt_r'.
15643 Move the 'getpass' section...
15644 * manual/terminal.texi: ...here.
15645
15646 2018-06-29 Zack Weinberg <zackw@panix.com>
15647 Florian Weimer <fweimer@redhat.com>
15648
15649 * posix/unistd.h: Do not declare encrypt.
15650 (_XOPEN_CRYPT): Remove macro definition.
15651 (crypt): Declare only for _USE_MISC.
15652 * stdlib/stdlib.h: Do not declare setkey.
15653 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15654 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15655
15656 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15657 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15658 into compat symbols. Don't define initial_perm if it's not
15659 going to be used.
15660 * crypt/cert.c: Link explicitly with the expected versions for
15661 setkey and encrypt. If they are not available at all, mark
15662 the test as unsupported.
15663
15664 * sunrpc/des_crypt.c: Unconditionally block linkage with
15665 cbc_crypt and ecb_crypt for new binaries.
15666 * sunrpc/des_soft.c: Unconditionally block linkage with
15667 des_setparity for new binaries.
15668
15669 * manual/crypt.texi: Remove the entire "DES Encryption"
15670 section. Also remove the paragraph talking about FIPS 140-2
15671 from the introduction.
15672 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15673 of libgcrypt for "real" encryption, not DES.
15674 * manual/conf.texi (Constants for Sysconf): Mention that
15675 _XOPEN_CRYPT is no longer impelemented.
15676
15677 * conform/data/unistd.h-data: Remove crypt function declaration.
15678
15679 2018-06-29 Florian Weimer <fweimer@redhat.com>
15680
15681 [BZ #23351]
15682 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15683 (disallow_malloc_check): Remove variable.
15684 (__malloc_check_init): Adjust.
15685 (malloc_set_state): Update comment.
15686 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15687 declarations.
15688
15689 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15690
15691 [BZ #23140]
15692 * localedata/locales/ast_ES (mon): Rename to...
15693 (alt_mon): This.
15694 (mon): Import from CLDR (genitive case).
15695
15696 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15697 Jakub Sitnicki <jkbs@redhat.com>
15698
15699 [BZ #21812]
15700 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15701 on NLM_F_DUMP_INTR.
15702
15703 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15704
15705 * manual/llio.texi: Remove spurious space.
15706
15707 2018-06-28 Florian Weimer <fweimer@redhat.com>
15708
15709 [BZ #23349]
15710 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15711 _STRUCT_TIMESPEC.
15712
15713 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15714
15715 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15716 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15717 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15718 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15719 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15720 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15721 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15722
15723 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15724
15725 [BZ #23266]
15726 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15727 Copy and null-terminate entries that are not terminated, in
15728 addition to empty ones.
15729
15730 2018-06-27 Florian Weimer <fweimer@redhat.com>
15731
15732 [BZ #18023]
15733 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15734 (extend_alloca_account): Remove.
15735 * manual/stdio.texi (Variable Arguments Output): Update comment.
15736
15737 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15738
15739 * nptl/sockperf.c: Remove file.
15740
15741 2018-06-27 Florian Weimer <fweimer@redhat.com>
15742
15743 [BZ #18023]
15744 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15745 scratch_buffer instead of extend_alloca.
15746
15747 2018-06-27 Florian Weimer <fweimer@redhat.com>
15748
15749 [BZ #18023]
15750 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15751 scratch_buffer instead of extend_alloca. Update comments.
15752
15753 2018-06-27 Florian Weimer <fweimer@redhat.com>
15754
15755 [BZ #18023]
15756 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15757 instead of extend_alloca.
15758
15759 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15760
15761 [BZ #13888]
15762 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15763 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15764 /tmp.
15765 * scripts/test-installation.pl: Put temporary files in build
15766 directory, not /tmp.
15767 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15768 (CFLAGS-bug4.c): Likewise.
15769 (CFLAGS-bug5.c): Likewise.
15770 (CFLAGS-test-fseek.c): Likewise.
15771 (CFLAGS-test-popen.c): Likewise.
15772 (CFLAGS-test_rdwr.c): Likewise.
15773 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15774 /tmp.
15775 * stdio-common/bug4.c (main): Likewise.
15776 * stdio-common/bug5.c (main): Likewise.
15777 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15778 * stdio-common/test-popen.c (do_test): Likewise.
15779 * stdio-common/test_rdwr.c (main): Likewise.
15780
15781 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15782
15783 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15784 (sem_open): Set sem.newsem.pad to zero for valgrind.
15785
15786 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15787
15788 [BZ #20251]
15789 * NEWS: Mention fcntl64 addition.
15790 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15791 * login/utmp_file.c: Likewise.
15792 * sysdeps/posix/fdopendir.c: Likewise.
15793 * sysdeps/posix/opendir.c: Likewise.
15794 * sysdeps/unix/pt-fcntl.c: Likewise.
15795 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15796 __fcntl64_nocancel_adjusted): New prototype.
15797 (__fcntl_nocancel_adjusted): Remove prototype.
15798 * io/Makefile (routines): Add fcntl64.
15799 (CFLAGS-fcntl64.c): New rule.
15800 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15801 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15802 * io/fcntl.h (fcntl64): Add prototype and redirect if
15803 __USE_FILE_OFFSET64 is defined.
15804 * io/fcntl64.c: New file.
15805 * manual/llio.text: Add a note for which commands fcntl acts a
15806 cancellation point.
15807 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15808 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15809 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15810 New symbols.
15811 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15812 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15813 non-LFS case.
15814 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15815 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15816 to __fcntl64_nocancel.
15817 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15818 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15819 to __fcntl64_nocancel.
15820 * sysdeps/generic/not-cancel.h: Likewise.
15821 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15822 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15823 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15824 (fcntl64): New symbol.
15825 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15826 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15827 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15830 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15831 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15832 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15833 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15834 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15835 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15836 fcntl64): Likewise.
15837 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15838 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15839 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15840 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15841 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15842 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15843 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15844 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15845 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15846 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15847 Likewise.
15848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15849 Likewise.
15850 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15851 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15852 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15853
15854 2018-06-26 Florian Weimer <fweimer@redhat.com>
15855
15856 Run thread shutdown functions in an explicit order.
15857 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15858 definition.
15859 (__libc_thread_freeres): Call thread shutdown functions
15860 explicitly.
15861 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15862 * include/string.h (__strerror_thread_freeres): Declare.
15863 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15864 arena_thread_freeres. No longer static. Remove thread shutdown
15865 hook registration.
15866 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15867 Declare.
15868 * resolv/res-close.c (__res_thread_freeres): Renamed from
15869 res_thread_freeres. No longer static. Remove thread shutdown
15870 hook registration.
15871 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15872 * resolv/resolv_conf.c (freeres): Remove incorrect section
15873 attribute and use libc_freeres_fn.
15874 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15875 strerror_thread_freeres. No longer static. Remove thread
15876 shutdown hook registration.
15877 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15878 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15879 shutdown hook registration.
15880 * Makerules (shlib.lds): Do not provide section boundary symbols
15881 for __libc_thread_subfreeres.
15882 * manual/memory.texi (Basic Allocation): Update comment.
15883
15884 2018-06-26 Florian Weimer <fweimer@redhat.com>
15885
15886 Remove always-defined _RPC_THREAD_SAFE_ macro.
15887 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15888 Do not define _RPC_THREAD_SAFE_.
15889 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15890 conditional.
15891 * sunrpc/clnt_perr.c: Likewise.
15892 * sunrpc/clnt_raw.c: Likewise.
15893 * sunrpc/clnt_simp.c: Likewise.
15894 * sunrpc/key_call.c: Likewise.
15895 * sunrpc/rpc_common.c: Likewise.
15896 * sunrpc/rpc_main.c: Likewise.
15897 * sunrpc/rpc_thread.c: Likewise.
15898 * sunrpc/svc.c: Likewise.
15899 * sunrpc/svc_raw.c: Likewise.
15900 * sunrpc/svc_simple.c: Likewise.
15901 * sumrpc/svcauth_des.c: Likewise.
15902
15903 2018-06-26 Florian Weimer <fweimer@redhat.com>
15904
15905 * libio/Makefile (tests-internal): Add tst-vtables,
15906 tst-vtables-interposed.
15907 * libio/tst-vtables.c: New file.
15908 * libio/tst-vtables-common.c: Likewise.
15909 * libio/tst-vtables-interposed.c: Likewise.
15910
15911 2018-06-26 Florian Weimer <fweimer@redhat.com>
15912
15913 * support/support_test_main.c (support_test_main): Only call
15914 setvbuf if not disables.
15915 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15916 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15917
15918 2018-06-26 Florian Weimer <fweimer@redhat.com>
15919
15920 [BZ #23313]
15921 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15922
15923 2018-06-25 Florian Weimer <fweimer@redhat.com>
15924
15925 [BZ #18023]
15926 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15927 Use struct scratch_buffer instead of extend_alloca.
15928
15929 2018-06-25 Florian Weimer <fweimer@redhat.com>
15930
15931 [BZ #18023]
15932 * nss/getent.c (initgroups_keys): Use dynarray instead of
15933 extend_alloca.
15934
15935 2018-06-25 Florian Weimer <fweimer@redhat.com>
15936
15937 [BZ #18023]
15938 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15939 Use struct scratch_buffer instead of extend_alloca.
15940
15941 2018-06-25 Florian Weimer <fweimer@redhat.com>
15942
15943 [BZ #18023]
15944 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15945 back to malloc directly, without stack allocations.
15946
15947 2018-06-25 Florian Weimer <fweimer@redhat.com>
15948
15949 [BZ #18023]
15950 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15951 of extend_alloca.
15952
15953 2018-06-25 Florian Weimer <fweimer@redhat.com>
15954
15955 [BZ #18023]
15956 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15957 of extend_alloca.
15958 * nscd/hstcache.c (addhstbyX): Likewise.
15959 * nscd/pwdcache.c (addpwbyX): Likewise.
15960 * nscd/servicescache.c (addservbyX): Likewise.
15961
15962 2018-06-25 Florian Weimer <fweimer@redhat.com>
15963
15964 [BZ #18023]
15965 * nscd/connections.c (read_cmdline): New function.
15966 (restart): Use it. Update comment.
15967
15968 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15969
15970 [BZ #23140]
15971 * localedata/locales/csb_PL (mon): Rename to...
15972 (alt_mon): This.
15973 (abmon): Rename to...
15974 (ab_alt_mon): This.
15975 (mon): Add with proper genitive forms, copy from Wikipedia.
15976 (abmon): Likewise.
15977
15978 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15979
15980 [BZ #19485]
15981 * localedata/locales/csb_PL (mon): Fix typos:
15982 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15983 (yesstr): Add, value is "jo".
15984 (nostr): Add, value is "nié".
15985
15986 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15987
15988 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15989 all log1p and significand functions on m680x0.
15990 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15991 of s_significand.c..
15992 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15993 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15994 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15995 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15996 s_log1p.c and include it..
15997
15998 2018-06-21 Vincent Chen <vincentc@andestech.com>
15999
16000 * elf/elf.h (R_NDS32_NONE): New define.
16001 (R_NDS32_32_RELA): Likewise.
16002 (R_NDS32_COPY): Likewise.
16003 (R_NDS32_GLOB_DAT): Likewise.
16004 (R_NDS32_JUMP_SLOT): Likewise.
16005 (R_NDS32_RELATIVE): Likewise.
16006 (R_NDS32_TLS_TPOFF): Likewise.
16007 (R_NDS32_TLS_DESC): Likewise.
16008
16009 2018-06-21 Mark Wielaard <mark@klomp.org>
16010
16011 * elf/elf.h (R_BPF_MAP_FD): Removed.
16012 (R_BPF_64_64, R_BPF_64_32): New.
16013
16014 2018-06-21 Florian Weimer <fweimer@redhat.com>
16015
16016 [BZ #23253]
16017 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16018 Renamed from libc_feholdsetround_ctx.
16019 (default_libc_feresetround_ctx): Renamed from
16020 libc_feresetround_ctx.
16021 (default_libc_feholdsetround_noex_ctx): Renamed from
16022 libc_feholdsetround_noex_ctx.
16023 (default_libc_feresetround_noex_ctx): Renamed from
16024 libc_feresetround_noex_ctx.
16025 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16026 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16027 forwardning to the old implementations under the new names.
16028 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16029 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16030 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16031 (libc_feresetround_ctx): Forward to default implements for i386
16032 and MATH_SET_BOTH_ROUNDING_MODES.
16033 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16034 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16035
16036 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16037
16038 * string/tst-cmp.c: Include <libc-diag.h>.
16039 (strncmp_max): Disable -Wstringop-overflow= around call to
16040 strncmp.
16041 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16042 strncasecmp.
16043
16044 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16045 (main): Disable -Wunused-value around call to strpbrk.
16046 * string/bug-strspn1.c: Include <libc-diag.h>.
16047 (main): Disable -Wunused-value around call to strspn.
16048
16049 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16050 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16051
16052 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16053 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16054
16055 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16056
16057 * math/Makefile (libm-calls): Move s_significandF to...
16058 (gen-libm-calls): ... here.
16059 * math/s_significand_template.c: New file.
16060 * math/s_significand.c: Removed.
16061 * math/s_significandf.c: Removed.
16062 * math/s_significandl.c: Removed.
16063 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16064 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16065
16066 * math/e_exp2_template.c (declare_mgen_finite_alias,
16067 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16068 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16069 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16070
16071 2018-06-20 Florian Weimer <fweimer@redhat.com>
16072
16073 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16074
16075 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16076
16077 [BZ #23280]
16078 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16079 floating-point number to strtod functions rather than possibly
16080 negating result of those functions.
16081 * stdio-common/tst-scanf-round.c: New file.
16082 * stdio-common/Makefile (tests): Add tst-scanf-round.
16083 ($(objpfx)tst-scanf-round): Depend on $(libm).
16084
16085 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16086
16087 * sysdeps/mach/hurd/localplt.data: Move to...
16088 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16089 R_386_GLOB_DAT like on Linux i386.
16090
16091 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16092
16093 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16094 (SHM_STAT_ANY): New macro.
16095 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16096 (SHM_STAT_ANY): Likewise.
16097 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16098 (SHM_STAT_ANY): Likewise.
16099 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16100 (SHM_STAT_ANY): Likewise.
16101 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16102 (SHM_STAT_ANY): Likewise.
16103 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16104 (SHM_STAT_ANY): Likewise.
16105 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16106 (SHM_STAT_ANY): Likewise.
16107 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16108 (SHM_STAT_ANY): Likewise.
16109 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16110 (SHM_STAT_ANY): Likewise.
16111 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16112 (SHM_STAT_ANY): Likewise.
16113 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16114 (SHM_STAT_ANY): Likewise.
16115 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16116 (SHM_STAT_ANY): Likewise.
16117
16118 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16119 (SEM_STAT_ANY): New macro.
16120 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16121 (SEM_STAT_ANY): Likewise.
16122 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16123 (SEM_STAT_ANY): Likewise.
16124 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16125 (SEM_STAT_ANY): Likewise.
16126 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16127 (SEM_STAT_ANY): Likewise.
16128 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16129 (SEM_STAT_ANY): Likewise.
16130 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16131 (SEM_STAT_ANY): Likewise.
16132 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16133 (SEM_STAT_ANY): Likewise.
16134 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16135 (SEM_STAT_ANY): Likewise.
16136 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16137 (SEM_STAT_ANY): Likewise.
16138
16139 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16140 (MSG_STAT_ANY): New macro.
16141 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16142 (MSG_STAT_ANY): Likewise.
16143 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16144 (MSG_STAT_ANY): Likewise.
16145 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16146 (MSG_STAT_ANY): Likewise.
16147 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16148 (MSG_STAT_ANY): Likewise.
16149 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16150 (MSG_STAT_ANY): Likewise.
16151 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16152 (MSG_STAT_ANY): Likewise.
16153 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16154 (MSG_STAT_ANY): Likewise.
16155 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16156 (MSG_STAT_ANY): Likewise.
16157 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16158 (MSG_STAT_ANY): Likewise.
16159
16160 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16161 (MAP_TYPE): Change value to 0x2b.
16162
16163 2018-06-18 Florian Weimer <fweimer@redhat.com>
16164
16165 [BZ #15722]
16166 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16167 socket with SOCK_CLOEXEC.
16168
16169 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16170
16171 [BZ #23303]
16172 * sysdeps/powerpc/powerpc64/le/Makefile
16173 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16174 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16175 (gnulib-tests): Also add $(f128-loader-link) for
16176 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16177
16178 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16179
16180 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16181 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16182 of sendfile.
16183 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16184 (sendfile64): New strong alias.
16185 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16186 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16187 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16188 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16189 attribute.
16190 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16191 ___pthread_get_cleanup_stack.
16192 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16193 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16194 * mach/shortcut.awk: Make syscall stubs include
16195 <mach-shortcuts-hidden.h> and add hidden definition.
16196 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16197 (__mach_msg): Add hidden prototype.
16198 * mach/msg.c: Include <mach.h>.
16199 (__mach_msg): Add hidden definition.
16200 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16201 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16202 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16203 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16204 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16205 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16206 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16207 prototype and definition.
16208 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16209 hidden target for _hurd_self_sigstate.
16210
16211 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16212
16213 [BZ #23007]
16214 * stdlib/tst-strtod-nan-sign-main.c: New file.
16215 * stdlib/tst-strtod-nan-sign.c: Likewise.
16216 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16217 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16218 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16219 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16220 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16221
16222 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16223
16224 [BZ #23007]
16225 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16226 appropriate sign.
16227
16228 2018-06-14 Florian Weimer <fweimer@redhat.com>
16229
16230 [BZ #23290]
16231 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16232 that the result stays within the ISO-8859-1 range.
16233 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16234 characters are defined in IBM273.
16235
16236 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16237
16238 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16239 __mach_task_self): Remove attribute_hidden.
16240
16241 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16242
16243 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16244 ignore -Wrestrict for one test.
16245
16246 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16247 Szabolcs Nagy <szabolcs.nagy@arm.com>
16248
16249 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16250
16251 2018-06-14 Florian Weimer <fweimer@redhat.com>
16252
16253 * scripts/update-abilist.sh: Accept empty list of files to patch.
16254
16255 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16256
16257 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16258 test-xfail-check-abi-libmachuser): Add.
16259 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16260 __libc_read and __libc_write to __read and __write.
16261 * sysdeps/hurd/include/hurd/port.h: New file.
16262 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16263 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16264 __thread_switch, __evc_wait): Move declarations to...
16265 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16266 attribute_hidden.
16267 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16268 use PLT to call _hurd_self_sigstate.
16269
16270 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16271
16272 [BZ #23279]
16273 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16274 MAX_EXP as overflowing.
16275 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16276 overflow flag.
16277 (round_str): Output also whether result overflows in each rounding
16278 mode.
16279 * stdlib/tst-strtod-round-data: Add more tests.
16280 * stdlib/tst-strtod-round-data.h: Regenerated.
16281 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16282 (TEST): Handle extra arguments for overflow flags.
16283 (struct test_overflow): New type.
16284 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16285 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16286 (test_in_one_mode): Take argument with overflow information.
16287 (do_test): Update calls to test_in_one_mode.
16288
16289 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16290
16291 * elf/dl-load (_dl_dst_substitute): Correct comment.
16292 (_dl_dst_count): Likewise.
16293
16294 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16295 lll_futex_timed_wait.
16296
16297 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16298
16299 [BZ #23277]
16300 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16301 attribute.
16302 * math/test-nan-const.c: New file.
16303 * math/Makefile (tests): Add test-nan-const.
16304 (CFLAGS-test-nan-const.c): New variable.
16305
16306 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16307
16308 * benchtests/scripts/compare_strings.py (process_results): Add
16309 funcs argument. Compare only functions which are selected.
16310 (main): Check if base function is among selected functions.
16311 Pass selected functions to process_results.
16312 (__main__): Add -f/--functions argument.
16313
16314 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16315 Hongbo Zhang <hongbo.zhang@linaro.org>
16316
16317 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16318 __memcpy_falkor for phecda core.
16319 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16320 __memmove_falkor for phecda core.
16321 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16322 __memset_falkor for phecda core.
16323 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16324 for phecda core.
16325 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16326 macro to identify phecda core.
16327
16328 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16329 Andreas Schwab <schwab@suse.de>
16330 Dmitry V. Levin <ldv@altlinux.org>
16331 Florian Weimer <fweimer@redhat.com>
16332
16333 [BZ #23102]
16334 [BZ #21942]
16335 [BZ #18018]
16336 [BZ #23259]
16337 CVE-2011-0536
16338 * elf/dl-dst.h: Remove DL_DST_COUNT.
16339 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16340 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16341 (is_dst): Comment. Support ELF gABI.
16342 (_dl_dst_count): Comment. Simplify and count DSTs.
16343 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16344 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16345 locals.
16346
16347 2018-06-12 Zack Weinberg <zackw@panix.com>
16348
16349 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16350 * sysdeps/unix/sysv/linux/dl-sysdep.c
16351 Include not-cancel.h. Use __close_nocancel instead of __close,
16352 __open64_nocancel instead of __open, __read_nocancel instead of
16353 __libc_read, and __write_nocancel instead of __libc_write.
16354
16355 * csu/check_fds.c (check_one_fd)
16356 * sysdeps/posix/fdopendir.c (__fdopendir)
16357 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16358 instead of __fcntl and/or __libc_fcntl.
16359
16360 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16361 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16362 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16363 Use __open64_nocancel instead of __open_nocancel.
16364
16365 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16366 hidden_proto declarations to the end and issue them if either
16367 IS_IN(libc) or IS_IN(rtld).
16368 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16369 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16370 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16371 read_nocancel, waitpid_nocancel, write_nocancel.
16372
16373 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16374 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16375 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16376
16377 * nptl/pt-fcntl.c: New file.
16378 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16379 (libpthread-routines): Add pt-fcntl.
16380 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16381 (__libc_fcntl): Remove attribute_hidden.
16382 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16383 __fcntl_nocancel_adjusted, not fcntl_common.
16384 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16385 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16386 to fcntl_nocancel.c.
16387 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16390 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16391
16392 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16393 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16394 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16395 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16396 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16397 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16398 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16399 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16400 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16401 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16402 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16403 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16404 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16405 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16406 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16407 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16408 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16409 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16410 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16411 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16412
16413 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16414 libpthread-routines.
16415 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16416 defines nothing.
16417
16418 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16419 __libc_read, and __write instead of __libc_write. Define
16420 __open64 in addition to __open.
16421
16422 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16423
16424 [BZ #23250]
16425 [BZ #10686]
16426 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16427 to _private_tm[3] and add __glibc_reserved2.
16428 Add _Static_assert of offset of __private_ss == 0x30.
16429 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16430 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16431
16432 2018-06-12 Florian Weimer <fweimer@redhat.com>
16433
16434 x86: Make strncmp usable from rtld.
16435 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16436 __strncmp_ia32 if in libc (and not in rtld).
16437 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16438 strncmp if not in libc (and not to __strncmp_sse2).
16439
16440 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16441
16442 [BZ #23140]
16443 * localedata/locales/gd_GB (mon): Rename to...
16444 (alt_mon): This.
16445 (mon): Import from CLDR (genitive case).
16446 * localedata/locales/hsb_DE (mon): Rename to...
16447 (alt_mon): This.
16448 (mon): Import from CLDR (genitive case).
16449 * localedata/locales/wa_BE (mon): Rename to...
16450 (alt_mon): This.
16451 (mon): Add, fill with the proper genitive forms, but CLDR data
16452 is incomplete; completed according to the comments in this file.
16453 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16454
16455 * localedata/locales/wa_BE (country_name): Reword
16456 "Beljike" -> "Beldjike".
16457
16458 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16459
16460 [BZ #23272]
16461 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16462 cases of non-finite arguments.
16463 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16464
16465 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16466
16467 [BZ #23174]
16468 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16469
16470 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16471
16472 [BZ #23264]
16473 * include/unistd.h (__execvpex): New prototype.
16474 * posix/Makefile (tests): Add tst-spawn4.
16475 (tests-internal): Add tst-spawn4-compat.
16476 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16477 * posix/tst-spawn4-compat.c: New file.
16478 * posix/tst-spawn4.c: Likewise.
16479 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16480 binaries as shell scripts.
16481 * sysdeps/posix/spawni.c (__spawni): Likewise.
16482
16483 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16484
16485 [BZ #23145]
16486 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16487 ($(all-built-dso:=.dynsym): New target.
16488 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16489 ($(objpfx)check-initfini.out): New target.
16490 (generated): Add check-initfini.out.
16491 * scripts/check-initfini.awk: New file.
16492 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16493 (_fini): Likewise.
16494 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16495 (_fini): Likewise.
16496 * sysdeps/arm/crti.S (_init): Mark as hidden.
16497 (_fini): Likewise.
16498 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16499 (_fini): Likewise.
16500 * sysdeps/i386/crti.S (_init): Mark as hidden.
16501 (_fini): Likewise.
16502 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16503 (_fini): Likewise.
16504 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16505 (_fini): Likewise.
16506 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16507 (_fini): Likewise.
16508 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16509 (_fini): Likewise.
16510 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16511 (_fini): Likewise.
16512 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16513 (_fini): Likewise.
16514 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16515 (_fini): Likewise.
16516 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16517 (_fini): Likewise.
16518 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16519 (_fini): Likewise.
16520 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16521 (_fini): Likewise.
16522 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16523 (_fini): Likewise.
16524 * sysdeps/sh/crti.S (_init): Mark as hidden.
16525 (_fini): Likewise.
16526 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16527 (_fini): Likewise.
16528 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16529 (_fini): Likewise.
16530
16531 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16532
16533 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16534 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16535 and TF redirection to KFtype and KF only when the default
16536 long double type is not the IEEE 128-bit floating point type.
16537
16538 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16539
16540 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16541 macro.
16542 (HWCAP_USCAT): Likewise.
16543 (HWCAP_ILRCPC): Likewise.
16544 (HWCAP_FLAGM): Likewise.
16545 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16546 Increase to 28.
16547 (_dl_aarch64_cap_flags): Add new flag names.
16548
16549 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16550 (MAP_FIXED_NOREPLACE): New macro.
16551 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16552 (MAP_FIXED_NOREPLACE): Likewise.
16553 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16554 (MAP_FIXED_NOREPLACE): Likewise.
16555 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16556 (MAP_FIXED_NOREPLACE): Likewise.
16557 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16558 (MAP_FIXED_NOREPLACE): Likewise.
16559 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16560 (MAP_FIXED_NOREPLACE): Likewise.
16561 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16562 (MAP_FIXED_NOREPLACE): Likewise.
16563 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16564 (MAP_FIXED_NOREPLACE): Likewise.
16565 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16566 (MAP_FIXED_NOREPLACE): Likewise.
16567 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16568 (MAP_FIXED_NOREPLACE): Likewise.
16569 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16570 (MAP_FIXED_NOREPLACE): Likewise.
16571 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16572 (MAP_FIXED_NOREPLACE): Likewise.
16573 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16574 (MAP_FIXED_NOREPLACE): Likewise.
16575 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16576 (MAP_FIXED_NOREPLACE): Likewise.
16577 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16578 (MAP_FIXED_NOREPLACE): Likewise.
16579
16580 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16581 version to 4.17.
16582
16583 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16584
16585 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16586 version to 4.17
16587
16588 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16589
16590 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16591 int.
16592 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16593
16594 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16595
16596 * benchtests/scripts/compare_string.py: (process_results) Catch
16597 exception in non-existent base_func and catch exception in
16598 non-existent attribute.
16599 (parse_file) Catch exception if input file does not exist.
16600
16601 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16602
16603 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16604 options to avoid diff calculation and omit header, respectively.
16605 (main): process --no-diff and --no-header
16606
16607 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16608 H.J. Lu <hongjiu.lu@intel.com>
16609
16610 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16611 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16612 wcsncmp-sse2.
16613 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16614 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16615 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16616 and __wcsncmp_sse2.
16617 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16618 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16619 AVX unaligned load is fast and vzeroupper is preferred.
16620 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16621 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16622 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16623 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16624 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16625 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16626 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16627 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16628 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16629 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16630 is undefined.
16631
16632 2018-06-01 Florian Weimer <fweimer@redhat.com>
16633
16634 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16635 configuring with --disable-multi-arch, building with
16636 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16637 Haswell-era CPU.
16638
16639 2018-06-01 Florian Weimer <fweimer@redhat.com>
16640
16641 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16642 results from building with “-march=x86-64 -mtune=generic
16643 -mfpmath=sse” and running on a Haswell-era CPU.
16644
16645 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16646
16647 [BZ #18473]
16648 * soft-fp/sqrttf2.c: Remove file.
16649 * soft-fp/sqrtdf2.c: Move to ....
16650 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16651 <shlib-compat.h>.
16652 (__sqrtdf2): Make conditional on
16653 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16654 symbol.
16655 * soft-fp/sqrtsf2.c: Move to ....
16656 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16657 <shlib-compat.h>.
16658 (__sqrtsf2): Make conditional on
16659 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16660 symbol.
16661 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16662 (gcc-double-routines): Remove sqrtdf2.
16663 (gcc-quad-routines): Remove sqrttf2.
16664 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16665 Do not filter out sqrtsf2 and sqrtdf2.
16666 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16667 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16668
16669 2018-06-01 Florian Weimer <fweimer@redhat.com>
16670
16671 * sysdeps/generic/libcidn.abilist: Remove file.
16672
16673 2018-06-01 Florian Weimer <fweimer@redhat.com>
16674
16675 [BZ #23236]
16676 * libio/strfile.h (struct _IO_str_fields): Rename members to
16677 discourage their use and add comment.
16678 (_IO_STR_DYNAMIC): Remove unused macro.
16679 * libio/strops.c (_IO_str_init_static_internal): Do not use
16680 callback pointers. Call malloc and free.
16681 (_IO_str_overflow): Do not use callback pointers. Call malloc
16682 and free.
16683 (enlarge_userbuf): Likewise.
16684 (_IO_str_finish): Call free.
16685 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16686 _allocate_buffer_unused.
16687 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16688 and free.
16689 (enlarge_userbuf): Likewise.
16690 (_IO_wstr_finish): Call free.
16691 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16692 _allocate_buffer_unused, _free_buffer_unused.
16693 * libio/memstream.c (__open_memstream): Likewise.
16694 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16695 * libio/wmemstream.c (open_wmemstream): Likewise.
16696
16697 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16698
16699 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16700 AMD Ryzen 7 1800X.
16701
16702 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16703
16704 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16705 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16706 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16707 New file.
16708 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16709 Likewise.
16710 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16711
16712 2018-05-29 Florian Weimer <fweimer@redhat.com>
16713
16714 * support/Makefile (libsupport-routines): Add
16715 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16716 xpthread_barrierattr_setpshared.
16717 * support/xpthread_barrierattr_destroy.c: New file.
16718 * support/xpthread_barrierattr_init.c: Likewise.
16719 * support/xpthread_barrierattr_setpshared.c: Likewise.
16720
16721 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16722
16723 [BZ #23206]
16724 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16725 _r_debug and update DT_DEBUG for debugger.
16726
16727 2018-05-29 Florian Weimer <fweimer@redhat.com>
16728
16729 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16730 (tst-strtod5i.out): Likewise.
16731
16732 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16733
16734 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16735 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16736 (sparc64-quad-routines): New variable. Moved from ....
16737 [$(subdir) = soft-fp] (sysdep_routines): Add
16738 $(sparc64-quad-routines). Moved from ....
16739 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16740 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16741 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16742 moved from ....
16743 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16744 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16745 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16746 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16747 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16748 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16749 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16750 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16751 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16752 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16753 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16754 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16755 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16756 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16757 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16758 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16759 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16760 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16761 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16762 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16763 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16764 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16765 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16766 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16767 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16768 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16769 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16770 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16771 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16772 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16773 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16774 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16775 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16776 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16777 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16778 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16779 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16780 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16781 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16782 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16783 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16784 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16785 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16786 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16787 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16788 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16789 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16790 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16791 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16792 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16793 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16794 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16795 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16796 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16797 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16798 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16799 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16800 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16801
16802 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16803 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16804 (sparc32-quad-routines): New variable. Moved from ....
16805 [$(subdir) = soft-fp] (sysdep_routines): Add
16806 $(sparc32-quad-routines). Moved from ....
16807 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16808 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16809 moved from ....
16810 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16811 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16812 * sysdeps/sparc/sparc32/q_add.c: ... here.
16813 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16814 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16815 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16816 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16817 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16818 * sysdeps/sparc/sparc32/q_div.c: ... here.
16819 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16820 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16821 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16822 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16823 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16824 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16825 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16826 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16827 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16828 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16829 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16830 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16831 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16832 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16833 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16834 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16835 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16836 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16837 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16838 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16839 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16840 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16841 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16842 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16843 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16844 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16845 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16846 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16847 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16848 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16849 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16850 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16851 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16852 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16853 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16854 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16855 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16856 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16857 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16858 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16859 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16860 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16861 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16862 * sysdeps/sparc/sparc32/q_util.c: ... here.
16863 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16864 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16865 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16866 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16867
16868 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16869 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16870
16871 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16872 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16873 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16874 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16875
16876 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16877
16878 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16879 powerpc/soft-fp.
16880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16881 Likewise.
16882 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16883 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16884
16885 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16886
16887 [BZ #23171]
16888 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16889 double version.
16890
16891 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16892
16893 * sysdeps/sh/Implies: Remove sh/soft-fp.
16894 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16895 * sysdeps/sh/sfp-machine.h: ... here.
16896
16897 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16898
16899 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16900 (__mempcpy_erms): Skip zero length.
16901 (__memmove_erms): Likewise.
16902 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16903 (__memset_erms): Likewise.
16904
16905 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16906
16907 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16908 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16909 Add functions moved from ....
16910 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16911 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16912 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16913 from ....
16914 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16915 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16916 * sysdeps/alpha/e_sqrtl.c: ... here.
16917 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16918 * sysdeps/alpha/local-soft-fp.h: ... here.
16919 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16920 * sysdeps/alpha/ots_add.c: ... here.
16921 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16922 * sysdeps/alpha/ots_cmp.c: ... here.
16923 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16924 * sysdeps/alpha/ots_cmpe.c: ... here.
16925 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16926 * sysdeps/alpha/ots_cvtqux.c: ... here.
16927 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16928 * sysdeps/alpha/ots_cvtqx.c: ... here.
16929 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16930 * sysdeps/alpha/ots_cvttx.c: ... here.
16931 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16932 * sysdeps/alpha/ots_cvtxq.c: ... here.
16933 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16934 * sysdeps/alpha/ots_cvtxt.c: ... here.
16935 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16936 * sysdeps/alpha/ots_div.c: ... here.
16937 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16938 * sysdeps/alpha/ots_mul.c: ... here.
16939 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16940 * sysdeps/alpha/ots_nintxq.c: ... here.
16941 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16942 * sysdeps/alpha/ots_sub.c: ... here.
16943 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16944 * sysdeps/alpha/sfp-machine.h: ... here.
16945
16946 2018-05-23 Florian Weimer <fweimer@redhat.com>
16947
16948 [BZ #19728]
16949 [BZ #19729]
16950 [BZ #22247]
16951 CVE-2016-6261
16952 CVE-2016-6263
16953 CVE-2017-14062
16954 Switch to extern IDNA implementation (libidn2).
16955 * libidn: Remove subdirectory.
16956 * LICENSES: Do not mention licensing conditions for the removed
16957 libidn code.
16958 * config.h.in (HAVE_LIBIDN): Remove.
16959 * include/dlfcn.h (__libc_dlopen): Update comment.
16960 * include/idna.h: Remove file.
16961 * inet/Makefile (routines): Add idna.
16962 (tests-static, tests-internal): Add tst-idna_name_classify.
16963 (LOCALES): Generate locales for tests.
16964 (tst-idna_name_classify.out): Depend on generated locales.
16965 * inet/idna_name_classify.c: New file.
16966 * inet/tst-idna_name_classify.c: Likewise.
16967 * inet/net-internal.h (__idna_to_dns_encoding)
16968 (__idna_from_dns_encoding): Declare.
16969 * inet/net-internal.h (enum idna_name_classification): Define.
16970 (__idna_name_classify): Declare.
16971 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16972 __idna_from_dns_encoding.
16973 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16974 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16975 name as a fallback in case of encoding errors.
16976 (getnameinfo): Use DEPRECATED_NI_IDN.
16977 * inet/idna.c: New file.
16978 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16979 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16980 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16981 (modules-names): Add tst-no-libidn2.
16982 (extra-test-objs): Add tst-no-libidn2.os.
16983 (LDFLAGS-tst-no-libidn2.so): Set soname.
16984 (LOCALES): Set, and generate locales.
16985 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16986 (tst-resolv-ai_idn-latin1): Likewise.
16987 (tst-resolv-ai_idn-nolibidn2): Likewise.
16988 (tst-resolv-ai_idn.out): Depend on locales.
16989 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16990 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16991 tst-no-libidn2.so.
16992 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16993 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16994 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16995 * resolv/tst-resolv-ai_idn.c: New file.
16996 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16997 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16998 * resolv/tst-no-libidn2.c: Likewise.
16999 * support/support_format_addrinfo.c (format_ai_flags): Do not
17000 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17001 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17002 (gaih_inet): Call __idna_to_dns_encoding and
17003 __idna_from_dns_encoding, and use the original (punycode) name if
17004 __idna_from_dns_encoding fails due to an encoding error.
17005 (getaddrinfo): Use DEPRECATED_AI_IDN.
17006 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17007 * sysdeps/unix/inet/configure: Remove file.
17008 * sysdeps/unix/inet/configure.ac: Likewise.
17009
17010 2018-05-23 Florian Weimer <fweimer@redhat.com>
17011
17012 Implement allocate_once.
17013 * include/allocate_once.h: New file.
17014 * misc/allocate_once.c: Likewise.
17015 * misc/tst-allocate_once.c: Likewise.
17016 * misc/Makefile (routines): Add allocate_once.
17017 (tests-internal): Add tst-allocate_once.
17018 (generated): Add tst-allocate_once.mtrace,
17019 tst-allocate_once-mem.out.
17020 (tests-special): Add tst-allocate_once-mem.out.
17021 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17022 (tst-allocate_once-mem.out): Call mtrace.
17023 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17024
17025 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17026
17027 [BZ #23196]
17028 * string/test-memcpy.c (do_test1): New function.
17029 (test_main): Call it.
17030
17031 2018-05-23 Andreas Schwab <schwab@suse.de>
17032
17033 [BZ #23196]
17034 CVE-2018-11237
17035 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17036 (L(preloop_large)): Save initial destination pointer in %r11 and
17037 use it instead of %rax after the loop.
17038 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17039
17040 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17041
17042 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17043 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17044 -I../soft-fp. Moved from ....
17045 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17046 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17047 * sysdeps/aarch64/e_sqrtl.c: ... here.
17048 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17049 * sysdeps/aarch64/sfp-machine.h: ... here.
17050
17051 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17052 -Wmaybe-uninitialized around access to fq[0].
17053 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17054 Likewise.
17055
17056 [BZ #18471]
17057 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17058 aliases for non-libc case of versioned symbols.
17059 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17060 (llseek): Define as compat symbol if
17061 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17062 with link warning.
17063 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17064 Make into a compat symbol, disabled for minimum symbol version
17065 GLIBC_2.28 and later.
17066 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17067
17068 2018-05-22 Florian Weimer <fweimer@redhat.com>
17069
17070 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17071 not add -mpreferred-stack-boundary=4.
17072 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17073 (stack-align-test-flags): Likewise.
17074 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17075 Likewise.
17076 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17077 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17078 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17079 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17080 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17081 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17082 (CFLAGS-tst-align2.c): Likewise.
17083
17084 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17085
17086 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17087 (index_arch_Prefer_FSRM): Likewise.
17088 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17089 Also check Prefer_FSRM.
17090 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17091 Also return OPTIMIZE (erms) for Prefer_FSRM.
17092
17093 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17094
17095 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17096 (index_cpu_FSRM): Likewise.
17097 (reg_FSRM): Likewise.
17098
17099 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17100
17101 * math/gen-tgmath-tests.py: Import sys.
17102 (Tests.__init__): Initialize macros_seen.
17103 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17104 if requested to do so for this macro.
17105 (Tests.add_all_tests): Take argument for macro for which to
17106 generate tests.
17107 (Tests.check_macro_list): New function.
17108 (main): Handle check-list argument and argument specifying macro
17109 for which to generate tests.
17110 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17111 [PYTHON] (tgmath3-macro-tests): Likewise.
17112 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17113 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17114 not test-tgmath3.c.
17115 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17116 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17117 to CFLAGS.
17118 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17119 [PYTHON] ($(foreach
17120 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17121 rule.
17122 [PYTHON] (tests-special): Add
17123 $(objpfx)test-tgmath3-macro-list.out.
17124 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17125
17126 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17127 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17128 later.
17129
17130 [BZ #22639]
17131 * time/tzset.c (SECSPERDAY): Cast to time_t.
17132 * time/tst-y2039.c: New file.
17133 * time/Makefile (tests): Add tst-y2039.
17134
17135 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17136
17137 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17138 (PREFETCH_ONE_SET): Remove duplicate line.
17139
17140 2018-05-17 Florian Weimer <fweimer@redhat.com>
17141
17142 * sysdeps/generic/math-type-macros-double.h: Include
17143 <math-nan-payload-double.h> after <libm-alias-double.h>.
17144 * sysdeps/generic/math-type-macros-float.h: Include
17145 <math-nan-payload-float.h> after <libm-alias-float.h>.
17146 * sysdeps/generic/math-type-macros-float128.h: Include
17147 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17148 * sysdeps/generic/math-type-macros-ldouble.h: Include
17149 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17150
17151 2018-05-17 Andreas Schwab <schwab@suse.de>
17152
17153 * resolv/res_send.c (__res_context_send): Don't set errno when
17154 returing error after malloc failure.
17155
17156 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17157
17158 * nptl/allocatestack.c (allocate_stack): Remove the
17159 !__ASSUME_PRIVATE_FUTEX paths.
17160 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17161 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17162 Likewise.
17163 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17164 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17165 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17166 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17167 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17168 !__ASSUME_PRIVATE_FUTEX path.
17169 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17170 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17171 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17172 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17173 !__ASSUME_PRIVATE_FUTEX macros.
17174 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17175 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17176 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17177 * sysdeps/unix/sysv/linux/kernel-features.h
17178 (__ASSUME_PRIVATE_FUTEX): Removed.
17179
17180 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17181
17182 * math/Makefile (libm-narrow-fns): Add div.
17183 (libm-test-funcs-narrow): Likewise.
17184 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17185 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17186 * math/gen-auto-libm-tests.c (test_functions): Add div.
17187 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17188 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17189 (NARROW_DIV_TRIVIAL): Likewise.
17190 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17191 macro.
17192 (__ddivl): Likewise.
17193 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17194 ddiv.
17195 (CFLAGS-nldbl-ddiv.c): New variable.
17196 (CFLAGS-nldbl-fdiv.c): Likewise.
17197 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17198 __nldbl_ddivl.
17199 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17200 prototype.
17201 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17202 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17203 * math/auto-libm-test-in: Add tests of div.
17204 * math/auto-libm-test-out-narrow-div: New generated file.
17205 * math/libm-test-narrow-div.inc: New file.
17206 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17207 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17208 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17209 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17210 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17211 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17212 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17213 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17214 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17215 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17216 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17217 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17218 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17219 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17220 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17221 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17222 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17223 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17224 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17225 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17226 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17227 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17228 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17229 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17230 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17231 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17232 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17233 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17234 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17235 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17236 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17237 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17242 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17243 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17244 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17245 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17246 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17247 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17248 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17249 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17250
17251 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17252
17253 [BZ #23178]
17254 * nscd/nscd-client.h (sendfileall): Remove prototype.
17255 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17256 (handle_request): Use writeall instead of sendfileall.
17257 * nscd/aicache.c (addhstaiX): Likewise.
17258 * nscd/grpcache.c (cache_addgr): Likewise.
17259 * nscd/hstcache.c (cache_addhst): Likewise.
17260 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17261 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17262 * nscd/pwdcache.c (cache_addpw): Likewise.
17263 * nscd/servicescache.c (cache_addserv): Likewise.
17264 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17265 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17266 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17267 Remove define.
17268
17269 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17270
17271 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17272 Include <string/strncat.c>.
17273 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17274 alias.
17275 (__GI___strncat): New hidden alias.
17276
17277 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17278
17279 * sysdeps/mips/mips32/libm-test-ulps: Update.
17280 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17281
17282 2018-05-16 Florian Weimer <fweimer@redhat.com>
17283
17284 * support/Makefile (libsupport-routines): Add support_quote_blob,
17285 support_test_compare_blob.
17286 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17287 * support/check.h (TEST_COMPARE_BLOB): Define.
17288 (support_test_compare_blob): Declare.
17289 * support/support.h (support_quote_blob): Declare.
17290 * support/support_quote_blob.c: New file.
17291 * support/support_test_compare_blob.c: Likewise.
17292 * support/tst-support_quote_blob.c: Likewise.
17293 * support/tst-test_compare_blob.c: Likewise.
17294
17295 2018-05-16 Florian Weimer <fweimer@redhat.com>
17296
17297 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17298 of <strtod_nan_double.h>.
17299 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17300 instead of SET_MANTISSA.
17301 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17302 of include <strtod_nan_float.h>.
17303 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17304 instead of <strtod_nan_ldouble.h>.
17305 * stdlib/strtod_nan_double.h: Move to ...
17306 * sysdeps/generic/math-nan-payload-double.h: ... here.
17307 (FLOAT): Remove definition.
17308 (SET_MANTISSA): Rename to ...
17309 (SET_NAN_PAYLOAD): ... this.
17310 * stdlib/strtod_nan_float.h: Move to ...
17311 * sysdeps/generic/math-nan-payload-float.h: ... here.
17312 (FLOAT): Remove definition.
17313 (SET_MANTISSA): Rename to ...
17314 (SET_NAN_PAYLOAD): ... this.
17315 * sysdeps/generic/math-type-macros-double.h: Include
17316 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17317 instead of <math-svid-compat.h>.
17318 * sysdeps/generic/math-type-macros-float.h: Include
17319 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17320 instead of <math-svid-compat.h>.
17321 * sysdeps/generic/math-type-macros-float128.h: Include
17322 <math-nan-payload-float128.h>.
17323 * sysdeps/generic/math-type-macros-ldouble.h: Include
17324 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17325 instead of <math-svid-compat.h>.
17326 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17327 check for definition.
17328 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17329 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17330 Include <ieee754_float128.h>.
17331 (FLOAT): Remove definition.
17332 (SET_MANTISSA): Rename to ...
17333 (SET_NAN_PAYLOAD): ... this.
17334 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17335 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17336 Do not include <float128_private.h>.
17337 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17338 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17339 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17340 (FLOAT): Remove definition.
17341 (SET_MANTISSA): Rename to ...
17342 (SET_NAN_PAYLOAD): ... this.
17343 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17344 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17345 (FLOAT): Remove definition.
17346 (SET_MANTISSA): Rename to ...
17347 (SET_NAN_PAYLOAD): ... this.
17348 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17349 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17350 (FLOAT): Remove definition.
17351 (SET_MANTISSA): Rename to ...
17352 (SET_NAN_PAYLOAD): ... this.
17353 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17354 of "../stdlib/strtod_nan_double.h".
17355 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17356 of "../stdlib/strtod_nan_float.h".
17357 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17358 instead of "../stdlib/strtod_nan_ldouble.h".
17359 * manual/arith.texi (Parsing of Floats): Adjust comment.
17360
17361 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17362
17363 * math/Makefile (libm-narrow-fns): Add mul.
17364 (libm-test-funcs-narrow): Likewise.
17365 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17366 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17367 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17368 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17369 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17370 (NARROW_MUL_TRIVIAL): Likewise.
17371 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17372 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17373 macro.
17374 (__dmull): Likewise.
17375 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17376 dmul.
17377 (CFLAGS-nldbl-dmul.c): New variable.
17378 (CFLAGS-nldbl-fmul.c): Likewise.
17379 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17380 __nldbl_dmull.
17381 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17382 prototype.
17383 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17384 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17385 * math/auto-libm-test-in: Add tests of mul.
17386 * math/auto-libm-test-out-narrow-mul: New generated file.
17387 * math/libm-test-narrow-mul.inc: New file.
17388 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17389 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17390 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17391 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17392 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17393 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17394 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17395 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17396 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17397 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17398 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17399 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17400 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17401 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17402 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17403 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17404 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17405 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17406 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17407 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17408 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17409 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17410 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17411 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17412 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17413 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17414 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17415 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17416 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17417 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17418 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17419 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17420 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17424 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17425 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17426 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17427 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17428 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17429 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17430 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17431 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17432
17433 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17434
17435 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17436 with *%eax in call.
17437
17438 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17439
17440 * sysdeps/i386/ldsodefs.h: Removed.
17441 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17442 * sysdeps/x86/ldsodefs.h: This.
17443 (La_i86_regs): New.
17444 (La_i86_retval): Likewise.
17445 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17446 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17447
17448 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17449
17450 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17451 unnecessary testl.
17452
17453 2018-05-13 Alan Modra <amodra@gmail.com>
17454
17455 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17456 R_PARISC_TLS_DTPOFF32 reloc addend.
17457
17458 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17459
17460 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17461 * math/math.h: Restrict the prototype definition for the functions
17462 issignaling(_Float128) and iszero(_Float128); and template
17463 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17464 __HAVE_FLOAT128_UNLIKE_LDBL.
17465 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17466 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17467 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17468 __f128() constants; define the type _Float128 as long double;
17469 and reuse long double in __CFLOAT128.
17470
17471 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17472
17473 * sysdeps/generic/math_private.h: Do not include
17474 <math-barriers.h>.
17475 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17476 <math_private.h>.
17477 * math/fromfp.h: Include <math-barriers.h>.
17478 * math/math-narrow.h: Likewise.
17479 * math/s_nextafter.c: Likewise.
17480 * math/s_nexttowardf.c: Likewise.
17481 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17482 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17483 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17484 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17485 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17486 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17487 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17488 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17489 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17490 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17491 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17492 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17493 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17494 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17495 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17496 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17497 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17498 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17499 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17500 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17501 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17502 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17503 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17504 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17505 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17506 * sysdeps/ieee754/k_standardl.c: Likewise.
17507 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17508 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17509 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17510 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17511 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17512 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17513 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17514 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17515 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17516 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17517 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17518 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17519 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17520 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17521 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17522 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17523 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17524 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17525 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17526 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17527 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17528 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17529
17530 2018-05-11 Florian Weimer <fweimer@redhat.com>
17531
17532 Use 64-bit epoch values in the time zone file parser.
17533 * include/time.h (internal_time_t): Define.
17534 (__tzfile_compute): Use it.
17535 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17536 member.
17537 (transitions): Switch to internal_time_t.
17538 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17539 types.
17540 (__tzfile_compute): Use internal_time_t for timer argument. Check
17541 for truncation before calling __offtime.
17542
17543 2018-05-11 Florian Weimer <fweimer@redhat.com>
17544
17545 [BZ #23166]
17546 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17547 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17548 Likewise.
17549 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17550 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17551 export without --enable-obsolete-rpc.
17552 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17553 symbol. This should not have been exported, ever.
17554
17555 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17556
17557 [BZ #23152]
17558 * localedata/locales/gd_GB (abmon): Fix typo in May:
17559 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17560
17561 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17562
17563 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17564 Use multiple registers to copy data in loop tail.
17565
17566 * sysdeps/aarch64/multiarch/memmove_falkor.S
17567 (__memmove_falkor): Use multiple registers to move data in
17568 loop tail.
17569
17570 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17571
17572 * math/math-underflow.h: New file.
17573 * sysdeps/generic/math_private.h: Do not include <float.h>.
17574 (fabs_tg): Remove macro. Moved to math-underflow.h.
17575 (min_of_type_f): Likewise.
17576 (min_of_type_): Likewise.
17577 (min_of_type_l): Likewise.
17578 (min_of_type_f128): Likewise.
17579 (min_of_type): Likewise.
17580 (math_check_force_underflow): Likewise.
17581 (math_check_force_underflow_nonneg): Likewise.
17582 (math_check_force_underflow_complex): Likewise.
17583 * math/e_exp2_template.c: Include <math-underflow.h>.
17584 * math/k_casinh_template.c: Likewise.
17585 * math/s_catan_template.c: Likewise.
17586 * math/s_catanh_template.c: Likewise.
17587 * math/s_ccosh_template.c: Likewise.
17588 * math/s_cexp_template.c: Likewise.
17589 * math/s_clog10_template.c: Likewise.
17590 * math/s_clog_template.c: Likewise.
17591 * math/s_csin_template.c: Likewise.
17592 * math/s_csinh_template.c: Likewise.
17593 * math/s_csqrt_template.c: Likewise.
17594 * math/s_ctan_template.c: Likewise.
17595 * math/s_ctanh_template.c: Likewise.
17596 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17597 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17598 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17599 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17600 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17601 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17602 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17603 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17604 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17605 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17606 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17607 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17608 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17609 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17610 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17611 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17612 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17613 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17614 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17615 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17616 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17617 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17618 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17619 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17620 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17621 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17622 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17623 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17624 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17625 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17626 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17627 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17628 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17629 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17630 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17631 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17632 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17633 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17634 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17635 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17636 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17637 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17638 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17639 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17640 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17641 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17642 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17643 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17644 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17645 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17646 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17647 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17648 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17649 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17650 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17651 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17652 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17653 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17654 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17655 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17656 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17657 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17658 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17659 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17660 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17661 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17662 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17663 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17664 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17665 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17666 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17667 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17668 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17669 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17670 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17671 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17672 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17673 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17674 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17675 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17676 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17677 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17678 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17679 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17680
17681 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17682
17683 * sysdeps/generic/math-barriers.h: New file.
17684 * sysdeps/generic/math_private.h [!math_opt_barrier]
17685 (math_opt_barrier): Move to math-barriers.h.
17686 [!math_opt_barrier] (math_force_eval): Likewise.
17687 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17688 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17689 math-barriers.h.
17690 (math_force_eval): Likewise.
17691 * sysdeps/alpha/fpu/math-barriers.h: New file.
17692 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17693 math-barriers.h.
17694 (math_force_eval): Likewise.
17695 * sysdeps/x86/fpu/math-barriers.h: New file.
17696 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17697 math-barriers.h.
17698 (math_force_eval): Likewise.
17699 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17700 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17701 multiple-include guard for rename.
17702 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17703 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17704 math-barriers.h.
17705 (math_force_eval): Likewise.
17706
17707 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17708
17709 [BZ #22786]
17710 CVE-2018-11236
17711 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17712 computation.
17713 * stdlib/Makefile (test-bz22786): New test.
17714 * stdlib/test-bz22786.c: New test.
17715
17716 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17717
17718 * include/math-narrow-eval.h: New file. Contents moved from ....
17719 * sysdeps/generic/math_private.h: ... here.
17720 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17721 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17722 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17723 * stdlib/strtod_l.c: Likewise.
17724 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17725 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17726 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17727 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17728 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17729 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17730 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17731 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17732 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17733 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17734 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17735 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17736 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17737 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17738 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17739 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17740 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17741 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17742 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17743 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17744 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17745 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17746 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17747 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17748 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17749 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17750 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17751 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17752 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17753
17754 2018-05-08 Andreas Schwab <schwab@suse.de>
17755
17756 * sysdeps/nptl/internaltypes.h: Fix comment.
17757
17758 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17759
17760 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17761 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17762 hidden.
17763
17764 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17765
17766 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17767 of I into loop header.
17768 * benchtests/bench-memmove-walk.c
17769 (test_main): Likewise.
17770
17771 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17772
17773 Revert:
17774 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17775 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17776
17777 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17778
17779 [BZ #20419]
17780 * elf/dl-load.c (open_verify): Fix stack overflow.
17781 * elf/Makefile (tst-big-note): New test.
17782 * elf/tst-big-note-lib.S: New.
17783 * elf/tst-big-note.c: New.
17784
17785 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17786
17787 * scripts/abilist.awk: Ignore absolute symbols.
17788 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17789 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17790 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17791 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17792 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17793 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17794 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17795 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17796 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17797 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17798 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17799 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17800 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17801 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17802 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17803 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17804 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17805 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17806 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17807 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17808 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17809 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17810 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17811 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17812 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17813 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17814 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17815 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17816 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17817 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17818 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17819 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17820 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17821 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17822 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17823 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17824 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17825 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17829 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17830 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17831 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17832 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17833 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17834 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17836 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17837 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17839 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17840 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17841 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17842 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17843 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17844 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17845 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17846 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17847 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17849 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17850 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17851 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17852 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17853 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17872 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17873 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17874 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17875 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17876 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17878 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17879 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17880 Likewise.
17881 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17882 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17883 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17884 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17885 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17886 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17887 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17889 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17890 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17891 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17892 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17894 Likewise.
17895 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17902 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17911 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17912 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17915 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17916 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17922 Likewise.
17923 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17924 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17925 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17926 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17929 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17933 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17943 Likewise.
17944 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17960 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17961 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17964 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17965 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17967 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17968 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17970 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17971 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17975 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17976 Likewise.
17977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17978 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17979 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17982 Likewise.
17983 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17984 Likewise.
17985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17987 Likewise.
17988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17990 Likewise.
17991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17992 Likewise.
17993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17995 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17996 Likewise.
17997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17998 Likewise.
17999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18000 Likewise.
18001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18005 Likewise.
18006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18007 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18012 Likewise.
18013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18015 Likewise.
18016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18017 Likewise.
18018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18019 Likewise.
18020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18021 Likewise.
18022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18025 Likewise.
18026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18027 Likewise.
18028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18029 Likewise.
18030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18033 Likewise.
18034 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18036 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18037 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18040 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18041 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18042 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18043 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18044 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18045 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18046 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18047 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18048 Likewise.
18049 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18050 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18051 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18052 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18053 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18054 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18055 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18056 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18057 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18058 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18059 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18060 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18061 Likewise.
18062 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18063 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18064 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18065 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18066 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18067 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18068 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18069 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18070 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18071 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18072 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18073 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18074 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18075 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18076 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18077 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18078 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18079 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18080 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18081 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18082 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18083 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18084 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18085 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18086 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18087 Likewise.
18088 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18089 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18090 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18091 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18092 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18093 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18094 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18095 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18096 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18097 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18098 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18099 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18100 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18101 Likewise.
18102 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18103 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18104 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18105 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18106 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18107 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18108 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18109 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18110 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18111 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18112 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18113 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18114 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18115 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18116 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18117 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18120 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18121 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18122 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18123 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18124 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18125 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18126 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18127 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18128 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18129 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18130 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18131 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18132 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18133 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18134 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18135 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18136 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18137 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18138 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18139 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18140
18141 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18142
18143 [BZ #23137]
18144 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18145 Use atomic_load_acquire to load __tid.
18146
18147 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18148
18149 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18150 Restore the pointer into %rdx, after syscall and use %rdx,
18151 instead of %rsi, to restore context.
18152
18153 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18154
18155 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18156 Pop the pointer into %rdx after syscall and use %rdx, instead
18157 of %rsi, to restore context.
18158
18159 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18160
18161 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18162 handlers after setjmp.
18163 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18164 defined.
18165 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18166 <libc-pointer-arith.h>.
18167 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18168 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18169 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18170 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18171 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18172 * sysdeps/x86/__longjmp_cancel.S: New file.
18173 * sysdeps/x86/longjmp.c: Likewise.
18174 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18175
18176 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18177
18178 * NEWS: Add ustat.h deprecation entry.
18179 * bits/ustat.h: Remove file.
18180 * misc/sys/ustat.h: Likewise.
18181 * misc/ustat.h: Likewise.
18182 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18183 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18184 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18185 compatibility mode.
18186 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18187 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18188 generic Linux implementation.
18189
18190 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18191
18192 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18193 * math/w_expl_compat.c: Likewise.
18194 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18195
18196 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18197
18198 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18199
18200 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18201
18202 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18203 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18204 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18205 Remove.
18206 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18208 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18209 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18210 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18211 and SYSCALL_LL64.
18212
18213 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18214
18215 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18216
18217 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18218 * math/w_asin_template.c: Likewise.
18219 * math/w_atanh_template.c: Likewise.
18220
18221 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18222
18223 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18224 to powerpc/powerpc64/be for big-endian.
18225 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18226 little-endian.
18227
18228 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18229 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18230 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18231 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18232 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18233 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18234 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18235 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18236 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18237 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18238 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18239 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18240 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18241 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18242 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18243 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18244 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18245 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18246 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18247 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18248 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18249 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18250 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18251 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18252 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18253 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18254 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18255 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18256 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18257 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18258 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18259 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18260
18261 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18262 adjusted to imply powerpc64 and older processors on powerpc64/be.
18263 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18264 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18265 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18266 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18267 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18268 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18269 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18270 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18271 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18272 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18273 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18274 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18275 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18276 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18277 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18278 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18279 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18280 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18281 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18282 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18283 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18284 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18285 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18286 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18287 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18288 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18289 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18290 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18291 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18292 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18293 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18294
18295 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18296 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18297 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18298 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18299
18300 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18301 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18302 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18303 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18304
18305 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18306 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18307 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18308 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18309 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18310 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18311 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18312 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18313 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18314 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18315 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18316
18317 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18318 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18319 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18320 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18321 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18322 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18323 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18324 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18325 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18326 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18327 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18328
18329 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18330 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18331 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18332 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18333 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18334 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18335 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18336 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18337 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18338 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18339 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18340 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18341
18342 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18343 and adjusted to imply olders processors.
18344 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18345 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18346 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18347 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18348 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18349 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18350 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18351 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18352 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18353 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18354 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18355
18356 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18357 powerpc64/le.
18358 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18359 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18360
18361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18362 powerpc64le.
18363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18365
18366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18367 powerpc64/be.
18368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18371
18372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18373 powerpc64 and adjusted.
18374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18377 Likewise.
18378
18379 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18380
18381 * sysdeps/tile: Remove.
18382 * sysdeps/unix/sysv/linux/tile: Likewise.
18383 * README (tilegx-*-linux-gnu): Remove from list of supported
18384 configurations.
18385 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18386 contribution of support for generic Linux kernel syscall
18387 interface.
18388 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18389 tilegx configurations.
18390 (Config.install_linux_headers): Do not handle tile.
18391 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18392 in comment.
18393 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18394 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18395 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18396 conditional undefine and redefine.
18397 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18398 in comment.
18399 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18400 conditional undefine and redefine.
18401
18402 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18403
18404 * signal/tst-sigaction.c: New file to test BZ #23069.
18405 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18406
18407 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18408
18409 [BZ #22766]
18410 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18411 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18412 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18413 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18414
18415 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18416
18417 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18418 _DIRENT_MATCHES_DIRENT64 is not defined.
18419 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18420 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18421 is defined.
18422 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18423 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18424
18425 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18426
18427 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18428 version to GCC 8 branch.
18429
18430 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18431
18432 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18433 (check_no_hidden): Use type of original function when declaring
18434 alias.
18435
18436 * sysdeps/unix/sysv/linux/sys/ptrace.h
18437 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18438 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18439 (struct __ptrace_seccomp_metadata): New type.
18440 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18441 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18442 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18443 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18444 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18445 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18446 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18447 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18448 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18449 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18450 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18451 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18452 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18453 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18454 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18455 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18456
18457 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18458
18459 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18460 defined.
18461 * dirent/versionsort.c (versionsort): Likewise.
18462 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18463 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18464 * dirent/versionsort64.c (versionsort64): Likewise.
18465 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18466 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18467 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18468 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18469 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18470 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18471 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18472 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18473 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18474 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18477 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18478 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18479
18480 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18481
18482 * elf/elf.h (NT_PPC_PKEY): New macro.
18483
18484 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18485
18486 [BZ #23094]
18487 * localedata/locales/hr_HR: fix thousands_sep and
18488 mon_thousands_sep
18489
18490 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18491
18492 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18493 (XTABS): Define to TAB3.
18494
18495 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18496
18497 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18498
18499 * dirent/scandir-tail-common.c: New file.
18500 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18501 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18502 * dirent/scandir.c: Use scandir-tail-common.c.
18503 * dirent/scandirat.c: Likewise.
18504 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18505 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18506 if _DIRENT_MATCHES_DIRENT64 is defined.
18507 * dirent/scandirat64.c (scandirat64): Likewise.
18508 * include/dirent.h (__scandir_tail): Only define iff
18509 _DIRENT_MATCHES_DIRENT64 is not defined.
18510 (__scandir64_tail): Define regardless.
18511 (__scandirat, scandirat64): Remove libc_hidden_proto.
18512 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18513 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18515 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18516 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18517 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18518 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18519
18520 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18521
18522 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18523 New macro.
18524 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18525 Increase to 24.
18526 (_dl_aarch64_cap_flags): Add asimdfhm.
18527
18528 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18529
18530 * sysdeps/nios2/libm-test-ulps: Update.
18531
18532 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18533
18534 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18535 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18536
18537 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18538 requirements.
18539 (_DIRENT_MATCHES_DIRENT64): Undef
18540 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18541 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18542 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18543 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18544 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18545 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18546 use getdents64 syscalls as base.
18547 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18548 symbol if required.
18549 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18550 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18551 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18552 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18553 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18554 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18555 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18556 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18557 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18558 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18559 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18560
18561 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18562
18563 * scripts/test_printers_common.py (init_test): Disable lock elision.
18564
18565 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18566
18567 * math/test-tgmath.c (count_double, count_float,
18568 count_ldouble, count_cdouble, count_cfloat,
18569 count_cldouble): Use volatile int.
18570
18571 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18572
18573 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18574 (conformtest-xfail-conds): Add i386-gnu.
18575 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18576 i386-gnu.
18577 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18578 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18579 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18580 msqid_ds.msg_lrpid): Likewise.
18581 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18582 Likewise.
18583 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18584 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18585 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18586 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18587 unsigned int.
18588 (struct statvfs64): Likewise.
18589 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18590 Likewise.
18591 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18592 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18593 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18594 instead of wait_queue.
18595 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18596 instead of vm_area_struct.
18597 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18598 struct sched_param definition to it.
18599 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18600 * bits/types/struct_sched_param.h: New file.
18601 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18602 <bits/types/struct_sched_param.h> instead of <sched.h>.
18603 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18604 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18605 generic version but include <bits/pthreadtypes.h> to make struct
18606 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18607 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18608 non-compliant.
18609 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18610 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18611 [__USE_XOPEN] (OFDEL): New macro.
18612 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18613 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18614 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18615 prototypes.
18616 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18617 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18618 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18619 non-compliant.
18620 * sysdeps/i386/sys/ucontext.h: Likewise.
18621 * sysdeps/m68k/sys/ucontext.h: Likewise.
18622 * sysdeps/mips/sys/ucontext.h: Likewise.
18623 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18624 * sysdeps/mach/hurd/i386/Makefile
18625 (test-xfail-POSIX/fcntl.h/conform): Add.
18626 (test-xfail-POSIX/signal.h/conform): Add.
18627 (test-xfail-POSIX/semaphore.h/conform): Add.
18628 (test-xfail-POSIX/regex.h/conform): Add.
18629 (test-xfail-POSIX/aio.h/conform): Add.
18630 (test-xfail-POSIX/mqueue.h/conform): Add.
18631 (test-xfail-POSIX/sys/types.h/conform): Add.
18632 (test-xfail-UNIX98/fcntl.h/conform): Add.
18633 (test-xfail-UNIX98/netdb.h/conform): Add.
18634 (test-xfail-UNIX98/signal.h/conform): Add.
18635 (test-xfail-UNIX98/semaphore.h/conform): Add.
18636 (test-xfail-UNIX98/regex.h/conform): Add.
18637 (test-xfail-UNIX98/aio.h/conform): Add.
18638 (test-xfail-UNIX98/ftw.h/conform): Add.
18639 (test-xfail-UNIX98/mqueue.h/conform): Add.
18640 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18641 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18642 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18643 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18644 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18645 (test-xfail-UNIX98/sys/types.h/conform): Add.
18646 (test-xfail-UNIX98/stdlib.h/conform): Add.
18647 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18648 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18649 (test-xfail-POSIX2008/netdb.h/conform): Add.
18650 (test-xfail-POSIX2008/signal.h/conform): Add.
18651 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18652 (test-xfail-POSIX2008/regex.h/conform): Add.
18653 (test-xfail-POSIX2008/aio.h/conform): Add.
18654 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18655 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18656 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18657 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18658 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18659 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18660 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18661 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18662 (test-xfail-XOPEN2K/signal.h/conform): Add.
18663 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18664 (test-xfail-XOPEN2K/regex.h/conform): Add.
18665 (test-xfail-XOPEN2K/aio.h/conform): Add.
18666 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18667 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18668 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18669 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18670 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18671 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18672 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18673 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18674 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18675 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18676 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18677 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18678 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18679 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18680 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18681 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18682 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18683 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18684 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18685 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18686 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18687 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18688 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18689 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18690 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18691 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18692 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18693 i386-gnu.
18694 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18695 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18696
18697 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18698
18699 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18700 --enable-obsolete for powerpc-linux-gnuspe.
18701
18702 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18703
18704 * conform/data/sys/un.h-data: Allow sun_ prefix.
18705 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18706 prototypes.
18707 * sysdeps/mach/include/mach.h: Likewise.
18708 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18709 * sysdeps/mach/include/mach_error.h: Likewise.
18710
18711 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18712
18713 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18714 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18715 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18716 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18717
18718 2018-04-16 Andreas Schwab <schwab@suse.de>
18719
18720 [BZ #19527]
18721 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18722
18723 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18724
18725 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18726 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18727
18728 2018-04-12 DJ Delorie <dj@redhat.com>
18729
18730 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18731 version to 4.16.
18732
18733 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18734
18735 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18736 (struct kernel_sigaction): Use the same definition on 31bit as is used
18737 on 64bit.
18738
18739 2018-04-09 Florian Weimer <fweimer@redhat.com>
18740
18741 [BZ #23037]
18742 * resolv/res_send.c (send_dg): Use designated initializers instead
18743 of assignment to zero-initialize other fields of struct mmsghdr.
18744
18745 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18746
18747 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18748 __READDIR_ALIAS): Undefine after usage.
18749 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18750 __READDIR_R_ALIAS): Likewise.
18751 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18752 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18753 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18754 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18755 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18756 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18757 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18758 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18759 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18760 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18761 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18762 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18763 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18764 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18765 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18766 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18767 * sysdeps/unix/sysv/linux/readdir.c: New file.
18768 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18769 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18770 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18771
18772 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18773
18774 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18775
18776 * manual/charset.texi (Converting a Character): Fix typo.
18777
18778 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18779
18780 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18781
18782 * sysdeps/arm/libm-test-ulps: Update.
18783
18784 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18785 as base implementation.
18786 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18787 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18788 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18789 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18790 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18791 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18792 remove unrequired definitions and update comments.
18793 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18794 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18795 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18796 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18797 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18798 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18799 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18800 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18801 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18802 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18803 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18804 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18805 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18806 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18807 and RESET_SA_RESTORER hooks.
18808
18809 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18810
18811 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18812
18813 2018-04-05 Florian Weimer <fweimer@redhat.com>
18814
18815 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18816 integer overflow, memory leak on error, and indeterminate errno
18817 value. Add a null wide character to terminate the result string.
18818 * manual/charset.texi (Converting a Character): Mention embedded
18819 null bytes in the mbrtowc input string. Explain what happens in
18820 the -2 result case. Do not claim that mbrtowc is simple or
18821 obvious to use. Adjust the description of the code example. Use
18822 @code, not @var, for concrete variables.
18823
18824 2018-04-05 Florian Weimer <fweimer@redhat.com>
18825
18826 * manual/examples/mbstouwcs.c: New file.
18827 * manual/charset.texi (Converting a Character): Include it.
18828
18829 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18830
18831 * include/dirent.h (dirfd): Add hidden proto.
18832 * dirent/dirfd.c (dirfd): Add hidden def.
18833 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18834 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18835
18836 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18837
18838 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18839 sin, cos and sincos to 1 ULP.
18840
18841 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18842
18843 [BZ #19818]
18844 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18845 symbols.
18846 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18847 * elf/tst-absolute-sym.c: New file.
18848 * elf/tst-absolute-sym-lib.c: New file.
18849 * elf/tst-absolute-sym-lib.lds: New file.
18850 * elf/Makefile (tests): Add `tst-absolute-sym'.
18851 (modules-names): Add `tst-absolute-sym-lib'.
18852 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18853 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18854 ($(objpfx)tst-absolute-sym): New dependency.
18855
18856 [BZ #19818]
18857 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18858 parameter.
18859 (SYMBOL_ADDRESS): New macro.
18860 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18861 SYMBOL_ADDRESS for symbol address calculation.
18862 * elf/dl-runtime.c (_dl_fixup): Likewise.
18863 (_dl_profile_fixup): Likewise.
18864 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18865 * elf/rtld.c (dl_main): Likewise.
18866 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18867 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18868 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18869 (elf_machine_rela): Likewise.
18870 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18871 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18872 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18873 (elf_machine_rela): Likewise.
18874 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18875 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18876 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18877 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18878 Likewise.
18879 (elf_machine_reloc): Likewise.
18880 (elf_machine_got_rel): Likewise.
18881 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18882 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18883 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18884 Likewise.
18885 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18886 Likewise.
18887 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18888 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18889 Likewise.
18890 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18891 Likewise.
18892 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18893 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18894 Likewise.
18895 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18896 Likewise.
18897 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18898 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18899
18900 2018-04-04 Zack Weinberg <zackw@panix.com>
18901
18902 * sysdeps/generic/internal-signals.h: Include signal.h,
18903 sigsetops.h, and stdbool.h.
18904 (__libc_signal_block_all): Actually block all signals.
18905 (__libc_signal_block_app): Likewise.
18906 (__libc_signal_restore_set): Actually restore the signal mask.
18907
18908 2018-04-04 Florian Weimer <fweimer@redhat.com>
18909
18910 inet: Actually build and run tst-deadline.
18911 * inet/Makefile (tests-internal): Add tst-deadline and do not
18912 overwrite the variable.
18913 (tests-static-internal): Remove variable.
18914
18915 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18916
18917 [BZ #22947]
18918 * bits/uio-ext.h (RWF_APPEND): New.
18919 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18920 * manual/llio.texi: Document RWF_APPEND.
18921 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18922 (RWF_SUPPORTED): Add RWF_APPEND.
18923
18924 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18925
18926 [BZ #22391]
18927 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18928 check for internal nptl signals.
18929 * nptl/sigaction.c (__sigaction): Likewise.
18930 * signal/sigaddset.c (sigaddset): Likewise.
18931 * signal/sigdelset.c (sigdelset): Likewise.
18932 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18933 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18934 value.
18935 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18936 to filter out internal nptl signals.
18937 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18938 also check realtime signals using standard macros.
18939 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18940 __is_internal_signal, __libc_signal_block_all,
18941 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18942 * sysdeps/nptl/sigfillset.c: Remove file.
18943 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18944 Change return to bool.
18945 (__clear_internal_signals): Remove SIGTIMER clean since it is
18946 equal to SIGCANEL on Linux.
18947 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18948 signal set was constructed using standard functions.
18949
18950 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18951
18952 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18953 ifname is too long.
18954 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18955 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18956 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18957 hidden def.
18958 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18959 * signal/sigaddset.c: Include <sigsetopts.h>.
18960 * signal/sigdelset.c: Likewise.
18961
18962 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18963
18964 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18965 (__cos): Likewise.
18966 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18967 logic as sin and cos.
18968
18969 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18970
18971 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18972 inputs. Return correct sign.
18973 (do_sincos): Remove small input check before do_sin, let do_sin set
18974 the sign.
18975 (__sin): Likewise.
18976 (__cos): Likewise.
18977
18978 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18979
18980 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18981 (do_cos_slow): Likewise.
18982 (do_sin_slow): Likewise.
18983 (reduce_and_compute): Likewise.
18984 (slow): Likewise.
18985 (slow1): Likewise.
18986 (slow2): Likewise.
18987 (sloww): Likewise.
18988 (sloww1): Likewise.
18989 (sloww2): Likewise.
18990 (bslow): Likewise.
18991 (bslow1): Likewise.
18992 (bslow2): Likewise.
18993 (cslow2): Likewise.
18994
18995 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18996
18997 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18998 (do_cos): Remove corp parameter and calculations.
18999 (do_sin): Likewise.
19000 (do_sincos): Remove cor variable.
19001 (__sin): Use do_sincos for huge inputs.
19002 (__cos): Likewise.
19003 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19004 (reduce_and_compute_sincos): Remove unused function.
19005
19006 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19007
19008 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19009 reduce_sincos, improve accuracy to 136 bits.
19010 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19011 (__sin): Use improved reduction and simplified do_sincos calculation.
19012 (__cos): Likewise.
19013 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19014
19015 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19016
19017 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19018 (do_sincos_2): Likewise.
19019 (__sin): Remove middle range reduction case.
19020 (__cos): Likewise.
19021 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19022 reduction case.
19023
19024 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19025
19026 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19027 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19028 inputs.
19029 (__cos): Likewise.
19030 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19031
19032 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19033
19034 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19035 version to 4.16
19036
19037 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19038
19039 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19040 Remove definitions.
19041 (opendir_oflags): Use O_DIRECTORY regardless.
19042 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19043 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19044
19045 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19046
19047 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19048 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19049 macros.
19050 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19051 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19052 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19053 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19054 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19055 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19056
19057 * htl/Makefile: Bump licence to LGPL 2.1+.
19058 * htl/alloca_cutoff.c: Likewise.
19059 * htl/cthreads-compat.c: Likewise.
19060 * htl/lockfile.c: Likewise.
19061 * htl/pt-alloc.c: Likewise.
19062 * htl/pt-cancel.c: Likewise.
19063 * htl/pt-cleanup.c: Likewise.
19064 * htl/pt-create.c: Likewise.
19065 * htl/pt-dealloc.c: Likewise.
19066 * htl/pt-detach.c: Likewise.
19067 * htl/pt-exit.c: Likewise.
19068 * htl/pt-getattr.c: Likewise.
19069 * htl/pt-initialize.c: Likewise.
19070 * htl/pt-internal.h: Likewise.
19071 * htl/pt-join.c: Likewise.
19072 * htl/pt-self.c: Likewise.
19073 * htl/pt-setcancelstate.c: Likewise.
19074 * htl/pt-setcanceltype.c: Likewise.
19075 * htl/pt-sigmask.c: Likewise.
19076 * htl/pt-spin-inlines.c: Likewise.
19077 * htl/pt-testcancel.c: Likewise.
19078 * htl/pt-yield.c: Likewise.
19079 * htl/tests/test-1.c: Likewise.
19080 * htl/tests/test-10.c: Likewise.
19081 * htl/tests/test-11.c: Likewise.
19082 * htl/tests/test-12.c: Likewise.
19083 * htl/tests/test-13.c: Likewise.
19084 * htl/tests/test-14.c: Likewise.
19085 * htl/tests/test-15.c: Likewise.
19086 * htl/tests/test-16.c: Likewise.
19087 * htl/tests/test-17.c: Likewise.
19088 * htl/tests/test-2.c: Likewise.
19089 * htl/tests/test-3.c: Likewise.
19090 * htl/tests/test-4.c: Likewise.
19091 * htl/tests/test-5.c: Likewise.
19092 * htl/tests/test-6.c: Likewise.
19093 * htl/tests/test-7.c: Likewise.
19094 * htl/tests/test-8.c: Likewise.
19095 * htl/tests/test-9.c: Likewise.
19096 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19097 * sysdeps/htl/bits/cancelation.h: Likewise.
19098 * sysdeps/htl/bits/pthread-np.h: Likewise.
19099 * sysdeps/htl/bits/pthread.h: Likewise.
19100 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19101 * sysdeps/htl/bits/semaphore.h: Likewise.
19102 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19103 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19104 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19105 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19106 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19107 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19108 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19109 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19110 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19111 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19112 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19113 * sysdeps/htl/old_pt-atfork.c: Likewise.
19114 * sysdeps/htl/pt-atfork.c: Likewise.
19115 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19116 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19117 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19118 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19119 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19120 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19121 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19122 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19123 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19124 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19125 * sysdeps/htl/pt-attr-init.c: Likewise.
19126 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19127 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19128 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19129 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19130 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19131 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19132 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19133 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19134 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19135 * sysdeps/htl/pt-attr.c: Likewise.
19136 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19137 * sysdeps/htl/pt-barrier-init.c: Likewise.
19138 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19139 * sysdeps/htl/pt-barrier.c: Likewise.
19140 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19141 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19142 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19143 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19144 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19145 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19146 * sysdeps/htl/pt-cond-init.c: Likewise.
19147 * sysdeps/htl/pt-cond-signal.c: Likewise.
19148 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19149 * sysdeps/htl/pt-cond-wait.c: Likewise.
19150 * sysdeps/htl/pt-cond.c: Likewise.
19151 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19152 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19153 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19154 * sysdeps/htl/pt-condattr-init.c: Likewise.
19155 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19156 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19157 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19158 * sysdeps/htl/pt-equal.c: Likewise.
19159 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19160 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19161 * sysdeps/htl/pt-getschedparam.c: Likewise.
19162 * sysdeps/htl/pt-getspecific.c: Likewise.
19163 * sysdeps/htl/pt-init-specific.c: Likewise.
19164 * sysdeps/htl/pt-key-create.c: Likewise.
19165 * sysdeps/htl/pt-key-delete.c: Likewise.
19166 * sysdeps/htl/pt-key.h: Likewise.
19167 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19168 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19169 * sysdeps/htl/pt-mutex-init.c: Likewise.
19170 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19171 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19172 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19173 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19174 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19175 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19176 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19177 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19178 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19179 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19180 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19181 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19182 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19183 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19184 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19185 * sysdeps/htl/pt-mutexattr.c: Likewise.
19186 * sysdeps/htl/pt-once.c: Likewise.
19187 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19188 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19189 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19190 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19191 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19192 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19193 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19194 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19195 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19196 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19197 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19198 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19199 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19200 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19201 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19202 * sysdeps/htl/pt-setschedparam.c: Likewise.
19203 * sysdeps/htl/pt-setschedprio.c: Likewise.
19204 * sysdeps/htl/pt-setspecific.c: Likewise.
19205 * sysdeps/htl/pt-spin.c: Likewise.
19206 * sysdeps/htl/pt-startup.c: Likewise.
19207 * sysdeps/htl/pthread.h: Likewise.
19208 * sysdeps/htl/sem-close.c: Likewise.
19209 * sysdeps/htl/sem-destroy.c: Likewise.
19210 * sysdeps/htl/sem-getvalue.c: Likewise.
19211 * sysdeps/htl/sem-init.c: Likewise.
19212 * sysdeps/htl/sem-open.c: Likewise.
19213 * sysdeps/htl/sem-post.c: Likewise.
19214 * sysdeps/htl/sem-timedwait.c: Likewise.
19215 * sysdeps/htl/sem-trywait.c: Likewise.
19216 * sysdeps/htl/sem-unlink.c: Likewise.
19217 * sysdeps/htl/sem-wait.c: Likewise.
19218 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19219 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19220 * sysdeps/mach/htl/pt-block.c: Likewise.
19221 * sysdeps/mach/htl/pt-spin.c: Likewise.
19222 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19223 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19224 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19225 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19226 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19227 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19228 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19229 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19230 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19231 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19232 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19233 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19234 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19235 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19236 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19237 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19238 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19239 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19240 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19241 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19242 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19243 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19244 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19245 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19246 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19247 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19248 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19249 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19250 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19251 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19252 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19253 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19254 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19255 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19256 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19257 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19258 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19259 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19260 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19261 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19262 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19263 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19264 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19265
19266 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19267 * README: Remove the mention of out-of-tree patches needed for
19268 GNU/Hurd.
19269
19270 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19271 (UTIME_NOW, UTIME_OMIT): Define macros.
19272
19273 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19274 instead of pthread_detach.
19275 (__cthread_fork): Call __pthread_create instead of pthread_create.
19276 (__cthread_keycreate): Call __pthread_key_create instead of
19277 pthread_key_create.
19278 (__cthread_getspecific): Call __pthread_getspecific instead of
19279 pthread_getspecific.
19280 (__cthread_setspecific): Call __pthread_setspecific instead of
19281 pthread_setspecific.
19282 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19283 __pthread_mutex_unlock instead of pthread_mutex_lock and
19284 pthread_mutex_unlock.
19285 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19286 ___pthread_get_cleanup_stack.
19287 (__pthread_get_cleanup_stack): New strong alias.
19288 * htl/pt-create.c: Include <pthreadP.h>.
19289 (entry_point): Call __pthread_exit instead of pthread_exit.
19290 (pthread_create): Rename to __pthread_create.
19291 (pthread_create): New strong alias.
19292 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19293 (pthread_detach): New strong alias.
19294 (__pthread_detach): Call __pthread_cond_broadcast instead of
19295 pthread_cond_broadcast.
19296 * htl/pt-exit.c: Include <pthreadP.h>.
19297 (__pthread_exit): Call __pthread_setcancelstate and
19298 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19299 __pthread_get_cleanup_stack.
19300 * htl/pt-testcancel.c: Include <pthreadP.h>.
19301 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19302 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19303 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19304 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19305 pthread_attr_getstacksize.
19306 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19307 Rename to __pthread_attr_getstackaddr.
19308 (pthread_attr_getstackaddr): New strong alias.
19309 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19310 Rename to __pthread_attr_getstacksize.
19311 (pthread_attr_getstacksize): New strong alias.
19312 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19313 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19314 (pthread_attr_setstack): New strong alias.
19315 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19316 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19317 pthread_attr_getstacksize, pthread_attr_setstacksize and
19318 pthread_attr_setstackaddr.
19319 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19320 Rename to __pthread_attr_setstackaddr.
19321 (pthread_attr_setstackaddr): New strong alias.
19322 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19323 Rename to __pthread_attr_setstacksize.
19324 (pthread_attr_setstacksize): New strong alias.
19325 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19326 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19327 pthread_exit.
19328 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19329 (__pthread_key_create): New hidden def.
19330 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19331 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19332 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19333 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19334 __pthread_setspecific, __pthread_setcancelstate,
19335 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19336 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19337 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19338 declarations.
19339 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19340 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19341 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19342 (pthread_attr_setstackaddr): New strong alias.
19343 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19344 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19345 (pthread_attr_setstacksize): New strong alias.
19346 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19347 (call_exit): Call __pthread_exit instead of pthread_exit.
19348 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19349 (_pthread_mutex_init): New hidden definition.
19350 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19351 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19352 instead of pthread_attr_init and pthread_attr_setstack.
19353
19354 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19355 __vm_deallocate instead of vm_allocate and vm_deallocate.
19356 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19357 setenv.
19358 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19359 of geteuid.
19360 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19361 strdup.
19362 * hurd/siginfo.c: Include <libioP.h>.
19363 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19364 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19365 munmap.
19366 * mach/devstream.c: Include <libioP.h>.
19367 (dealloc_ref): Call __mach_port_deallocate instead of
19368 mach_port_deallocate.
19369 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19370 Call __mach_port_deallocate instead of mach_port_deallocate.
19371 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19372 pathconf.
19373 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19374 munmap.
19375 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19376 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19377 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19378 of munmap.
19379 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19380 of close.
19381 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19382 instead of sysconf.
19383 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19384 __clock_gettime instead of clock_gettime.
19385 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19386 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19387 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19388 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19389 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19390 tcgetattr.
19391 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19392 __clock_gettime and __nanosleep instead of clock_gettime and
19393 nanosleep.
19394 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19395 __hurd_catch_signal.
19396 (hurd_catch_signal): New strong alias.
19397 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19398 __hurd_catch_signal instead of hurd_catch_signal.
19399 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19400 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19401 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19402 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19403 (_hurd_thread_sigstate): Add hidden def.
19404 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19405 mutex_unlock.
19406 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19407 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19408 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19409 __hurd_file_name_path_lookup.
19410 (hurd_file_name_path_lookup): New strong alias.
19411 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19412 hurd_file_name_path_lookup.
19413 * mach/errstring.c (mach_error_type): Add hidden def.
19414 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19415 * mach/mutex-init.c (__mutex_init): Add hidden def.
19416 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19417 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19418 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19419 * sysdeps/mach/hurd/getcwd.c
19420 (_hurd_canonicalize_directory_name_internal): Rename to
19421 __hurd_canonicalize_directory_name_internal.
19422 (_hurd_canonicalize_directory_name_internal): New strong alias.
19423 (__canonicalize_directory_name_internal, __getcwd): Call
19424 __hurd_canonicalize_directory_name_internal instead of
19425 _hurd_canonicalize_directory_name_internal.
19426 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19427 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19428 hidden defs.
19429 * sysdeps/hurd/include/hurd.h: New file.
19430 * sysdeps/hurd/include/hurd/fd.h: New file.
19431 * sysdeps/hurd/include/hurd/signal.h: New file.
19432 * sysdeps/mach/include/lock-intern.h: New file.
19433 * sysdeps/mach/include/mach.h: New file.
19434 * sysdeps/mach/include/mach/mig_support.h: New file.
19435 * sysdeps/mach/include/mach_error.h: New file.
19436 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19437 prototype.
19438 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19439 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19440 _HEADER_H_HIDDEN_DEF macro.
19441 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19442 _hurd_fd_error_signal): Add hidden prototype.
19443 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19444 hidden def.
19445 * libio/iolibio.h (_IO_puts): New hidden prototype.
19446 * libio/ioputs.c (_IO_puts): New hidden def.
19447 * sysdeps/mach/hurd/localplt.data: New file.
19448
19449 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19450 Amos Jeffries <squid3@treenet.co.nz>
19451 David Michael <fedora.dm0@gmail.com>
19452 Marco Gerards <marco@gnu.org>
19453 Marcus Brinkmann <marcus@gnu.org>
19454 Neal H. Walfield <neal@gnu.org>
19455 Pino Toscano <toscano.pino@tiscali.it>
19456 Richard Braun <rbraun@sceen.net>
19457 Roland McGrath <roland@gnu.org>
19458 Samuel Thibault <samuel.thibault@ens-lyon.org>
19459 Thomas DiModica <ricinwich@yahoo.com>
19460 Thomas Schwinge <tschwinge@gnu.org>
19461
19462 * htl: New directory.
19463 * sysdeps/htl: New directory.
19464 * sysdeps/hurd/htl: New directory.
19465 * sysdeps/i386/htl: New directory.
19466 * sysdeps/mach/htl: New directory.
19467 * sysdeps/mach/hurd/htl: New directory.
19468 * sysdeps/mach/hurd/i386/htl: New directory.
19469 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19470 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19471 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19472
19473 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19474
19475 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19476 signals in thread created for runing timers.
19477
19478 2018-04-01 Florian Weimer <fweimer@redhat.com>
19479
19480 * support/support_format_addrinfo.c (support_format_addrinfo):
19481 Include unknown error number in formatted result.
19482
19483 2018-03-29 Florian Weimer <fweimer@redhat.com>
19484
19485 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19486 capture SIGBUS.
19487
19488 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19489
19490 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19491 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19492 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19493 (__ASSUME_CLONE_BACKWARDS): Define.
19494
19495 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19496
19497 [BZ #23024]
19498 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19499 early when linux sentinel value is set.
19500
19501 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19502
19503 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19504
19505 2018-03-27 Andreas Schwab <schwab@suse.de>
19506
19507 [BZ #23005]
19508 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19509 allocation of private copy of nsaddr_list fails.
19510
19511 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19512
19513 [BZ #16552]
19514 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19515 * sysdeps/unix/sysv/linux/umount.c: ... here.
19516 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19517 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19518 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19519 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19521 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19522 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19523
19524 2018-03-26 Andreas Schwab <schwab@suse.de>
19525
19526 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19527 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19528 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19529 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19530 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19531 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19532 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19533 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19534 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19535 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19536 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19537 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19538 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19539 (R_RISCV_NUM): Define.
19540
19541 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19542
19543 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19544 TLS declaration of errno.
19545 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19546 __libc_setup_tls.
19547 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19548 (ARCH_SETUP_TLS): Likewise.
19549 * sysdeps/mach/hurd/libc-start.h: New file copied from
19550 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19551 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19552 instead of __libc_setup_tls.
19553 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19554 __libc_setup_tls before initializing libpthread and running _hurd_init
19555 which starts the signal thread.
19556 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19557 Declare function.
19558 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19559
19560 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19561
19562 [BZ #22998]
19563 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19564 after it is defined.
19565
19566 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19567 Max Horn <max@quendi.de>
19568
19569 [BZ #22644]
19570 CVE-2017-18269
19571 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19572 branch conditions.
19573 * string/test-memmove.c (do_test2): New testcase.
19574
19575 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19576
19577 * sysdeps/generic/frame.h: Remove file.
19578 * sysdeps/arm/frame.h: Likewise.
19579 * sysdeps/hppa/frame.h: Likewise.
19580 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19581 macro.
19582 (GET_FRAME): Likewise.
19583 (GET_STACK): Likewise.
19584 (CALL_SIGHANDLER): Likewise.
19585 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19586 Likewise.
19587 (GET_FRAME): Likewise.
19588 (GET_STACK): Likewise.
19589 (CALL_SIGHANDLER): Likewise.
19590 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19591 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19592 (GET_FRAME): Likewise.
19593 (GET_STACK): Likewise.
19594 (CALL_SIGHANDLER): Likewise.
19595 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19596 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19597 (GET_FRAME): Likewise.
19598 (GET_STACK): Likewise.
19599 (ADVANCE_STACK_FRAME): Likewise.
19600 (CALL_SIGHANDLER): Likewise.
19601 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19602 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19603 (GET_FRAME): Likewise.
19604 (GET_STACK): Likewise.
19605 (CALL_SIGHANDLER): Likewise.
19606 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19607 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19608 (GET_FRAME): Likewise.
19609 (GET_STACK): Likewise.
19610 (CALL_SIGHANDLER): Likewise.
19611 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19612 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19613 (GET_FRAME): Likewise.
19614 (GET_STACK): Likewise.
19615 (CALL_SIGHANDLER): Likewise.
19616 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19617 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19618 (GET_FRAME): Likewise.
19619 (GET_STACK): Likewise.
19620 (CALL_SIGHANDLER): Likewise.
19621 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19622 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19623 (GET_FRAME): Likewise.
19624 (GET_STACK): Likewise.
19625 (CALL_SIGHANDLER): Likewise.
19626 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19627 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19628 (GET_FRAME): Likewise.
19629 (GET_STACK): Likewise.
19630 (CALL_SIGHANDLER): Likewise.
19631 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19632 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19633 (GET_FRAME): Likewise.
19634 (GET_STACK): Likewise.
19635 (CALL_SIGHANDLER): Likewise.
19636 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19637 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19638 (GET_FRAME): Likewise.
19639 (GET_STACK): Likewise.
19640 (CALL_SIGHANDLER): Likewise.
19641 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19642 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19643 (GET_FRAME): Likewise.
19644 (GET_STACK): Likewise.
19645 (CALL_SIGHANDLER): Likewise.
19646 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19647 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19648 (FIRST_FRAME_POINTER): Likewise.
19649 (ADVANCE_STACK_FRAME): Likewise.
19650 (GET_STACK): Likewise.
19651 (GET_FRAME): Likewise.
19652 (CALL_SIGHANDLER): Likewise.
19653 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19654 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19655 (ADVANCE_STACK_FRAME): Likewise.
19656 (GET_STACK): Likewise.
19657 (GET_FRAME): Likewise.
19658 (CALL_SIGHANDLER): Likewise.
19659 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19660 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19661 (GET_FRAME): Likewise.
19662 (GET_STACK): Likewise.
19663 (CALL_SIGHANDLER): Likewise.
19664 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19665 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19666 (GET_FRAME): Likewise.
19667 (GET_STACK): Likewise.
19668 (CALL_SIGHANDLER): Likewise.
19669
19670 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19671
19672 * sysdeps/x86_64/backtrace.c: Move to ....
19673 * debug/backtrace.c: ... here.
19674 * sysdeps/aarch64/backtrace.c: Remove file.
19675 * sysdeps/alpha/backtrace.c: Likewise.
19676 * sysdeps/hppa/backtrace.c: Likewise.
19677 * sysdeps/ia64/backtrace.c: Likewise.
19678 * sysdeps/mips/backtrace.c: Likewise.
19679 * sysdeps/nios2/backtrace.c: Likewise.
19680 * sysdeps/riscv/backtrace.c: Likewise.
19681 * sysdeps/sh/backtrace.c: Likewise.
19682 * sysdeps/tile/backtrace.c: Likewise.
19683
19684 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19685
19686 [BZ #22987]
19687 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19688 function.
19689 (fdimf): Likewise.
19690 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19691
19692 [BZ #17343]
19693 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19694 possibly overflowing computations.
19695
19696 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19697
19698 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19699 values from Linux-specific section now that it is in the GNU section.
19700 * sysdeps/gnu/errlist.c: Regenerate.
19701
19702 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19703
19704 * math/Makefile (libm-narrow-fns): Add sub.
19705 (libm-test-funcs-narrow): Likewise.
19706 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19707 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19708 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19709 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19710 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19711 (NARROW_SUB_TRIVIAL): Likewise.
19712 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19713 macro.
19714 (__dsubl): Likewise.
19715 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19716 dsub.
19717 (CFLAGS-nldbl-dsub.c): New variable.
19718 (CFLAGS-nldbl-fsub.c): Likewise.
19719 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19720 __nldbl_dsubl.
19721 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19722 prototype.
19723 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19724 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19725 * math/auto-libm-test-in: Add tests of sub.
19726 * math/auto-libm-test-out-narrow-sub: New generated file.
19727 * math/libm-test-narrow-sub.inc: New file.
19728 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19729 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19730 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19731 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19732 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19733 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19734 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19735 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19736 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19737 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19738 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19739 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19740 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19741 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19742 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19743 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19744 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19745 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19746 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19747 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19748 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19749 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19750 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19751 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19752 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19753 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19754 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19755 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19756 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19757 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19758 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19759 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19764 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19765 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19766 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19767 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19768 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19769 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19770 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19771 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19772 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19773 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19774
19775 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19776
19777 [BZ #20079]
19778 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19779
19780 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19781
19782 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19783
19784 2018-03-18 Richard Braun <rbraun@sceen.net>
19785
19786 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19787 thread reference.
19788
19789 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19790
19791 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19792 (__libc_cleanup_fct): Define function.
19793 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19794 __libc_cleanup_end): Rewrite implementation using
19795 __attribute__ ((__cleanup__)).
19796 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19797 * hurd/Makefile (routines): Add hurdlock.
19798 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19799 interface.
19800 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19801 * hurd/hurdpid.c: Include <lowlevellock.h>
19802 (_S_msg_proc_newids): Use lll_wait to synchronize.
19803 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19804 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19805 * mach/Makefile (lock-headers): Remove machine-lock.h.
19806 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19807 <machine-lock.h>.
19808 (__spin_lock_t): New type.
19809 (__SPIN_LOCK_INITIALIZER): New macro.
19810 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19811 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19812 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19813 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19814 (__mutex_init): Initialize with lll.
19815 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19816 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19817 needing lll.
19818 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19819 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19820 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19821 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19822 (__setpgid): Use lll for synchronization.
19823 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19824 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19825 instead of <cthreads.h>.
19826 (_IO_lock_inexpensive): New macro
19827 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19828 (__libc_lock_self0): New declaration.
19829 (__libc_lock_owner_self): New macro.
19830 (__libc_key_t): Remove type.
19831 (_LIBC_LOCK_INITIALIZER): New macro.
19832 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19833 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19834 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19835 __libc_lock_define_initialized_recursive,
19836 __rtld_lock_define_initialized_recursive,
19837 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19838 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19839 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19840 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19841 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19842 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19843 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19844 New macros.
19845 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19846 * hurd/hurdlock.c: New file.
19847 * hurd/hurdlock.h: New file.
19848 * mach/lowlevellock.h: New file
19849
19850 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19851
19852 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19853 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19854 when opening a symlink with O_NOFOLLOW.
19855 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19856 path when flags contains O_NOFOLLOW.
19857 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19858 if flags contains O_DIRECTORY and the result is a directory.
19859 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19860 oneself when the pointer given in D is nul (as set by ext2fs).
19861 * sysdeps/mach/hurd/mlockall.c: New file.
19862 * sysdeps/mach/hurd/munlockall.c: New file.
19863
19864 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19865
19866 * hurd/hurdsig.c: Include <pthread.h>.
19867 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19868 get the signal thread stack layout.
19869 * hurd/Makefile (headers): Remove threadvar.h.
19870 (inline-headers): Remove threadvar.h.
19871 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19872 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19873 __hurd_threadvar_max, __hurd_errno_location.
19874 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19875 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19876 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19877 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19878 unless TLS is not initialized yet, in which case we do not need a
19879 critical section yet anyway.
19880 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19881 <machine-sp.h>.
19882 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19883 declarations.
19884 (__hurd_threadvar_index): Remove enum.
19885 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19886 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19887 inlines.
19888 (__hurd_reply_port0): New variable declaration.
19889 (__hurd_local_reply_port): New macro.
19890 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19891 (interrupted_reply_port_location): Add thread_t parameter. Use it
19892 with THREAD_TCB to access thread-local variables.
19893 (_hurdsig_abort_rpcs): Pass ss->thread to
19894 interrupted_reply_port_location.
19895 (_hurd_internal_post_signal): Likewise.
19896 (_hurdsig_init): Use presence of cthread_fork instead of
19897 __hurd_threadvar_stack_mask to start signal thread by hand.
19898 Remove signal thread threadvar initialization.
19899 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19900 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19901 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19902 of threadvar.
19903 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19904 __libc_lock_self0.
19905 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19906 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19907 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19908 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19909 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19910 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19911 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19912 define variables.
19913 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19914 <hurd/threadvar.h>.
19915 [IS_IN(rtld)] (rtld_errno): New variable.
19916 [IS_IN(rtld)] (__errno_location): New weak function.
19917 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19918 * sysdeps/mach/hurd/errno.c: Remove file.
19919 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19920 (__fork): Remove THREADVAR_SPACE macro and its use.
19921 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19922 variable.
19923 (init): Do not initialize threadvar.
19924 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19925 symbol.
19926 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19927 __hurd_local_reply_port instead of threadvar.
19928 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19929 _hurd_sigstate fields.
19930 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19931 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19932 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19933 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19934 instead of threadvar.
19935 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19936 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19937 (use_threadvar, global_reply_port): Remove variables.
19938 (__hurd_reply_port0): New variable.
19939 (__mig_get_reply_port): Use __hurd_local_reply_port and
19940 __hurd_reply_port0 instead of threadvar.
19941 (__mig_dealloc_reply_port): Likewise.
19942 (__mig_init): Do not initialize threadvar.
19943 * sysdeps/mach/hurd/profil.c: Fix comment.
19944 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19945 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19946 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19947 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19948 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19949 __cthread_setspecific.
19950 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19951 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19952 __cthread_t instead of cthread_fork, cthread_detach,
19953 pthread_getattr_np, pthread_attr_getstack.
19954 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19955 __cthread_keycreate.
19956 (cthread_getspecific): Rename to __cthread_getspecific.
19957 (cthread_setspecific): Rename to __cthread_setspecific.
19958 (__libc_getspecific): Use __cthread_getspecific instead of
19959 cthread_getspecific.
19960 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19961 __cthread_keycreate instead of cthread_keycreate.
19962 (__libc_setspecific): Use __cthread_setspecific instead of
19963 cthread_setspecific.
19964 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19965 Likewise.
19966 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19967 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19968 testing whether it is defined.
19969
19970 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19971
19972 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19973 Define macro.
19974 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19975 * sysdeps/mach/i386/thread_state.h
19976 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19977 i386_THREAD_STATE.
19978 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19979 i386_THREAD_STATE.
19980 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19981
19982 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19983 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19984
19985 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19986 macros.
19987 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19988 descriptor instead of creating a new one.
19989 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19990
19991 * mach/setup-thread.c: Include <ldsodefs.h>.
19992 (__mach_setup_thread): Call _dl_allocate_tls, pass
19993 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19994 MACHINE_THREAD_STATE_FLAVOR, before getting
19995 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19996 MACHINE_THREAD_STATE_FLAVOR with the result.
19997 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19998 MACHINE_THREAD_STATE_FIX_NEW.
19999 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20000 too. Add original thread parameter.
20001
20002 2018-03-16 Joseph Myers <joseph@codesourcery.com>
20003
20004 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20005 Remove inline function.
20006
20007 * sysdeps/i386/fpu/libm-test-ulps: Update.
20008 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20009
20010 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20011
20012 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20013 commit.
20014
20015 2018-03-15 Joseph Myers <joseph@codesourcery.com>
20016
20017 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20018 (__sincos_code): Remove define and undefine.
20019 [__FAST_MATH__] (__sincos): Remove inline function.
20020 [__FAST_MATH__] (__sincosf): Remove inline function.
20021 [__FAST_MATH__] (__sincosl): Remove inline function.
20022 (__atan2l): Remove inline functions.
20023 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20024 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20025 function.
20026 (floor): Remove inline function.
20027 (ceil): Likewise.
20028 [__FAST_MATH__] (__ldexp_code): Remove macro.
20029 [__FAST_MATH__] (ldexp): Remove inline function.
20030 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20031 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20032 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20033 [__USE_ISOC99] (__lrint_code): Remove macro.
20034 [__USE_ISOC99] (__llrint_code): Likewise.
20035 [__USE_ISOC99] (lrintf): Remove inline function.
20036 [__USE_ISOC99] (lrint): Likewise.
20037 [__USE_ISOC99] (lrintl): Likewise.
20038 [__USE_ISOC99] (llrint): Likewise.
20039 [__USE_ISOC99] (llrintf): Likewise.
20040 [__USE_ISOC99] (llrintl): Likewise.
20041
20042 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20043
20044 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20045 (__ieee754_sqrtf): Remove.
20046 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20047 (__ieee754_sqrtf): Remove.
20048 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20049 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20050 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20051 (__ieee754_sqrtf): Remove.
20052 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20053 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20054 (sqrtf): Remove.
20055 (sqrtl): Remove.
20056 (__ieee754_sqrt): Remove.
20057 (__ieee754_sqrtf): Remove.
20058 (__ieee754_sqrtl): Remove.
20059 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20060 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20061 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20062 (__ieee754_sqrtf): Remove.
20063 (__ieee754_sqrtl): Remove.
20064
20065 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20066
20067 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20068 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20069 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20070 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20071 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20072 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20073 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20074 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20075 Likewise.
20076 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20077 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20078 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20079 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20080 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20081 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20082 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20083 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20084 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20085 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20086 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20087 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20088 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20089 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20090 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20091 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20092 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20093 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20094 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20095 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20096 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20097 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20098 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20099 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20100 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20101 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20102 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20103 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20104 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20105 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20106 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20107 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20108 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20109 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20110 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20111 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20112 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20113 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20114 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20115 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20116
20117 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20118
20119 * include/math.h (sqrt): Declare with asm redirect.
20120 (sqrtf): Likewise.
20121 (sqrtl): Likewise.
20122 (sqrtf128): Likewise.
20123 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20124 nonlib and libnldbl with -fmath-errno.
20125 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20126 * math/w_sqrt_template.c: Likewise.
20127 * math/w_sqrtf_compat.c: Likewise.
20128 * math/w_sqrtl_compat.c: Likewise.
20129 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20130 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20131 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20132 complex.h.
20133
20134 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20135
20136 * benchtests/Makefile: Define _ISOMAC.
20137 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20138 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20139 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20140 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20141 * benchtests/bench-timing.h: Define attribute_hidden.
20142
20143 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20144
20145 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20146 mov + lsr.
20147
20148 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20149
20150 [BZ #22963]
20151 * localedata/locales/cs_CZ (mon): Rename to...
20152 (alt_mon): This.
20153 (mon): Import from CLDR (genitive case).
20154
20155 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20156
20157 [BZ #22937]
20158 * localedata/locales/el_CY (abmon): Rename to...
20159 (ab_alt_mon): This.
20160 (abmon): Import from CLDR (abbreviated genitive case).
20161 * localedata/locales/el_GR (abmon): Rename to...
20162 (ab_alt_mon): This.
20163 (abmon): Import from CLDR (abbreviated genitive case).
20164
20165 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20166
20167 [BZ #22932]
20168 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20169
20170 2018-03-15 Robert Buj <robert.buj@gmail.com>
20171
20172 [BZ #22848]
20173 * localedata/locales/ca_ES (abmon): Rename to...
20174 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20175 (mon): Rename to...
20176 (alt_mon): This.
20177 (abmon): Import from CLDR (genitive case, month names preceded by
20178 "de" or "d’").
20179 (mon): Likewise.
20180 (abday): Synchronize with CLDR.
20181 (d_t_fmt): Likewise.
20182 (d_fmt): Likewise.
20183 (am_pm): Likewise.
20184
20185 (LC_TIME): Improve indentation.
20186 (LC_TELEPHONE): Likewise.
20187 (LC_NAME): Likewise.
20188 (LC_ADDRESS): Likewise.
20189
20190 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20191
20192 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20193 (lrintf): Remove definitions used only with old GCC.
20194 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20195 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20196 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20197 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20198 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20199 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20200 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20201 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20202 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20203 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20204 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20205 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20206 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20207 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20208 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20209 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20210 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20211 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20212 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20213 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20214 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20215 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20216 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20217 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20218 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20219 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20220 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20221 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20222
20223 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20224
20225 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20226 instruction to unbreak builds with binutils 2.26 and older.
20227
20228 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20229
20230 * sysdeps/aarch64/strncmp.S (count): New macro.
20231 (strncmp): Store misaligned length in SRC1 in COUNT.
20232 (mutual_align): Adjust.
20233 (misaligned8): Load dword at a time when it is safe.
20234
20235 2018-03-12 Zack Weinberg <zackw@panix.com>
20236
20237 [BZ #1190]
20238 [BZ #19476]
20239 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20240 if the _IO_EOF_SEEN bit is already set; update commentary.
20241 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20242 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20243
20244 * support/support_openpty.c, support/tty.h: New files.
20245 * support/Makefile (libsupport-routines): Add support_openpty.
20246
20247 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20248 New test cases.
20249 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20250 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20251
20252 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20253
20254 * po/pt_BR.po: Update translations.
20255
20256 2018-03-12 David Michael <fedora.dm0@gmail.com>
20257
20258 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20259 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20260 get a port to the startup server.
20261
20262 2018-03-11 Zack Weinberg <zackw@panix.com>
20263
20264 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20265 before nldbl-compat.h.
20266
20267 2018-03-10 Zack Weinberg <zackw@panix.com>
20268
20269 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20270 math.h or math_private.h.
20271
20272 * sysdeps/alpha/fpu/s_isnan.c
20273 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20274 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20275 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20276 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20277 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20278 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20279 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20280 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20281 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20283 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20284 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20285 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20286 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20287 Include math_private.h.
20288
20289 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20290 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20291 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20292 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20293 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20294 * sysdeps/powerpc/power7/fpu/s_logb.c:
20295 Include math.h and math_private.h.
20296
20297 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20298 uses of $at in .set noat / .set at.
20299
20300 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20301
20302 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20303 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20304 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20305 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20306 Likewise.
20307
20308 2018-03-09 Florian Weimer <fweimer@redhat.com>
20309
20310 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20311 in comment.
20312
20313 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20314
20315 [BZ #22919]
20316 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20317 Add nop before __startcontext, add explaining comments.
20318
20319 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20320
20321 [BZ #22926]
20322 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20323 empty for __SPE__.
20324 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20325 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20326 Do not build hardware transactional code for __SPE__.
20327 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20328 (__lll_trylock_elision): Likewise.
20329 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20330 (__lll_unlock_elision): Likewise.
20331
20332 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20333 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20334 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20335 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20336 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20337 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20338 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20339 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20340 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20341 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20342 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20343 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20344 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20345 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20346 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20347 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20348 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20349 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20350 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20351 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20352 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20353 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20354 (__ASSUME_CLONE_BACKWARDS): Define.
20355 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20356 __clone2 if __NR_clone2 is defined.
20357 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20358 (__ASSUME_CLONE_BACKWARDS): Likewise.
20359 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20360 (__ASSUME_CLONE_BACKWARDS): Likewise.
20361 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20362 (__ASSUME_CLONE2): Likewise.
20363 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20364 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20365 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20366 variants and the define architecture can use.
20367 (__ASSUME_CLONE_DEFAULT): Define as default.
20368 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20369 (__ASSUME_CLONE_BACKWARDS): Likewise.
20370 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20371 (__ASSUME_CLONE_BACKWARDS): Likewise.
20372 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20373 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20374
20375 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20376
20377 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20378
20379 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20380 time.
20381
20382 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20383 (do_test_limit): Likewise.
20384
20385 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20386 for every implementation.
20387 (do_test): Likewise.
20388
20389 * benchtests/bench-strncmp.c: Convert output to json.
20390
20391 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20392
20393 * io/futimens.c: Add missing start-of-file descriptive comment.
20394 * io/utime.c: Likewise.
20395 * misc/futimesat.c: Likewise.
20396 * misc/utimes.c: Likewise.
20397 * sysdeps/mach/hurd/futimesat.c: Likewise.
20398 * sysdeps/mach/hurd/utimes.c: Likewise.
20399 * sysdeps/posix/utime.c: Likewise.
20400 * sysdeps/posix/utimes.c: Likewise.
20401 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20402 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20403 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20404 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20405
20406 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20407
20408 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20409 hurd_futimes.
20410 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20411 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20412 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20413 (__futimens): Move implementation to...
20414 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20415 utime_tvalue_from_tspec): ... new helper functions.
20416 (hurd_futimens): New function.
20417 * sysdeps/mach/hurd/futimesat.c: New file.
20418 * sysdeps/mach/hurd/utimensat.c: New file.
20419
20420 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20421
20422 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20423 UTIME_OMIT): New macros.
20424 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20425 before reverting to converting time spec to time value and calling
20426 __file_utimes.
20427 * sysdeps/mach/hurd/utime-helper.c: New file.
20428 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20429 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20430 reverting to utime_tvalue_from_tval and __file_utimes.
20431 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20432 (__lutimes): Just call hurd_futimens after lookup.
20433 * sysdeps/mach/hurd/utimes.c: Likewise.
20434
20435 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20436
20437 * bits/sigaction.h: Add include guard.
20438 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20439 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20440 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20441 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20442 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20443 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20444 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20445 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20446 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20447
20448 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20449
20450 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20451 -Wmaybe-uninitialized for -Os.
20452 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20453 this disabling.
20454
20455 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20456
20457 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20458 __INO_T_MATCHES_INO64_T is defined.
20459 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20460 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20461 of definition.
20462 * dirent/alphasort64.c: Likewise.
20463 * dirent/scandir.c: Likewise.
20464 * dirent/scandir64-tail.c: Likewise.
20465 * dirent/scandir64.c: Likewise.
20466 * dirent/scandirat.c: Likewise.
20467 * dirent/scandirat64.c: Likewise.
20468 * dirent/versionsort.c: Likewise.
20469 * dirent/versionsort64.c: Likewise.
20470 * include/dirent.h: Likewise.
20471
20472 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20473 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20474 for socketpair endpoint.
20475 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20476 WRITE_BUFFER_SIZE as buffer size for sending socket.
20477 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20478 issue on system where send is implemented with sendto syscall.
20479 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20480 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20481 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20482 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20483
20484 [BZ #21269]
20485 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20486 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20487 sa_restorer for vDSO case.
20488 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20489
20490 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20491
20492 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20493 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20494 * hurd/hurd/ioctl.h: Include <mach/port.h>
20495 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20496 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20497 <mach/mach_types.h> and <mach/message.h>.
20498 (headers): Move mach/param.h to bits/mach/param.h.
20499 * sysdeps/mach/i386/mach/param.h: Move file to ...
20500 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20501 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20502 of <mach/param.h>.
20503 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20504 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20505 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20506 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20507 trivial, for C++ conformity.
20508 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20509 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20510 Process mig output through $(migheadersed).
20511 * hurd/Makefile (migheadersed): Define variable.
20512 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20513 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20514 headers.
20515 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20516 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20517 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20518 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20519 <bits/types/sigset_t.h>.
20520 [!defined __USE_GNU]: Do not #error out.
20521 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20522 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20523 Include <stddef.h> and <bits/types/sigset_t.h>
20524 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20525 instead of sighandler_t.
20526 * stdlib/errno.h (error_t): Move definition to...
20527 * bits/types/error_t.h: ... new header.
20528 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20529 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20530 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20531 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20532 * hurd/hurd.h: Include <bits/types/error_t.h>
20533 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20534 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20535 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20536 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20537 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20538 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20539 * sysdeps/mach/hurd/futimens.c: New file.
20540
20541 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20542
20543 [BZ #22918]
20544 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20545 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20546 * nscd/gai.c (__nss_hosts_database): Readd definition.
20547 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20548 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20549 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20550
20551 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20552
20553 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20554 (ifunc_one): Likewise.
20555
20556 2018-03-01 DJ Delorie <dj@delorie.com>
20557
20558 [BZ #22342]
20559 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20560 key value.
20561
20562 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20563
20564 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20565 `match_pid' parameter.
20566 (td_ta_thr_iter): Update accordingly.
20567
20568 2018-03-01 Florian Weimer <fweimer@redhat.com>
20569
20570 * nptl/Makefile (install-lib-ldscripts): Remove.
20571 (install): Remove rule.
20572 ($(inst_libdir)/libpthread.so): Likewise.
20573
20574 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20575
20576 [BZ #22896]
20577 * localedata/locales/an_ES: update month and day names,
20578 improve d_fmt, improve postal_fmt, add country_post,
20579 add country_isbn
20580
20581 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20582
20583 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20584 Ukrainian instead of Bulgarian.
20585
20586 2018-03-01 Florian Weimer <fweimer@redhat.com>
20587
20588 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20589 reference.
20590
20591 2018-03-01 Florian Weimer <fweimer@redhat.com>
20592
20593 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20594 * nptl/Makefile (routines): Add pthread_atfork.
20595 (static-only-routines): Set to pthread_atfork.
20596 (libpthread-routines): Remove pthread_atfork.
20597 (libpthread-static-only-routines): Remove.
20598 (install): Update comment.
20599 (libpthread.so): Do not install libpthread_nonshared.a.
20600 (tests): Do not link with libpthread_nonshared.a.
20601 (generated): Remove libpthread_nonshared.a.
20602 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20603 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20604 with libpthread_nonshared.a.
20605
20606 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20607
20608 [BZ #22902]
20609 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20610 (libc_feholdexcept_setroundf128): New macro.
20611 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20612
20613 [BZ #15105]
20614 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20615 libc_hidden_def.
20616 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20617 * include/inttypes.h: New file.
20618
20619 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20620
20621 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20622 -Os in two more places.
20623
20624 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20625
20626 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20627 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20628 be sorted correctly at the moment because of a bug.
20629
20630 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20631
20632 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20633 treat ñ as a primary different character, sync the collation
20634 for Spanish with CLDR.
20635 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20636 * localedata/Makefile: Add new test files.
20637 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20638 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20639 collation order.
20640 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20641 * localedata/am_ET.UTF-8.in: New test file.
20642 * localedata/az_AZ.UTF-8.in: Likewise.
20643 * localedata/be_BY.UTF-8.in: Likewise.
20644 * localedata/ber_DZ.UTF-8.in: Likewise.
20645 * localedata/ber_MA.UTF-8.in: Likewise.
20646 * localedata/bg_BG.UTF-8.in: Likewise.
20647 * localedata/br_FR.UTF-8.in: Likewise.
20648 * localedata/cmn_TW.UTF-8.in: Likewise.
20649 * localedata/crh_UA.UTF-8.in: Likewise.
20650 * localedata/csb_PL.UTF-8.in: Likewise.
20651 * localedata/cv_RU.UTF-8.in: Likewise.
20652 * localedata/cy_GB.UTF-8.in: Likewise.
20653 * localedata/dz_BT.UTF-8.in: Likewise.
20654 * localedata/eo.UTF-8.in: Likewise.
20655 * localedata/es_ES.UTF-8.in: Likewise.
20656 * localedata/fa_IR.UTF-8.in: Likewise.
20657 * localedata/fi_FI.UTF-8.in: Likewise.
20658 * localedata/fil_PH.UTF-8.in: Likewise.
20659 * localedata/fur_IT.UTF-8.in: Likewise.
20660 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20661 * localedata/ha_NG.UTF-8.in: Likewise.
20662 * localedata/ig_NG.UTF-8.in: Likewise.
20663 * localedata/ik_CA.UTF-8.in: Likewise.
20664 * localedata/kk_KZ.UTF-8.in: Likewise.
20665 * localedata/ku_TR.UTF-8.in: Likewise.
20666 * localedata/ky_KG.UTF-8.in: Likewise.
20667 * localedata/ln_CD.UTF-8.in: Likewise.
20668 * localedata/mi_NZ.UTF-8.in: Likewise.
20669 * localedata/ml_IN.UTF-8.in: Likewise.
20670 * localedata/mn_MN.UTF-8.in: Likewise.
20671 * localedata/mr_IN.UTF-8.in: Likewise.
20672 * localedata/mt_MT.UTF-8.in: Likewise.
20673 * localedata/nb_NO.UTF-8.in: Likewise.
20674 * localedata/om_KE.UTF-8.in: Likewise.
20675 * localedata/os_RU.UTF-8.in: Likewise.
20676 * localedata/ps_AF.UTF-8.in: Likewise.
20677 * localedata/ro_RO.UTF-8.in: Likewise.
20678 * localedata/ru_RU.UTF-8.in: Likewise.
20679 * localedata/sc_IT.UTF-8.in: Likewise.
20680 * localedata/se_NO.UTF-8.in: Likewise.
20681 * localedata/sq_AL.UTF-8.in: Likewise.
20682 * localedata/sv_SE.UTF-8.in: Likewise.
20683 * localedata/szl_PL.UTF-8.in: Likewise.
20684 * localedata/tg_TJ.UTF-8.in: Likewise.
20685 * localedata/tk_TM.UTF-8.in: Likewise.
20686 * localedata/tt_RU.UTF-8.in: Likewise.
20687 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20688 * localedata/ug_CN.UTF-8.in: Likewise.
20689 * localedata/uz_UZ.UTF-8.in: Likewise.
20690 * localedata/vi_VN.UTF-8.in: Likewise.
20691 * localedata/yi_US.UTF-8.in: Likewise.
20692 * localedata/yo_NG.UTF-8.in: Likewise.
20693 * localedata/zh_CN.UTF-8.in: Likewise.
20694 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20695 file and fix bugs in the collation.
20696 * localedata/locales/az_AZ: Likewise.
20697 * localedata/locales/be_BY: Likewise.
20698 * localedata/locales/ber_DZ: Likewise.
20699 * localedata/locales/ber_MA: Likewise.
20700 * localedata/locales/bg_BG: Likewise.
20701 * localedata/locales/br_FR: Likewise.
20702 * localedata/locales/br_FR@euro: Likewise.
20703 * localedata/locales/ca_ES: Likewise.
20704 * localedata/locales/cns11643_stroke: Likewise.
20705 * localedata/locales/crh_UA: Likewise.
20706 * localedata/locales/cs_CZ: Likewise.
20707 * localedata/locales/csb_PL: Likewise.
20708 * localedata/locales/cv_RU: Likewise.
20709 * localedata/locales/cy_GB: Likewise.
20710 * localedata/locales/da_DK: Likewise.
20711 * localedata/locales/dz_BT: Likewise.
20712 * localedata/locales/en_CA: Likewise.
20713 * localedata/locales/eo: Likewise.
20714 * localedata/locales/es_CU: Likewise.
20715 * localedata/locales/es_EC: Likewise.
20716 * localedata/locales/es_ES: Likewise.
20717 * localedata/locales/es_US: Likewise.
20718 * localedata/locales/et_EE: Likewise.
20719 * localedata/locales/fa_IR: Likewise.
20720 * localedata/locales/fi_FI: Likewise.
20721 * localedata/locales/fil_PH: Likewise.
20722 * localedata/locales/fur_IT: Likewise.
20723 * localedata/locales/gez_ER@abegede: Likewise.
20724 * localedata/locales/ha_NG: Likewise.
20725 * localedata/locales/hr_HR: Likewise.
20726 * localedata/locales/hsb_DE: Likewise.
20727 * localedata/locales/hu_HU: Likewise.
20728 * localedata/locales/ig_NG: Likewise.
20729 * localedata/locales/ik_CA: Likewise.
20730 * localedata/locales/is_IS: Likewise.
20731 * localedata/locales/iso14651_t1_pinyin: Likewise.
20732 * localedata/locales/kk_KZ: Likewise.
20733 * localedata/locales/ku_TR: Likewise.
20734 * localedata/locales/ky_KG: Likewise.
20735 * localedata/locales/ln_CD: Likewise.
20736 * localedata/locales/lt_LT: Likewise.
20737 * localedata/locales/lv_LV: Likewise.
20738 * localedata/locales/mi_NZ: Likewise.
20739 * localedata/locales/ml_IN: Likewise.
20740 * localedata/locales/mn_MN: Likewise.
20741 * localedata/locales/mr_IN: Likewise.
20742 * localedata/locales/mt_MT: Likewise.
20743 * localedata/locales/nb_NO: Likewise.
20744 * localedata/locales/om_KE: Likewise.
20745 * localedata/locales/os_RU: Likewise.
20746 * localedata/locales/pl_PL: Likewise.
20747 * localedata/locales/ps_AF: Likewise.
20748 * localedata/locales/ro_RO: Likewise.
20749 * localedata/locales/ru_RU: Likewise.
20750 * localedata/locales/ru_UA: Likewise.
20751 * localedata/locales/sc_IT: Likewise.
20752 * localedata/locales/se_NO: Likewise.
20753 * localedata/locales/si_LK: Likewise.
20754 * localedata/locales/sq_AL: Likewise.
20755 * localedata/locales/sv_FI: Likewise.
20756 * localedata/locales/sv_FI@euro: Likewise.
20757 * localedata/locales/sv_SE: Likewise.
20758 * localedata/locales/szl_PL: Likewise.
20759 * localedata/locales/tg_TJ: Likewise.
20760 * localedata/locales/ti_ER: Likewise.
20761 * localedata/locales/tk_TM: Likewise.
20762 * localedata/locales/tl_PH: Likewise.
20763 * localedata/locales/tr_TR: Likewise.
20764 * localedata/locales/tt_RU: Likewise.
20765 * localedata/locales/tt_RU@iqtelif: Likewise.
20766 * localedata/locales/ug_CN: Likewise.
20767 * localedata/locales/uk_UA: Likewise.
20768 * localedata/locales/uz_UZ: Likewise.
20769 * localedata/locales/uz_UZ@cyrillic: Likewise.
20770 * localedata/locales/vi_VN: Likewise.
20771 * localedata/locales/yi_US: Likewise.
20772 * localedata/locales/yo_NG: Likewise.
20773
20774 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20775
20776 * gen-locales.mk: Make test files which contain @ modifiers in their
20777 name work.
20778 * localedata/gen-locale.sh: Likewise.
20779
20780 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20781
20782 * posix/tst-fnmatch.input: Fix results for range expressions
20783 for non C locales.
20784 * posix/tst-regexloc.c: Do not use a range expression for
20785 de_DE.ISO-8859-1 locale.
20786
20787 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20788
20789 * posix/bug-regex5.c: Fix test case because with the new
20790 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20791 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20792 file.
20793
20794 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20795
20796 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20797 downloaded from ISO, the collation order of @-. and space has changed.
20798 Therefore, this test file needed to be adapted.
20799 * localedata/fr_CA.UTF-8.in: Likewise.
20800 * localedata/fr_FR.UTF-8.in: Likewise.
20801 * localedata/uk_UA.UTF-8.in: Likewise.
20802
20803 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20804
20805 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20806 order of ȥ in the new iso14651_t1_common file.
20807 * localedata/pl_PL.UTF-8.in: Likewise.
20808
20809 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20810
20811 * localedata/locales/iso14651_t1_common: Add sections for various
20812 scripts to the iso14651_t1_common file.
20813
20814 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20815
20816 * localedata/locales/iso14651_t1_common: Use the code point of a
20817 character in the fourth collation level instead of IGNORE for all
20818 entries which have IGNORE on all 4 levels.
20819
20820 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20821
20822 * localedata/locales/iso14651_t1_common: Add some convenient collation
20823 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20824 rules similar to those in CLDR.
20825
20826 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20827
20828 * localedata/locales/iso14651_t1_common: The new version of this
20829 file downloaded from ISO contained several syntax errors which
20830 are fixed by this patch.
20831
20832 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20833
20834 * localedata/locales/iso14651_t1_common: replace all <U.....>
20835 with <U000.....> because glibc understands only 4 digit or 8 digit
20836
20837 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20838
20839 * localedata/locales/iso14651_t1_common: Necessary changes
20840 to make the file downloaded from ISO usable by glibc.
20841
20842 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20843
20844 [BZ #14095]
20845 * localedata/locales/iso14651_t1_common: Update file to
20846 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20847
20848 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20849
20850 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20851 of <nptl/pthreadP.h>
20852 (thread_attr_compare): Move function to...
20853 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20854 * sysdeps/nptl/timer_routines.h: ... new header.
20855 * sysdeps/mach/hurd/gai_misc.h: New file.
20856
20857 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20858
20859 * string/strcoll_l.c: Include <libc-diag.h>.
20860 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20861 declarations of seq1 and seq2.
20862
20863 [BZ #15105]
20864 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20865 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20866
20867 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20868
20869 [BZ #22433]
20870 [BZ #22807]
20871 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20872 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20873 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20874 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20875 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20876 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20877
20878 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20879
20880 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20881 macros used in __ptrace_request.
20882
20883 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20884
20885 [BZ #22792]
20886 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20887 to $(CC).
20888 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20889 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20890 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20891 <tcb-offsets.h>.
20892
20893 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20894
20895 [BZ #15105]
20896 * ctype/ctype.c (tolower): Use libc_hidden_def.
20897 (toupper): Likewise.
20898 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20899 [!_ISOMAC] (toupper): Likewise.
20900
20901 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20902
20903 * localedata/Makefile: Remove --quiet argument when
20904 installing locales
20905
20906 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20907
20908 [BZ #17438]
20909 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20910 in d_fmt.
20911 * localedata/locales/pt_PT (LC_TIME): likewise
20912
20913 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20914
20915 [BZ #22646]
20916 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20917 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20918 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20919
20920 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20921
20922 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20923
20924 * nptl/Makefile (routines): Remove unregister-atfork.
20925 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20926 (fork_handler_alloc): Remove function.
20927 (fork_handlers, fork_handler_init): New variables.
20928 (__fork_lock): Rename to atfork_lock.
20929 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20930 to use a dynamic array to add/remove atfork handlers.
20931 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20932 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20933 Remove declaration.
20934 (fork_handler): Remove next, refcntr, and need_signal member.
20935 (__run_fork_handler_type): New enum.
20936 (__run_fork_handlers): New prototype.
20937 * nptl/register-atfork.c: Remove file.
20938 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20939
20940 * sysdeps/nptl/nptl-signals.h: Move to ...
20941 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20942 comments.
20943 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20944 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20945 unnecessary check for SIGTIMER.
20946 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20947 remove unnecessary removal of SIGTIMER.
20948 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20949 include-signals.h rename.
20950 * nptl/pthreadP.h: Likewise.
20951 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20952 __is_internal_signal instead of __nptl_is_internal_signal.
20953
20954 2018-02-22 Andrew Waterman <andrew@sifive.com>
20955
20956 [BZ # 22884]
20957 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20958 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20959 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20960 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20961
20962 2018-02-22 DJ Delorie <dj@delorie.com>
20963
20964 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20965
20966 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20967
20968 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20969 do_misaligned, not misaligned8.
20970
20971 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20972
20973 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20974 Add memcpy_thunderx2.
20975 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20976 Increment to 4.
20977 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20978 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20979 and IS_THUNDERX2PA checks.
20980 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20981 Use macro to set name appropriately.
20982 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20983 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20984 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20985 New macro.
20986 (IS_THUNDERX2): New macro.
20987
20988 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20989
20990 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20991
20992 2018-02-21 Zack Weinberg <zackw@panix.com>
20993
20994 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20995 Define here, unconditionally.
20996 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20997 * libio/libioP.h: Remove #if 0 blocks.
20998 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20999 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21000 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21001
21002 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21003 Assume weak_alias is always defined.
21004
21005 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21006 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21007 Remove #if 0 and #ifdef TODO blocks.
21008 Assume text_set_element is always defined.
21009
21010 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21011 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21012 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21013
21014 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21015 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21016 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21017 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21018 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21019 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21020 Reformat bit flags for _flags field to make occupancy clearer.
21021 Update commentary.
21022 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21023 Keep definitions consistent with those in libio/libio.h.
21024
21025 * libio/libio.h (_IO_file_flags): Remove macro.
21026 All uses changed to _flags.
21027
21028 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21029 (__HAVE_COLUMN, _IO_BE): Don't define.
21030 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21031 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21032 * libio/libioP.h (EOF): Don't define.
21033 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21034 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21035 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21036 testing _IO_UNIFIED_JUMPTABLES.
21037
21038 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21039 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21040 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21041 (_IO_size_t): Delete; all uses changed to size_t.
21042 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21043 (_IO_off_t): Delete; all uses changed to off_t.
21044 (_IO_off64_t): Delete; all uses changed to off64_t.
21045 (_IO_pid_t): Delete; all uses changed to pid_t.
21046 (_IO_uid_t): Delete; all uses changed to uid_t.
21047 (_IO_wint_t): Delete; all uses changed to wint_t.
21048 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21049 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21050 (_IO_cookie_io_functions_t): Delete; all uses changed to
21051 cookie_io_functions_t.
21052 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21053 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21054 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21055 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21056
21057 * libio/iofopncook.c: Remove unnecessary forward declarations.
21058 * libio/iolibio.h: Correct outdated commentary.
21059 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21060 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21061 Remove unnecessary casts.
21062 * stdio-common/getline.c: Use _IO_getdelim directly.
21063 Don't redefine ssize_t.
21064 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21065 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21066 Remove outdated comments.
21067 * stdio-common/vfscanf.c: Don't redefine va_list.
21068
21069 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21070 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21071 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21072 which are always true, and __cplusplus, which is always false.
21073
21074 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21075
21076 [BZ #15105]
21077 [BZ #19463]
21078 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21079 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21080 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21081 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21082 libc_hidden_proto.
21083 [!_ISOMAC] (putc_unlocked): Likewise.
21084 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21085 define inline if [__USE_EXTERN_INLINES].
21086 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21087 putc_unlocked.
21088
21089 [BZ #15105]
21090 [BZ #19463]
21091 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21092 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21093 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21094 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21095 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21096 getc_unlocked.
21097 * time/tzfile.c (__tzfile_read): Likewise.
21098
21099 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21100
21101 [BZ #22517]
21102 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21103
21104 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21105
21106 * io/fcntl.h: Fix a typo in a comment.
21107
21108 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21109
21110 [BZ #22862]
21111 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21112 define _DEFAULT_SOURCE.
21113 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21114
21115 2018-02-21 Florian Weimer <fweimer@redhat.com>
21116
21117 [BZ #20890]
21118 * elf/cache.c (save_cache): Call fsync on temporary file before
21119 renaming it.
21120 (save_aux_cache): Call fdatasync on temporary file before renaming
21121 it.
21122
21123 2018-02-21 Florian Weimer <fweimer@redhat.com>
21124
21125 [BZ #22787]
21126 * include/caller.h: Remove file.
21127 * elf/dl-caller.c: Likewise.
21128 * elf/Makefile (dl-routines): Remove dl-caller.
21129 (shared-only-routines): Do not add dl-caller.
21130 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21131 __check_caller.
21132 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21133 member.
21134 (dl_open_worker): Do not call __check_caller.
21135 (_dl_open): Do not set caller_dl_open member.
21136 * elf/rtld.c (_rtld_global_ro): Do not initialize
21137 _dl_check_caller member.
21138 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21139 _dl_check_caller member.
21140 (_dl_check_caller): Remove declaration.
21141 * sysdeps/unix/sysv/linux/dl-execstack.c
21142 (_dl_make_stack_executable): Do not call __check_caller.
21143
21144 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21145
21146 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21147 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21148
21149 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21150
21151 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21152 description.
21153
21154 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21155
21156 [BZ #16335]
21157 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21158 of 199606L, 200112L, and 200809L.
21159 (_XOPEN_SOURCE): Document special values of 600 and 700.
21160 (_ISOC11_SOURCE): Document macro.
21161 (_ATFILE_SOURCE): Likewise.
21162 (_FORTIFY_SOURCE): Likewise.
21163
21164 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21165
21166 [BZ #15105]
21167 [BZ #19463]
21168 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21169 and define as weak alias of __ferror_unlocked. Use
21170 libc_hidden_weak.
21171 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21172 libc_hidden_proto.
21173 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21174 function if [__USE_EXTERN_INLINES].
21175 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21176 ferror_unlocked.
21177
21178 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21179
21180 [BZ #6889]
21181 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21182
21183 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21184
21185 [BZ #22818]
21186 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21187 the GLIBC_2.1 version.
21188
21189 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21190
21191 [BZ #21508]
21192 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21193 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21194 intl/tst-gettext-de.po from po/de.po by removing the
21195 POT-Creation-Date line.
21196 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21197 ../po/de.po.
21198 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21199 ../po/de.po.
21200
21201 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21202
21203 * mach/Makefile (headers): Add mach/param.h.
21204 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21205 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21206 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21207 (__ptsname_r): Move implementation to...
21208 (__ptsname_internal): ... new function. Add filling the STP
21209 structure.
21210
21211 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21212
21213 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21214 idouble to 1 ULP.
21215
21216 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21217
21218 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21219 syntax.
21220
21221 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21222
21223 * nptl/Makefile (tst-mutex8-ENV): Delete.
21224 * nptl/tst-mutex8.c (check_type):
21225 Add runtime check if mutex will be elided.
21226
21227 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21228
21229 [BZ #20980]
21230 [BZ #21234]
21231 * manual/install.texi (Configuring and compiling): Describe
21232 passing CC and CFLAGS on configure command line, not as
21233 environment variables. Use @code markup on those variables.
21234 Specify what options go in CC and what go in CFLAGS. Note the
21235 requirement to compile with optimization.
21236 * INSTALL: Regenerated.
21237
21238 [BZ #18124]
21239 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21240 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21241 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21242 __sigprocmask instead of sigprocmask.
21243 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21244 Likewise.
21245 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21246 __sigsetjmp and sigprocmask.
21247
21248 [BZ #15105]
21249 * include/argz.h (argz_next): Use libc_hidden_proto.
21250 (__argz_next): Likewise.
21251 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21252 (argz_next): Use libc_hidden_weak.
21253
21254 [BZ #15105]
21255 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21256 libc_hidden_proto.
21257 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21258 libc_hidden_def.
21259
21260 [BZ #15105]
21261 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21262 libc_hidden_proto.
21263 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21264
21265 [BZ #15105]
21266 [BZ #19463]
21267 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21268 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21269 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21270 (__feof_unlocked): New declaration, and inline function if
21271 [__USE_EXTERN_INLINES].
21272 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21273 instead of feof_unlocked.
21274 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21275 * nss/nsswitch.c (nss_parse_file): Likewise.
21276 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21277 Likewise.
21278 * time/getdate.c (__getdate_r): Likewise.
21279 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21280 Define as macro to call __feof_unlocked.
21281
21282 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21283
21284 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21285
21286 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21287
21288 * math/Makefile: Remove mpexp.c and mplog.c
21289 * sysdeps/i386/fpu/mpexp.c: Delete file.
21290 * sysdeps/i386/fpu/mplog.c: Likewise.
21291 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21292 * sysdeps/ia64/fpu/mplog.c: Likewise.
21293 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21294 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21295 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21296 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21297 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21298 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21299 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21300 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21301 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21302 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21303 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21304 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21305 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21306 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21307 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21308 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21309
21310 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21311
21312 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21313
21314 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21315
21316 * sysdeps/sh/libm-test-ulps: Update.
21317
21318 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21319
21320 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21321 idouble to 1 ULP.
21322
21323 2018-02-12 Zack Weinberg <zackw@panix.com>
21324
21325 [BZ #19239]
21326 * posix/sys/types.h: Don't include sys/sysmacros.h.
21327 * misc/sys/sysmacros.h: Remove the conditional deprecation
21328 warnings for the macros defined by this header.
21329
21330 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21331
21332 * manual/probes.texi: Remove slowexp probes.
21333 * math/Makefile: Remove slowexp.
21334 * sysdeps/generic/math_private.h (__slowexp): Remove.
21335 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21336 document error bounds.
21337 * sysdeps/i386/fpu/slowexp.c: Remove.
21338 * sysdeps/ia64/fpu/slowexp.c: Remove.
21339 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21340 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21341 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21342 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21343 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21344 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21345 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21346 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21347 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21348 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21349 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21350
21351 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21352
21353 [BZ #13932]
21354 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21355 * benchtests/pow-inputs: Update comment for slow path cases.
21356 * manual/probes.texi (slowpow_p10): Delete removed probe.
21357 (slowpow_p10): Likewise.
21358 * math/Makefile: Remove halfulp.c and slowpow.c.
21359 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21360 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21361 (__halfulp): Remove.
21362 (__slowpow): Remove.
21363 * sysdeps/i386/fpu/halfulp.c: Delete file.
21364 * sysdeps/i386/fpu/slowpow.c: Likewise.
21365 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21366 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21367 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21368 improve comments and add error analysis.
21369 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21370 (power1): Remove function:
21371 (log1): Remove error argument, add error analysis.
21372 (my_log2): Remove function.
21373 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21374 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21375 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21376 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21377 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21378 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21379 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21380 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21381 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21382 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21383 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21384 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21385 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21386 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21387
21388 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21389
21390 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21391 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21392
21393 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21394
21395 [BZ #22433]
21396 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21397 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21398 and PTRACE_SETHBPREGS.
21399
21400 2018-02-10 Zack Weinberg <zackw@panix.com>
21401
21402 [BZ #22830]
21403 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21404 correctly.
21405 * malloc/tst-malloc-stats-cancellation.c: New test case.
21406 * malloc/Makefile: Add new test case.
21407
21408 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21409
21410 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21411
21412 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21413
21414 * math/Makefile (libm-narrow-fns): Add add.
21415 (libm-test-funcs-narrow): Likewise.
21416 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21417 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21418 * math/gen-auto-libm-tests.c (test_functions): Add add.
21419 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21420 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21421 (NARROW_ADD_TRIVIAL): Likewise.
21422 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21423 macro.
21424 (__daddl): Likewise.
21425 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21426 dadd.
21427 (CFLAGS-nldbl-dadd.c): New variable.
21428 (CFLAGS-nldbl-fadd.c): Likewise.
21429 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21430 __nldbl_daddl.
21431 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21432 prototype.
21433 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21434 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21435 * math/auto-libm-test-in: Add tests of add.
21436 * math/auto-libm-test-out-narrow-add: New generated file.
21437 * math/libm-test-narrow-add.inc: New file.
21438 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21439 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21440 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21441 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21442 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21443 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21444 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21445 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21446 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21447 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21448 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21449 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21450 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21451 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21452 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21453 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21454 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21455 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21456 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21457 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21458 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21459 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21460 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21461 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21462 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21463 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21464 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21465 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21466 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21467 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21468 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21469 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21474 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21475 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21476 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21477 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21478 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21479 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21480 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21481 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21482 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21483 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21484
21485 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21486 (f128-pairs): New variable.
21487 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21488 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21489 to CFLAGS.
21490 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21491 Also make tests add $(f128-loader-link) to gnulib-tests.
21492
21493 2018-02-09 DJ Delorie <dj@redhat.com>
21494
21495 [BZ #22827]
21496 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21497 64-bit ELF type for 64-bit ELF objects.
21498
21499 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21500
21501 * math/libm-test-driver.c (snan_tests_arg): New variable.
21502 * math/libm-test-support.h (snan_tests_arg): New declaration.
21503 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21504
21505 * math/Makefile (test-type-pairs): New variable.
21506 (test-type-pairs-f64xf128-yes): Likewise.
21507 (tests): Add test-narrow-macros.
21508 (libm-test-funcs-narrow): New variable.
21509 (libm-test-c-narrow): Likewise.
21510 (generated): Add $(libm-test-c-narrow).
21511 (libm-tests-base-narrow): New variable.
21512 (libm-tests-narrow): Likewise.
21513 (libm-tests): Add $(libm-tests-narrow).
21514 (libm-tests-for-type): Handle $(libm-tests-narrow).
21515 (libm-test-c-narrow-obj): New variable.
21516 ($(libm-test-c-narrow-obj)): New rule.
21517 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21518 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21519 $(o-iterator) to set dependencies and CFLAGS.
21520 * math/gen-auto-libm-tests.c: Document use for narrowing
21521 functions.
21522 (output_for_one_input_case): Take argument NARROW.
21523 (generate_output): Likewise. Update call to
21524 output_for_one_input_case.
21525 (main): Take --narrow option. Update call to generate_output.
21526 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21527 (apply_lit): Update call to _apply_lit.
21528 (apply_arglit): New function.
21529 (parse_args): Handle "a" arguments.
21530 (parse_auto_input): Handle format names using ":".
21531 * math/README.libm-test: Document "a" parameter type.
21532 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21533 (ARG_TYPE_TRUE_MIN): Likewise.
21534 (ARG_TYPE_MAX): Likwise.
21535 (ARG_MIN_EXP): Likewise.
21536 (ARG_MAX_EXP): Likewise.
21537 (ARG_MANT_DIG): Likewise.
21538 (TEST_COND_arg_ibm128): Likewise.
21539 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21540 (TEST_COND_arg_fmt): New macro.
21541 (init_max_error): Update prototype.
21542 * math/libm-test-support.c (test_ibm128): New variable.
21543 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21544 instead of using [TEST_COND_ibm128] conditional.
21545 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21546 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21547 [TEST_NARROW] (TEST_MSG): New definition.
21548 (arg_plus_zero): New macro.
21549 (arg_minus_zero): Likewise.
21550 (arg_plus_infty): Likewise.
21551 (arg_minus_infty): Likewise.
21552 (arg_qnan_value_pl): Likewise.
21553 (arg_qnan_value): Likewise.
21554 (arg_snan_value_pl): Likewise.
21555 (arg_snan_value): Likewise.
21556 (arg_max_value): Likewise.
21557 (arg_min_value): Likewise.
21558 (arg_min_subnorm_value): Likewise.
21559 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21560 (RUN_TEST_LOOP_aa_f): New macro.
21561 (TEST_SUFF): New macro.
21562 (TEST_SUFF_STR): Likewise.
21563 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21564 (TEST_COND_any_ibm128): New macro.
21565 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21566 this_func. Update call to init_max_error.
21567 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21568 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21569 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21570 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21571 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21572 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21573 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21574 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21575 * math/test-math-vector.h (TEST_NARROW): Likewise.
21576 * math/test-arg-double.h: New file.
21577 * math/test-arg-float128.h: Likewise.
21578 * math/test-arg-float32x.h: Likewise.
21579 * math/test-arg-float64.h: Likewise.
21580 * math/test-arg-float64x.h: Likewise.
21581 * math/test-arg-ldouble.h: Likewise.
21582 * math/test-math-narrow.h: Likewise.
21583 * math/test-narrow-macros.c: Likewise.
21584 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21585 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21586 test-narrow-macros-ldbl-64.
21587 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21588
21589 * math/bits/mathcalls-narrow.h: New file.
21590 * include/bits/mathcalls-narrow.h: Likewise.
21591 * math/math-narrow.h: Likewise.
21592 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21593 (__MATHCALL_NARROW_ARGS_2): Likewise.
21594 (__MATHCALL_NARROW_ARGS_3): Likewise.
21595 (__MATHCALL_NARROW_NORMAL): Likewise.
21596 (__MATHCALL_NARROW_REDIR): Likewise.
21597 (__MATHCALL_NARROW): Likewise.
21598 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21599 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21600 defined.
21601 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21602 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21603 (libm-narrow-fns): New variable.
21604 (libm-narrow-types-basic): Likewise.
21605 (libm-narrow-types-ldouble-yes): Likewise.
21606 (libm-narrow-types-float128-yes): Likewise.
21607 (libm-narrow-types-float128-alias-yes): Likewise.
21608 (libm-narrow-types): Likewise.
21609 (libm-routines): Add narrowing functions.
21610 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21611 (libc_feholdexcept_setroundf128): New macro.
21612 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21613 * sysdeps/ieee754/float128/float128_private.h: Include
21614 <math/math-narrow.h>.
21615 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21616 Undefine and redefine.
21617 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21618 (libm_alias_float_ldouble): Undefine and redefine.
21619 (libm_alias_double_ldouble): Likewise.
21620
21621 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21622
21623 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21624
21625 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21626 FPCR/FPSR.
21627
21628 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21629
21630 * manual/creature.texi: Convert references to gcc.info to gcc.
21631 * manual/stdio.texi: Likewise.
21632 * manual/string.texi: Likewise.
21633
21634 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21635
21636 [BZ #17979]
21637 * posix/bits/types.h (__int_least8_t): New typedef.
21638 (__uint_least8_t): Likewise.
21639 (__int_least16_t): Likewise.
21640 (__uint_least16_t): Likewise.
21641 (__int_least32_t): Likewise.
21642 (__uint_least32_t): Likewise.
21643 (__int_least64_t): Likewise.
21644 (__uint_least64_t): Likewise.
21645 * sysdeps/generic/stdint.h (int_least8_t): Define using
21646 __int_least8_t.
21647 (int_least16_t): Define using __int_least16_t.
21648 (int_least32_t): Define using __int_least32_t.
21649 (int_least64_t): Define using __int_least64_t.
21650 (uint_least8_t): Define using __uint_least8_t.
21651 (uint_least16_t): Define using __uint_least16_t.
21652 (uint_least32_t): Define using __uint_least32_t.
21653 (uint_least64_t): Define using __uint_least64_t.
21654 * wcsmbs/uchar.h: Include <bits/types.h>.
21655 (char16_t): Define using __uint_least16_t conditional only on
21656 [!__USE_ISOCXX11].
21657 (char32_t): Define using __uint_least32_t conditional only on
21658 [!__USE_ISOCXX11].
21659 * wcsmbs/test-char-types.c: New file.
21660 * wcsmbs/Makefile (tests): Add test-char-types.
21661
21662 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21663 version to 4.0.1.
21664
21665 2018-02-07 Zack Weinberg <zackw@panix.com>
21666
21667 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21668 Delete all contents except for definitions of _G_HAVE_MMAP and
21669 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21670 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21671 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21672 change as above.
21673
21674 * libio/libio.h: Don't include bits/_G_config.h here.
21675 Include stddef.h with __need_wchar_t defined. Include
21676 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21677 Define _IO_iconv_t here, directly.
21678 Don't define _IO_HAVE_ST_BLKSIZE.
21679 * libio/libioP.h: Include _G_config.h here. Move include of
21680 shlib-compat.h up with rest of includes. Simplify conditionals
21681 controlling definition of _IO_JUMPS_OFFSET.
21682
21683 * csu/init.c: Remove always-true #if around entire file.
21684 Don't include stdio.h. Set _IO_stdin_used to hardwired
21685 constant 0x20001, and update commentary.
21686 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21687 Replace all uses of _G_va_list with __gnuc_va_list.
21688 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21689 instead of #if _IO_HAVE_ST_BLKSIZE.
21690 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21691 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21692 not #ifdef.
21693
21694 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21695 multiple-include guard to match.
21696 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21697 into this file.
21698 Remove preprocessor conditionals that are always true and/or
21699 redundant to other preprocessor conditionals in the same nest.
21700 Include shlib-compat.h unconditionally.
21701 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21702 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21703 defined after including stdio.h.
21704 Use __BEGIN_DECLS/__END_DECLS.
21705
21706 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21707 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21708 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21709
21710 2018-02-07 Zack Weinberg <zackw@panix.com>
21711
21712 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21713 New single-type headers split from _G_config.h.
21714 * libio/bits/types/cookie_io_functions_t.h
21715 * libio/bits/types/struct_FILE.h
21716 New single-type headers split from libio.h.
21717
21718 * libio/Makefile: Install the above new headers. Don't install
21719 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21720 bits/libio-ldbl.h.
21721 * libio/_G_config.h, libio/libio.h: Delete file.
21722
21723 * libio/bits/libio.h: Remove improper-inclusion guard.
21724 Include stdio.h and don't repeat anything that it does.
21725 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21726 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21727 __io_read_fn as cookie_read_function_t,
21728 __io_write_fn as cookie_write_function_t,
21729 __io_seek_fn as cookie_seek_function_t,
21730 __io_close_fn as cookie_close_function_t,
21731 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21732 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21733 here, in the "compatibility defines" section. Remove an #if 0
21734 block. Use the "body" macros from bits/types/struct_FILE.h to
21735 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21736 and _IO_ferror_unlocked.
21737 Move prototypes of __uflow and __overflow...
21738
21739 * libio/stdio.h: ...here. Don't include bits/libio.h.
21740 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21741 directly from stdarg.h. Include bits/types/__fpos_t.h,
21742 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21743 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21744 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21745 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21746 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21747 __ssize_t, not _IO_ssize_t. Unconditionally define
21748 BUFSIZ as 8192 and EOF as (-1).
21749
21750 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21751 macros from bits/types/struct_FILE.h instead of _IO_* macros
21752 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21753 instead of _IO_ssize_t.
21754 * libio/bits/stdio2.h: Similarly.
21755
21756 * libio/iolibio.h: Add multiple-include guard.
21757 Include bits/libio.h after stdio.h.
21758 * libio/libioP.h: Add multiple-include guard.
21759 Include stdio.h and bits/libio.h before iolibio.h.
21760
21761 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21762 * include/bits/types/cookie_io_functions_t.h
21763 * include/bits/types/struct_FILE.h: New wrappers.
21764
21765 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21766 Get definitions of _G_fpos_t and _G_fpos64_t from
21767 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21768 respectively. Remove improper-inclusion guards.
21769
21770 * conform/data/stdio.h-data: Update expectations of va_list.
21771 * scripts/check-installed-headers.sh: Remove special case for
21772 libio.h and _G_config.h.
21773
21774 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21775
21776 [BZ #15105]
21777 [BZ #19463]
21778 * include/sys/sysmacros.h [!_ISOMAC]
21779 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21780 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21781 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21782 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21783 libc_hidden_proto.
21784 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21785 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21786 Likewise.
21787 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21788 Undefine and redefine to add use __gnu_dev_ prefix.
21789 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21790 Likewise.
21791 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21792 and define as hidden inline function.
21793 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21794 Likewise.
21795 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21796 Likewise.
21797 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21798 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21799 (gnu_dev_minor): Likewise.
21800 (gnu_dev_makedev): Likewise.
21801 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21802 makedev.
21803 * posix/wordexp.c (exec_comm_child): Likewise.
21804 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21805 instead of minor and __gnu_dev_major instead of major.
21806 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21807 __gnu_dev_major instead of major.
21808 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21809 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21810 instead of gnu_dev_minor.
21811 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21812 (SLAVE_P): Likewise.
21813 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21814 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21815 instead of major.
21816
21817 [BZ #21313]
21818 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21819 in another place.
21820 * locale/weightwc.h (findidx): Likewise.
21821
21822 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21823
21824 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21825 (slowlog_inexact): Likewise
21826 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21827 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21828
21829 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21830
21831 [BZ #22797]
21832 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21833 missing second underscore to parameter name.
21834
21835 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21836
21837 [BZ #14508]
21838 [BZ #15512]
21839 [BZ #17082]
21840 [BZ #20530]
21841 * bits/byteswap.h: Update file comment. Do not include
21842 <bits/byteswap-16.h>.
21843 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21844 constant.
21845 (__bswap_16): Define as inline function.
21846 (__bswap_constant_32): Reformat definition.
21847 (__bswap_32): Always define as inline function, not macro, using
21848 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21849 otherwise __bswap_constant_32.
21850 (__bswap_constant_64): Reformat definition. Do not use
21851 __extension__ here.
21852 (__bswap_64): Always define as inline function, not macro. Use
21853 __extension__ on function definition. Use __builtin_bswap64 if
21854 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21855 * string/test-endian-file-scope.c: New file.
21856 * string/test-endian-sign-conversion.c: Likewise.
21857 * string/Makefile (headers): Remove bits/byteswap-16.h.
21858 (tests): Add test-endian-file-scope and
21859 test-endian-sign-conversion.
21860 (CFLAGS-test-endian-sign-conversion.c): New variable.
21861 * bits/byteswap-16.h: Remove file.
21862 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21863 * sysdeps/ia64/bits/byteswap.h: Likewise.
21864 * sysdeps/m68k/bits/byteswap.h: Likewise.
21865 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21866 * sysdeps/s390/bits/byteswap.h: Likewise.
21867 * sysdeps/tile/bits/byteswap.h: Likewise.
21868 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21869 * sysdeps/x86/bits/byteswap.h: Likewise.
21870
21871 [BZ #17721]
21872 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21873 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21874 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21875 199901L] (__restrict): Define to restrict.
21876
21877 [BZ #19667]
21878 * string/testcopy.c: Include <support/support.h>. Do not include
21879 <malloc.h>. Use <support/test-driver.c>.
21880 (main): Rename to do_test. Make static. Use xmalloc instead of
21881 malloc.
21882
21883 [BZ #13575]
21884 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21885 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21886 (SSIZE_MAX): Define to INT_MAX.
21887 * posix/test-ssize-max.c: New file.
21888 * posix/Makefile (tests): Add test-ssize-max.
21889
21890 [BZ #19668]
21891 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21892 <support/support.h>. Do not include <malloc.h>.
21893 (query_auxv): Use xmalloc instead of malloc.
21894
21895 [BZ #14553]
21896 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21897 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21898 instead of loff_t.
21899
21900 2018-02-06 Florian Weimer <fweimer@redhat.com>
21901
21902 [BZ #18023]
21903 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21904 Use scratch_buffer instead of extend_alloca.
21905
21906 2018-02-06 Zack Weinberg <zackw@panix.com>
21907
21908 * libio/stdio.h: Don't define getc or putc as macros.
21909 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21910 not _IO_getc and _IO_putc.
21911
21912 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21913 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21914
21915 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21916
21917 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21918 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21919
21920 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21921
21922 [BZ #14890]
21923 * elf/elf.h (NT_PRFPREG): New macro.
21924 (NT_S390_VXRS_LOW): Likewise.
21925 (NT_S390_VXRS_HIGH): Likewise.
21926 (NT_S390_GS_CB): Likewise.
21927 (NT_S390_GS_BC): Likewise.
21928 (NT_S390_RI_CB): Likewise.
21929
21930 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21931 (MAP_SYNC): New macro.
21932 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21933 Likewise.
21934 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21935 (MAP_SYNC): Likewise.
21936 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21937 (MAP_SYNC): Likewise.
21938 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21939 (MAP_SYNC): Likewise.
21940 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21941 (MAP_SYNC): Likewise.
21942 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21943 (MAP_SYNC): Likewise.
21944 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21945 (MAP_SYNC): Likewise.
21946 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21947 Likewise.
21948 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21949 Likewise.
21950
21951 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21952 (MAP_SHARED_VALIDATE): New macro.
21953 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21954 (MAP_SHARED_VALIDATE): Likewise.
21955
21956 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21957
21958 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21959 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21960 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21961
21962 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21963
21964 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21965 (DT_NUM): Updated to 35.
21966
21967 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21968
21969 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21970 __builtin_expect with __glibc_likely and __glibc_unlikely.
21971 (elf_machine_rela): Likewise.
21972 (elf_machine_lazy_rel): Likewise.
21973
21974 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21975
21976 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21977 __builtin_expect with __glibc_likely and __glibc_unlikely.
21978 (elf_machine_lazy_rel): Likewise.
21979
21980 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21981
21982 [BZ #22638]
21983 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21984 SHARED.
21985 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21986
21987 2018-02-05 Andreas Schwab <schwab@suse.de>
21988
21989 [BZ #22761]
21990 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21991 string.
21992
21993 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21994
21995 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21996 not check against PTHREAD_STACK_MIN.
21997
21998 2018-02-02 Sean McKean <smckean83@gmail.com>
21999
22000 [BZ #22735]
22001 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22002
22003 2018-02-02 Florian Weimer <fweimer@redhat.com>
22004
22005 [BZ #22753]
22006 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22007 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22008 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22009 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22010 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22011 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22012 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22013 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22014 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22015 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22016 * misc/tst-preadvwritev2.c (do_test): Call it.
22017 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22018
22019 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22020
22021 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22022
22023 * benchtests/bench-memcmp.c: Print json instead of plain text.
22024
22025 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22026 every test run.
22027
22028 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22029
22030 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22031 version to 4.15.
22032 (s390_sthyi): New syscall.
22033
22034 * sysdeps/generic/ldbl-classify-compat.h: New file.
22035 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22036 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22037 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22038 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22039 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22040 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22041 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22042 <ldbl-classify-compat.h>.
22043 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22044 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22045 <ldbl-classify-compat.h>.
22046 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22047 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22048 <ldbl-classify-compat.h>.
22049 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22050 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22051 <ldbl-classify-compat.h>.
22052 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22053 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22054 <ldbl-classify-compat.h>.
22055 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22056 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22057 <ldbl-classify-compat.h>.
22058 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22059 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22060 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22061 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22062 * sysdeps/microblaze/math_private.h: Likewise.
22063 * sysdeps/nios2/math_private.h: Likewise.
22064 * sysdeps/sh/math_private.h: Likewise.
22065
22066 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22067 * sysdeps/m68k/coldfire/math_private.h: ... here.
22068 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22069 * sysdeps/tile/math_private.h: Likewise.
22070 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22071 Remove macro.
22072 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22073 Likewise.
22074
22075 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22076 Remove macro.
22077 (libc_fetestexcept): Likewise.
22078 (libc_feupdateenv_test): Likewise.
22079 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22080 (libc_fetestexcept): Likewise.
22081 (libc_feupdateenv_test): Likewise.
22082 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22083 (libc_fetestexcept): Likewise.
22084 (libc_feupdateenv_test): Likewise.
22085 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22086 (libc_fetestexcept): Likewise.
22087 (libc_feupdateenv_test): Likewise.
22088
22089 * sysdeps/generic/math_private.h
22090 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22091 New inline function.
22092 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22093 Likewise.
22094
22095 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22096 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22097 * sysdeps/generic/math_private.h
22098 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22099 inline function.
22100 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22101 Likewise.
22102 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22103 Likewise.
22104 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22105 Likewise.
22106 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22107 Likewise.
22108 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22109 Likewise.
22110 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22111 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22112 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22113 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22114 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22115 (__fegetenv): Likewise.
22116 (fesetenv): Likewise.
22117 (__fesetenv): Likewise.
22118 (feupdateenv): Likewise.
22119 (__feupdateenv): Likewise.
22120 (fegetround): Likewise.
22121 (__fegetround): Likewise.
22122 (fesetround): Likewise.
22123 (__fesetround): Likewise.
22124
22125 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22126 (feraiseexcept): New macro.
22127 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22128 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22129 Remove macro.
22130 (__feraiseexcept): Likewise.
22131 (feclearexcept): Likewise.
22132 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22133 (__feraiseexcept): Likewise.
22134 (feclearexcept): Likewise.
22135 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22136 (__feraiseexcept): Likewise.
22137 (feclearexcept): Likewise.
22138 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22139 (__feraiseexcept): Likewise.
22140 (feclearexcept): Likewise.
22141 (fetestexcept): Likewise.
22142
22143 * sysdeps/m68k/coldfire/math-tests.h: New file.
22144
22145 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22146 * sysdeps/m68k/bits/fenv.h: ... here.
22147 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22148 not define.
22149 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22150 Likewise.
22151 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22152 Likewise.
22153 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22154 Likewise.
22155 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22156 Likewise.
22157 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22158 Define to 0.
22159 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22160 (__FE_UNDEFINED): New enum constant.
22161 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22162 Do not define.
22163 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22164 Likewise.
22165 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22166 Likewise.
22167 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22168 to match generic bits/fenv.h.
22169 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22170 Do not define.
22171
22172 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22173 packed on bits.
22174 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22175 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22176 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22177 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22178
22179 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22180 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22181 Joseph Myers <joseph@codesourcery.com>
22182
22183 [BZ #21314]
22184 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22185 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22186 computation using c.
22187 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22188 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22189 computation using c.
22190
22191 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22192
22193 * version.h (RELEASE): Set to "development".
22194 (VERSION): Set to "2.27.9000".
22195 * NEWS (2.28): New section.
22196
22197 * version.h (RELEASE): Set to "stable".
22198 (VERSION): Set to "2.27".
22199 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22200
22201 * NEWS: Add the list of bugs fixed in 2.27.
22202
22203 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22204
22205 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22206 against PTHREAD_STACK_MIN.
22207
22208 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22209
22210 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22211 New entries.
22212 (Rafał Lużyński, Andreas Schwab): Update.
22213
22214 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22215
22216 [BZ #10871]
22217 * NEWS: List the languages which actually use the alternative
22218 months feature in this release. Also explain that "alt_mon" and
22219 "ab_alt_mon" are optional.
22220
22221 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22222
22223 [BZ #22765]
22224 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22225
22226 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22227
22228 * manual/install.texi (Tools for Compilation): Update the newest
22229 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22230 * INSTALL: Regenerated.
22231
22232 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22233
22234 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22235 instead of __builtin_expect.
22236
22237 2018-01-30 Florian Weimer <fweimer@redhat.com>
22238
22239 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22240 data.
22241 * nss/tst-nss-getpwent.c (do_test): Likewise.
22242
22243 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22244
22245 [BZ #10871]
22246 * localedata/locales/hr_HR (mon): Rename to...
22247 (alt_mon): This.
22248 (mon): Import from CLDR (genitive case).
22249 (d_t_fmt): Update the comment.
22250
22251 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22252
22253 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22254 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22255 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22256
22257 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22258
22259 * mach/Versions: Fix version when __mach_host_self_ was added.
22260 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22261 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22262 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22263 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22264 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22265 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22266 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22267 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22268 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22269 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22270 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22271 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22272 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22273 || to respect codestyle.
22274 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22275 (do_test_bz20181): Rename accordingly.
22276 * malloc/malloc.c: Include <assert.h>.
22277 (assert): Do not define.
22278 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22279 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22280 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22281 * sysdeps/mach/hurd/hp-timing.h: New file.
22282 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22283
22284 2018-01-29 Darius Rad <darius@bluespec.com>
22285
22286 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22287
22288 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22289
22290 * sysdeps/init_array/crti.S (.section .init_array): Add
22291 PREINIT_FUNCTION when defined.
22292 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22293 * config.h.in: Regenerate.
22294 * manual/platform.texi: Add RISC-V documenation for
22295 __riscv_flush_icache.
22296 * sysdeps/riscv/__longjmp.S: New file.
22297 * sysdeps/riscv/backtrace.c: Likewise.
22298 * sysdeps/riscv/bits/endian.h: Likewise.
22299 * sysdeps/riscv/bits/setjmp.h: Likewise.
22300 * sysdeps/riscv/bits/wordsize.h: Likewise.
22301 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22302 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22303 * sysdeps/riscv/dl-trampoline.S: Likewise.
22304 * sysdeps/riscv/gccframe.h: Likewise.
22305 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22306 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22307 * sysdeps/riscv/machine-gmon.h: Likewise.
22308 * sysdeps/riscv/memusage.h: Likewise.
22309 * sysdeps/riscv/setjmp.S: Likewise.
22310 * sysdeps/riscv/sys/asm.h: Likewise.
22311 * sysdeps/riscv/tls-macros.h: Likewise.
22312 * sysdeps/riscv/dl-tls.h: New file.
22313 * sysdeps/riscv/libc-tls.c: Likewise.
22314 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22315 * sysdeps/riscv/nptl/tls.h: Likewise.
22316 * sysdeps/riscv/stackinfo.h: Likewise.
22317 * sysdeps/riscv/bits/fenv.h: New file.
22318 * sysdeps/riscv/e_sqrtl.c: Likewise.
22319 * sysdeps/riscv/fpu_control.h: Likewise.
22320 * sysdeps/riscv/math-tests.h: Likewise.
22321 * sysdeps/riscv/nofpu/Implies: Likewise.
22322 * sysdeps/riscv/sfp-machine.h: Likewise.
22323 * sysdeps/riscv/tininess.h: Likewise.
22324 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22325 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22326 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22327 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22328 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22329 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22330 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22331 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22332 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22333 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22334 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22335 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22336 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22337 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22338 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22339 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22340 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22341 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22342 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22343 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22344 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22345 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22346 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22347 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22348 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22349 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22350 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22351 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22352 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22353 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22354 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22355 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22356 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22357 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22358 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22359 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22360 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22361 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22362 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22363 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22364 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22365 * sysdeps/riscv/rvf/math_private.h: Likewise.
22366 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22367 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22368 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22369 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22370 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22371 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22372 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22373 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22374 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22375 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22376 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22377 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22378 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22379 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22380 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22381 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22382 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22383 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22384 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22385 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22386 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22387 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22388 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22389 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22390 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22391 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22392 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22393 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22394 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22395 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22396 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22397 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22398 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22399 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22400 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22401 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22402 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22403 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22404 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22405 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22406 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22407 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22408 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22409 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22410 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22411 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22412 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22413 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22414 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22415 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22416 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22417 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22418 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22419 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22420 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22421 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22422 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22423 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22424 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22425 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22426 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22427 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22428 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22429 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22430 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22431 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22432 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22433 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22434 * sysdeps/riscv/Implies: New file.
22435 * sysdeps/riscv/Makefile: Likewise.
22436 * sysdeps/riscv/configure: Likewise.
22437 * sysdeps/riscv/configure.ac: Likewise.
22438 * sysdeps/riscv/nptl/Makefile: Likewise.
22439 * sysdeps/riscv/preconfigure: Likewise.
22440 * sysdeps/riscv/rv64/Implies-after: Likewise.
22441 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22442 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22443 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22444 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22445 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22446 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22447 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22448 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22449 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22450 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22451 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22452 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22453 (Config): Likewise.
22454
22455 2018-01-29 Florian Weimer <fweimer@redhat.com>
22456
22457 [BZ #22701]
22458 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22459 libnsl_hidden_proto.
22460 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22461 libnsl_hidden_proto.
22462 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22463 * nis/Makefile (libnsl-routines): Add nss-default only for
22464 build-obsolete-nsl.
22465 * nis/nis_defaults.c (__nis_default_ttl): Add
22466 libnsl_hidden_nolink_def.
22467 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22468 declaration.
22469 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22470 * nis/ypclnt.c (yp_maplist): Likewise.
22471
22472 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22473
22474 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22475 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22476
22477 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22478
22479 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22480 clean -dxfq for git updates when replacing sources.
22481
22482 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22483 --disable-libcilkrts unconditionally, not just for the final GCC
22484 build for Hurd.
22485
22486 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22487 version to 4.15.
22488
22489 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22490
22491 [BZ #10871]
22492 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22493 case).
22494
22495 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22496
22497 [BZ #10871]
22498 * localedata/locales/be_BY (mon): Rename to...
22499 (alt_mon): This, then synchronize with CLDR (nominative case).
22500 (abmon): Rename to...
22501 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22502 (mon): Import from CLDR (genitive case).
22503 (abmon): Likewise.
22504 * localedata/locales/be_BY@latin (mon): Rename to...
22505 (alt_mon): This.
22506 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22507
22508 * localedata/locales/be_BY@latin (lang_name): Reworded to
22509 "biełaruskaja mova".
22510
22511 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22512
22513 [BZ #10871]
22514 * localedata/locales/el_CY (mon): Renamed to...
22515 (alt_mon): This.
22516 (mon): Import from CLDR (genitive case).
22517 * localedata/locales/el_GR: Likewise.
22518
22519 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22520
22521 [BZ #10871]
22522 * localedata/locales/ru_RU (mon): Rename to...
22523 (alt_mon): This.
22524 (abmon): Rename to...
22525 (ab_alt_mon): This.
22526 (mon): Import from CLDR (genitive case).
22527 (abmon): Copy from the old content except the 5th month which is
22528 now in the genitive case, even when abbreviated.
22529 * localedata/locales/ru_UA: Likewise.
22530 * time/tst-strptime.c (day_tests): Add an actual example of
22531 a difference between %b and %Ob in Russian.
22532
22533 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22534
22535 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22536 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22537 a `c' variable.
22538 * resolv/res-close.c: Include <stdlib.h>.
22539 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22540 <sys/wait.h>, <time.h>, <sys/uio.h>.
22541 (NOT_CANCEL_H): Add inclusion guard.
22542 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22543 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22544 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22545 return 0.
22546 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22547 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22548 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22549 instead of void *.
22550 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22551 timer_ptr2id to cast struct timer_node * to void *.
22552 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22553 --disable-libcilkrts to gcc configure.
22554 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22555 and make them the default for now.
22556 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22557 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22558 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22559 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22560 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22561 MACH_IPC_COMPAT.
22562 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22563 __task_terminate would ever return successfully.
22564 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22565 to global scope.
22566 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22567 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22568 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22569 critical section to make code simpler and avoid warning.
22570 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22571 critical section to make code simpler and avoid warning.
22572 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22573 const char * instead of char *.
22574 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22575 __hurd_file_name_split, hurd_file_name_split,
22576 __hurd_directory_name_split, hurd_directory_name_split,
22577 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22578 hurd_file_name_path_lookup): Make lookup function parameter take a
22579 const char *name instead of char *name.
22580 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22581 __hurd_directory_name_split): Likewise.
22582 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22583 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22584 * sysdeps/mach/hurd/check_native.c: New file.
22585 * sysdeps/mach/hurd/check_pf.c: New file.
22586 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22587 (__freeifaddrs): Define macro to freeifaddrs.
22588 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22589 * sysdeps/mach/libmachuser.abilist: New file.
22590 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22591 (do_test_bz20181): Rename accordingly.
22592 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22593 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22594 <sys/mount.h>.
22595 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22596 version only if __USE_EXTERN_INLINES is defined.
22597 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22598 __hurd_sockfail): Likewise.
22599 (_hurd_fd_get): Always declare functions, and provide inline versions
22600 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22601 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22602 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22603 _hurd_port_set): Always declare functions, and provide inline versions
22604 only if __USE_EXTERN_INLINES and _LIBC are defined and
22605 IS_IN(libc).
22606 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22607 _hurd_critical_section_unlock): Likewise.
22608 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22609 * __hurd_threadvar_location): Likewise.
22610 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22611 _hurd_userlink_clear): Likewise.
22612 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22613 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22614 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22615 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22616 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22617 __spin_lock_locked): Likewise.
22618 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22619 __spin_lock_locked): Likewise.
22620 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22621 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22622 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22623 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22624 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22625 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22626 _POSIX_NO_TRUNC): Define to 0.
22627 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22628 check size against PTHREAD_STACK_MIN.
22629 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22630 IS_IN(libpthread)]: Include <sigsetops.h>.
22631 * mach/Makefile (user-interfaces): Add mach/gnumach.
22632 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22633 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22634 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22635 instead of invalid -1.
22636 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22637 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22638 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22639 <net/ppp_defs.h>.
22640
22641 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22642
22643 * hurd/fcntl-internal.h: New file.
22644
22645 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22646
22647 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22648
22649 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22650
22651 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22652
22653 [BZ #22701]
22654 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22655 Build only shared objects.
22656
22657 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22658
22659 * README: Update for hppa.
22660
22661 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22662
22663 * sysdeps/sparc/fpu/libm-test-ulps: Update
22664 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22665
22666 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22667
22668 Revert:
22669
22670 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22671
22672 [BZ #22563]
22673 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22674 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22675 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22676 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22677 to feature_1.
22678
22679 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22680
22681 [BZ #22563]
22682 * bits/types/__cancel_jmp_buf_tag.h: New file.
22683 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22684 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22685 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22686 * nptl/Makefile (headers): Add
22687 bits/types/__cancel_jmp_buf_tag.h.
22688 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22689 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22690 * sysdeps/nptl/pthread.h: Include
22691 <bits/types/__cancel_jmp_buf_tag.h>.
22692 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22693 __cancel_jmp_buf.
22694 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22695
22696 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22697
22698 [BZ #10871]
22699 * localedata/locales/uk_UA (mon): Renamed to...
22700 (alt_mon): This.
22701 (alt_digits): "0" removed and then renamed to...
22702 (mon): This.
22703 (date_fmt): Definition changed not to use the alternative
22704 digits hack.
22705
22706 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22707
22708 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22709 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22710 * elf/elf.h (EF_RISCV_RVC): New define.
22711 (EF_RISCV_FLOAT_ABI): Likewise.
22712 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22713 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22714 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22715 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22716 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22717 define.
22718 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22719
22720 2018-01-25 Andreas Schwab <schwab@suse.de>
22721
22722 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22723 single quotes.
22724 * sysdeps/gnu/configure: Regenerate.
22725 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22726 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22728 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22729 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22730 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22731 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22732 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22733
22734 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22735
22736 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22737 URL, and run autoconf, make it the default for now.
22738
22739 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22740
22741 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22742 soft-float ColdFire configuration.
22743
22744 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22745 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22746 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22747
22748 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22749 MicroBlaze file.
22750
22751 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22752 ....
22753 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22754 ... here.
22755 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22756 New file.
22757
22758 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22759 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22760 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22761 file.
22762
22763 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22764
22765 [BZ #22742]
22766 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22767 Rename to __reserved and add comment.
22768 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22769 Rename to __reserved.
22770
22771 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22772
22773 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22774 i686-gnu configurations.
22775 (Context.run_builds): Include mig, gnumach and hurd in components
22776 considered.
22777 (Context.checkout): Add mig, gnumach and hurd to components.
22778 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22779 hurd.
22780 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22781 (Config.build): Install gnumach headers, build mig and install
22782 hurd headers for 'gnu' OS.
22783 (Config.install_gnumach_headers): New function.
22784 (Config.install_hurd_headers): Likewise.
22785 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22786 when building for 'gnu' OS.
22787
22788 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22789
22790 * manual/tunables.texi (Hardware Capability Tunables): Fix
22791 spelling.
22792
22793 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22794
22795 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22796 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22797 (ALTMON_11, ALTMON_12): Improve documentation.
22798 * manual/time.texi (strftime): Likewise.
22799
22800 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22801
22802 [BZ #10871]
22803 * localedata/locales/pl_PL: Alternative month names added,
22804 primary month names are genitive now.
22805 * time/tst-strptime.c (day_tests): Actually use a genitive case
22806 of a month name in Polish language.
22807
22808 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22809
22810 [BZ #10871]
22811 * manual/locale.texi: Document ALTMON_1..12 constants for
22812 nl_langinfo. Specify when to use ALTMON instead of MON.
22813 * manual/time.texi (strftime, strptime): Document GNU extension
22814 permitting O modifier with %B and %b. Specify when to use
22815 %OB instead of %B.
22816
22817 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22818
22819 [BZ #10871]
22820 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22821 names, define them as the same as abbreviated month names explicitly.
22822 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22823 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22824 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22825 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22826 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22827 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22828 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22829 _NL_WABALTMON_12): New enum constants.
22830 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22831 wab_alt_mon, and ab_alt_mon_defined members.
22832 (time_output): Output ab_alt_mon and wab_alt_mon members.
22833 (time_read): Read them, initialize them as copies of abmon and wabmon
22834 respectively if they are missing, initialize ab_alt_mon_defined.
22835 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22836 * locale/programs/locfile-kw.h: Regenerate.
22837 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22838 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22839 and ru_RU.UTF-8.
22840 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22841 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22842 (__strftime_internal): Handle %Ob and %Oh formats.
22843 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22844 (__strptime_internal): Handle %Ob and %Oh formats.
22845 * time/tst-strptime.c (day_tests): Add more tests to parse different
22846 forms of month names including the new %Ob format specifier.
22847
22848 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22849
22850 [BZ #10871]
22851 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22852 define them as the same as primary full month names explicitly.
22853 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22854 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22855 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22856 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22857 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22858 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22859 _NL_WALTMON_12): New enum constants.
22860 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22861 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22862 macros.
22863 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22864 walt_mon, and alt_mon_defined members.
22865 (time_output): Output alt_mon and walt_mon members.
22866 (time_read): Read them, initialize them as copies of mon and wmon
22867 respectively if they are missing, initialize alt_mon_defined.
22868 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22869 * locale/programs/locfile-kw.h: Regenerate.
22870 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22871 * localedata/tst-langinfo.c (map): Add tests for the new constants
22872 ALTMON_1 .. ALTMON_12.
22873 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22874 and pl_PL.UTF-8.
22875 * time/strftime_l.c (f_altmonth): New macro.
22876 (__strftime_internal): Handle %OB format.
22877 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22878 (__strptime_internal): Handle %OB format.
22879 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22880 of month names including the new %OB format specifier.
22881
22882 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22883
22884 [BZ #22685]
22885 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22886 from ABORT_TRANSACTION.
22887 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22888 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22889 ABORT_TRANSACTION_IMPL): Likewise.
22890 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22891 Linux code, but remove the code that aborts transactions.
22892
22893 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22894
22895 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22896
22897 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22898
22899 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22900 in date: "2004-14-09" should be "2004-09-14".
22901 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22902 "2003-15-09" should be "2003-09-15".
22903
22904 2018-01-18 Arjun Shankar <arjun@redhat.com>
22905
22906 [BZ #22343]
22907 [BZ #22774]
22908 CVE-2018-6485
22909 CVE-2018-6551
22910 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22911 after padding.
22912 (_int_memalign): check for integer overflow before calling
22913 _int_malloc.
22914 * malloc/tst-malloc-too-large.c: New test.
22915 * malloc/Makefile: Add tst-malloc-too-large.
22916
22917 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22918
22919 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22920 in date: "2017-24-07" should be "2017-07-24".
22921 * localedata/locales/mai_IN: Likewise.
22922 * localedata/locales/mai_NP: Likewise.
22923
22924 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22925
22926 * po/ru.po: Update translations.
22927
22928 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22929
22930 [BZ #22719]
22931 * sysdeps/hppa/backtrace.c: New file.
22932
22933 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22934
22935 [BZ #22715]
22936 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22937 align La_x86_64_retval to VEC_SIZE.
22938
22939 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22940
22941 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22942 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22943
22944 2018-01-16 Florian Weimer <fweimer@redhat.com>
22945
22946 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22947 Move tst-thread-exit-clobber ...
22948 [$(CXX)] (tests-unsupported): ... to here.
22949
22950 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22951
22952 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22953 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22954 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22955 (_dl_aarch64_cap_flags): Update.
22956 (_DL_HWCAP_COUNT): Update.
22957
22958 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22959
22960 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22961 (_DL_HWCAP_LAST): Remove.
22962 (_DL_HWCAP_COUNT): Move to ...
22963 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22964 (_DL_HWCAP_COUNT): ... here.
22965
22966 2018-01-16 Florian Weimer <fweimer@redhat.com>
22967
22968 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22969 mode with GNU extensions.
22970
22971 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22972
22973 * elf/elf.h (NT_ARM_SVE): Define.
22974
22975 2018-01-15 Florian Weimer <fweimer@redhat.com>
22976
22977 [BZ #22636]
22978 * nptl/tst-minstack-throw.cc: New file.
22979 * nptl/Makefile (tests): Add tst-minstack-throw.
22980 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22981 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22982
22983 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22984
22985 * scripts/build-many-glibcs.py (Context.checkout): Default
22986 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22987 version to 1.1.0.
22988
22989 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22990
22991 [BZ #22707]
22992 * elf/elf.h (DF_1_STUB): Define.
22993 (DF_1_PIE): Define.
22994
22995 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22996
22997 [BZ #22697]
22998 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22999 Do not add 0.5 to integer or out-of-range arguments.
23000
23001 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23002
23003 * po/bg.po: Update translations.
23004 * po/cs.po: Likewise.
23005 * po/de.po: Likewise.
23006 * po/ko.po: Likewise.
23007 * po/pl.po: Likewise.
23008 * po/sv.po: Likewise.
23009 * po/uk.po: Likewise.
23010 * po/vi.po: Likewise.
23011
23012 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23013
23014 * aarch64/start.S (_start): Use __wrap_main.
23015 (__wrap_main): New local symbol.
23016
23017 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23018
23019 [BZ #22679]
23020 CVE-2018-1000001
23021 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23022 generic_getcwd if the path returned by getcwd syscall is not absolute.
23023 * io/tst-getcwd-abspath.c: New test.
23024 * io/Makefile (tests): Add tst-getcwd-abspath.
23025
23026 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23027
23028 * malloc/malloc.c (malloc_consolidate): Add size check.
23029
23030 2018-01-12 Florian Weimer <fweimer@redhat.com>
23031
23032 * support/write_message.c (write_message): Preserve errno.
23033 * support/check.c (print_failure): Likewise.
23034 * support/support_test_verify_impl.c (support_test_verify_impl):
23035 Likewise.
23036 * support/support_test_compare_failure.c
23037 (support_test_compare_failure): Likewise.
23038
23039 2018-01-12 Florian Weimer <fweimer@redhat.com>
23040
23041 [BZ #22701]
23042 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23043 Prevent installation of libnsl.so.
23044 (libnsl-inhibit-o): Do not build (or install) static libraries.
23045
23046 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23047
23048 [BZ #22657]
23049 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23050 before the day number which may produce a double space.
23051 (date_fmt): Likewise.
23052
23053 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23054
23055 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23056 instead of fegetenv.
23057
23058 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23059
23060 [BZ #22702]
23061 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23062 comment to say exceptions are discarded.
23063 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23064 __fegetenv.
23065 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23066 be enabled.
23067
23068 2018-01-11 Florian Weimer <fweimer@redhat.com>
23069
23070 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23071 and error message.
23072
23073 2018-01-11 Florian Weimer <fweimer@redhat.com>
23074
23075 [BZ #22636]
23076 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23077 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23078
23079 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23080
23081 [BZ #22693]
23082 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23083 negative arguments in test for NaN or infinity argument.
23084
23085 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23086
23087 * po/libc.pot: Regenerate.
23088
23089 2018-01-10 Florian Weimer <fweimer@redhat.com>
23090
23091 [BZ #22636]
23092 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23093 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23094
23095 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23096
23097 * hurd/hurd/fd.h: Include <fcntl.h>
23098 (__hurd_at_flags): New function.
23099 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23100 with call to __hurd_at_flags.
23101 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23102 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23103 __faccessat
23104 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23105 (__access_noerrno): Use __faccessat_common instead of access_common.
23106 (__access): Likewise.
23107 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23108 with a call to __faccessat.
23109 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23110 (__faccessat_common): ... this. Move implementation of __access into it when
23111 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23112 reauthenticate_cwdir_at helper to implement AT mechanism.
23113 (__faccessat_noerrno): New function, just calls __faccessat_common.
23114 (__faccessat): New function, just calls __faccessat_common.
23115 (faccessat): Define weak alias.
23116
23117 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23118
23119 [BZ #22691]
23120 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23121 (CFLAGS-s_fmaxmagl.c): New variable.
23122 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23123
23124 [BZ #22690]
23125 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23126 long int for arguments of possibly overflowing addition or
23127 subtraction.
23128 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23129
23130 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23131
23132 [BZ #22688]
23133 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23134 (CFLAGS-e_remainderl.c): New variable.
23135
23136 [BZ #22687]
23137 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23138 variable.
23139 (CFLAGS-s_cacoshl.c): Likewise.
23140 (CFLAGS-s_casinhl.c): Likewise.
23141 (CFLAGS-s_catanl.c): Likewise.
23142 (CFLAGS-s_catanhl.c): Likewise.
23143 (CFLAGS-s_cexpl.c): Likewise.
23144 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23145 (CFLAGS-s_csinhl.c): Likewise.
23146 (CFLAGS-s_clogl.c): Likewise.
23147 (CFLAGS-s_clog10l.c): Likewise.
23148 (CFLAGS-s_csinl.c): Likewise.
23149 (CFLAGS-s_csqrtl.c): Likewise.
23150
23151 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23152 2017-01-09 Svante Signell <svante.signell@gmail.com>
23153
23154 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23155 (_hurd_exec_paths): New function.
23156 * hurd/hurd.h (_hurd_exec): Deprecate function.
23157 (_hurd_exec_paths): Declare function.
23158 * hurd/Versions: Export _hurd_exec_paths.
23159 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23160 (__execve): Use __getcwd to build absolute path, and use
23161 _hurd_exec_paths instead of _hurd_exec.
23162 * sysdeps/mach/hurd/spawni.c: Likewise.
23163 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23164 _hurd_exec.
23165
23166 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23167
23168 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23169 test instead of failing in case of ENOENT returned by posix_openpt.
23170
23171 2018-01-08 Florian Weimer <fweimer@redhat.com>
23172
23173 resolv: Support binary labels in test framework.
23174 * support/resolv_test.c (struct to_be_freed): Remove.
23175 (struct compressed_name): New.
23176 (allocate_compressed_name, ascii_tolower)
23177 (compare_compressed_name): New functions.
23178 (struct resolv_response_builder): Update type of
23179 compression_offsets for use with tsearch. Rempve to_be_freed.
23180 (response_push_pointer_to_free): Remove function.
23181 (resolv_response_add_name): Rewrite using struct compressed_name
23182 and tsearch instead of hsearch_r.
23183 (response_builder_allocate): Remove initialization of
23184 compression_offsets.
23185 (response_builder_free): Update for removal of to_be_freed. Use
23186 tdestroy instead of hdestroy_r.
23187 * resolv/Makefile (tests): Add tst-resolv-binary.
23188 (tst-resolv-binary): Link with -lresolv -lpthread.
23189
23190 2018-01-08 Florian Weimer <fweimer@redhat.com>
23191
23192 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23193 time. Pass positive flag instead of negative flag to
23194 support_test_compare_failure.
23195 (support_test_compare_failure): Change negative parameter to
23196 positive.
23197 * support/support_test_compare_failure.c (report)
23198 (support_test_compare_failure): Likewise.
23199 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23200 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23201
23202 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23203
23204 [BZ #22637]
23205 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23206 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23207 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23208 stacksize.
23209 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23210
23211 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23212
23213 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23214 Add s_sincosf-sse2 and s_sincosf-fma.
23215 (CFLAGS-s_sincosf-fma.c): New.
23216 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23217 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23218 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23219 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23220 __sincosf is defined.
23221
23222 2018-01-08 Florian Weimer <fweimer@redhat.com>
23223
23224 * nptl/tst-thread-exit-clobber.cc: New file.
23225 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23226 C++11 mode.
23227 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23228 (tests): Add tst-thread-exit-clobber.
23229 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23230
23231 2018-01-08 Florian Weimer <fweimer@redhat.com>
23232
23233 * support/check.h (support_static_assert): Define.
23234 (TEST_COMPARE): Use it.
23235
23236 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23237
23238 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23239 [!__RLIM_T_MATCHES_RLIM64_T]
23240 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23241 __getrlimit64. Add libc_hidden_weak.
23242
23243 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23244
23245 * elf/elf.h (R_RISCV_NONE): New define.
23246 (R_RISCV_32): Likewise.
23247 (R_RISCV_64): Likewise.
23248 (R_RISCV_RELATIVE): Likewise.
23249 (R_RISCV_COPY): Likewise.
23250 (R_RISCV_JUMP_SLOT): Likewise.
23251 (R_RISCV_TLS_DTPMOD32): Likewise.
23252 (R_RISCV_TLS_DTPMOD64): Likewise.
23253 (R_RISCV_TLS_DTPREL32): Likewise.
23254 (R_RISCV_TLS_DTPREL64): Likewise.
23255 (R_RISCV_TLS_TPREL32): Likewise.
23256 (R_RISCV_TLS_TPREL64): Likewise.
23257 * Makerules (make-link-multidir): Make directories before linking into
23258 them.
23259 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23260 define.
23261 (VDSO_HASH_LINUX_4_15): Likewise.
23262 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23263 in subdirectories of lib.
23264 * nptl/Makefile (/librt.so): Always depend on
23265 "$(shared-thread-library)".
23266
23267 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23268
23269 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23270 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23271 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23272 (___tls_get_addr).
23273 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23274 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23275 "-O2 -march=i686".
23276 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23277 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23278 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23279 * sysdeps/gnu/glob-lstat-compat.c: New file.
23280 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23281 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23282
23283 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23284
23285 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23286 Reserve 16 chars to reloc_addr before calling _itoa_word.
23287
23288 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23289
23290 [BZ #22678]
23291 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23292 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23293
23294 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23295 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23296
23297 * resource/tst-getrlimit.c: Add copyright header.
23298
23299 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23300 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23301
23302 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23303 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23304 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23305 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23306 instead.
23307 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23308 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23309 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23310 RLIM64_INFINITY): Fix values to match the kernel ones.
23311 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23312 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23313 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23314 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23315 getrlimit64@@GLIBC_2_27.
23316 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23317 and setrlimit64.
23318 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23319 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23320 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23321 setrlimit, getrlimit64 and setrlimit64.
23322
23323 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23324
23325 [BZ #22648]
23326 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23327 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23328
23329 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23330
23331 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23332 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23333 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23334
23335 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23336
23337 [BZ #15479]
23338 [BZ #22666]
23339 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23340 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23341
23342 [BZ #15479]
23343 [BZ #22665]
23344 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23345 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23346 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23347 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23348
23349 2018-01-04 Florian Weimer <fweimer@redhat.com>
23350
23351 [BZ #22667]
23352 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23353 Align the stack before calling exit.
23354 * stdlib/tst-makecontext-align.c: New file.
23355 * stdlib/Makefile (tests): Add tst-makecontext-align.
23356
23357 2018-01-04 Florian Weimer <fweimer@redhat.com>
23358
23359 Add support for calling dlvsym from libc.so.
23360 * include/dlfcn.h (__libc_dlvsym): Declare.
23361 * elf/Makefile (tests-static-internal): Add
23362 tst-libc_dlvsym-static.
23363 (tests-internal): Add tst-libc_dlvsym.
23364 (modules-names): Add tst-libc_dlvsym-dso.
23365 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23366 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23367 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23368 object tst-libc_dlvsym-dso.so needs to be built before running
23369 these tests.
23370 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23371 * elf/Versions: Export __libc_dlvsym.
23372 * elf/dl-libc.c (struct do_dlvsym_args): New.
23373 (do_dlvsym, __libc_dlvsym): New functions.
23374 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23375 (_dl_open_hook2): New variable.
23376 (__libc_register_dl_open_hook): Set it.
23377 * elf/tst-libc_dlvsym-dso.c: New file.
23378 * elf/tst-libc_dlvsym-static.c: Likewise.
23379 * elf/tst-libc_dlvsym.c: Likewise.
23380 * elf/tst-libc_dlvsym.h: Likewise.
23381
23382 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23383
23384 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23385 include <sys/mount.h>.
23386
23387 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23388
23389 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23390 Add __NO_MATH_ERRNO__ check.
23391
23392 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23393
23394 * sysdeps/mips/mips32/libm-test-ulps: Update.
23395 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23396
23397 2018-01-02 Florian Weimer <fweimer@redhat.com>
23398
23399 * misc/tst-pselect.c: Add copyright header.
23400
23401 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23402
23403 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23404 comment.
23405 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23406 comment.
23407 (settrlimit): Rename into setrlimit.
23408 (__sttrlimit): Rename into __setrlimit.
23409
23410 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23411 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23412 never defined in that case.
23413
23414 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23415
23416 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23417
23418 * sysdeps/arm/libm-test-ulps: Update.
23419
23420 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23421 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23422
23423 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23424
23425 * NEWS: Add cosf and sincosf to list of optimized functions.
23426
23427 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23428
23429 [BZ #22660]
23430 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23431 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23432 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23433 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23434
23435 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23436
23437 [BZ #22433]
23438 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23439
23440 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23441 making a copy of it.
23442
23443 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23444
23445 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23446 trailing whitespace removed.
23447 * scripts/config.guess: Update to version 2018-01-01.
23448 * scripts/config.sub: Update to version 2018-01-01.
23449 * scripts/move-if-change: Update from gnulib.
23450
23451 * NEWS: Update copyright dates.
23452 * catgets/gencat.c (print_version): Likewise.
23453 * csu/version.c (banner): Likewise.
23454 * debug/catchsegv.sh: Likewise.
23455 * debug/pcprofiledump.c (print_version): Likewise.
23456 * debug/xtrace.sh (do_version): Likewise.
23457 * elf/ldconfig.c (print_version): Likewise.
23458 * elf/ldd.bash.in: Likewise.
23459 * elf/pldd.c (print_version): Likewise.
23460 * elf/sotruss.sh: Likewise.
23461 * elf/sprof.c (print_version): Likewise.
23462 * iconv/iconv_prog.c (print_version): Likewise.
23463 * iconv/iconvconfig.c (print_version): Likewise.
23464 * locale/programs/locale.c (print_version): Likewise.
23465 * locale/programs/localedef.c (print_version): Likewise.
23466 * login/programs/pt_chown.c (print_version): Likewise.
23467 * malloc/memusage.sh (do_version): Likewise.
23468 * malloc/memusagestat.c (print_version): Likewise.
23469 * malloc/mtrace.pl: Likewise.
23470 * manual/libc.texinfo: Likewise.
23471 * nptl/version.c (banner): Likewise.
23472 * nscd/nscd.c (print_version): Likewise.
23473 * nss/getent.c (print_version): Likewise.
23474 * nss/makedb.c (print_version): Likewise.
23475 * posix/getconf.c (main): Likewise.
23476 * scripts/test-installation.pl: Likewise.
23477 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23478
23479 * All files with FSF copyright notices: Update copyright dates
23480 using scripts/update-copyrights.
23481 * locale/programs/charmap-kw.h: Regenerated.
23482 * locale/programs/locfile-kw.h: Likewise.
23483
23484 2017-12-31 Zack Weinberg <zackw@panix.com>
23485
23486 * libio/bits/libio-ldbl.h: Correct check for improper
23487 inclusion. Add own multiple include guard.
23488
23489 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23490 Dmitry V. Levin <ldv@altlinux.org>
23491
23492 [BZ #22625]
23493 CVE-2017-16997
23494 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23495 string token expansion. Check for NULL pointer or empty string possibly
23496 returned by expand_dynamic_string_token.
23497 (decompose_rpath): Check for empty path after dynamic string
23498 token expansion.
23499
23500 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23501
23502 [BZ #22433]
23503 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23504
23505 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23506 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23507 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23508 and PTRACE_SYSCALL.
23509 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23510 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23511 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23512 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23513 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23514 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23515
23516 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23517 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23518 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23519 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23520 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23521 bits/ptrace-shared.h.
23522 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23523 <bits/ptrace-shared.h>.
23524 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23525 __ptrace_peeksiginfo_flags, ptrace): Remove.
23526 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23527 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23528 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23529 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23530 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23531
23532 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23533
23534 [BZ #17804]
23535 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23536 end of the loop. Improve comments.
23537
23538 2017-12-29 Zack Weinberg <zackw@panix.com>
23539
23540 [BZ #22615]
23541 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23542 might be set on success.
23543
23544 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23545
23546 [BZ #22611]
23547 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23548 is unchanged on success.
23549
23550 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23551
23552 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23553 updated.
23554 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23555 expand_dynamic_string_token): Likewise.
23556 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23557 is_path argument.
23558
23559 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23560 contains ':'.
23561
23562 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23563 is set and name contains ':', and all code depending on these checks.
23564
23565 2017-12-24 Zack Weinberg <zackw@panix.com>
23566
23567 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23568 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23569 respectively.
23570 * libio/libio.h: Rename the original version of this file to
23571 libio/bits/libio.h. Error out if not included by stdio.h or the
23572 stub libio.h.
23573 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23574 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23575 if not included by bits/libio.h or the stub _G_config.h.
23576 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23577 sysdeps/unix/sysv/linux/bits. Error out if not included by
23578 bits/libio.h or the stub _G_config.h.
23579 * libio/stdio.h: Include bits/libio.h, not libio.h.
23580 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23581 well as libio.h and _G_config.h.
23582
23583 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23584 * libio/strfile.h, stdio-common/vfscanf.c
23585 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23586 Include stdio.h, not _G_config.h nor libio.h.
23587 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23588 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23589
23590 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23591
23592 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23593
23594 [BZ #22347]
23595 * stdlib/getrandom.c (getrandom): Fix comment.
23596 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23597
23598 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23599
23600 [BZ #21161]
23601 * manual/arith.texi (strtoul): Fix a typo.
23602
23603 [BZ #22596]
23604 * manual/arith.texi (finite): Fix the description of the return
23605 value.
23606
23607 2017-12-22 Eric Blake <ebb9@byu.net>
23608
23609 Avoid gcc warnings on cygwin
23610 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23611 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23612 Avoid unused variable.
23613
23614 2017-12-22 Florian Weimer <fweimer@redhat.com>
23615
23616 * io/Makefile (routines): Add copy_file_range.
23617 (tests): Add tst-copy_file_range.
23618 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23619 * io/Versions (GLIBC_2.27): Export copy_file_range.
23620 * io/copy_file_range-compat.c: New file.
23621 * io/copy_file_range.c: Likewise.
23622 * io/tst-copy_file_range-compat.c: Likewise.
23623 * io/tst-copy_file_range.c: Likewise.
23624 * manual/llio.texi (Copying File Data): New section.
23625 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23626 * support/Makefile (libsupport-routines): Add support-xfstat,
23627 xftruncate, xlseek.
23628 * support/support-xfstat.c: New file.
23629 * support/xftruncate.c: Likewise.
23630 * support/xlseek.c: Likewise.
23631 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23632 * sysdeps/unix/sysv/linux/**.abilist: Update.
23633 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23634
23635 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23636
23637 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23638 disable-multi-arch variant to aarch64-linux-gnu.
23639
23640 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23641
23642 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23643 trailing whitespace removed.
23644 * scripts/config.guess: Update to version 2017-12-17.
23645 * scripts/config.sub: Update to version 2017-11-23.
23646 * scripts/install-sh: Update to version 2017-09-23.17.
23647 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23648
23649 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23650
23651 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23652 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23653 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23654 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23655 * sysdeps/tile/crtn.S: Likewise.
23656 * sysdeps/tile/dl-start.S (_start): Likewise.
23657 * sysdeps/tile/dl-trampoline.S: Likewise.
23658 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23659 * sysdeps/tile/start.S (_start): Likewise.
23660 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23661 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23662 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23663 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23664 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23665 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23666 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23667
23668 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23669 comment.
23670 * sysdeps/tile/preconfigure: Remove tilegx folder.
23671 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23672 * sysdeps/tile/Implies: ... here.
23673 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23674 * sysdeps/tile/Makefile: ... here.
23675 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23676 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23677 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23678 * sysdeps/tile/bits/wordsize.h: ... here.
23679 * sysdeps/tile/tilegx/*: Move to ...
23680 * sysdeps/tile/*: ... here.
23681 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23682 * sysdeps/tile/tilegx32/Implies: ... here.
23683 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23684 * sysdeps/tile/tilegx64/Implies: ... here.
23685 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23686 to ...
23687 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23688 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23689 * sysdeps/unix/sysv/linux/tile/*: ... here.
23690 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23691 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23692 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23693 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23694
23695 * README: Remove tilepro-*-linux-gnu from supported architecture.
23696 * scripts/build-many-glibcs.py: Likewise.
23697 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23698 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23699 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23700 elf_machine_matches_host, elf_machine_dynamic,
23701 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23702 howto, elf_machine_rela): Likewise.
23703 * sysdeps/tile/dl-start.S (_start): Likewise.
23704 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23705 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23706 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23707 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23708 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23709 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23710 Likewise.
23711 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23712 * sysdeps/tile/preconfigure: Likewise.
23713 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23714 POINTER_CHK_GUARD): Likewise.
23715 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23716 * sysdeps/tile/start.S (_start): Likewise.
23717 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23718 Likewise.
23719 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23720 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23721 CMOVNEZ): Remove.
23722 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23723 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23724 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23725 Likewise.
23726 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23727 * sysdeps/tile/tilepro/Implies: Remove file.
23728 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23729 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23730 * sysdeps/tile/tilepro/memchr.c: Likewise.
23731 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23732 * sysdeps/tile/tilepro/memset.c: Likewise.
23733 * sysdeps/tile/tilepro/memusage.h: Likewise.
23734 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23735 * sysdeps/tile/tilepro/strchr.c: Likewise.
23736 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23737 * sysdeps/tile/tilepro/strlen.c: Likewise.
23738 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23739 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23740 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23741 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23742 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23743 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23744 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23745 Likewise.
23746 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23747 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23748 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23749 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23750 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23751 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23752 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23753 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23754 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23755 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23756 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23757 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23758 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23759 tilepro mention in comment.
23760
23761 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23762 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23763 * nptl/pthread_join_common.c: New file: common function used on
23764 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23765 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23766 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23767 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23768 (cleanup): Move definition to pthread_join_common.c.
23769 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23770 Remove superflous checks.
23771 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23772 Likewise.
23773
23774 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23775
23776 * sysdeps/aarch64/libm-test-ulps: Update.
23777
23778 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23779
23780 * sysdeps/aarch64/memset.S (MEMSET): Define.
23781
23782 2017-12-20 Florian Weimer <fweimer@redhat.com>
23783
23784 [BZ #22635]
23785 nptl: Provide full implementation of pthread_self in libc.so.
23786 * nptl/Makefile (routines): Add pthread_self.
23787 (libpthread-routines): Replace pthread_self with
23788 compat-pthread_self.
23789 * nptl/forward.c (pthread_self): Remove.
23790 * nptl/nptl-init.c (pthread_functions): Do not initialize
23791 ptr_pthread_self.
23792 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23793 * nptl/compat-pthread_self.c: New file.
23794 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23795 Remove ptr_pthread_self.
23796
23797 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23798
23799 * posix/regcomp.c: Fix spelling in comments.
23800 * posix/regex.h: Likewise.
23801 * posix/regex_internal.c: Likewise.
23802 * posix/regexec.c: Likewise.
23803
23804 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23805
23806 [BZ #22377]
23807 * math/Makefile [C++] (tests): Add test for iseqsig.
23808 * math/math.h [C++] (iseqsig): New implementation, which does
23809 not rely on __MATH_TG/__builtin_types_compatible_p.
23810 * math/test-math-iseqsig.cc: New file.
23811 * sysdeps/powerpc/powerpc64le/Makefile
23812 (CFLAGS-test-math-iseqsig.cc): New variable.
23813
23814 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23815
23816 * elf/dl-load.c (is_trusted_path): Remove.
23817 (fillin_rpath): Remove check_trusted argument and its use,
23818 all callers changed.
23819
23820 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23821
23822 [BZ #22630]
23823 * Makeconfig (link-pie-before-libc): Replace -pie with
23824 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23825 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23826 (tst-dlopen-aout-no-pie): New.
23827 (LDFLAGS-tst-prelink): Removed.
23828 (tst-prelink-no-pie): New.
23829 (LDFLAGS-tst-main1): Removed.
23830 (tst-main1-no-pie): New.
23831 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23832 (tst-gmon-no-pie): New.
23833
23834 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23835
23836 * manual/install.texi: Document that --enable-static-pie
23837 implies PIE.
23838 * INSTALL: Regenerated.
23839
23840 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23841
23842 [BZ #21309]
23843 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23844 unsigned.
23845
23846 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23847
23848 Revert:
23849
23850 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23851
23852 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23853
23854 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23855
23856 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23857 <errno.h>. Include "eexp.tbl".
23858 (half): New constant.
23859 (one): Likewise.
23860 (__ieee754_exp): Rewrite.
23861 (__slowexp): Remove prototype.
23862 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23863 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23864 * sysdeps/i386/fpu/slowexp.c: Likewise.
23865 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23866 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23867 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23868 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23869 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23870 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23871 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23872 comment.
23873 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23874 (CPPFLAGS-slowexp.c): Remove variable.
23875 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23876 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23877 (CFLAGS-slowexp-fma.c): Remove variable.
23878 (CFLAGS-slowexp-fma4.c): Likewise.
23879 (CFLAGS-slowexp-avx.c): Likewise.
23880 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23881 define as macro.
23882 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23883 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23884 * math/Makefile (type-double-routines): Remove slowexp.
23885 * manual/probes.texi (slowexp_p6): Remove.
23886 (slowexp_p32): Likewise.
23887
23888 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23889
23890 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23891 arithmetic.
23892
23893 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23894
23895 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23896
23897 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23898
23899 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23900
23901 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23902 <errno.h>. Include "eexp.tbl".
23903 (half): New constant.
23904 (one): Likewise.
23905 (__ieee754_exp): Rewrite.
23906 (__slowexp): Remove prototype.
23907 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23908 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23909 * sysdeps/i386/fpu/slowexp.c: Likewise.
23910 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23911 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23912 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23913 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23914 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23915 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23916 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23917 comment.
23918 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23919 (CPPFLAGS-slowexp.c): Remove variable.
23920 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23921 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23922 (CFLAGS-slowexp-fma.c): Remove variable.
23923 (CFLAGS-slowexp-fma4.c): Likewise.
23924 (CFLAGS-slowexp-avx.c): Likewise.
23925 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23926 define as macro.
23927 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23928 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23929 * math/Makefile (type-double-routines): Remove slowexp.
23930 * manual/probes.texi (slowexp_p6): Remove.
23931 (slowexp_p32): Likewise.
23932
23933 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23934 James Clarke <jrtc27@jrtc27.com>
23935
23936 [BZ #22603]
23937 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23938 addition.
23939
23940 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23941
23942 [BZ #22605]
23943 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23944 code.
23945
23946 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23947
23948 [BZ #22563]
23949 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23950 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23951 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23952 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23953 to feature_1.
23954
23955 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23956
23957 [BZ #22563]
23958 * bits/types/__cancel_jmp_buf_tag.h: New file.
23959 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23960 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23961 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23962 * nptl/Makefile (headers): Add
23963 bits/types/__cancel_jmp_buf_tag.h.
23964 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23965 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23966 * sysdeps/nptl/pthread.h: Include
23967 <bits/types/__cancel_jmp_buf_tag.h>.
23968 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23969 __cancel_jmp_buf.
23970 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23971
23972 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23973
23974 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23975 --enable-static-pie variants to x86_64, x32 and i686.
23976
23977 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23978
23979 [BZ #22631]
23980 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23981 argument for attrubutes. All callers changed.
23982 (__inline_mathop1): Likewise. All callers changed.
23983 (__inline_mathop): Likewise. All callers changed.
23984 [__USE_MISC] (scalbn): Use __inline_forward instead of
23985 __inline_forward_c.
23986 [__USE_ISOC99] (scalbln): Likewise.
23987 [__USE_ISOC99] (nearbyint): Likewise.
23988 [__USE_ISOC99] (lrint): Likewise.
23989 [__USE_MISC] (scalbnf): Likewise.
23990 [__USE_ISOC99] (scalblnf): Likewise.
23991 [__USE_ISOC99] (nearbyintf): Likewise.
23992 [__USE_ISOC99] (lrintf): Likewise.
23993 [__USE_MISC] (scalbnl): Likewise.
23994 [__USE_ISOC99] (scalblnl): Likewise.
23995 [__USE_ISOC99] (nearbyintl): Likewise.
23996 [__USE_ISOC99] (lrintl): Likewise.
23997 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23998 __inline_mathop and __m81_defun changed.
23999
24000 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24001 CPU or FPU for ARM hard-float configurations.
24002
24003 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24004
24005 * nptl/tst-attr3.c: Include <libc-diag.h>.
24006 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24007
24008 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24009
24010 * string/tester.c (test_strncat): Also disable -Warray-bounds
24011 warnings for two tests.
24012
24013 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24014
24015 [BZ #22614]
24016 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24017 $(cc-pie-default) == yes.
24018 * config.make.in (cc-pie-default): New.
24019 * configure.ac (libc_cv_pie_default): Renamed to ...
24020 (libc_cv_cc_pie_default): This.
24021 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24022 * configure: Regenerated.
24023
24024 2017-12-18 Florian Weimer <fweimer@redhat.com>
24025
24026 [BZ #20204]
24027 ld.so: Harden dl-libc/libdl hooks.
24028 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24029 (rtld_active): New function.
24030 * dlfcn/dladdr.c (__dladdr): Call it.
24031 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24032 * dlfcn/dlclose.c (__dlcose): Likewise.
24033 * dlfcn/dlerror.c (__dlerror): Likewise.
24034 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24035 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24036 * dlfcn/dlopen.c (__dlopen): Likewise.
24037 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24038 * dlfcn/dlsym.c (__dlsym): Likewise.
24039 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24040 * libio/vtables.c (_IO_vtable_check): Likewise.
24041 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24042 (__libc_dlclose): Likewise.
24043 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24044 assignment.
24045
24046 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24047
24048 [BZ #22446]
24049 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24050 buffers for readlink input and output.
24051
24052 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24053
24054 [BZ #22624]
24055 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24056 inhibit_stack_protector.
24057
24058 [BZ #22624]
24059 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24060 inhibit_stack_protector.
24061
24062 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24063
24064 [BZ #22627]
24065 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24066 code and invocation.
24067
24068 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24069
24070 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24071
24072 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24073
24074 [BZ #22505]
24075 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24076
24077 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24078
24079 * sysdeps/s390/fpu/libm-test-ulps: Update.
24080
24081 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24082
24083 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24084
24085 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24086
24087 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24088 constants to s_sincosf.h file.
24089 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24090 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24091 implementation.
24092 * sysdeps/ieee754/flt-32/s_sincosf.h:
24093 New file.
24094
24095 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24096
24097 [BZ #14681]
24098 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24099 before mtrace.
24100
24101 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24102
24103 [BZ #19574]
24104 * INSTALL: Regenerated.
24105 * Makeconfig (real-static-start-installed-name): New.
24106 (pic-default): Updated for --enable-static-pie.
24107 (pie-default): New for --enable-static-pie.
24108 (default-pie-ldflag): Likewise.
24109 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24110 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24111 Replace $(static-start-installed-name) with
24112 $(real-static-start-installed-name).
24113 (+prectorT): Updated for --enable-static-pie.
24114 (+postctorT): Likewise.
24115 (CFLAGS-.o): Add $(pie-default).
24116 (CFLAGS-.op): Likewise.
24117 * NEWS: Mention --enable-static-pie.
24118 * config.h.in (ENABLE_STATIC_PIE): New.
24119 * configure.ac (--enable-static-pie): New configure option.
24120 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24121 (have-static-pie): Likewise.
24122 Enable static PIE if linker supports --no-dynamic-linker.
24123 (ENABLE_STATIC_PIE): New AC_DEFINE.
24124 (enable-static-pie): New LIBC_CONFIG_VAR.
24125 * configure: Regenerated.
24126 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24127 gr$(start-installed-name) for --enable-static-pie.
24128 (extra-objs): Likewise.
24129 (install-lib): Likewise.
24130 (extra-objs): Add static-reloc.o and static-reloc.os
24131 ($(objpfx)$(start-installed-name)): Also depend on
24132 $(objpfx)static-reloc.o.
24133 ($(objpfx)r$(start-installed-name)): New.
24134 ($(objpfx)g$(start-installed-name)): Also depend on
24135 $(objpfx)static-reloc.os.
24136 ($(objpfx)gr$(start-installed-name)): New.
24137 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24138 in libc.a.
24139 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24140 initimage.
24141 * csu/static-reloc.c: New file.
24142 * elf/Makefile (routines): Add dl-reloc-static-pie.
24143 (elide-routines.os): Likewise.
24144 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24145 (tst-tls1-static-non-pie-no-pie): New.
24146 * elf/dl-reloc-static-pie.c: New file.
24147 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24148 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24149 STATIC_PIE_BOOTSTRAP.
24150 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24151 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24152 (tests-static): Likewise.
24153 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24154 (tst-gmon-static-no-pie): New.
24155 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24156 (CRT-tst-gmon-static-pie): Likewise.
24157 (tst-gmon-static-pie-ENV): Likewise.
24158 (tests-special): Likewise.
24159 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24160 (clean-tst-gmon-static-pie-data): Likewise.
24161 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24162 * gmon/tst-gmon-static-pie.c: New file.
24163 * manual/install.texi: Document --enable-static-pie.
24164 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24165 (_dl_get_dl_main_map): Likewise.
24166 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24167 * sysdeps/x86_64/configure.ac: Likewise.
24168 * sysdeps/i386/configure: Regenerated.
24169 * sysdeps/x86_64/configure: Likewise.
24170 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24171 (ASFLAGS-.op): Likewise.
24172
24173 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24174
24175 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24176 * posix/tst-mmap-offset.c (fname): Use /tmp.
24177 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24178
24179 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24180
24181 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24182
24183 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24184
24185 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24186 errno.
24187
24188 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24189
24190 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24191 --with-float=hard for arm-linux-gnueabihf configurations.
24192
24193 [BZ #14121]
24194 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24195 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24196 ($(mo-installed)): Use $(objpfx)%.mo.
24197 (realclean): Remove rule.
24198
24199 * po/Makefile (linguas): Remove rule and dependencies.
24200 (linguas.mo): Likewise.
24201 (.PHONY): Do not depend on linguas and linguas.mo.
24202 (podir): Remove variable.
24203 (pofiles): Likewise.
24204 [$(pofiles)] (%.po): Remove rule.
24205
24206 * sysdeps/sparc/sparc32/Makefile
24207 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24208 start-of-line whitespace in argument of echo.
24209 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24210 with whitespace. Generate __wrap_.udiv alias.
24211 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24212 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24213 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24214 * sysdeps/sparc/sparc32/urem.S: Likewise.
24215
24216 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24217
24218 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24219 for aligned inputs.
24220
24221 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24222
24223 * benchtests/bench-strcmp.c: Print output in JSON format.
24224
24225 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24226
24227 2017-12-14 Florian Weimer <fweimer@redhat.com>
24228
24229 [BZ #22607]
24230 CVE-2017-1000409
24231 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24232 the expanded path string.
24233
24234 2017-12-14 Florian Weimer <fweimer@redhat.com>
24235
24236 [BZ #22606]
24237 CVE-2017-1000408
24238 * elf/dl-load.c (system_dirs): Update comment.
24239 (nsystem_dirs_len): Use array_length.
24240 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24241
24242 2017-12-14 Florian Weimer <fweimer@redhat.com>
24243
24244 Simplify compiling most of support/ outside of glibc.
24245 * support/check_addrinfo.c: Include <string.h>.
24246 * support/check_dns_packet.c: Likewise.
24247 * support/check_hostent.c: Likewise.
24248 * support/support_can_chroot.c: Include <support/xunistd.h>.
24249 * support/support_format_addrinfo.c: Include <stdlib.h>
24250 * support/support_format_dns_packet.c: Include <stdbool.h>.
24251 * support/support_format_hostent.c: Include <stdlib.h>.
24252 * support/support_format_netent.c: Likewise.
24253 * support/support_write_string.c: Include <support/xunistd.h>.
24254 * support/xdlfcn.c: Include <stddef.h>.
24255
24256 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24257
24258 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24259
24260 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24261 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24262
24263 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24264 (sysdeps_routines): Add memset-niagara7.
24265 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24266 Likewise.
24267 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24268 file.
24269 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24270 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24271 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24272 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24273 Add niagara7 option.
24274 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24275 memset.
24276
24277 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24278 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24279 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24280 Likewise.
24281 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24282 New file.
24283 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24284 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24285 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24286 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24287 and __memmove_niagara7.
24288 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24289 Add niagara7 option.
24290 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24291 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24292 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24293 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24294 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24295
24296 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24297
24298 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24299 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24300 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24301 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24302
24303 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24304 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24305 _dl_sparc_cap_flags array.
24306 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24307
24308 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24309
24310 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24311 time whenever possible.
24312
24313 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24314
24315 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24316 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24317
24318 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24319
24320 * soft-fp/fmadf4.c: Move to ....
24321 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24322 * soft-fp/fmasf4.c: Move to ....
24323 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24324 * soft-fp/fmatf4.c: Move to ....
24325 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24326 * sysdeps/ieee754/soft-fp/Makefile: New file.
24327 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24328 * sysdeps/arm/preconfigure: Regenerated.
24329 * sysdeps/arm/nofpu/Implies: New file.
24330 * sysdeps/arm/s_fma.c: Remove file.
24331 * sysdeps/arm/s_fmaf.c: Likewise.
24332 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24333 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24334 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24335 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24336 * sysdeps/microblaze/s_fma.c: Remove file.
24337 * sysdeps/microblaze/s_fmaf.c: Likewise.
24338 * sysdeps/mips/mips32/nofpu/Implies: New file.
24339 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24340 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24341 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24342 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24343 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24344 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24345 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24346 implementation.
24347 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24348 * sysdeps/nios2/s_fma.c: Remove file.
24349 * sysdeps/nios2/s_fmaf.c: Likewise.
24350 * sysdeps/sh/nofpu/Implies: New file.
24351 * sysdeps/sh/s_fma.c: Remove file.
24352 * sysdeps/sh/s_fmaf.c: Likewise.
24353 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24354 * sysdeps/tile/s_fma.c: Remove file.
24355 * sysdeps/tile/s_fmaf.c: Likewise.
24356
24357 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24358
24359 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24360 Add s_cosf-sse2 and s_cosf-fma.
24361 (CFLAGS-s_cosf-fma.c): New.
24362 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24363 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24364 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24365
24366 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24367
24368 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24369
24370 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24371
24372 * libio/Makefile (tests): Add tst-bz22415.
24373 (tst-bz22415-ENV): New rule.
24374 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24375 (tests-special): Add tst-bz22415-mem.out.
24376 ($(objpfx)tst-bz22415-mem.out): New rule.
24377 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24378 in case of a successful seek operation.
24379 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24380 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24381 buffer is required.
24382 * libio/tst-bz22415.c: New test.
24383
24384 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24385
24386 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24387
24388 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24389 __IPC_64 to 0 to avoid IPC_64 being set.
24390
24391 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24392
24393 [BZ #22593]
24394 * math/bits/mathcalls.h (nextafter): Remove const.
24395 (nexttoward): Likewise.
24396
24397 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24398
24399 * configure.ac (--with-fp): Remove configure option.
24400 (with_fp_cond): New variable.
24401 (libc_cv_with_fp): New configure test. Use this variable instead
24402 of with_fp.
24403 * configure: Regenerated.
24404 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24405 * manual/install.texi (Configuring and compiling): Remove
24406 --without-fp.
24407 * INSTALL: Regenerated.
24408 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24409 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24410 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24411 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24412 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24413 use --without-fp to configure glibc.
24414
24415 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24416
24417 * manual/locale.texi (nl_langinfo): Fix a typo.
24418
24419 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24420
24421 [BZ #22588]
24422 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24423
24424 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24425
24426 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24427 (CFLAGS-argp-parse.c): Likewise.
24428 (CFLAGS-argp-fmtstream.c): Likewise.
24429 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24430 (CPPFLAGS-sha512-crypt.c): Likewise.
24431 (CPPFLAGS-md5-crypt.c): Likewise.
24432 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24433 (CFLAGS-stack_chk_fail_local.c): Likewise.
24434 (CFLAGS-backtrace.c): Likewise.
24435 (CFLAGS-sprintf_chk.c): Likewise.
24436 (CFLAGS-snprintf_chk.c): Likewise.
24437 (CFLAGS-vsprintf_chk.c): Likewise.
24438 (CFLAGS-vsnprintf_chk.c): Likewise.
24439 (CFLAGS-asprintf_chk.c): Likewise.
24440 (CFLAGS-vasprintf_chk.c): Likewise.
24441 (CFLAGS-obprintf_chk.c): Likewise.
24442 (CFLAGS-dprintf_chk.c): Likewise.
24443 (CFLAGS-vdprintf_chk.c): Likewise.
24444 (CFLAGS-printf_chk.c): Likewise.
24445 (CFLAGS-fprintf_chk.c): Likewise.
24446 (CFLAGS-vprintf_chk.c): Likewise.
24447 (CFLAGS-vfprintf_chk.c): Likewise.
24448 (CFLAGS-gets_chk.c): Likewise.
24449 (CFLAGS-fgets_chk.c): Likewise.
24450 (CFLAGS-fgets_u_chk.c): Likewise.
24451 (CFLAGS-fread_chk.c): Likewise.
24452 (CFLAGS-fread_u_chk.c): Likewise.
24453 (CFLAGS-swprintf_chk.c): Likewise.
24454 (CFLAGS-vswprintf_chk.c): Likewise.
24455 (CFLAGS-wprintf_chk.c): Likewise.
24456 (CFLAGS-fwprintf_chk.c): Likewise.
24457 (CFLAGS-vwprintf_chk.c): Likewise.
24458 (CFLAGS-vfwprintf_chk.c): Likewise.
24459 (CFLAGS-fgetws_chk.c): Likewise.
24460 (CFLAGS-fgetws_u_chk.c): Likewise.
24461 (CFLAGS-read_chk.c): Likewise.
24462 (CFLAGS-pread_chk.c): Likewise.
24463 (CFLAGS-pread64_chk.c): Likewise.
24464 (CFLAGS-recv_chk.c): Likewise.
24465 (CFLAGS-recvfrom_chk.c): Likewise.
24466 (CFLAGS-tst-longjmp_chk.c): Likewise.
24467 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24468 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24469 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24470 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24471 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24472 (CFLAGS-tst-chk1.c): Likewise.
24473 (CFLAGS-tst-chk2.c): Likewise.
24474 (CFLAGS-tst-chk3.c): Likewise.
24475 (CFLAGS-tst-chk4.cc): Likewise.
24476 (CFLAGS-tst-chk5.cc): Likewise.
24477 (CFLAGS-tst-chk6.cc): Likewise.
24478 (CFLAGS-tst-lfschk1.c): Likewise.
24479 (CFLAGS-tst-lfschk2.c): Likewise.
24480 (CFLAGS-tst-lfschk3.c): Likewise.
24481 (CFLAGS-tst-lfschk4.cc): Likewise.
24482 (CFLAGS-tst-lfschk5.cc): Likewise.
24483 (CFLAGS-tst-lfschk6.cc): Likewise.
24484 (CFLAGS-tst-ssp-1.c): Likewise.
24485 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24486 (CFLAGS-scandir64.c): Likewise.
24487 (CFLAGS-scandir-tail.c): Likewise.
24488 (CFLAGS-scandir64-tail.c): Likewise.
24489 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24490 (CFLAGS-dl-tunables.c): Likewise.
24491 (CFLAGS-dl-runtime.c): Likewise.
24492 (CFLAGS-dl-lookup.c): Likewise.
24493 (CFLAGS-dl-iterate-phdr.c): Likewise.
24494 (CFLAGS-vismain.c): Likewise.
24495 (CFLAGS-tst-linkall-static.c): Likewise.
24496 (CFLAGS-tst-linkall-static.c): Likewise.
24497 (CPPFLAGS-dl-load.c): Likewise.
24498 (CFLAGS-ldconfig.c): Likewise.
24499 (CFLAGS-dl-cache.c): Likewise.
24500 (CFLAGS-cache.c): Likewise.
24501 (CFLAGS-rtld.c): Likewise.
24502 (CFLAGS-multiload.c): Likewise.
24503 (CFLAGS-filtmod1.c): Likewise.
24504 (CFLAGS-tst-align.c): Likewise.
24505 (CFLAGS-tst-align2.c): Likewise.
24506 (CFLAGS-tst-alignmod.c): Likewise.
24507 (CFLAGS-tst-alignmod2.c): Likewise.
24508 (CPPFLAGS-tst-execstack.c): Likewise.
24509 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24510 (CFLAGS-tst-latepthreadmod.c): Likewise.
24511 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24512 (CFLAGS-getgrnam_r.c): Likewise.
24513 (CFLAGS-getgrent_r.c): Likewise.
24514 (CFLAGS-getgrent.c): Likewise.
24515 (CFLAGS-fgetgrent.c): Likewise.
24516 (CFLAGS-fgetgrent_r.c): Likewise.
24517 (CFLAGS-putgrent.c): Likewise.
24518 (CFLAGS-initgroups.c): Likewise.
24519 (CFLAGS-getgrgid.c): Likewise.
24520 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24521 (CFLAGS-getsgent.c): Likewise.
24522 (CFLAGS-fgetsgent.c): Likewise.
24523 (CFLAGS-fgetsgent_r.c): Likewise.
24524 (CFLAGS-putsgent.c): Likewise.
24525 (CFLAGS-getsgnam.c): Likewise.
24526 (CFLAGS-getsgnam_r.c): Likewise.
24527 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24528 (CFLAGS-iconv_charmap.c): Likewise.
24529 (CFLAGS-dummy-repertoire.c): Likewise.
24530 (CFLAGS-charmap.c): Likewise.
24531 (CFLAGS-linereader.c): Likewise.
24532 (CFLAGS-simple-hash.c): Likewise.
24533 (CFLAGS-gconv_conf.c): Likewise.
24534 (CFLAGS-iconvconfig.c): Likewise.
24535 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24536 (CFLAGS-gethstbyad.c): Likewise.
24537 (CFLAGS-gethstbynm_r.c): Likewise.
24538 (CFLAGS-gethstbynm.c): Likewise.
24539 (CFLAGS-gethstbynm2_r.c): Likewise.
24540 (CFLAGS-gethstbynm2.c): Likewise.
24541 (CFLAGS-gethstent_r.c): Likewise.
24542 (CFLAGS-gethstent.c): Likewise.
24543 (CFLAGS-rcmd.c): Likewise.
24544 (CFLAGS-getnetbynm_r.c): Likewise.
24545 (CFLAGS-getnetbynm.c): Likewise.
24546 (CFLAGS-getnetbyad_r.c): Likewise.
24547 (CFLAGS-getnetbyad.c): Likewise.
24548 (CFLAGS-getnetent_r.c): Likewise.
24549 (CFLAGS-getnetent.c): Likewise.
24550 (CFLAGS-getaliasent_r.c): Likewise.
24551 (CFLAGS-getaliasent.c): Likewise.
24552 (CFLAGS-getrpcent_r.c): Likewise.
24553 (CFLAGS-getrpcent.c): Likewise.
24554 (CFLAGS-getservent_r.c): Likewise.
24555 (CFLAGS-getservent.c): Likewise.
24556 (CFLAGS-getprtent_r.c): Likewise.
24557 (CFLAGS-getprtent.c): Likewise.
24558 (CFLAGS-either_ntoh.c): Likewise.
24559 (CFLAGS-either_hton.c): Likewise.
24560 (CFLAGS-getnetgrent.c): Likewise.
24561 (CFLAGS-getnetgrent_r.c): Likewise.
24562 (CFLAGS-tst-checks-posix.c): Likewise.
24563 (CFLAGS-tst-sockaddr.c): Likewise.
24564 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24565 (CFLAGS-tst-translit.c): Likewise.
24566 (CFLAGS-tst-gettext2.c): Likewise.
24567 (CFLAGS-tst-codeset.c): Likewise.
24568 (CFLAGS-tst-gettext3.c): Likewise.
24569 (CFLAGS-tst-gettext4.c): Likewise.
24570 (CFLAGS-tst-gettext5.c): Likewise.
24571 (CFLAGS-tst-gettext6.c): Likewise.
24572 * io/Makefile (CFLAGS-open.c): Likewise.
24573 (CFLAGS-open64.c): Likewise.
24574 (CFLAGS-creat.c): Likewise.
24575 (CFLAGS-creat64.c): Likewise.
24576 (CFLAGS-fcntl.c): Likewise.
24577 (CFLAGS-poll.c): Likewise.
24578 (CFLAGS-ppoll.c): Likewise.
24579 (CFLAGS-lockf.c): Likewise.
24580 (CFLAGS-statfs.c): Likewise.
24581 (CFLAGS-fstatfs.c): Likewise.
24582 (CFLAGS-statvfs.c): Likewise.
24583 (CFLAGS-fstatvfs.c): Likewise.
24584 (CFLAGS-fts.c): Likewise.
24585 (CFLAGS-fts64.c): Likewise.
24586 (CFLAGS-ftw.c): Likewise.
24587 (CFLAGS-ftw64.c): Likewise.
24588 (CFLAGS-lockf.c): Likewise.
24589 (CFLAGS-posix_fallocate.c): Likewise.
24590 (CFLAGS-posix_fallocate64.c): Likewise.
24591 (CFLAGS-fallocate.c): Likewise.
24592 (CFLAGS-fallocate64.c): Likewise.
24593 (CFLAGS-read.c): Likewise.
24594 (CFLAGS-write.c): Likewise.
24595 (CFLAGS-test-stat.c): Likewise.
24596 (CFLAGS-test-lfs.c): Likewise.
24597 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24598 (CFLAGS-fputc.c): Likewise.
24599 (CFLAGS-fputwc.c): Likewise.
24600 (CFLAGS-freopen64.c): Likewise.
24601 (CFLAGS-freopen.c): Likewise.
24602 (CFLAGS-fseek.c): Likewise.
24603 (CFLAGS-fseeko64.c): Likewise.
24604 (CFLAGS-fseeko.c): Likewise.
24605 (CFLAGS-ftello64.c): Likewise.
24606 (CFLAGS-ftello.c): Likewise.
24607 (CFLAGS-fwide.c): Likewise.
24608 (CFLAGS-genops.c): Likewise.
24609 (CFLAGS-getc.c): Likewise.
24610 (CFLAGS-getchar.c): Likewise.
24611 (CFLAGS-getwc.c): Likewise.
24612 (CFLAGS-getwchar.c): Likewise.
24613 (CFLAGS-iofclose.c): Likewise.
24614 (CFLAGS-iofflush.c): Likewise.
24615 (CFLAGS-iofgetpos64.c): Likewise.
24616 (CFLAGS-iofgetpos.c): Likewise.
24617 (CFLAGS-iofgets.c): Likewise.
24618 (CFLAGS-iofgetws.c): Likewise.
24619 (CFLAGS-iofputs.c): Likewise.
24620 (CFLAGS-iofputws.c): Likewise.
24621 (CFLAGS-iofread.c): Likewise.
24622 (CFLAGS-iofsetpos64.c): Likewise.
24623 (CFLAGS-iofsetpos.c): Likewise.
24624 (CFLAGS-ioftell.c): Likewise.
24625 (CFLAGS-iofwrite.c): Likewise.
24626 (CFLAGS-iogetdelim.c): Likewise.
24627 (CFLAGS-iogetline.c): Likewise.
24628 (CFLAGS-iogets.c): Likewise.
24629 (CFLAGS-iogetwline.c): Likewise.
24630 (CFLAGS-ioputs.c): Likewise.
24631 (CFLAGS-ioseekoff.c): Likewise.
24632 (CFLAGS-ioseekpos.c): Likewise.
24633 (CFLAGS-iosetbuffer.c): Likewise.
24634 (CFLAGS-iosetvbuf.c): Likewise.
24635 (CFLAGS-ioungetc.c): Likewise.
24636 (CFLAGS-ioungetwc.c): Likewise.
24637 (CFLAGS-oldfileops.c): Likewise.
24638 (CFLAGS-oldiofclose.c): Likewise.
24639 (CFLAGS-oldiofgetpos64.c): Likewise.
24640 (CFLAGS-oldiofgetpos.c): Likewise.
24641 (CFLAGS-oldiofsetpos64.c): Likewise.
24642 (CFLAGS-oldiofsetpos.c): Likewise.
24643 (CFLAGS-peekc.c): Likewise.
24644 (CFLAGS-putc.c): Likewise.
24645 (CFLAGS-putchar.c): Likewise.
24646 (CFLAGS-putwc.c): Likewise.
24647 (CFLAGS-putwchar.c): Likewise.
24648 (CFLAGS-rewind.c): Likewise.
24649 (CFLAGS-wfileops.c): Likewise.
24650 (CFLAGS-wgenops.c): Likewise.
24651 (CFLAGS-oldiofopen.c): Likewise.
24652 (CFLAGS-iofopen.c): Likewise.
24653 (CFLAGS-iofopen64.c): Likewise.
24654 (CFLAGS-oldtmpfile.c): Likewise.
24655 (CFLAGS-tst_putwc.c): Likewise.
24656 * locale/Makefile (CFLAGS-md5.c): Likewise.
24657 (CFLAGS-charmap.c): Likewise.
24658 (CFLAGS-locfile.c): Likewise.
24659 (CFLAGS-charmap-dir.c): Likewise.
24660 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24661 (CFLAGS-getpt.c): Likewise.
24662 (CFLAGS-pt_chown.c): Likewise.
24663 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24664 (CFLAGS-obstack.c): Likewise.
24665 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24666 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24667 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24668 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24669 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24670 (CFLAGS-test-tgmath.c): Likewise.
24671 (CFLAGS-test-tgmath2.c): Likewise.
24672 (CFLAGS-test-tgmath-ret.c): Likewise.
24673 (CFLAGS-test-powl.c): Likewise.
24674 (CFLAGS-test-snan.c): Likewise.
24675 (CFLAGS-test-signgam-finite.c): Likewise.
24676 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24677 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24678 (CFLAGS-test-signgam-uchar.c): Likewise.
24679 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24680 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24681 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24682 (CFLAGS-test-signgam-uint.c): Likewise.
24683 (CFLAGS-test-signgam-uint-init.c): Likewise.
24684 (CFLAGS-test-signgam-uint-static.c): Likewise.
24685 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24686 (CFLAGS-test-signgam-ullong.c): Likewise.
24687 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24688 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24689 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24690 (CFLAGS-test-math-cxx11.cc): Likewise.
24691 (CFLAGS-test-math-isinff.cc): Likewise.
24692 (CFLAGS-test-math-iszero.cc): Likewise.
24693 (CFLAGS-test-math-issignaling.cc): Likewise.
24694 (CFLAGS-test-math-iscanonical.cc): Likewise.
24695 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24696 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24697 (CFLAGS-test-flt-eval-method.c): Likewise.
24698 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24699 (CFLAGS-test-finite-macros.c): Likewise.
24700 * misc/Makefile (CFLAGS-select.c): Likewise.
24701 (CFLAGS-tsearch.c): Likewise.
24702 (CFLAGS-lsearch.c): Likewise.
24703 (CFLAGS-pselect.c): Likewise.
24704 (CFLAGS-readv.c): Likewise.
24705 (CFLAGS-writev.c): Likewise.
24706 (CFLAGS-preadv.c): Likewise.
24707 (CFLAGS-preadv64.c): Likewise.
24708 (CFLAGS-pwritev.c): Likewise.
24709 (CFLAGS-pwritev64.c): Likewise.
24710 (CFLAGS-preadv2.c): Likewise.
24711 (CFLAGS-preadv64v2.c): Likewise.
24712 (CFLAGS-pwritev2.c): Likewise.
24713 (CFLAGS-pwritev64v2.c): Likewise.
24714 (CFLAGS-usleep.c): Likewise.
24715 (CFLAGS-syslog.c): Likewise.
24716 (CFLAGS-error.c): Likewise.
24717 (CFLAGS-getpass.c): Likewise.
24718 (CFLAGS-mkstemp.c): Likewise.
24719 (CFLAGS-mkstemp64.c): Likewise.
24720 (CFLAGS-getsysstats.c): Likewise.
24721 (CFLAGS-getusershell.c): Likewise.
24722 (CFLAGS-err.c): Likewise.
24723 (CFLAGS-tst-tsearch.c): Likewise.
24724 (CFLAGS-msync.c): Likewise.
24725 (CFLAGS-fdatasync.c): Likewise.
24726 (CFLAGS-fsync.c): Likewise.
24727 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24728 (CFLAGS-unwind.c): Likewise.
24729 (CFLAGS-unwind-forcedunwind.c): Likewise.
24730 (CFLAGS-pthread_cancel.c): Likewise.
24731 (CFLAGS-pthread_setcancelstate.c): Likewise.
24732 (CFLAGS-pthread_setcanceltype.c): Likewise.
24733 (CFLAGS-cancellation.c): Likewise.
24734 (CFLAGS-libc-cancellation.c): Likewise.
24735 (CFLAGS-pthread_exit.c): Likewise.
24736 (CFLAGS-forward.c): Likewise.
24737 (CFLAGS-pthread_testcancel.c): Likewise.
24738 (CFLAGS-pthread_join.c): Likewise.
24739 (CFLAGS-pthread_timedjoin.c): Likewise.
24740 (CFLAGS-pthread_once.c): Likewise.
24741 (CFLAGS-pthread_cond_wait.c): Likewise.
24742 (CFLAGS-sem_wait.c): Likewise.
24743 (CFLAGS-sem_timedwait.c): Likewise.
24744 (CFLAGS-fcntl.c): Likewise.
24745 (CFLAGS-lockf.c): Likewise.
24746 (CFLAGS-pread.c): Likewise.
24747 (CFLAGS-pread64.c): Likewise.
24748 (CFLAGS-pwrite.c): Likewise.
24749 (CFLAGS-pwrite64.c): Likewise.
24750 (CFLAGS-wait.c): Likewise.
24751 (CFLAGS-waitpid.c): Likewise.
24752 (CFLAGS-sigwait.c): Likewise.
24753 (CFLAGS-msgrcv.c): Likewise.
24754 (CFLAGS-msgsnd.c): Likewise.
24755 (CFLAGS-tcdrain.c): Likewise.
24756 (CFLAGS-open.c): Likewise.
24757 (CFLAGS-open64.c): Likewise.
24758 (CFLAGS-pause.c): Likewise.
24759 (CFLAGS-recv.c): Likewise.
24760 (CFLAGS-send.c): Likewise.
24761 (CFLAGS-accept.c): Likewise.
24762 (CFLAGS-sendto.c): Likewise.
24763 (CFLAGS-connect.c): Likewise.
24764 (CFLAGS-recvfrom.c): Likewise.
24765 (CFLAGS-recvmsg.c): Likewise.
24766 (CFLAGS-sendmsg.c): Likewise.
24767 (CFLAGS-close.c): Likewise.
24768 (CFLAGS-read.c): Likewise.
24769 (CFLAGS-write.c): Likewise.
24770 (CFLAGS-nanosleep.c): Likewise.
24771 (CFLAGS-sigsuspend.c): Likewise.
24772 (CFLAGS-msync.c): Likewise.
24773 (CFLAGS-fdatasync.c): Likewise.
24774 (CFLAGS-fsync.c): Likewise.
24775 (CFLAGS-pt-system.c): Likewise.
24776 (CFLAGS-tst-cleanup2.c): Likewise.
24777 (CFLAGS-tst-cleanupx2.c): Likewise.
24778 (CFLAGS-flockfile.c): Likewise.
24779 (CFLAGS-ftrylockfile.c): Likewise.
24780 (CFLAGS-funlockfile.c): Likewise.
24781 (CFLAGS-tst-initializers1.c): Likewise.
24782 (CFLAGS-tst-initializers1-c89.c): Likewise.
24783 (CFLAGS-tst-initializers1-c99.c): Likewise.
24784 (CFLAGS-tst-initializers1-c11.c): Likewise.
24785 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24786 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24787 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24788 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24789 (CFLAGS-nscd_getgr_r.c): Likewise.
24790 (CFLAGS-nscd_gethst_r.c): Likewise.
24791 (CFLAGS-nscd_getai.c): Likewise.
24792 (CFLAGS-nscd_initgroups.c): Likewise.
24793 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24794 (CFLAGS-pause.c): Likewise.
24795 (CFLAGS-pread.c): Likewise.
24796 (CFLAGS-pread64.c): Likewise.
24797 (CFLAGS-pwrite.c): Likewise.
24798 (CFLAGS-pwrite64.c): Likewise.
24799 (CFLAGS-sleep.c): Likewise.
24800 (CFLAGS-wait.c): Likewise.
24801 (CFLAGS-waitid.c): Likewise.
24802 (CFLAGS-waitpid.c): Likewise.
24803 (CFLAGS-getopt.c): Likewise.
24804 (CFLAGS-wordexp.c): Likewise.
24805 (CFLAGS-sysconf.c): Likewise.
24806 (CFLAGS-pathconf.c): Likewise.
24807 (CFLAGS-fpathconf.c): Likewise.
24808 (CFLAGS-spawn.c): Likewise.
24809 (CFLAGS-spawnp.c): Likewise.
24810 (CFLAGS-spawni.c): Likewise.
24811 (CFLAGS-glob.c): Likewise.
24812 (CFLAGS-glob64.c): Likewise.
24813 (CFLAGS-getconf.c): Likewise.
24814 (CFLAGS-nanosleep.c): Likewise.
24815 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24816 (CFLAGS-getpwent.c): Likewise.
24817 (CFLAGS-getpw.c): Likewise.
24818 (CFLAGS-fgetpwent_r.c): Likewise.
24819 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24820 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24821 (CFLAGS-mq_timedreceive.c): Likewise.
24822 (CFLAGS-mq_timedsend.c): Likewise.
24823 (CFLAGS-clock_nanosleep.c): Likewise.
24824 (CFLAGS-librt-cancellation.c): Likewise.
24825 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24826 (CFLAGS-getspent.c): Likewise.
24827 (CFLAGS-fgetspent.c): Likewise.
24828 (CFLAGS-fgetspent_r.c): Likewise.
24829 (CFLAGS-putspent.c): Likewise.
24830 (CFLAGS-getspnam.c): Likewise.
24831 (CFLAGS-getspnam_r.c): Likewise.
24832 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24833 (CFLAGS-sigsuspend.c): Likewise.
24834 (CFLAGS-sigtimedwait.c): Likewise.
24835 (CFLAGS-sigwait.c): Likewise.
24836 (CFLAGS-sigwaitinfo.c): Likewise.
24837 (CFLAGS-sigreturn.c): Likewise.
24838 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24839 (CFLAGS-vfwprintf.c): Likewise.
24840 (CFLAGS-tmpfile.c): Likewise.
24841 (CFLAGS-tmpfile64.c): Likewise.
24842 (CFLAGS-tempname.c): Likewise.
24843 (CFLAGS-psignal.c): Likewise.
24844 (CFLAGS-vprintf.c): Likewise.
24845 (CFLAGS-cuserid.c): Likewise.
24846 (CFLAGS-errlist.c): Likewise.
24847 (CFLAGS-siglist.c): Likewise.
24848 (CFLAGS-scanf15.c): Likewise.
24849 (CFLAGS-scanf17.c): Likewise.
24850 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24851 (CFLAGS-msort.c): Likewise.
24852 (CFLAGS-qsort.c): Likewise.
24853 (CFLAGS-system.c): Likewise.
24854 (CFLAGS-fmtmsg.c): Likewise.
24855 (CFLAGS-strfmon.c): Likewise.
24856 (CFLAGS-strfmon_l.c): Likewise.
24857 (CFLAGS-strfromd.c): Likewise.
24858 (CFLAGS-strfromf.c): Likewise.
24859 (CFLAGS-strfroml.c): Likewise.
24860 (CFLAGS-tst-bsearch.c): Likewise.
24861 (CFLAGS-tst-qsort.c): Likewise.
24862 (CFLAGS-tst-makecontext2.c): Likewise.
24863 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24864 (CFLAGS-xnlm_prot.c): Likewise.
24865 (CFLAGS-xrstat.c): Likewise.
24866 (CFLAGS-xyppasswd.c): Likewise.
24867 (CFLAGS-xklm_prot.c): Likewise.
24868 (CFLAGS-xrex.c): Likewise.
24869 (CFLAGS-xsm_inter.c): Likewise.
24870 (CFLAGS-xmount.c): Likewise.
24871 (CFLAGS-xrusers.c): Likewise.
24872 (CFLAGS-xspray.c): Likewise.
24873 (CFLAGS-xnfs_prot.c): Likewise.
24874 (CFLAGS-xrquota.c): Likewise.
24875 (CFLAGS-xkey_prot.c): Likewise.
24876 (CFLAGS-auth_unix.c): Likewise.
24877 (CFLAGS-key_call.c): Likewise.
24878 (CFLAGS-pmap_rmt.c): Likewise.
24879 (CFLAGS-clnt_perr.c): Likewise.
24880 (CFLAGS-openchild.c): Likewise.
24881 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24882 (CFLAGS-msgsnd.c): Likewise.
24883 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24884 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24885 (CFLAGS-tzset.c): Likewise.
24886 (CFLAGS-getdate.c): Likewise.
24887 (CFLAGS-test_time.c): Likewise.
24888 (CPPFLAGS-tst-tzname.c): Likewise.
24889 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24890 (CFLAGS-zic.c): Likewise.
24891 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24892 (CFLAGS-wcswidth.c): Likewise.
24893 (CFLAGS-wcstol.c): Likewise.
24894 (CFLAGS-wcstoul.c): Likewise.
24895 (CFLAGS-wcstoll.c): Likewise.
24896 (CFLAGS-wcstoull.c): Likewise.
24897 (CFLAGS-wcstod.c): Likewise.
24898 (CFLAGS-wcstold.c): Likewise.
24899 (CFLAGS-wcstof128.c): Likewise.
24900 (CFLAGS-wcstof.c): Likewise.
24901 (CFLAGS-wcstol_l.c): Likewise.
24902 (CFLAGS-wcstoul_l.c): Likewise.
24903 (CFLAGS-wcstoll_l.c): Likewise.
24904 (CFLAGS-wcstoull_l.c): Likewise.
24905 (CFLAGS-wcstod_l.c): Likewise.
24906 (CFLAGS-wcstold_l.c): Likewise.
24907 (CFLAGS-wcstof128_l.c): Likewise.
24908 (CFLAGS-wcstof_l.c): Likewise.
24909 (CPPFLAGS-tst-wchar-h.c): Likewise.
24910 (CPPFLAGS-wcstold_l.c): Likewise.
24911
24912 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24913
24914 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24915
24916 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24917 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24918
24919 * manual/tunables.texi (Hardware Capability Tunables): Document
24920 glibc.tune.cached_memopt.
24921 * sysdeps/powerpc/cpu-features.c: New file.
24922 * sysdeps/powerpc/cpu-features.h: New file.
24923 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24924 _dl_powerpc_cpu_features.
24925 * sysdeps/powerpc/dl-tunables.list: New file.
24926 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24927 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24928 (INIT_ARCH): Initialize use_aligned_memopt.
24929 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24930 IS_IN(rtld))]: Restrict dl_platform_init availability and
24931 initialize CPU features used by tunables.
24932 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24933 Add memcpy-power8-cached.
24934 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24935 __memcpy_power8_cached.
24936 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24937 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24938 New file.
24939
24940 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24941
24942 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24943 (CFLAGS-noinl-tester.c): Likewise.
24944 (CFLAGS-tst-strlen.c): Likewise.
24945 (CFLAGS-stratcliff.c): Likewise.
24946 (CFLAGS-test-ffs.c): Likewise.
24947 (CFLAGS-tst-inlcall.c): Likewise.
24948 (CFLAGS-tst-xbzero-opt.c): Likewise.
24949 (CFLAGS-memcpy.c): Likewise.
24950 (CFLAGS-wordcopy.c): Likewise.
24951
24952 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24953
24954 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24955 Store r15 on stack and add cfi rule.
24956 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24957 Likewise.
24958
24959 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24960
24961 [BZ #22577]
24962 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24963 call.
24964
24965 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24966
24967 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24968 Add s_sinf-sse2 and s_sinf-fma.
24969 (CFLAGS-s_sinf-fma.c): New.
24970 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24971 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24972 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24973
24974 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24975
24976 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24977
24978 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24979
24980 [BZ #22568]
24981 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24982 part of result to imaginary part of argument if it is zero and the
24983 real part of the argument is not finite.
24984 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24985 of result to real part of argument if it is zero and the imaginary
24986 part of the argument is not finite.
24987
24988 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24989
24990 [BZ #22524]
24991 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24992 and to the list of locales to be built for testing.
24993 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24994 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24995 and build the collation rules upon that.
24996
24997 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24998
24999 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25000 * manual/math.texi (Mathematics): Document support for _Float32.
25001 * math/Makefile (test-types): Add float32.
25002 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25003 * stdlib/Versions (GLIBC_2.27): Likewise.
25004 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25005 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25006 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25007 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25008 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25009 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25010 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25011 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25012 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25013 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25014 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25015 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25016 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25017 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25018 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25019 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25020 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25021 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25022 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25023 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25024 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25025 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25026 Likewise.
25027 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25028 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25029 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25030 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25031 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25033 Likewise.
25034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25035 Likewise.
25036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25037 Likewise.
25038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25039 Likewise.
25040
25041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25042 Likewise.
25043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25044 Likewise.
25045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25046 Likewise.
25047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25048 Likewise.
25049 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25050 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25051 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25052 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25053 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25054 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25055 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25056 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25057 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25058 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25059 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25060 Likewise.
25061 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25062 Likewise.
25063 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25064 Likewise.
25065 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25066 Likewise.
25067 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25068 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25069 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25070 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25071 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25072 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25073 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25074 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25075
25076 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25077
25078 * stdlib/strtof.c: Include <bits/floatn.h>
25079 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25080 and later undefine as macro. Define as weak alias if
25081 [!USE_WIDE_CHAR].
25082 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25083 and later undefine as macro. Define as weak alias if
25084 [USE_WIDE_CHAR].
25085 * stdlib/strtof_l.c: Include <bits/floatn.h>
25086 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25087 and later undefine as macro. Define as weak alias if
25088 [!USE_WIDE_CHAR].
25089 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25090 and later undefine as macro. Define as weak alias if
25091 [USE_WIDE_CHAR].
25092
25093 * stdlib/strfromf.c: Include <bits/floatn.h>.
25094 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25095 and later undefine as macro and define as weak alias.
25096
25097 * math/test-float32.h: New file.
25098
25099 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25100 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25101 (libm_alias_float_other_r): Create f32 alias.
25102 (libm_alias_float_r): Use semicolon before call to
25103 libm_alias_float_other_r.
25104
25105 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25106 second argument to libm_alias_float_other.
25107 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25108 second argument to libm_alias_float_other.
25109 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25110 argument to libm_alias_float_other.
25111
25112 [BZ #22561]
25113 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25114 real part of result for argument 0 + i * NaN.
25115 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25116 results for tests of 0 + i * NaN.
25117
25118 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25119
25120 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25121
25122 2017-12-06 David S. Miller <davem@davemloft.net>
25123
25124 * sysdeps/sparc/fpu/libm-test-ulps: Update
25125 exp_{downward,towardzero,upward} ulps.
25126
25127 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25128
25129 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25130 variables static.
25131
25132 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25133 (Y0_2D): Likewise.
25134 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25135 (Y0_2D): Likewise.
25136 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25137 (Y0_2D): Likewise.
25138 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25139 (Y0_2D): Likewise.
25140
25141 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25142
25143 [BZ #22515]
25144 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25145 and to the list of locales to be built for testing.
25146 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25147 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25148 and build the collation rules upon that.
25149
25150 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25151
25152 * NEWS: Add sinf to list of optimized functions.
25153
25154 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25155
25156 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25157 (__HAVE_FLOAT32X): Likewise.
25158 * manual/math.texi (Mathematics): Document support for _Float64
25159 and _Float32x.
25160 * math/Makefile (test-types): Add float64 and float32x.
25161 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25162 functions.
25163 * stdlib/Versions (GLIBC_2.27): Likewise.
25164 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25165 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25166 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25167 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25168 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25169 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25170 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25171 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25172 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25173 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25174 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25175 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25176 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25177 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25178 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25179 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25180 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25181 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25182 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25183 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25184 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25185 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25186 Likewise.
25187 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25188 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25189 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25190 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25191 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25193 Likewise.
25194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25195 Likewise.
25196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25197 Likewise.
25198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25199 Likewise.
25200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25201 Likewise.
25202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25203 Likewise.
25204 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25205 Likewise.
25206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25207 Likewise.
25208 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25209 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25210 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25211 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25212 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25213 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25214 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25215 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25216 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25217 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25218 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25219 Likewise.
25220 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25221 Likewise.
25222 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25223 Likewise.
25224 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25225 Likewise.
25226 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25227 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25228 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25229 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25230 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25231 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25232 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25233 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25234
25235 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25236
25237 * bits/floatn-common.h: Include <bits/long-double.h>.
25238 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25239 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25240 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25241 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25242 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25243 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25244 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25245 (__builtin_huge_valf64): Use __builtin_huge_vall.
25246 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25247 (__builtin_inff64): Use __builtin_infl.
25248 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25249 (__builtin_nanf64): Use __builtin_nanl.
25250 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25251 (__builtin_nansf64): Use __builtin_nansl.
25252
25253 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25254 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25255 Carlos O'Donell <carlos@redhat.com>
25256
25257 * elf/dl-tunables.list: Add elision parameters.
25258 * manual/tunables.texi: Add entries about elision tunable.
25259 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25260 Add callback functions to dynamically enable/disable elision.
25261 Add multiple callbacks functions to set elision parameters.
25262 Deleted __libc_enable_secure check.
25263 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25264 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25265 * configure: Regenerated.
25266 * configure.ac: Option enable_lock_elision was deleted.
25267 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25268 * config.make.in: Remove references to enable_lock_elision.
25269 * manual/install.texi: Elision configure option was removed.
25270 * INSTALL: Regenerated to remove enable_lock_elision.
25271 * nptl/Makefile:
25272 Disable elision so it can verify error case for destroying a mutex.
25273 * sysdeps/powerpc/nptl/elide.h:
25274 Cleanup ENABLE_LOCK_ELISION check.
25275 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25276 * sysdeps/s390/configure: Regenerated.
25277 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25278 * nptl/tst-mutex8.c:
25279 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25280 * sysdeps/powerpc/powerpc32/sysdep.h:
25281 Deleted all ENABLE_LOCK_ELISION checks.
25282 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25283 * sysdeps/powerpc/sysdep.h: Likewise.
25284 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25285 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25286 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25287 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25288 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25289 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25290 enable-lock-elision.
25291
25292 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25293
25294 * stdlib/strtod.c: Include <bits/floatn.h>.
25295 (BUILD_DOUBLE): New macro.
25296 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25297 (strtof64): Define and later undefine as macro. Define as weak
25298 alias if [!USE_WIDE_CHAR].
25299 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25300 (wcstof64): Define and later undefine as macro. Define as weak
25301 alias if [USE_WIDE_CHAR].
25302 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25303 (strtof32x): Define and later undefine as macro. Define as weak
25304 alias if [!USE_WIDE_CHAR].
25305 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25306 (wcstof32x): Define and later undefine as macro. Define as weak
25307 alias if [USE_WIDE_CHAR].
25308 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25309 (BUILD_DOUBLE): New macro.
25310 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25311 (strtof64_l): Define and later undefine as macro. Define as weak
25312 alias if [!USE_WIDE_CHAR].
25313 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25314 (wcstof64_l): Define and later undefine as macro. Define as weak
25315 alias if [USE_WIDE_CHAR].
25316 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25317 (strtof32x_l): Define and later undefine as macro. Define as weak
25318 alias if [!USE_WIDE_CHAR].
25319 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25320 (wcstof32x_l): Define and later undefine as macro. Define as weak
25321 alias if [USE_WIDE_CHAR].
25322
25323 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25324
25325 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25326 (reduced): Use ones as double instead of integer.
25327
25328 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25329
25330 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25331
25332 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25333
25334 * stdlib/strfromd.c: Include <bits/floatn.h>.
25335 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25336 and later undefine as macro and define as weak alias.
25337 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25338 Likewise.
25339
25340 * math/test-float32x.h: New file.
25341 * math/test-float64.h: Likewise.
25342
25343 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25344 (libm_alias_double_other_r_f64): New macro.
25345 (libm_alias_double_other_r_f32x): Likewise.
25346 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25347 libm_alias_double_other_r_f32x.
25348 (libm_alias_double_r): Use semicolon before call to
25349 libm_alias_double_other_r.
25350 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25351 <bits/floatn.h>.
25352 (libm_alias_double_other_r_f64): New macro.
25353 (libm_alias_double_other_r_f32x): Likewise.
25354 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25355 libm_alias_double_other_r_f32x.
25356
25357 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25358
25359 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25360 int.
25361 (SINF_FUNC): Likewise. Replace floor with simple casts.
25362
25363 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25364
25365 [BZ #22517]
25366 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25367 and to the list of locales to be built for testing.
25368 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25369 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25370 and build the collation rules upon that.
25371
25372 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25373
25374 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25375 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25376 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25377 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25378 instead of __insn__xxx.
25379 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25380 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25381 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25382 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25383 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25384 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25385
25386 2017-12-05 Florian Weimer <fweimer@redhat.com>
25387
25388 Linux: Implement interfaces for memory protection keys
25389 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25390 xsignal, xsysconf.
25391 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25392 * support/xunistd.h (xsysconf): Declare.
25393 * support/xraise.c: New file.
25394 * support/xsigaction.c: Likewise.
25395 * support/xsignal.c: Likewise.
25396 * support/xsysconf.c: Likewise.
25397 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25398 pkey_set, pkey_get, pkey_mprotect.
25399 [misc] (tests): Add tst-pkey.
25400 (tst-pkey): Link with -lpthread.
25401 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25402 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25403 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25404 (PKEY_DISABLE_WRITE): Define.
25405 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25406 Declare.
25407 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25408 (SEGV_PKUERR): Add.
25409 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25410 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25411 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25412 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25413 Add.
25414 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25415 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25416 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25417 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25418 * sysdeps/unix/sysv/linux/**.abilist: Update.
25419
25420 2017-12-05 Florian Weimer <fweimer@redhat.com>
25421
25422 * support/tst-test_compare.c (subprocess): Use long long instead
25423 of long argument for consistent type width across 32-bit and
25424 64-bit architectures.
25425 (do_test): Adjust expected output.
25426
25427 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25428
25429 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25430 (cosf): Define using libm_alias_float.
25431 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25432 (fabsf): Define using libm_alias_float.
25433 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25434 (fmaf): Define using libm_alias_float.
25435 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25436 (rintf): Define using libm_alias_float.
25437 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25438 (sinf): Define using libm_alias_float.
25439 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25440 <libm-alias-float.h>.
25441 (modff): Define using libm_alias_float.
25442 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25443 <libm-alias-float.h>.
25444 (logbf): Define using libm_alias_float.
25445 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25446 <libm-alias-float.h>.
25447 (ceilf): Define using libm_alias_float.
25448 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25449 <libm-alias-float.h>.
25450 (copysignf): Define using libm_alias_float.
25451 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25452 <libm-alias-float.h>.
25453 (floorf): Define using libm_alias_float.
25454 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25455 <libm-alias-float.h>.
25456 (llrintf): Define using libm_alias_float.
25457 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25458 <libm-alias-float.h>.
25459 (llroundf): Define using libm_alias_float.
25460 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25461 <libm-alias-float.h>.
25462 (lrintf): Define using libm_alias_float.
25463 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25464 <libm-alias-float.h>.
25465 (lroundf): Define using libm_alias_float.
25466 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25467 <libm-alias-float.h>.
25468 (nearbyintf): Define using libm_alias_float.
25469 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25470 <libm-alias-float.h>.
25471 (rintf): Define using libm_alias_float.
25472 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25473 <libm-alias-float.h>.
25474 (roundf): Define using libm_alias_float.
25475 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25476 <libm-alias-float.h>.
25477 (truncf): Define using libm_alias_float.
25478 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25479 Include <libm-alias-float.h>.
25480 (ceilf): Define using libm_alias_float.
25481 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25482 Include <libm-alias-float.h>.
25483 (copysignf): Define using libm_alias_float.
25484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25485 Include <libm-alias-float.h>.
25486 (floorf): Define using libm_alias_float.
25487 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25488 Include <libm-alias-float.h>.
25489 (llrintf): Define using libm_alias_float.
25490 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25491 Include <libm-alias-float.h>.
25492 (llroundf): Define using libm_alias_float.
25493 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25494 Include <libm-alias-float.h>.
25495 (logbf): Define using libm_alias_float.
25496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25497 Include <libm-alias-float.h>.
25498 (lrintf): Define using libm_alias_float.
25499 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25500 Include <libm-alias-float.h>.
25501 (lroundf): Define using libm_alias_float.
25502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25503 Include <libm-alias-float.h>.
25504 (modff): Define using libm_alias_float.
25505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25506 Include <libm-alias-float.h>.
25507 (roundf): Define using libm_alias_float.
25508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25509 Include <libm-alias-float.h>.
25510 (truncf): Define using libm_alias_float.
25511 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25512 <libm-alias-float.h>.
25513 (llrintf): Define using libm_alias_float.
25514 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25515 <libm-alias-float.h>.
25516 (llroundf): Define using libm_alias_float.
25517 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25518 <libm-alias-float.h>.
25519 (ceilf): Define using libm_alias_float.
25520 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25521 <libm-alias-float.h>.
25522 (floorf): Define using libm_alias_float.
25523 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25524 <libm-alias-float.h>.
25525 (llroundf): Define using libm_alias_float.
25526 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25527 <libm-alias-float.h>.
25528 (lroundf): Define using libm_alias_float.
25529 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25530 <libm-alias-float.h>.
25531 (roundf): Define using libm_alias_float.
25532 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25533 <libm-alias-float.h>.
25534 (truncf): Define using libm_alias_float.
25535 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25536 <libm-alias-float.h>.
25537 (copysignf): Define using libm_alias_float.
25538 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25539 <libm-alias-float.h>.
25540 (llrintf): Define using libm_alias_float.
25541 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25542 <libm-alias-float.h>.
25543 (llroundf): Define using libm_alias_float.
25544 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25545 <libm-alias-float.h>.
25546 (lrintf): Define using libm_alias_float.
25547 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25548 <libm-alias-float.h>.
25549 (lroundf): Define using libm_alias_float.
25550 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25551 <libm-alias-float.h>.
25552 (ceilf): Define using libm_alias_float.
25553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25554 <libm-alias-float.h>.
25555 (copysignf): Define using libm_alias_float.
25556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25557 <libm-alias-float.h>.
25558 (cosf): Define using libm_alias_float.
25559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25560 <libm-alias-float.h>.
25561 (floorf): Define using libm_alias_float.
25562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25563 <libm-alias-float.h>.
25564 (llrintf): Define using libm_alias_float.
25565 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25566 <libm-alias-float.h>.
25567 (llroundf): Define using libm_alias_float.
25568 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25569 <libm-alias-float.h>.
25570 (logbf): Define using libm_alias_float.
25571 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25572 <libm-alias-float.h>.
25573 (modff): Define using libm_alias_float.
25574 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25575 <libm-alias-float.h>.
25576 (roundf): Define using libm_alias_float.
25577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25578 <libm-alias-float.h>.
25579 (sinf): Define using libm_alias_float.
25580 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25581 <libm-alias-float.h>.
25582 (truncf): Define using libm_alias_float.
25583 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25584 <libm-alias-float.h>.
25585 (ceilf): Define using libm_alias_float.
25586 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25587 <libm-alias-float.h>.
25588 (copysignf): Define using libm_alias_float.
25589 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25590 <libm-alias-float.h>.
25591 (floorf): Define using libm_alias_float.
25592 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25593 <libm-alias-float.h>.
25594 (llrintf): Define using libm_alias_float.
25595 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25596 <libm-alias-float.h>.
25597 (llroundf): Define using libm_alias_float.
25598 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25599 <libm-alias-float.h>.
25600 (nearbyintf): Define using libm_alias_float.
25601 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25602 <libm-alias-float.h>.
25603 (rintf): Define using libm_alias_float.
25604 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25605 <libm-alias-float.h>.
25606 (roundf): Define using libm_alias_float.
25607 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25608 <libm-alias-float.h>.
25609 (truncf): Define using libm_alias_float.
25610 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25611 <libm-alias-float.h>.
25612 (ceilf): Define using libm_alias_float.
25613 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25614 <libm-alias-float.h>.
25615 (floorf): Define using libm_alias_float.
25616 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25617 <libm-alias-float.h>.
25618 (llroundf): Define using libm_alias_float.
25619 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25620 <libm-alias-float.h>.
25621 (roundf): Define using libm_alias_float.
25622 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25623 <libm-alias-float.h>.
25624 (truncf): Define using libm_alias_float.
25625 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25626 <libm-alias-float.h>.
25627 (copysignf): Define using libm_alias_float.
25628 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25629 <libm-alias-float.h>.
25630 (llrintf): Define using libm_alias_float.
25631 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25632 <libm-alias-float.h>.
25633 (llroundf): Define using libm_alias_float.
25634 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25635 <libm-alias-float.h>.
25636 (cosf): Define using libm_alias_float.
25637 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25638 <libm-alias-float.h>.
25639 (llrintf): Define using libm_alias_float.
25640 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25641 <libm-alias-float.h>.
25642 (llroundf): Define using libm_alias_float.
25643 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25644 <libm-alias-float.h>.
25645 (sinf): Define using libm_alias_float.
25646
25647 2017-12-04 Florian Weimer <fweimer@redhat.com>
25648
25649 * support/check.h (TEST_COMPARE): Define.
25650 (support_test_compare_failure): Declare.
25651 * support/Makefile (libsupport-routines): Add
25652 support_test_compare_failure.
25653 (tests): Add tst-test_compare.
25654 * support /support_test_compare_failure.c: New file.
25655 * support/tst-test_compare.c: Likewise.
25656
25657 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25658
25659 [BZ #22527]
25660 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25661 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25662 available, this rewrite of the collation rules does reproduce
25663 the test file in the same order.
25664
25665 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25666
25667 [BZ #10580]
25668 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25669 digraphs in the month and day names. Using single code points for
25670 digraphs is deprecated. While there are dedicated Unicode
25671 codepoints, for the digraphs, these are included for backwards
25672 compatibility and modern texts use a sequence of Basic Latin
25673 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25674 This makes the month and day names agree exactly with CLDR now,
25675 CLDR does not use the single code points for the digraphs either.
25676
25677 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25678
25679 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25680
25681 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25682
25683 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25684 of floor.
25685
25686 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25687
25688 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25689 Define only for libc.so.
25690
25691 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25692
25693 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25694 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25695 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25696 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25697 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25698
25699 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25700
25701 [BZ #5997]
25702 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25703
25704 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25705
25706 [BZ libc/19170]
25707 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25708 PREINIT_FUNCTION_WEAK is nonzero.
25709 (gmon_initializer): New function. Put procedure label for it in
25710 .init_array section.
25711 (_init): Don't call PREINIT_FUNCTION.
25712 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25713 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25714 value when map argument is null.
25715
25716 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25717 depi instruction from PIC pc-relative sequence.
25718 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25719 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25720 (elf_machine_load_address): Likewise.
25721 (elf_machine_runtime_setup): Likewise.
25722
25723 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25724
25725 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25726 <libm-alias-double.h>.
25727 (logb): Define using libm_alias_double.
25728 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25729 <libm-alias-double.h>.
25730 (copysign): Define using libm_alias_double.
25731 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25732 <libm-alias-double.h>.
25733 (llrint): Define using libm_alias_double.
25734 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25735 <libm-alias-double.h>.
25736 (llround): Define using libm_alias_double.
25737 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25738 <libm-alias-double.h>.
25739 (lrint): Define using libm_alias_double.
25740 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25741 <libm-alias-double.h>.
25742 (lround): Define using libm_alias_double.
25743 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25744 Include <libm-alias-double.h>.
25745 (copysign): Define using libm_alias_double.
25746 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25747 Include <libm-alias-double.h>.
25748 (llrint): Define using libm_alias_double.
25749 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25750 Include <libm-alias-double.h>.
25751 (llround): Define using libm_alias_double.
25752 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25753 <libm-alias-double.h>.
25754 (logb): Define using libm_alias_double.
25755 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25756 Include <libm-alias-double.h>.
25757 (lrint): Define using libm_alias_double.
25758 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25759 Include <libm-alias-double.h>.
25760 (lround): Define using libm_alias_double.
25761 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25762 <libm-alias-double.h>.
25763 (llrint): Define using libm_alias_double.
25764 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25765 <libm-alias-double.h>.
25766 (llround): Define using libm_alias_double.
25767 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25768 <libm-alias-double.h>.
25769 (llround): Define using libm_alias_double.
25770 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25771 <libm-alias-double.h>.
25772 (lround): Define using libm_alias_double.
25773 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25774 <libm-alias-double.h>.
25775 (copysign): Define using libm_alias_double.
25776 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25777 <libm-alias-double.h>.
25778 (llrint): Define using libm_alias_double.
25779 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25780 <libm-alias-double.h>.
25781 (llround): Define using libm_alias_double.
25782 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25783 <libm-alias-double.h>.
25784 (lrint): Define using libm_alias_double.
25785 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25786 <libm-alias-double.h>.
25787 (lround): Define using libm_alias_double.
25788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25789 <libm-alias-double.h>.
25790 (copysign): Define using libm_alias_double.
25791 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25792 <libm-alias-double.h>.
25793 (llrint): Define using libm_alias_double.
25794 (lrint): Likewise.
25795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25796 <libm-alias-double.h>.
25797 (llround): Define using libm_alias_double.
25798 (lround): Likewise.
25799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25800 <libm-alias-double.h>.
25801 (logb): Define using libm_alias_double.
25802 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25803 <libm-alias-double.h>.
25804 (copysign): Define using libm_alias_double.
25805 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25806 <libm-alias-double.h>.
25807 (llrint): Define using libm_alias_double.
25808 (lrint): Likewise.
25809 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25810 <libm-alias-double.h>.
25811 (llround): Define using libm_alias_double.
25812 (lround): Likewise.
25813 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25814 <libm-alias-double.h>.
25815 (llround): Define using libm_alias_double.
25816 (lround): Likewise.
25817 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25818 <libm-alias-double.h>.
25819 (copysign): Define using libm_alias_double.
25820 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25821 <libm-alias-double.h>.
25822 (llrint): Define using libm_alias_double.
25823 (lrint): Likewise.
25824 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25825 <libm-alias-double.h>.
25826 (llround): Define using libm_alias_double.
25827 (lround): Likewise.
25828 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25829 <libm-alias-double.h>.
25830 (llrint): Define using libm_alias_double.
25831 (lrint): Likewise.
25832 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25833 <libm-alias-double.h>.
25834 (llround): Define using libm_alias_double.
25835 (lround): Likewise.
25836
25837 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25838
25839 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25840 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25841 compat symbol based on llround.
25842
25843 * sysdeps/powerpc/power7/fpu/s_logb.c
25844 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25845 symbol based on __logb, not on logb.
25846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25847 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25849 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25850
25851 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25852 (rint): Define using libm_alias_double.
25853 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25854 <libm-alias-double.h>.
25855 (modf): Define using libm_alias_double.
25856 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25857 <libm-alias-double.h>.
25858 (ceil): Define using libm_alias_double.
25859 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25860 <libm-alias-double.h>.
25861 (floor): Define using libm_alias_double.
25862 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25863 <libm-alias-double.h>.
25864 (nearbyint): Define using libm_alias_double.
25865 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25866 <libm-alias-double.h>.
25867 (rint): Define using libm_alias_double.
25868 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25869 <libm-alias-double.h>.
25870 (round): Define using libm_alias_double.
25871 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25872 <libm-alias-double.h>.
25873 (trunc): Define using libm_alias_double.
25874 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25875 <libm-alias-double.h>.
25876 (ceil): Define using libm_alias_double.
25877 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25878 Include <libm-alias-double.h>.
25879 (floor): Define using libm_alias_double.
25880 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25881 <libm-alias-double.h>.
25882 (modf): Define using libm_alias_double.
25883 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25884 Include <libm-alias-double.h>.
25885 (round): Define using libm_alias_double.
25886 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25887 Include <libm-alias-double.h>.
25888 (trunc): Define using libm_alias_double.
25889 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25890 <libm-alias-double.h>.
25891 (ceil): Define using libm_alias_double.
25892 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25893 <libm-alias-double.h>.
25894 (floor): Define using libm_alias_double.
25895 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25896 <libm-alias-double.h>.
25897 (round): Define using libm_alias_double.
25898 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25899 <libm-alias-double.h>.
25900 (trunc): Define using libm_alias_double.
25901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25902 <libm-alias-double.h>.
25903 (ceil): Define using libm_alias_double.
25904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25905 <libm-alias-double.h>.
25906 (floor): Define using libm_alias_double.
25907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25908 <libm-alias-double.h>.
25909 (modf): Define using libm_alias_double.
25910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25911 <libm-alias-double.h>.
25912 (round): Define using libm_alias_double.
25913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25914 <libm-alias-double.h>.
25915 (trunc): Define using libm_alias_double.
25916 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25917 <libm-alias-double.h>.
25918 (ceil): Define using libm_alias_double.
25919 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25920 <libm-alias-double.h>.
25921 (floor): Define using libm_alias_double.
25922 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25923 <libm-alias-double.h>.
25924 (nearbyint): Define using libm_alias_double.
25925 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25926 <libm-alias-double.h>.
25927 (rint): Define using libm_alias_double.
25928 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25929 <libm-alias-double.h>.
25930 (round): Define using libm_alias_double.
25931 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25932 <libm-alias-double.h>.
25933 (trunc): Define using libm_alias_double.
25934 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25935 <libm-alias-double.h>.
25936 (ceil): Define using libm_alias_double.
25937 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25938 <libm-alias-double.h>.
25939 (floor): Define using libm_alias_double.
25940 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25941 <libm-alias-double.h>.
25942 (round): Define using libm_alias_double.
25943 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25944 <libm-alias-double.h>.
25945 (trunc): Define using libm_alias_double.
25946
25947 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25948 (fabs): Define using libm_alias_double.
25949 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25950 (fma): Define using libm_alias_double.
25951 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25952 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25953 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25954 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25955
25956 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25957
25958 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25959
25960 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25961 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25962 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25963
25964 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25965 due redirect macro.
25966
25967 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25968
25969 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25970
25971 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25972
25973 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25974 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25975 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25976 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25977
25978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25979 (libm-sysdep_routines): Add s_nearbyintf-generic and
25980 s_nearbyint-generic.
25981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25982 New file.
25983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25984 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25985 Likewise.
25986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25987 Likewise.
25988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25989 file.
25990 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25991 Likewise.
25992
25993 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25994 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25995 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25996 file.
25997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25998 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25999 Likewise.
26000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26001 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26003
26004 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26005 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26006 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26007 file.
26008 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26009 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26010 Likewise.
26011 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26012 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26014
26015 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26016 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26018 file.
26019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26020 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26021 Likewise.
26022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26024 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26025
26026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26027 (sysdep_calls): New rule.
26028 (sysdep_routines): Use sysdep_calls as base.
26029 (libm-sysdep_routines): Add generic rule for symbols shared with
26030 libc. Add s_copysign-generic and s_copysign-generic objects.
26031 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26032 New file.
26033 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26034 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26035 Likewise.
26036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26037 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26038 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26039
26040 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26041
26042 [BZ #22519]
26043 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26044 the list of locales to be built for testing.
26045 * localedata/is_IS.UTF-8.in: New file.
26046 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26047 on iso14651_t1.
26048
26049 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26050
26051 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26052 <libm-alias-float.h>.
26053 (fabsf): Define using libm_alias_float.
26054
26055 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26056
26057 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26058
26059 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26060
26061 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26062 <libm-alias-float.h>.
26063 (fabsf): Define using libm_alias_float.
26064 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26065 <libm-alias-float.h>.
26066 (lrintf): Define using libm_alias_float.
26067 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26068 <libm-alias-float.h>.
26069 (rintf): Define using libm_alias_float.
26070
26071 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26072 <libm-alias-double.h>.
26073 (fabs): Define using libm_alias_double.
26074 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26075 <libm-alias-double.h>.
26076 (lrint): Define using libm_alias_double.
26077 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26078 <libm-alias-double.h>.
26079 (rint): Define using libm_alias_double.
26080
26081 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26082 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26083 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26084 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26085 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26086 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26087 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26088 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26089 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26090 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26091 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26092 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26093 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26094 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26095 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26096 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26097 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26098 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26099 s_atan_template.c.
26100 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26101 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26102 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26103 s_ceil_template.c.
26104 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26105 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26106 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26107 s_cos_template.c.
26108 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26109 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26110 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26111 s_expm1_template.c.
26112 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26113 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26114 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26115 s_fabs_template.c.
26116 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26117 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26118 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26119 s_floor_template.c.
26120 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26121 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26122 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26123 s_frexp_template.c.
26124 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26125 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26126 s_lrint_template.c.
26127 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26128 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26129 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26130 s_modf_template.c.
26131 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26132 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26133 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26134 s_nearbyint_template.c.
26135 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26136 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26137 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26138 s_remquo_template.c.
26139 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26140 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26141 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26142 s_rint_template.c.
26143 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26144 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26145 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26146 s_sin_template.c.
26147 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26148 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26149 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26150 s_sincos_template.c.
26151 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26152 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26153 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26154 s_tan_template.c.
26155 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26156 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26157 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26158 s_tanh_template.c.
26159 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26160 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26161 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26162 s_trunc_template.c.
26163 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26164 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26165 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26166 s_atan.c instead of including s_atan.c.
26167 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26168 s_atanf.c instead of including s_atanf.c.
26169 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26170 s_atanl.c instead of including s_atanl.c.
26171 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26172 instead of s_atan.c.
26173 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26174 instead of s_atanf.c.
26175 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26176 instead of s_atanl.c.
26177
26178 * scripts/update-copyrights: Do not handle intl/plural.c
26179 specially.
26180
26181 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26182
26183 [BZ #22432]
26184 * configure.ac (BISON): Require to be present.
26185 * configure: Regenerated.
26186 * intl/Makefile (generated): Add plural.c.
26187 [$(BISON) != no]: Make code unconditional.
26188 (plural.c): Change rule to $(objpfx)plural.c.
26189 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26190 * intl/plural.c: Remove.
26191 * manual/install.texi (Tools for Compilation): Document bison as
26192 required.
26193 * INSTALL: Regenerated.
26194
26195 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26196
26197 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26198 <libm-alias-double.h>.
26199 (llrint): Define using libm_alias_double.
26200 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26201 <libm-alias-float.h>.
26202 (llrintf): Define using libm_alias_float.
26203 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26204 <libm-alias-ldouble.h>.
26205 (llrintl): Define using libm_alias_ldouble.
26206
26207 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26208 declare_mgen_alias instead of weak_alias.
26209 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26210 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26211 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26212
26213 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26214
26215 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26216 Add add_n-generic.
26217 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26218 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26219 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26220
26221 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26222 Add submul_1-generic.
26223 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26224 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26225 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26226
26227 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26228 Add addmul_1-generic.
26229 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26230 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26231 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26232
26233 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26234 Add sub_n-generic.
26235 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26236 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26237 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26238
26239 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26240 Add mul_1-generic.
26241 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26242 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26243 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26244
26245 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26246
26247 According to CLDR, collation rules for Serbian and Bosnian
26248 should be the same as for Croatian.
26249
26250 [BZ #22534]
26251 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26252 and to the list of locales to be built for testing.
26253 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26254 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26255 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26256 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26257
26258 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26259
26260 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26261 to make test case pass.
26262 * localedata/hr_HR.UTF-8.in: Add more test strings.
26263
26264 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26265
26266 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26267
26268 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26269
26270 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26271 the list of locales to built for testing.
26272 * localedata/hr_HR.UTF-8.in: New file.
26273
26274 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26275
26276 [BZ #10580]
26277 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26278 iso14651_t1.
26279 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26280 CLDR (except use ligatures for the digraphs, CLDR does not use
26281 the ligatures), add first_workday, some fixes in the date and time
26282 formats.
26283 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26284 for Đ and đ.
26285 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26286 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26287 Add int_p_cs_precedes and int_n_cs_precedes.
26288 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26289 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26290 LC_MONETARY now).
26291 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26292 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26293 name_miss.
26294 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26295 and lang_lib. Change postal_fmt.
26296
26297 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26298
26299 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26300 <setjmp.h>.
26301 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26302 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26303 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26304 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26305 * sysdeps/generic/setjmpP.h: New file.
26306 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26307 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26308 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26309 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26310 Add jmp_buf-ssp.sym.
26311 (tests): Add tst-saved_mask-1.
26312
26313 2017-11-30 Arjun Shankar <arjun@redhat.com>
26314
26315 [BZ #22375]
26316 CVE-2017-17426
26317 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26318 instead of request2size.
26319
26320 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26321
26322 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26323 (__lllrint): Remove alias.
26324 (lllrint): Likewise.
26325 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26326 (__lllrintf): Likewise.
26327 (lllrintf): Likewise.
26328
26329 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26330 <libm-alias-float.h>.
26331 (copysignf): Define using libm_alias_float.
26332 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26333 <libm-alias-float.h>.
26334 (fabsf): Define using libm_alias_float.
26335 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26336 Include <libm-alias-float.h>.
26337 (copysignf): Define using libm_alias_float.
26338 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26339 <libm-alias-float.h>.
26340 (fabsf): Define using libm_alias_float.
26341 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26342 <libm-alias-float.h>.
26343 (fdimf): Define using libm_alias_float.
26344 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26345 <libm-alias-float.h>.
26346 (fmaf): Define using libm_alias_float.
26347 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26348 <libm-alias-float.h>.
26349 (llrintf): Define using libm_alias_float.
26350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26351 Include <libm-alias-float.h>.
26352 (nearbyintf): Define using libm_alias_float.
26353 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26354 <libm-alias-float.h>.
26355 (rintf): Define using libm_alias_float.
26356 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26357 <libm-alias-float.h>.
26358 (llrintf): Define using libm_alias_float.
26359 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26360 <libm-alias-float.h>.
26361 (lrintf): Define using libm_alias_float.
26362 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26363 <libm-alias-float.h>.
26364 (nearbyintf): Define using libm_alias_float.
26365 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26366 <libm-alias-float.h>.
26367 (rintf): Define using libm_alias_float.
26368 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26369 <libm-alias-float.h>.
26370 (ceilf): Define using libm_alias_float.
26371 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26372 <libm-alias-float.h>.
26373 (floorf): Define using libm_alias_float.
26374 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26375 <libm-alias-float.h>.
26376 (fmaf): Define using libm_alias_float.
26377 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26378 <libm-alias-float.h>.
26379 (lrintf): Define using libm_alias_float.
26380 (llrintf): Likewise.
26381 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26382 <libm-alias-float.h>.
26383 (nearbyintf): Define using libm_alias_float.
26384 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26385 <libm-alias-float.h>.
26386 (rintf): Define using libm_alias_float.
26387 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26388 <libm-alias-float.h>.
26389 (truncf): Define using libm_alias_float.
26390 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26391 <libm-alias-float.h>.
26392 (copysignf): Define using libm_alias_float.
26393 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26394 <libm-alias-float.h>.
26395 (fabsf): Define using libm_alias_float.
26396 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26397 <libm-alias-float.h>.
26398 (lrintf): Define using libm_alias_float.
26399 (llrintf): Likewise.
26400 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26401 <libm-alias-float.h>.
26402 (nearbyintf): Define using libm_alias_float.
26403 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26404 <libm-alias-float.h>.
26405 (rintf): Define using libm_alias_float.
26406
26407 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26408
26409 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26410 <libm-alias-double.h>.
26411 (copysign): Define using libm_alias_double.
26412 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26413 <libm-alias-double.h>.
26414 (fabs): Define using libm_alias_double.
26415 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26416 Include <libm-alias-double.h>.
26417 (copysign): Define using libm_alias_double.
26418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26419 <libm-alias-double.h>.
26420 (fabs): Define using libm_alias_double.
26421 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26422 <libm-alias-double.h>.
26423 (fdim): Define using libm_alias_double.
26424 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26425 <libm-alias-double.h>.
26426 (fma): Define using libm_alias_double.
26427 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26428 <libm-alias-double.h>.
26429 (llrint): Define using libm_alias_double.
26430 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26431 Include <libm-alias-double.h>.
26432 (nearbyint): Define using libm_alias_double.
26433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26434 <libm-alias-double.h>.
26435 (rint): Define using libm_alias_double.
26436 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26437 <libm-alias-double.h>.
26438 (fabs): Define using libm_alias_double.
26439 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26440 <libm-alias-double.h>.
26441 (llrint): Define using libm_alias_double.
26442 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26443 <libm-alias-double.h>.
26444 (nearbyint): Define using libm_alias_double.
26445 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26446 <libm-alias-double.h>.
26447 (rint): Define using libm_alias_double.
26448 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26449 <libm-alias-double.h>.
26450 (ceil): Define using libm_alias_double.
26451 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26452 <libm-alias-double.h>.
26453 (floor): Define using libm_alias_double.
26454 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26455 <libm-alias-double.h>.
26456 (fma): Define using libm_alias_double.
26457 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26458 <libm-alias-double.h>.
26459 (lrint): Define using libm_alias_double.
26460 (llrint): Likewise.
26461 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26462 <libm-alias-double.h>.
26463 (nearbyint): Define using libm_alias_double.
26464 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26465 <libm-alias-double.h>.
26466 (rint): Define using libm_alias_double.
26467 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26468 <libm-alias-double.h>.
26469 (trunc): Define using libm_alias_double.
26470 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26471 <libm-alias-double.h>.
26472 (copysign): Define using libm_alias_double.
26473 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26474 <libm-alias-double.h>.
26475 (fabs): Define using libm_alias_double.
26476 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26477 <libm-alias-double.h>.
26478 (lrint): Define using libm_alias_double.
26479 (llrint): Likewise.
26480 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26481 <libm-alias-double.h>.
26482 (nearbyint): Define using libm_alias_double.
26483 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26484 <libm-alias-double.h>.
26485 (rint): Define using libm_alias_double.
26486
26487 [BZ #22229]
26488 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26489 <math_ldbl_opt.h>.
26490 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26491
26492 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26493 SPARC --disable-multi-arch glibc variants.
26494
26495 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26496 <libm-alias-float.h>.
26497 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26498 if [SHARED].
26499 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26500 <libm-alias-float.h>.
26501 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26502 if [SHARED].
26503 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26504 <libm-alias-float.h>.
26505 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26506 if [SHARED].
26507 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26508 <libm-alias-float.h>.
26509 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26510 if [SHARED].
26511 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26512 <libm-alias-float.h>.
26513 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26514 if [SHARED].
26515 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26516 <libm-alias-float.h>.
26517 (ceilf): Define using libm_alias_float.
26518 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26519 <libm-alias-float.h>.
26520 (floorf): Define using libm_alias_float.
26521 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26522 <libm-alias-float.h>.
26523 (fmaf): Define using libm_alias_float.
26524 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26525 <libm-alias-float.h>.
26526 (nearbyintf): Define using libm_alias_float.
26527 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26528 <libm-alias-float.h>.
26529 (rintf): Define using libm_alias_float.
26530 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26531 <libm-alias-float.h>.
26532 (truncf): Define using libm_alias_float.
26533 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26534 (copysignf): Define using libm_alias_float.
26535 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26536 (cosf): Define using libm_alias_float.
26537 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26538 (fabsf): Define using libm_alias_float.
26539 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26540 (fmaxf): Define using libm_alias_float.
26541 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26542 (fminf): Define using libm_alias_float.
26543 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26544 (llrintf): Define using libm_alias_float.
26545 [!__ILP32__] (lrintf): Likewise.
26546 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26547 (sincosf): Define using libm_alias_float.
26548 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26549 (sinf): Define using libm_alias_float.
26550 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26551 (lrintf): Define using libm_alias_float.
26552
26553 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26554 <libm-alias-double.h>.
26555 (atan): Define using libm_alias_double.
26556 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26557 <libm-alias-double.h>.
26558 (ceil): Define using libm_alias_double.
26559 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26560 <libm-alias-double.h>.
26561 (floor): Define using libm_alias_double.
26562 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26563 <libm-alias-double.h>.
26564 (fma): Define using libm_alias_double.
26565 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26566 <libm-alias-double.h>.
26567 (nearbyint): Define using libm_alias_double.
26568 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26569 <libm-alias-double.h>.
26570 (rint): Define using libm_alias_double.
26571 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26572 <libm-alias-double.h>.
26573 (sin): Define using libm_alias_double.
26574 (cos): Likewise.
26575 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26576 <libm-alias-double.h>.
26577 (tan): Define using libm_alias_double.
26578 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26579 <libm-alias-double.h>.
26580 (trunc): Define using libm_alias_double.
26581 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26582 (copysign): Define using libm_alias_double.
26583 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26584 (fabs): Define using libm_alias_double.
26585 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26586 (fmax): Define using libm_alias_double.
26587 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26588 (fmin): Define using libm_alias_double.
26589 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26590 (llrint): Define using libm_alias_double.
26591 [!__ILP32__] (lrint): Likewise.
26592 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26593 (lrint): Define using libm_alias_double.
26594
26595 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26596
26597 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26598 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26599 objects.
26600 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26601 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26602 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26603 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26604 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26605 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26606
26607 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26608 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26609 objects.
26610 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26611 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26612 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26613 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26614 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26615 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26616
26617 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26618 (libm-sysdep_routines): Add s_nearbyint-generic and
26619 s_nearbyintf-generic objects.
26620 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26621 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26622 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26623 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26624 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26625 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26626
26627 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26628 Add s_finitef-generic and s_finite-generic objects.
26629 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26630 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26631 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26632 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26633 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26634 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26635
26636 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26637 Add s_isinff-generic and s_isinf-generic objects.
26638 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26639 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26640 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26641 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26642 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26643 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26644
26645 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26646 Add s_isnanf-generic and s_isnan-generic objects.
26647 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26648 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26649 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26650 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26651 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26652 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26653
26654 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26655 macro.
26656 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26657 rule.
26658 (sysdep_routines): Use sysdep_calls as base.
26659 (libm-sysdep_routines): Add generic rule for symbols shared with
26660 libc. Add s_signbit-generic and s_signbitf-generic objects.
26661 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26662 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26663 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26664 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26665 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26666 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26667
26668 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26669
26670 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26671 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26672 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26673 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26674 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26675 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26676 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26677 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26678 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26679 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26680 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26681 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26682 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26683 libm_alias_float_r.
26684 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26685 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26686 (logf): Likewise.
26687 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26688 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26689 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26690 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26691 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26692 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26693 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26694 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26695 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26696 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26697 libm_alias_float.
26698 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26699 (cosf): Likewise.
26700 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26701 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26702 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26703 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26704 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26705 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26706 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26707 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26708 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26709 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26710 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26711 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26712 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26713 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26714 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26715 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26716 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26717 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26718 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26719 libm_alias_float.
26720 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26721 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26722 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26723 * sysdeps/ia64/fpu/w_lgammaf_main.c
26724 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26725 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26726
26727 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26728 Alexandre Oliva <aoliva@redhat.com>
26729
26730 [BZ #17750]
26731 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26732 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26733 accents sorting.
26734 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26735 sorting.
26736 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26737 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26738 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26739 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26740 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26741 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26742 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26743 instead of “ifdef DIACRIT_BACKWARD”.
26744
26745 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26746
26747 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26748 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26749 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26750 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26751 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26752 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26753 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26754 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26755 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26756 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26757 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26758 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26759 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26760 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26761 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26762 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26763 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26764 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26765 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26766 ($(have-as-vis3) == yes): Remove conditional.
26767 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26768 Likewise.
26769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26770 file.
26771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26772 file.
26773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26774 file.
26775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26776 file.
26777 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26778 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26779 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26780 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26781 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26782 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26783 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26784 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26785
26786 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26787
26788 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26789 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26790 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26791 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26792 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26793 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26794 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26795 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26796 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26797 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26798 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26799 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26800 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26801 libm_alias_double_r.
26802 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26803 (log): Likewise.
26804 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26805 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26806 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26807 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26808 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26809 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26810 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26811 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26812 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26813 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26814 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26815 libm_alias_double.
26816 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26817 (cos): Likewise.
26818 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26819 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26820 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26821 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26822 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26823 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26824 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26825 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26826 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26827 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26828 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26829 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26830 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26831 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26832 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26833 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26834 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26835 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26836 libm_alias_double.
26837 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26838 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26839 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26840 * sysdeps/ia64/fpu/w_lgamma_main.c
26841 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26842 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26843
26844 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26845
26846 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26847 address of $global$ into %dp register earlier. Use pc-relative
26848 instruction sequence for PIC case.
26849
26850 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26851
26852 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26853 (asinhf): Define using libm_alias_float.
26854 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26855 (atanf): Define using libm_alias_float.
26856 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26857 (cbrtf): Define using libm_alias_float.
26858 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26859 (ceilf): Define using libm_alias_float.
26860 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26861 (copysignf): Define using libm_alias_float.
26862 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26863 (expm1f): Define using libm_alias_float.
26864 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26865 (fabsf): Define using libm_alias_float.
26866 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26867 (floorf): Define using libm_alias_float.
26868 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26869 (fmaxf): Define using libm_alias_float.
26870 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26871 (fminf): Define using libm_alias_float.
26872 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26873 (frexpf): Define using libm_alias_float.
26874 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26875 (llrintf): Define using libm_alias_float.
26876 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26877 (logbf): Define using libm_alias_float.
26878 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26879 (lrintf): Define using libm_alias_float.
26880 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26881 (nearbyintf): Define using libm_alias_float.
26882 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26883 (remquof): Define using libm_alias_float.
26884 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26885 (rintf): Define using libm_alias_float.
26886 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26887 (truncf): Define using libm_alias_float.
26888 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26889 <libm-alias-float.h>.
26890 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26891 if [SHARED].
26892 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26893 <libm-alias-float.h>.
26894 (expf): Define using libm_alias_float, or libm_alias_float_other
26895 if [SHARED].
26896 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26897 <libm-alias-float.h>.
26898 (log2f): Define using libm_alias_float, or libm_alias_float_other
26899 if [SHARED].
26900 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26901 <libm-alias-float.h>.
26902 (logf): Define using libm_alias_float, or libm_alias_float_other
26903 if [SHARED].
26904 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26905 <libm-alias-float.h>.
26906 (powf): Define using libm_alias_float, or libm_alias_float_other
26907 if [SHARED].
26908 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26909 <libm-alias-float.h>.
26910 (cosf): Define using libm_alias_float.
26911 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26912 <libm-alias-float.h>.
26913 (sincosf): Define using libm_alias_float.
26914 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26915 <libm-alias-float.h>.
26916 (sinf): Define using libm_alias_float.
26917 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26918 (fmaxf): Define using libm_alias_float.
26919 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26920 (fminf): Define using libm_alias_float.
26921 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26922 <libm-alias-float.h>.
26923 (fmaf): Define using libm_alias_float.
26924
26925 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26926 (asinh): Define using libm_alias_double.
26927 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26928 (atan): Define using libm_alias_double.
26929 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26930 (cbrt): Define using libm_alias_double.
26931 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26932 (ceil): Define using libm_alias_double.
26933 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26934 (copysign): Define using libm_alias_double.
26935 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26936 (expm1): Define using libm_alias_double.
26937 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26938 (fabs): Define using libm_alias_double.
26939 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26940 (fdim): Define using libm_alias_double.
26941 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26942 (floor): Define using libm_alias_double.
26943 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26944 (fmax): Define using libm_alias_double.
26945 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26946 (fmin): Define using libm_alias_double.
26947 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26948 (frexp): Define using libm_alias_double.
26949 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26950 (llrint): Define using libm_alias_double.
26951 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26952 (logb): Define using libm_alias_double.
26953 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26954 (lrint): Define using libm_alias_double.
26955 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26956 (nearbyint): Define using libm_alias_double.
26957 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26958 (remquo): Define using libm_alias_double.
26959 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26960 (rint): Define using libm_alias_double.
26961 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26962 (trunc): Define using libm_alias_double.
26963 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26964 (fmax): Define using libm_alias_double.
26965 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26966 (fmin): Define using libm_alias_double.
26967 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26968 (fma): Define using libm_alias_double.
26969
26970 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26971
26972 [BZ #22370]
26973 * elf/dl-hwcaps.c (ROUND): Removed.
26974 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26975 and ELF_NOTE_NEXT_OFFSET.
26976 * elf/dl-load.c (ROUND): Removed.
26977 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26978 * elf/readelflib.c (ROUND): Removed.
26979 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26980 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26981 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26982 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26983
26984 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26985
26986 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26987 [!__fmaf] (fmaf): Define using libm_alias_float.
26988
26989 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26990 [!__fma] (fma): Define using libm_alias_double.
26991 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26992
26993 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26994
26995 [BZ #22336]
26996 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26997 and implement the collation rules for cs from CLDR on top of that.
26998 * Makefile: Add cs_CZ.UTF-8 to test-input.
26999 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27000
27001 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27002
27003 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27004
27005 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27006 Icarus Sparry <icarus.w.sparry@intel.com>
27007
27008 * benchtests/Makefile:Add BENCHSET to allow subsets of
27009 benchmarks to be run.
27010 * benchtests/README: Add documentation for: Running subsets of
27011 benchmarks.
27012
27013 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27014
27015 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27016 range of tests names.
27017
27018 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27019 result from property and remove "max", min" and "mean" from
27020 required properties based on benchtests/bench-skeleton.c.
27021
27022 2017-11-28 Florian Weimer <fweimer@redhat.com>
27023
27024 [BZ #20826]
27025 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27026 due to Internet requirement.
27027 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27028 tst-getaddrinfo5.
27029 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27030
27031 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27032
27033 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27034 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27035 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27036 (sysdep_routines): Add memset-ultra1.
27037 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27038 file.
27039 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27040 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27041 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27042 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27043 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27044 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27045 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27046 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27047
27048 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27049 file.
27050 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27051 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27052 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27053 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27054 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27055 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27056 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27057 macro.
27058 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27059 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27060 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27061 (sysdep_routines): Add memcpy-ultra1.
27062 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27063 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27064
27065 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27066
27067 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27068 (cfloat_versions): Take function argument without trailing 'f'.
27069 Call libm_alias_float_other.
27070 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27071 * sysdeps/alpha/fpu/cargf.c: Likewise.
27072 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27073 * sysdeps/alpha/fpu/conjf.c: Likewise.
27074 * sysdeps/alpha/fpu/crealf.c: Likewise.
27075 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27076 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27077 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27078 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27079 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27080 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27081 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27082 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27083 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27084 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27085 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27086 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27087 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27088 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27089 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27090 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27091 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27092 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27093 (clog10f): Use libm_alias_float_other.
27094 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27095 (ceilf): Define using libm_alias_float.
27096 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27097 (copysignf): Define using libm_alias_float.
27098 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27099 (fabsf): Define using libm_alias_float.
27100 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27101 (floorf): Define using libm_alias_float.
27102 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27103 (fmaxf): Define using libm_alias_float.
27104 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27105 (fminf): Define using libm_alias_float.
27106 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27107 (lrintf): Define using libm_alias_float.
27108 (llrintf): Likewise.
27109 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27110 (lroundf): Define using libm_alias_float.
27111 (llroundf): Likewise.
27112 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27113 (rintf): Define using libm_alias_float.
27114 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27115 (truncf): Define using libm_alias_float.
27116
27117 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27118 (ceilf): Define using libm_alias_float.
27119 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27120 (floorf): Define using libm_alias_float.
27121 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27122 (fmaf): Define using libm_alias_float.
27123 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27124 (fmaxf): Define using libm_alias_float.
27125 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27126 (fminf): Define using libm_alias_float.
27127 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27128 (llrintf): Define using libm_alias_float.
27129 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27130 (llroundf): Define using libm_alias_float.
27131 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27132 (lrintf): Define using libm_alias_float.
27133 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27134 (lroundf): Define using libm_alias_float.
27135 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27136 <libm-alias-float.h>.
27137 (nearbyintf): Define using libm_alias_float.
27138 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27139 (rintf): Define using libm_alias_float.
27140 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27141 (roundf): Define using libm_alias_float.
27142 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27143 (truncf): Define using libm_alias_float.
27144
27145 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27146 (ceil): Define using libm_alias_double.
27147 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27148 (copysign): Define using libm_alias_double.
27149 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27150 (fabs): Define using libm_alias_double.
27151 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27152 (floor): Define using libm_alias_double.
27153 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27154 (fmax): Define using libm_alias_double.
27155 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27156 (fmin): Define using libm_alias_double.
27157 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27158 (lrint): Define using libm_alias_double.
27159 (llrint): Likewise.
27160 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27161 (lround): Define using libm_alias_double.
27162 (llround): Likewise.
27163 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27164 (rint): Define using libm_alias_double.
27165 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27166 (trunc): Define using libm_alias_double.
27167
27168 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27169 (libm_alias_double_r): Add semicolon after weak_alias call.
27170
27171 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27172
27173 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27174 (ceil): Define using libm_alias_double.
27175 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27176 (floor): Define using libm_alias_double.
27177 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27178 (fma): Define using libm_alias_double.
27179 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27180 (fmax): Define using libm_alias_double.
27181 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27182 (fmin): Define using libm_alias_double.
27183 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27184 (llrint): Define using libm_alias_double.
27185 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27186 (llround): Define using libm_alias_double.
27187 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27188 (lrint): Define using libm_alias_double.
27189 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27190 (lround): Define using libm_alias_double.
27191 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27192 (nearbyint): Define using libm_alias_double.
27193 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27194 (rint): Define using libm_alias_double.
27195 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27196 (round): Define using libm_alias_double.
27197 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27198 (trunc): Define using libm_alias_double.
27199
27200 2017-11-27 Florian Weimer <fweimer@redhat.com>
27201
27202 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27203 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27204 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27205 (tests): Add tst-mlock2.
27206 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27207 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27208 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27209 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27210 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27211 for mlock. Document mlock2.
27212
27213 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27214
27215 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27216 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27217 Likewise.
27218 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27219 Likewise.
27220 * sysdeps/x86/Makeconfig: New file.
27221 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27222 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27223 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27224 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27225 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27226 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27227 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27228 Likewise.
27229 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27230 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27231 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27232 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27233 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27234 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27235 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27236 * manual/math.texi (Mathematics): Document support for _Float64x.
27237 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27238 * stdlib/Versions (GLIBC_2.27): Likewise.
27239 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27240 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27241 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27242 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27243 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27244 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27245 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27246 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27247 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27248 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27249 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27250 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27252 Likewise.
27253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27254 Likewise.
27255 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27256 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27257 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27258 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27259 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27260 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27261 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27262 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27263 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27264 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27265 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27266 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27267 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27268 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27269
27270 2017-11-27 Andreas Schwab <schwab@suse.de>
27271
27272 * elf/Makefile (dl-routines): Add dl-sort-maps.
27273 * elf/dl-sort-maps.c: New file.
27274 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27275 (_dl_sort_maps): Declare.
27276 * elf/dl-fini.c (_dl_sort_fini): Remove.
27277 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27278 * elf/dl-close.c (_dl_close_worker): Likewise.
27279 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27280 open-coding it.
27281 * elf/dl-open.c (dl_open_worker): Likewise.
27282
27283 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27284
27285 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27286 using libm_alias_float128.
27287 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27288 Likewise.
27289 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27290 Likewise.
27291 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27292 (setpayloadsigf128): Likewise.
27293 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27294 Likewise.
27295 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27296 Likewise.
27297
27298 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27299 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27300 -mfloat128 to CFLAGS.
27301 ($(foreach
27302 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27303 Likewise.
27304 (CFLAGS-libm-test-support-float64x.c): New variable.
27305 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27306 $(f128-loader-link) to gnulib-tests.
27307
27308 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27309 (libm_alias_float128_other_r): If
27310 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27311 alias.
27312 (libm_alias_float128_r): Add semicolon after weak_alias call.
27313 * sysdeps/generic/libm-alias-ldouble.h
27314 (libm_alias_ldouble_other_r_f128): New macro.
27315 (libm_alias_ldouble_other_r_f64x): Likewise.
27316 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27317 and libm_alias_ldouble_other_r_f64x.
27318 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27319 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27320 (libm_alias_ldouble_other_r_f128): New macro.
27321 (libm_alias_ldouble_other_r_f64x): Likewise.
27322 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27323 and libm_alias_ldouble_other_r_f64x.
27324
27325 * stdlib/strfroml.c: Always include <stdlib.h>.
27326 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27327 undefine as macro and define as weak alias.
27328 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27329 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27330 <stdlib.h>.
27331 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27332 Define and later undefine as macro and define as weak alias.
27333
27334 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27335 Define and later undefine as macro. Define as weak alias if
27336 [!USE_WIDE_CHAR].
27337 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27338 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27339 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27340 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27341 Define and later undefine as macro. Define as weak alias if
27342 [!USE_WIDE_CHAR].
27343 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27344 Define and later undefine as macro. Define as weak alias if
27345 [USE_WIDE_CHAR].
27346 * sysdeps/ieee754/float128/strtof128_l.c
27347 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27348 Define and later undefine as macro. Define as weak alias if
27349 [!USE_WIDE_CHAR].
27350 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27351 Define and later undefine as macro. Define as weak alias if
27352 [USE_WIDE_CHAR].
27353 * sysdeps/ieee754/ldbl-128/strtold_l.c
27354 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27355 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27356 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27357 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27358 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27359 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27360 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27361 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27362 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27363 * sysdeps/ieee754/ldbl-96/strtold_l.c
27364 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27365 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27366 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27367 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27368
27369 * math/test-float64x.h: New file.
27370 * math/Makefile (type-float64x-yes): New variable.
27371 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27372
27373 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27374 function-like macro.
27375 (min_of_type_): Likewise.
27376 (min_of_type_l): Likewise.
27377 (min_of_type_f128): Likewise.
27378 (min_of_type): Pass () as last argument of __MATH_TG.
27379
27380 * stdlib/tst-strtod-round-skeleton.c
27381 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27382 headers.
27383
27384 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27385 for combinations of long double with _Float64 and _Float64x.
27386
27387 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27388 (__DECL_SIMD_cosf32): Likewise.
27389 (__DECL_SIMD_cosf64): Likewise.
27390 (__DECL_SIMD_cosf32x): Likewise.
27391 (__DECL_SIMD_cosf64x): Likewise.
27392 (__DECL_SIMD_cosf128x): Likewise.
27393 (__DECL_SIMD_sinf16): Likewise.
27394 (__DECL_SIMD_sinf32): Likewise.
27395 (__DECL_SIMD_sinf64): Likewise.
27396 (__DECL_SIMD_sinf32x): Likewise.
27397 (__DECL_SIMD_sinf64x): Likewise.
27398 (__DECL_SIMD_sinf128x): Likewise.
27399 (__DECL_SIMD_sincosf16): Likewise.
27400 (__DECL_SIMD_sincosf32): Likewise.
27401 (__DECL_SIMD_sincosf64): Likewise.
27402 (__DECL_SIMD_sincosf32x): Likewise.
27403 (__DECL_SIMD_sincosf64x): Likewise.
27404 (__DECL_SIMD_sincosf128x): Likewise.
27405 (__DECL_SIMD_logf16): Likewise.
27406 (__DECL_SIMD_logf32): Likewise.
27407 (__DECL_SIMD_logf64): Likewise.
27408 (__DECL_SIMD_logf32x): Likewise.
27409 (__DECL_SIMD_logf64x): Likewise.
27410 (__DECL_SIMD_logf128x): Likewise.
27411 (__DECL_SIMD_expf16): Likewise.
27412 (__DECL_SIMD_expf32): Likewise.
27413 (__DECL_SIMD_expf64): Likewise.
27414 (__DECL_SIMD_expf32x): Likewise.
27415 (__DECL_SIMD_expf64x): Likewise.
27416 (__DECL_SIMD_expf128x): Likewise.
27417 (__DECL_SIMD_powf16): Likewise.
27418 (__DECL_SIMD_powf32): Likewise.
27419 (__DECL_SIMD_powf64): Likewise.
27420 (__DECL_SIMD_powf32x): Likewise.
27421 (__DECL_SIMD_powf64x): Likewise.
27422 (__DECL_SIMD_powf128x): Likewise.
27423
27424 * stdlib/Versions (libc): Move entries for wcstof128 and
27425 wcstof128_l to ....
27426 * wcsmbs/Versions (libc): ... here.
27427 Include <float128-abi.h>.
27428
27429 2017-11-24 Florian Weimer <fweimer@redhat.com>
27430
27431 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27432 bits/mman-shared.h.
27433 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27434 <bits/mman-shared.h>.
27435 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27436 to ...
27437 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27438 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27439 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27440 <bits/mman-shared.h>.
27441
27442 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27443
27444 [BZ #22457]
27445 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27446 posix_memalign/free.
27447 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27448
27449 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27450
27451 [BZ #22469]
27452 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27453 and implement the collation rules for pl from CLDR on top of that.
27454 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27455 of locales to be built for testing.
27456 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27457
27458 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27459
27460 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27461 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27462 libm_alias_ldouble_other.
27463 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27464 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27465 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27466 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27467 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27468 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27469 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27470 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27471 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27472 libm_alias_ldouble_r.
27473 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27474 libm_alias_ldouble_other.
27475 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27476 (log10l): Likewise.
27477 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27478 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27479 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27480 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27481 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27482 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27483 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27484 (atan2l): Likewise.
27485 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27486 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27487 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27488 libm_alias_ldouble.
27489 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27490 (cosl): Likewise.
27491 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27492 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27493 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27494 (expl): Likewise.
27495 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27496 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27497 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27498 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27499 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27500 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27501 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27502 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27503 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27504 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27505 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27506 libm_alias_ldouble.
27507 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27508 libm_alias_ldouble_other.
27509 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27510 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27511 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27512 libm_alias_ldouble.
27513 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27514 libm_alias_ldouble_other.
27515 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27516 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27517 * sysdeps/ia64/fpu/w_lgammal_main.c
27518 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27519 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27520
27521 2017-11-23 Florian Weimer <fweimer@redhat.com>
27522
27523 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27524 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27525 alike. Remove freeres marker.
27526 * malloc/arena.c (arena_thread_freeres): Call
27527 tcache_thread_shutdown.
27528
27529 2017-11-23 Florian Weimer <fweimer@redhat.com>
27530
27531 [BZ #22459]
27532 Export nscd hash function as __nss_hash.
27533 * include/nss.h (__nss_hash): Declare.
27534 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27535 symbol.
27536 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27537 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27538 of __nscd_hash.
27539 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27540 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27541 * nss/Makefiles (routines): Add nss_hash.
27542 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27543 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27544 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27545 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27546
27547 2017-11-23 Florian Weimer <fweimer@redhat.com>
27548
27549 [BZ #22478]
27550 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27551 Return error code, not -1.
27552 * signal/tst-sigwait-eintr.c: New file.
27553 * signal/Makefile (tests): Add tst-sigwait-eintr.
27554
27555 2017-11-23 Florian Weimer <fweimer@redhat.com>
27556
27557 Linux: Add memfd_create system call wrapper
27558 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27559 tst-memfd_create.
27560 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27561 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27562 [__USE_GNU] (memfd_create): Declare.
27563 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27564 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27565 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27566 * sysdeps/unix/sysv/linux/**.abilist: Update.
27567 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27568
27569 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27570
27571 * localedata/gen-locale.sh: Fix typo in variable name.
27572
27573 * resolv/res_debug.c (p_secstodate): Condition definition on
27574 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27575 directly as __p_secstodate, and as a compat symbol. Do not use
27576 libresolv_hidden_def.
27577 * resolv/resolv.h (p_secstodate): Remove macro and function
27578 declaration.
27579 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27580 using p_secstodate.
27581 * include/resolv.h (__p_secstodate): Do not use
27582 libresolv_hidden_proto.
27583 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27584 (tests-internal): ... here.
27585 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27586 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27587 and declare and use __p_secstodate and use compat_symbol_reference
27588 in that case.
27589 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27590 implementation returning 77.
27591
27592 [BZ #22463]
27593 * resolv/res_debug.c: Include <libc-diag.h>.
27594 (p_secstodate): Assert time_t at least as wide as u_long. On
27595 overflow, use integer seconds since the epoch as output, or use
27596 "<overflow>" as output and set errno to EOVERFLOW if integer
27597 seconds since the epoch would be 14 or more characters.
27598 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27599 for sprintf call.
27600 * resolv/tst-p_secstodate.c: New file.
27601 * resolv/Makefile (tests): Add tst-p_secstodate.
27602 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27603
27604 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27605 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27606 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27607
27608 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27609
27610 * posix/regcomp.c (init_word_char): Add comments.
27611
27612 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27613
27614 [BZ #22447]
27615 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27616 strlen to compute length of ut_user and set trailing NUL byte of
27617 result explicitly.
27618
27619 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27620
27621 [BZ #15537]
27622 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27623 using “copy "iso14651_t1"” and then implementing the
27624 collation rules for lv from CLDR on top of that.
27625 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27626 of locales to be built for testing.
27627 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27628 sorting.
27629
27630 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27631
27632 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27633 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27634 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27635 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27636 [__USE_MISC] (MADV_HWPOISON): New macro.
27637 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27638
27639 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27640
27641 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27642 -Wmissing-braces on GCC 4.9.
27643
27644 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27645
27646 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27647 * sysdeps/s390/s390-32/start.S (_start): Likewise
27648 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27649 (thread_start): Likewise.
27650 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27651 (thread_start): Likewise.
27652 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27653 (__makecontext_ret): Likewise.
27654 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27655 (__makecontext_ret): Likewise.
27656
27657 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27658
27659 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27660 __wcschrnul): Remove attribute_hidden.
27661
27662 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27663
27664 regex: don't assume uint64_t or uint32_t
27665 This avoids -Werror=overflow errors for 32-bit systems in
27666 the 64-bit case. Problem reported by Joseph Myers in:
27667 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27668 Also, when this code is used in Gnulib it ports to platforms
27669 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27670 them, and on some 32-bit compilers there is no uint64_t.
27671 Problem reported by Gianluigi Tiesi in:
27672 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27673 * posix/regcomp.c (init_word_char): Don't assume that the types
27674 uint64_t and uint32_t exist. Adapted from Gnulib patch
27675 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27676 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27677
27678 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27679
27680 * sysdeps/aarch64/memset-reg.h: New file.
27681 * sysdeps/aarch64/memset.S: Use it.
27682 (__memset): Rename to MEMSET macro.
27683 [ZVA_MACRO]: Use zva_macro.
27684 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27685 Add memset_generic and memset_falkor.
27686 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27687 (__libc_ifunc_impl_list): Add memset ifuncs.
27688 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27689 local variable zva_size.
27690 * sysdeps/aarch64/multiarch/memset.c: New file.
27691 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27692 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27693 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27694 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27695 (DCZID_DZP_MASK): New macro.
27696 (DCZID_BS_MASK): Likewise.
27697 (init_cpu_features): Read and set zva_size.
27698 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27699 (struct cpu_features): New member zva_size.
27700
27701 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27702 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27703 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27704
27705 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27706 backwards. Fix timing computation.
27707 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27708 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27709 on memset by N at a time. Fix timing computation.
27710
27711 2017-11-20 Florian Weimer <fweimer@redhat.com>
27712
27713 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27714 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27715
27716 2017-11-19 Florian Weimer <fweimer@redhat.com>
27717
27718 manual: Document mprotect
27719 * manual/memory.texi (Memory Protection): New section.
27720 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27721 documentation of PROT_* flags and reference the Memory Protection
27722 section instead.
27723
27724 2017-11-19 Florian Weimer <fweimer@redhat.com>
27725
27726 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27727 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27728 (Scatter-Gather): ... to here. Remove misleading comment.
27729
27730 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27731
27732 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27733 style.
27734
27735 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27736 when /proc/<pid>/setgroups does not exist.
27737
27738 2017-11-18 Florian Weimer <fweimer@redhat.com>
27739
27740 * sysdeps/unix/sysv/linux/tst-ttyname.c
27741 (become_root_in_mount_ns): Remove.
27742 (do_in_chroot_1): Call support_enter_mount_namespace.
27743 (do_in_chroot_2): Likewise.
27744 (do_test): Call support_become_root early.
27745
27746 2017-11-18 Florian Weimer <fweimer@redhat.com>
27747
27748 * support/namespace.h (support_enter_mount_namespace): Declare.
27749 * support/support_enter_mount_namespace.c: New file.
27750 * support/Makefile (libsupport-routines): Add
27751 support_enter_mount_namespace.
27752
27753 2017-11-18 Florian Weimer <fweimer@redhat.com>
27754
27755 * support/temp_file.c (support_create_temp_directory): Use
27756 test_dir and do not rely on the presence of the XXXXXX suffix.
27757 * support/temp_file.h (support_create_temp_directory): Update
27758 comment.
27759 * support/tst-xreadlink.c (do_test): Adjust.
27760 * support/support_chroot.c (support_chroot_create): Likewise.
27761
27762 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27763
27764 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27765 macro.
27766 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27767 htm-no-suspend.
27768
27769 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27770
27771 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27772 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27773 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27774 (ceill): Define using libm_alias_ldouble.
27775 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27776 <libm-alias-ldouble.h>.
27777 (copysignl): Define using libm_alias_ldouble.
27778 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27779 (fabsl): Define using libm_alias_ldouble.
27780 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27781 (floorl): Define using libm_alias_ldouble.
27782 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27783 (fmaxl): Define using libm_alias_ldouble.
27784 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27785 (fminl): Define using libm_alias_ldouble.
27786 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27787 (llrintl): Define using libm_alias_ldouble.
27788 (lrintl): Likewise.
27789 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27790 <libm-alias-ldouble.h>.
27791 (nearbyintl): Define using libm_alias_ldouble.
27792 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27793 (truncl): Define using libm_alias_ldouble.
27794 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27795 <libm-alias-ldouble.h>.
27796 (lrintl): Define using libm_alias_ldouble.
27797
27798 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27799 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27800 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27801 (asinhl): Define using libm_alias_ldouble.
27802 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27803 (atanl): Define using libm_alias_ldouble.
27804 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27805 (cbrtl): Define using libm_alias_ldouble.
27806 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27807 (ceill): Define using libm_alias_ldouble.
27808 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27809 (copysignl): Define using libm_alias_ldouble.
27810 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27811 (fabsl): Define using libm_alias_ldouble.
27812 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27813 (floorl): Define using libm_alias_ldouble.
27814 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27815 (fmaxl): Define using libm_alias_ldouble.
27816 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27817 (fminl): Define using libm_alias_ldouble.
27818 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27819 (frexpl): Define using libm_alias_ldouble.
27820 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27821 (llrintl): Define using libm_alias_ldouble.
27822 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27823 (logbl): Define using libm_alias_ldouble.
27824 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27825 (lrintl): Define using libm_alias_ldouble.
27826 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27827 (nearbyintl): Define using libm_alias_ldouble.
27828 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27829 (nextafterl): Define using libm_alias_ldouble.
27830 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27831 (remquol): Define using libm_alias_ldouble.
27832 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27833 (rintl): Define using libm_alias_ldouble.
27834 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27835 (truncl): Define using libm_alias_ldouble.
27836 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27837 (fmaxl): Define using libm_alias_ldouble.
27838 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27839 (fminl): Define using libm_alias_ldouble.
27840
27841 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27842 to C syntax instead of availability and properties of types.
27843 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27844 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27845 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27846 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27847 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27848 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27849
27850 2017-11-17 Florian Weimer <fweimer@redhat.com>
27851
27852 support_become_root: Enable file creation in namespaces.
27853 * support/support_become_root.c (setup_mapping): New function.
27854 (support_become_root): Call it.
27855
27856 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27857
27858 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27859 macro.
27860
27861 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27862
27863 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27864 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27865
27866 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27867
27868 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27869
27870 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27871 version to 4.14.
27872
27873 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27874
27875 * INSTALL: Fix botched up regeneration.
27876
27877 * NEWS: Update sourceare link to https.
27878 * configure.ac: Likewise.
27879 * crypt/md5test-giant.c: Likewise.
27880 * dlfcn/bug-atexit1.c: Likewise.
27881 * dlfcn/bug-atexit2.c: Likewise.
27882 * localedata/README: Likewise.
27883 * malloc/tst-mallocfork.c: Likewise.
27884 * manual/install.texi: Likewise.
27885 * nptl/tst-pthread-getattr.c: Likewise.
27886 * stdio-common/tst-fgets.c: Likewise.
27887 * stdio-common/tst-fwrite.c: Likewise.
27888 * sunrpc/Makefile: Likewise.
27889 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27890 * wcsmbs/tst-mbrtowc2.c: Likewise.
27891 * configure: Regenerate.
27892 * INSTALL: Regenerate.
27893
27894 2017-11-15 Martin Sebor <msebor@redhat.com>
27895
27896 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27897 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27898 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27899
27900 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27901
27902 [BZ #22145]
27903 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27904 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27905
27906 [BZ #22145]
27907 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27908 Defer is_pty check until end of the function.
27909 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27910
27911 [BZ #22145]
27912 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27913 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27914 (ttyname): Likewise.
27915 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27916 (__ttyname_r): Likewise.
27917
27918 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27919 int to bool.
27920
27921 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27922
27923 * manual/terminal.texi (Is It a Terminal):
27924 Mention ENODEV for ttyname and ttyname_r.
27925
27926 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27927
27928 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27929 constant and macro.
27930
27931 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27932 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27933 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27934 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27935 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27936 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27937
27938 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27939
27940 * signal/sigrelse.c (sigrelse): Optimize implementation.
27941
27942 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27943 (__sigpause): Rely on __sigsuspend to implement single thread
27944 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27945
27946 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27947
27948 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27949 kernel version to 4.14.
27950
27951 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27952
27953 [BZ #22442]
27954 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27955 Check if ifname is too long.
27956
27957 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27958
27959 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27960
27961 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27962
27963 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27964 was accidentally lost.
27965
27966 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27967
27968 * localedata/locales/az_IR: Add standard copyright header.
27969
27970 2017-11-15 Florian Weimer <fweimer@redhat.com>
27971
27972 [BZ #22439]
27973 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27974 not just the top one. Output a new "subheaps" statistic.
27975
27976 2017-11-15 Florian Weimer <fweimer@redhat.com>
27977
27978 [BZ #22408]
27979 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27980 under the per-arena lock.
27981 * malloc/Makefile (tests): Add tst-malloc_info.
27982 (tst-malloc_info): Link with libpthread.
27983 * malloc/tst-malloc_info.c: New file.
27984
27985 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27986
27987 [BZ #21660]
27988 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27989 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27990 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27991 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27992 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27993 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27994 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27995 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27996 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27997 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27998 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27999 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28000 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28001 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28002 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28003 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28004 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28005 (__floating_type): Likewise.
28006 (__real_integer_type): Likewise.
28007 (__complex_integer_type): Likewise.
28008 (__expr_is_real): Likewise.
28009 (__tgmath_real_type_sub): Likewise.
28010 (__tgmath_real_type): Likewise.
28011 (__tgmath_complex_type_sub): Likewise.
28012 (__tgmath_complex_type): Likewise.
28013 (__TGMATH_F128): Likewise.
28014 (__TGMATH_CF128): Likewise.
28015 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28016 new macros.
28017 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28018 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28019 Likewise.
28020 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28021 Likewise.
28022 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28023 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28024 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28025 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28026 Likewise.
28027 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28028 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28029 Likewise.
28030 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28031 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28032 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28033 Likewise.
28034 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28035 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28036 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28037 (cimag): Likewise.
28038 (creal): Likewise.
28039
28040 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28041
28042 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28043 for stpncpy calls for GCC 8.
28044 (test_strncat): Disable -Wstringop-truncation warning for strncat
28045 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28046 strncat call for GCC 7.
28047 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28048 calls for GCC 8.
28049 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28050 trailing NUL.
28051
28052 * string/bug-strncat1.c: Include <libc-diag.h>.
28053 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28054
28055 2017-11-13 Claude Paroz <claude@2xlibre.net>
28056
28057 [BZ #22387]
28058 * localedata/locales/aa_DJ: Improved readibility by replacing
28059 <Uxxxx> sequences in the ASCII printable range by their ASCII
28060 character equivalents.
28061 * localedata/locales/aa_ER: Likewise.
28062 * localedata/locales/aa_ER@saaho: Likewise.
28063 * localedata/locales/aa_ET: Likewise.
28064 * localedata/locales/af_ZA: Likewise.
28065 * localedata/locales/agr_PE: Likewise.
28066 * localedata/locales/ak_GH: Likewise.
28067 * localedata/locales/am_ET: Likewise.
28068 * localedata/locales/anp_IN: Likewise.
28069 * localedata/locales/ar_AE: Likewise.
28070 * localedata/locales/ar_BH: Likewise.
28071 * localedata/locales/ar_DZ: Likewise.
28072 * localedata/locales/ar_EG: Likewise.
28073 * localedata/locales/ar_IN: Likewise.
28074 * localedata/locales/ar_IQ: Likewise.
28075 * localedata/locales/ar_JO: Likewise.
28076 * localedata/locales/ar_KW: Likewise.
28077 * localedata/locales/ar_LB: Likewise.
28078 * localedata/locales/ar_LY: Likewise.
28079 * localedata/locales/ar_MA: Likewise.
28080 * localedata/locales/ar_OM: Likewise.
28081 * localedata/locales/ar_QA: Likewise.
28082 * localedata/locales/ar_SA: Likewise.
28083 * localedata/locales/ar_SD: Likewise.
28084 * localedata/locales/ar_SS: Likewise.
28085 * localedata/locales/ar_SY: Likewise.
28086 * localedata/locales/ar_TN: Likewise.
28087 * localedata/locales/ar_YE: Likewise.
28088 * localedata/locales/as_IN: Likewise.
28089 * localedata/locales/ast_ES: Likewise.
28090 * localedata/locales/ayc_PE: Likewise.
28091 * localedata/locales/az_AZ: Likewise.
28092 * localedata/locales/az_IR: Likewise.
28093 * localedata/locales/be_BY: Likewise.
28094 * localedata/locales/be_BY@latin: Likewise.
28095 * localedata/locales/bem_ZM: Likewise.
28096 * localedata/locales/ber_DZ: Likewise.
28097 * localedata/locales/ber_MA: Likewise.
28098 * localedata/locales/bg_BG: Likewise.
28099 * localedata/locales/bhb_IN: Likewise.
28100 * localedata/locales/bho_IN: Likewise.
28101 * localedata/locales/bi_VU: Likewise.
28102 * localedata/locales/bn_BD: Likewise.
28103 * localedata/locales/bn_IN: Likewise.
28104 * localedata/locales/bo_CN: Likewise.
28105 * localedata/locales/bo_IN: Likewise.
28106 * localedata/locales/br_FR: Likewise.
28107 * localedata/locales/brx_IN: Likewise.
28108 * localedata/locales/bs_BA: Likewise.
28109 * localedata/locales/byn_ER: Likewise.
28110 * localedata/locales/ca_AD: Likewise.
28111 * localedata/locales/ca_ES: Likewise.
28112 * localedata/locales/ca_FR: Likewise.
28113 * localedata/locales/ca_IT: Likewise.
28114 * localedata/locales/ce_RU: Likewise.
28115 * localedata/locales/chr_US: Likewise.
28116 * localedata/locales/cmn_TW: Likewise.
28117 * localedata/locales/crh_UA: Likewise.
28118 * localedata/locales/cs_CZ: Likewise.
28119 * localedata/locales/csb_PL: Likewise.
28120 * localedata/locales/cv_RU: Likewise.
28121 * localedata/locales/cy_GB: Likewise.
28122 * localedata/locales/da_DK: Likewise.
28123 * localedata/locales/de_AT: Likewise.
28124 * localedata/locales/de_BE: Likewise.
28125 * localedata/locales/de_CH: Likewise.
28126 * localedata/locales/de_DE: Likewise.
28127 * localedata/locales/de_IT: Likewise.
28128 * localedata/locales/de_LI: Likewise.
28129 * localedata/locales/de_LU: Likewise.
28130 * localedata/locales/doi_IN: Likewise.
28131 * localedata/locales/dv_MV: Likewise.
28132 * localedata/locales/dz_BT: Likewise.
28133 * localedata/locales/el_CY: Likewise.
28134 * localedata/locales/el_GR: Likewise.
28135 * localedata/locales/en_AG: Likewise.
28136 * localedata/locales/en_AU: Likewise.
28137 * localedata/locales/en_BW: Likewise.
28138 * localedata/locales/en_CA: Likewise.
28139 * localedata/locales/en_DK: Likewise.
28140 * localedata/locales/en_GB: Likewise.
28141 * localedata/locales/en_HK: Likewise.
28142 * localedata/locales/en_IE: Likewise.
28143 * localedata/locales/en_IL: Likewise.
28144 * localedata/locales/en_IN: Likewise.
28145 * localedata/locales/en_NG: Likewise.
28146 * localedata/locales/en_NZ: Likewise.
28147 * localedata/locales/en_PH: Likewise.
28148 * localedata/locales/en_SG: Likewise.
28149 * localedata/locales/en_US: Likewise.
28150 * localedata/locales/en_ZA: Likewise.
28151 * localedata/locales/en_ZM: Likewise.
28152 * localedata/locales/en_ZW: Likewise.
28153 * localedata/locales/eo: Likewise.
28154 * localedata/locales/es_AR: Likewise.
28155 * localedata/locales/es_BO: Likewise.
28156 * localedata/locales/es_CL: Likewise.
28157 * localedata/locales/es_CO: Likewise.
28158 * localedata/locales/es_CR: Likewise.
28159 * localedata/locales/es_CU: Likewise.
28160 * localedata/locales/es_DO: Likewise.
28161 * localedata/locales/es_EC: Likewise.
28162 * localedata/locales/es_ES: Likewise.
28163 * localedata/locales/es_GT: Likewise.
28164 * localedata/locales/es_HN: Likewise.
28165 * localedata/locales/es_MX: Likewise.
28166 * localedata/locales/es_NI: Likewise.
28167 * localedata/locales/es_PA: Likewise.
28168 * localedata/locales/es_PE: Likewise.
28169 * localedata/locales/es_PR: Likewise.
28170 * localedata/locales/es_PY: Likewise.
28171 * localedata/locales/es_SV: Likewise.
28172 * localedata/locales/es_US: Likewise.
28173 * localedata/locales/es_UY: Likewise.
28174 * localedata/locales/es_VE: Likewise.
28175 * localedata/locales/et_EE: Likewise.
28176 * localedata/locales/eu_ES: Likewise.
28177 * localedata/locales/eu_ES@euro: Likewise.
28178 * localedata/locales/fa_IR: Likewise.
28179 * localedata/locales/ff_SN: Likewise.
28180 * localedata/locales/fi_FI: Likewise.
28181 * localedata/locales/fil_PH: Likewise.
28182 * localedata/locales/fo_FO: Likewise.
28183 * localedata/locales/fr_BE: Likewise.
28184 * localedata/locales/fr_CA: Likewise.
28185 * localedata/locales/fr_CH: Likewise.
28186 * localedata/locales/fr_FR: Likewise.
28187 * localedata/locales/fr_LU: Likewise.
28188 * localedata/locales/fur_IT: Likewise.
28189 * localedata/locales/fy_DE: Likewise.
28190 * localedata/locales/fy_NL: Likewise.
28191 * localedata/locales/ga_IE: Likewise.
28192 * localedata/locales/gd_GB: Likewise.
28193 * localedata/locales/gez_ER: Likewise.
28194 * localedata/locales/gez_ET: Likewise.
28195 * localedata/locales/gl_ES: Likewise.
28196 * localedata/locales/gu_IN: Likewise.
28197 * localedata/locales/gv_GB: Likewise.
28198 * localedata/locales/ha_NG: Likewise.
28199 * localedata/locales/hak_TW: Likewise.
28200 * localedata/locales/he_IL: Likewise.
28201 * localedata/locales/hi_IN: Likewise.
28202 * localedata/locales/hif_FJ: Likewise.
28203 * localedata/locales/hne_IN: Likewise.
28204 * localedata/locales/hr_HR: Likewise.
28205 * localedata/locales/hsb_DE: Likewise.
28206 * localedata/locales/ht_HT: Likewise.
28207 * localedata/locales/hu_HU: Likewise.
28208 * localedata/locales/hy_AM: Likewise.
28209 * localedata/locales/i18n: Likewise.
28210 * localedata/locales/ia_FR: Likewise.
28211 * localedata/locales/id_ID: Likewise.
28212 * localedata/locales/ig_NG: Likewise.
28213 * localedata/locales/ik_CA: Likewise.
28214 * localedata/locales/is_IS: Likewise.
28215 * localedata/locales/it_CH: Likewise.
28216 * localedata/locales/it_IT: Likewise.
28217 * localedata/locales/iu_CA: Likewise.
28218 * localedata/locales/ja_JP: Likewise.
28219 * localedata/locales/ka_GE: Likewise.
28220 * localedata/locales/kk_KZ: Likewise.
28221 * localedata/locales/kl_GL: Likewise.
28222 * localedata/locales/kn_IN: Likewise.
28223 * localedata/locales/ko_KR: Likewise.
28224 * localedata/locales/kok_IN: Likewise.
28225 * localedata/locales/ks_IN: Likewise.
28226 * localedata/locales/ks_IN@devanagari: Likewise.
28227 * localedata/locales/ku_TR: Likewise.
28228 * localedata/locales/kw_GB: Likewise.
28229 * localedata/locales/ky_KG: Likewise.
28230 * localedata/locales/lb_LU: Likewise.
28231 * localedata/locales/lg_UG: Likewise.
28232 * localedata/locales/li_BE: Likewise.
28233 * localedata/locales/li_NL: Likewise.
28234 * localedata/locales/lij_IT: Likewise.
28235 * localedata/locales/ln_CD: Likewise.
28236 * localedata/locales/lo_LA: Likewise.
28237 * localedata/locales/lt_LT: Likewise.
28238 * localedata/locales/lv_LV: Likewise.
28239 * localedata/locales/lzh_TW: Likewise.
28240 * localedata/locales/mag_IN: Likewise.
28241 * localedata/locales/mai_IN: Likewise.
28242 * localedata/locales/mg_MG: Likewise.
28243 * localedata/locales/mhr_RU: Likewise.
28244 * localedata/locales/mi_NZ: Likewise.
28245 * localedata/locales/mk_MK: Likewise.
28246 * localedata/locales/ml_IN: Likewise.
28247 * localedata/locales/mn_MN: Likewise.
28248 * localedata/locales/mni_IN: Likewise.
28249 * localedata/locales/mr_IN: Likewise.
28250 * localedata/locales/ms_MY: Likewise.
28251 * localedata/locales/mt_MT: Likewise.
28252 * localedata/locales/my_MM: Likewise.
28253 * localedata/locales/nan_TW: Likewise.
28254 * localedata/locales/nan_TW@latin: Likewise.
28255 * localedata/locales/nb_NO: Likewise.
28256 * localedata/locales/nds_DE: Likewise.
28257 * localedata/locales/nds_NL: Likewise.
28258 * localedata/locales/ne_NP: Likewise.
28259 * localedata/locales/nhn_MX: Likewise.
28260 * localedata/locales/niu_NU: Likewise.
28261 * localedata/locales/niu_NZ: Likewise.
28262 * localedata/locales/nl_AW: Likewise.
28263 * localedata/locales/nl_BE: Likewise.
28264 * localedata/locales/nl_NL: Likewise.
28265 * localedata/locales/nn_NO: Likewise.
28266 * localedata/locales/nr_ZA: Likewise.
28267 * localedata/locales/nso_ZA: Likewise.
28268 * localedata/locales/oc_FR: Likewise.
28269 * localedata/locales/om_ET: Likewise.
28270 * localedata/locales/om_KE: Likewise.
28271 * localedata/locales/or_IN: Likewise.
28272 * localedata/locales/os_RU: Likewise.
28273 * localedata/locales/pa_IN: Likewise.
28274 * localedata/locales/pa_PK: Likewise.
28275 * localedata/locales/pap_AW: Likewise.
28276 * localedata/locales/pap_CW: Likewise.
28277 * localedata/locales/pl_PL: Likewise.
28278 * localedata/locales/ps_AF: Likewise.
28279 * localedata/locales/pt_BR: Likewise.
28280 * localedata/locales/pt_PT: Likewise.
28281 * localedata/locales/quz_PE: Likewise.
28282 * localedata/locales/raj_IN: Likewise.
28283 * localedata/locales/ro_RO: Likewise.
28284 * localedata/locales/ru_RU: Likewise.
28285 * localedata/locales/ru_UA: Likewise.
28286 * localedata/locales/rw_RW: Likewise.
28287 * localedata/locales/sa_IN: Likewise.
28288 * localedata/locales/sat_IN: Likewise.
28289 * localedata/locales/sc_IT: Likewise.
28290 * localedata/locales/sd_IN: Likewise.
28291 * localedata/locales/sd_IN@devanagari: Likewise.
28292 * localedata/locales/se_NO: Likewise.
28293 * localedata/locales/sgs_LT: Likewise.
28294 * localedata/locales/shs_CA: Likewise.
28295 * localedata/locales/si_LK: Likewise.
28296 * localedata/locales/sid_ET: Likewise.
28297 * localedata/locales/sk_SK: Likewise.
28298 * localedata/locales/sl_SI: Likewise.
28299 * localedata/locales/sm_WS: Likewise.
28300 * localedata/locales/so_DJ: Likewise.
28301 * localedata/locales/so_ET: Likewise.
28302 * localedata/locales/so_KE: Likewise.
28303 * localedata/locales/so_SO: Likewise.
28304 * localedata/locales/sq_AL: Likewise.
28305 * localedata/locales/sq_MK: Likewise.
28306 * localedata/locales/sr_ME: Likewise.
28307 * localedata/locales/sr_RS: Likewise.
28308 * localedata/locales/sr_RS@latin: Likewise.
28309 * localedata/locales/ss_ZA: Likewise.
28310 * localedata/locales/st_ZA: Likewise.
28311 * localedata/locales/sv_FI: Likewise.
28312 * localedata/locales/sv_SE: Likewise.
28313 * localedata/locales/sw_KE: Likewise.
28314 * localedata/locales/sw_TZ: Likewise.
28315 * localedata/locales/szl_PL: Likewise.
28316 * localedata/locales/ta_IN: Likewise.
28317 * localedata/locales/ta_LK: Likewise.
28318 * localedata/locales/tcy_IN: Likewise.
28319 * localedata/locales/te_IN: Likewise.
28320 * localedata/locales/tg_TJ: Likewise.
28321 * localedata/locales/th_TH: Likewise.
28322 * localedata/locales/the_NP: Likewise.
28323 * localedata/locales/ti_ER: Likewise.
28324 * localedata/locales/ti_ET: Likewise.
28325 * localedata/locales/tig_ER: Likewise.
28326 * localedata/locales/tk_TM: Likewise.
28327 * localedata/locales/tl_PH: Likewise.
28328 * localedata/locales/tn_ZA: Likewise.
28329 * localedata/locales/to_TO: Likewise.
28330 * localedata/locales/tpi_PG: Likewise.
28331 * localedata/locales/tr_CY: Likewise.
28332 * localedata/locales/tr_TR: Likewise.
28333 * localedata/locales/ts_ZA: Likewise.
28334 * localedata/locales/tt_RU: Likewise.
28335 * localedata/locales/tt_RU@iqtelif: Likewise.
28336 * localedata/locales/ug_CN: Likewise.
28337 * localedata/locales/uk_UA: Likewise.
28338 * localedata/locales/unm_US: Likewise.
28339 * localedata/locales/ur_IN: Likewise.
28340 * localedata/locales/ur_PK: Likewise.
28341 * localedata/locales/uz_UZ: Likewise.
28342 * localedata/locales/uz_UZ@cyrillic: Likewise.
28343 * localedata/locales/ve_ZA: Likewise.
28344 * localedata/locales/vi_VN: Likewise.
28345 * localedata/locales/wa_BE: Likewise.
28346 * localedata/locales/wae_CH: Likewise.
28347 * localedata/locales/wal_ET: Likewise.
28348 * localedata/locales/wo_SN: Likewise.
28349 * localedata/locales/xh_ZA: Likewise.
28350 * localedata/locales/yi_US: Likewise.
28351 * localedata/locales/yo_NG: Likewise.
28352 * localedata/locales/yue_HK: Likewise.
28353 * localedata/locales/yuw_PG: Likewise.
28354 * localedata/locales/zh_CN: Likewise.
28355 * localedata/locales/zh_HK: Likewise.
28356 * localedata/locales/zh_SG: Likewise.
28357 * localedata/locales/zh_TW: Likewise.
28358 * localedata/locales/zu_ZA: Likewise.
28359
28360 2017-11-13 Florian Weimer <fweimer@redhat.com>
28361
28362 * support/next_to_fault.h, support/next_to_fault.c: New files.
28363 * support/Makefile (libsupport-routines): Add next_to_fault.
28364 * resolv/tst-inet_pton.c (struct next_to_fault)
28365 (next_to_fault_allocate, next_to_fault_free): Remove.
28366 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28367
28368 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28369
28370 * elf/dl-support.c: Include <dl-procruntime.c>.
28371 * include/link.h: Include <link_map.h>.
28372 * sysdeps/generic/dl-procruntime.c: New file.
28373 * sysdeps/generic/link_map.h: Likewise.
28374 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28375 the writable ld.so namespace.
28376
28377 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28378
28379 timezone: pacify GCC -Wstringop-truncation
28380 Problem reported by Martin Sebor in:
28381 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28382 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28383
28384 2017-11-12 Florian Weimer <fweimer@redhat.com>
28385
28386 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28387 tst-xreadlink.
28388 (tests): Add tst-xreadlink.
28389 * support/support.h (xstrndup): Declare.
28390 * support/xunistd.h (xunlink, xreadlink): Declare.
28391 * support/temp_file.h (support_create_temp_directory): Declare.
28392 * support/temp_file.c (support_create_temp_directory): New function.
28393 * support/support_chroot.c (support_chroot_create): Use it.
28394 * support/xreadlink.c: New file.
28395 * support/xstrndup.c: Likewise.
28396 * support/xunlink.c: Likewise.
28397 * support/tst-xreadlink.c: Likewise.
28398
28399 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28400
28401 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28402
28403 2017-11-11 Florian Weimer <fweimer@redhat.com>
28404
28405 [BZ #22409]
28406 [BZ #22412]
28407 * resolv/res_comp.c (printable_string, binary_hnok)
28408 (binary_leading_dash): New functions.
28409 (res_hnok): Reimplement using these functions and ns_name_pton.
28410 (res_ownok): Likewise.
28411 (res_mailok): Reimplement using printable_string, ns_name_pton and
28412 binary_hnok.
28413 (res_dnok): Reimplement using printable_string and ns_name_pton.
28414 * resolv/tst-res_hnok.c (tests): Add additional tests.
28415 (LETTERDIGITS, PRINTABLE): Define.
28416 (do_test): Adjust one_char results.
28417
28418 2017-11-11 Florian Weimer <fweimer@redhat.com>
28419
28420 [BZ #22413]
28421 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28422 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28423
28424 2017-11-11 Florian Weimer <fweimer@redhat.com>
28425
28426 * resolv/tst-ns_name_pton.c: New file.
28427 * resolv/Makefile (tests): Add tst-ns_name_pton.
28428 (tst-ns_name_pton): Link against libresolv.
28429
28430 2017-11-11 Florian Weimer <fweimer@redhat.com>
28431
28432 * resolv/tst-res_hnok.c: New file.
28433 * resolv/Makefile (tests): Add tst-res_hnok.
28434 (tst-res_hnok): Link against libresolv.
28435
28436 2017-11-11 Florian Weimer <fweimer@redhat.com>
28437
28438 * resolv/tst-resolv-network.c: Use test framework instead explicit
28439 main function.
28440
28441 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28442
28443 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28444 <jmp_buf-macros.h>.
28445 [!_ISOMAC] (STR_HELPER): New.
28446 [!_ISOMAC] (STR): Likewise.
28447 [!_ISOMAC] (TEST_SIZE): Likewise.
28448 [!_ISOMAC] (TEST_ALIGN): Likewise.
28449 [!_ISOMAC] (TEST_OFFSET): Likewise.
28450 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28451 field offsets of jmp_buf as well as sigjmp_buf.
28452 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28453 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28454 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28455 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28456 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28457 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28458 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28459 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28460 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28461 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28462 Likewise.
28463 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28464 Likewise.
28465 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28466 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28467 Likewise.
28468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28469 Likewise.
28470 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28471 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28472 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28473 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28474 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28475 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28476 Likewise.
28477 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28478 Likewise.
28479 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28480 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28481 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28482
28483 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28484
28485 * include/float.h
28486 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28487 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28488 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28489 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28490 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28491 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28492 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28493 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28494 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28495 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28496 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28497 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28498 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28499 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28500 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28501 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28502 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28503 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28504 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28505 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28506 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28507 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28508 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28509 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28510 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28511 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28512 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28513 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28514 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28515 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28516 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28517 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28518 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28519 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28520 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28521 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28522 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28523 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28524 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28525 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28526 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28527 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28528 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28529 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28530 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28531 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28532 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28533 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28534 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28535 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28536 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28537 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28538 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28539 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28540 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28541 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28542 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28543 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28544 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28545 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28546 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28547 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28548 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28549 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28550 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28551 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28552 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28553 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28554 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28555 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28556 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28557 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28558 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28559 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28560 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28561 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28562 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28563 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28564 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28565 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28566 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28567 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28568 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28569 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28570 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28571 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28572 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28573 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28574
28575 * stdlib/tst-strtod.h (F16): New macro.
28576 (F32): Likewise.
28577 (F64): Likewise.
28578 (F32X): Likewise.
28579 (F64X): Likewise.
28580 (F128X): Likewise.
28581 (IF_FLOAT16): Likewise.
28582 (IF_FLOAT32): Likewise.
28583 (IF_FLOAT64): Likewise.
28584 (IF_FLOAT32X): Likewise.
28585 (IF_FLOAT64X): Likewise.
28586 (IF_FLOAT128X): Likewise.
28587 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28588 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28589 (STRTOD_TEST_FOREACH): Likewise.
28590 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28591 (CHOOSE_f64): Likewise.
28592 (CHOOSE_f32x): Likewise.
28593 (CHOOSE_f64x): Likewise.
28594
28595 2017-11-07 Andreas Schwab <schwab@suse.de>
28596
28597 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28598
28599 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28600
28601 [BZ #22403]
28602 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28603 to be escaped.
28604 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28605 to be escaped.
28606
28607 2017-11-07 Claude Paroz <claude@2xlibre.net>
28608
28609 [BZ #22403]
28610 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28611 to be escaped.
28612 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28613 to be escaped.
28614 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28615 to be escaped.
28616
28617 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28618
28619 [BZ #22298]
28620 * nptl/allocatestack.c (allocate_stack): Check if
28621 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28622 __PTHREAD_MUTEX_HAVE_PREV is defined.
28623 * nptl/descr.h (pthread): Likewise.
28624 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28625 Likewise.
28626 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28627 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28628 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28629 * sysdeps/nptl/bits/thread-shared-types.h
28630 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28631 defines.
28632 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28633 of __WORDSIZE for internal layout.
28634 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28635 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28636 instead of __WORDSIZE whether to use an union for __spins and __list
28637 fields.
28638 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28639 case.
28640 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28641 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28642 defines.
28643 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28644 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28645 Likewise.
28646 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28647 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28648 Likewise.
28649 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28650 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28651 Likewise.
28652 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28653 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28654 Likewise.
28655 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28656 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28657 Likewise.
28658 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28659 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28660 Likewise.
28661 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28662 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28663 Likewise.
28664 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28665 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28666 Likewise.
28667 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28668 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28669 Likewise.
28670 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28671 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28672 Likewise.
28673 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28674 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28675 Likewise.
28676 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28677 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28678 Likewise.
28679 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28680 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28681 Likewise.
28682 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28683 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28684 Likewise.
28685
28686 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28687 New macros.
28688 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28689 checks for expected input type size.
28690 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28691 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28692 Likewise.
28693 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28694 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28695 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28696 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28697 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28698 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28699 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28700 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28701 superflous runtime assert check.
28702 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28703 Likewise.
28704 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28705 Likewise.
28706 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28707 Likewise.
28708 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28709 Likewise.
28710 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28711 Likewise.
28712 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28713 Likewise.
28714 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28715 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28716 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28717 Likewise.
28718 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28719 Likewise.
28720 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28721 Likewise.
28722 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28723 Likewise.
28724 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28725 Likewise.
28726 * nptl/pthread_attr_setinheritsched.c
28727 (__pthread_attr_setinheritsched): Likewise.
28728 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28729 Likewise.
28730 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28731 Likewise.
28732 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28733 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28734 __old_pthread_attr_setstack): Likewise.
28735 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28736 Likewise.
28737 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28738 Likewise.
28739 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28740 Likewise.
28741 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28742 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28743 Likewise.
28744 * nptl/tst-typesizes.c: Remove file.
28745
28746 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28747 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28748 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28749 checks for internal pthread_mutex_t offsets.
28750 * sysdeps/aarch64/nptl/pthread-offsets.h
28751 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28752 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28753 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28754 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28755 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28756 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28757 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28758 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28759 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28760 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28761 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28762 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28763 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28764 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28765 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28766 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28767 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28768 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28769
28770 2017-11-07 Florian Weimer <fweimer@redhat.com>
28771
28772 * bits/mman-linux.h: Move ...
28773 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28774 comment.
28775 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28776 outdated comment.
28777
28778 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28779
28780 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28781 Redefine STRNLEN as __strnlen_power8.
28782
28783 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28784
28785 * signal/sighold.c (sighold): Optimize implementation.
28786
28787 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28788 __NR_rt_sigqueueinfo.
28789
28790 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28791 __sigtimedwait.
28792 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28793 assume __NR_rt_sigtimedwait.
28794 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28795 and add LIBC_CANCEL_HANDLED for cancellation marking.
28796 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28797
28798 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28799 (sysdeps_routines): Add memchr_noneon.
28800 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28801 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28802 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28803 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28804 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28805 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28806 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28807
28808 * sysdeps/arm/arm-ifunc.h: New file.
28809 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28810 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28811 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28812 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28813 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28814 (__memcpy_neon): Avoid create hidden alias.
28815 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28816 (__memcpy_vfp): Likewise.
28817 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28818 (sysdep_routines): Add memcpy_arm.
28819 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28820
28821 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28822
28823 [BZ #22362]
28824 * Makerules (make-link-multidir): New.
28825 * config.make.in (multidir): New.
28826 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28827 * configure: Regenerated.
28828 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28829 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28830 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28831 New target.
28832
28833 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28834
28835 [BZ #22402]
28836 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28837 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28838
28839 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28840
28841 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28842 to be escaped.
28843
28844 2017-11-04 Florian Weimer <fweimer@redhat.com>
28845
28846 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28847
28848 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28849
28850 * math/math.h [__HAVE_DISTINCT_FLOAT16
28851 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28852 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28853 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28854 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28855 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28856 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28857 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28858 (__MATH_TG_F32): New macro.
28859 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28860 (__MATH_TG_F64X): Likewise.
28861 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28862 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28863
28864 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28865
28866 * po/de.po: Update translations.
28867 * po/ru.po: Likewise.
28868
28869 2017-11-03 Florian Weimer <fweimer@redhat.com>
28870
28871 * manual/filesys.texi (Hard Links): Document linkat.
28872
28873 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28874
28875 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28876 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28877 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28878 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28879 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28880 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28881 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28882 the same as _Float128.
28883 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28884 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28885 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28886
28887 * stdlib/stdlib.h
28888 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28889 Declare.
28890 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28891 Likewise.
28892 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28893 Likewise.
28894 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28895 (strtof32x): Likewise.
28896 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28897 (strtof64x): Likewise.
28898 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28899 (strtof128x): Likewise.
28900 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28901 (strfromf16): Likewise.
28902 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28903 (strfromf32): Likewise.
28904 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28905 (strfromf64): Likewise.
28906 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28907 (strfromf32x): Likewise.
28908 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28909 (strfromf64x): Likewise.
28910 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28911 (strfromf128x): Likewise.
28912 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28913 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28914 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28915 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28916 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28917 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28918
28919 2017-11-03 Richard Henderson <rth@twiddle.net>
28920
28921 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28922
28923 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28924
28925 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28926
28927 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28928
28929 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28930 DT_TLSDESC_GOT initialization.
28931 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28932 (_dl_tlsdesc_resolve_hold): Likewise.
28933 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28934 (_dl_tlsdesc_resolve_hold): Likewise.
28935 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28936 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28937
28938 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28939
28940 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28941
28942 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28943
28944 [BZ #18572]
28945 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28946 non-lazily for R_ARM_TLS_DESC.
28947
28948 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28949
28950 [BZ #17078]
28951 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28952 R_ARM_TLS_DESC case.
28953 (elf_machine_lazy_rel): Remove the prelink check.
28954
28955 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28956
28957 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28958 DT_TLSDESC_GOT initialization.
28959 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28960 (_dl_tlsdesc_resolve_rela): Likewise.
28961 (_dl_tlsdesc_resolve_hold): Likewise.
28962 (_dl_tlsdesc_undefweak): Remove ldar.
28963 (_dl_tlsdesc_dynamic): Likewise.
28964 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28965 (_dl_tlsdesc_resolve_rela): Likewise.
28966 (_dl_tlsdesc_resolve_hold): Likewise.
28967 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28968 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28969 (_dl_tlsdesc_resolve_rela): Likewise.
28970 (_dl_tlsdesc_resolve_hold): Likewise.
28971
28972 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28973
28974 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28975 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28976
28977 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28978
28979 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28980 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28981
28982 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28983
28984 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28985 Declare.
28986 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28987 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28988 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28989 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28990 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28991 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28992 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28993 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28994 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28995 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28996 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28997
28998 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28999
29000 [BZ #22382]
29001 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29002 * localedata/locales/tpi_PG: Add standard header.
29003
29004 2017-11-02 Florian Weimer <fweimer@redhat.com>
29005
29006 test-errno-linux: quotactl can fail with EPERM in containers.
29007 * sysdeps/unix/sysv/linux/test-errno-linux.c
29008 (LIST, LIST_FORWARD): New macros.
29009 (check_error_in_list): New function.
29010 (test_wrp_rv): Accept list of permitted error codes.
29011 (test_wrp_rv2): Remove.
29012 (test_wrp): Call test_wrp_rv with list of error codes.
29013 (test_wrp2): Accept list of error codes.
29014 (do_test): Adjust. Allow EPERM for quotactl.
29015
29016 2017-11-02 Florian Weimer <fweimer@redhat.com>
29017
29018 * stdio-common/bug16.c (do_test): Use array_length.
29019 * stdio-common/errlist.c (_sys_nerr): Likewise.
29020 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29021 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29022 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29023 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29024 (do_test): Use array_length.
29025 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29026 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29027 * stdio-common/tst-printf-round.c (do_test): Likewise.
29028 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29029 (CHECK): Use array_length.
29030 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29031 * stdio-common/tstscanf.c (main): Likewise.
29032 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29033
29034 2017-11-02 Florian Weimer <fweimer@redhat.com>
29035
29036 Add array_length and array_end macros.
29037 * include/array_length.h: New file.
29038
29039 2017-11-02 Florian Weimer <fweimer@redhat.com>
29040
29041 [BZ #22332]
29042 * posix/tst-glob-tilde.c (do_noescape): New variable.
29043 (one_test): Process it.
29044 (do_test): Set do_noescape. Add unescaping test case.
29045
29046 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29047
29048 * math/complex.h
29049 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29050 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29051 with appropriate macros defined and undefined.
29052 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29053 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29054 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29055 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29056 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29057 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29058 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29059 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29060 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29061 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29062
29063 * math/complex.h
29064 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29065 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29066 that for long double. Do not condition define and undefine of
29067 _Mdouble_complex_ on [__CFLOAT128].
29068
29069 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29070
29071 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29072 of <sysdeps/generic/sysdep.h>.
29073 (ALIGNARG): Removed.
29074 (ASM_SIZE_DIRECTIVE): Likewise.
29075 (ENTRY): Likewise.
29076 (END): Likewise.
29077 (ENTRY_CHK): Likewise.
29078 (END_CHK): Likewise.
29079 (syscall_error): Likewise.
29080 (mcount): Likewise.
29081 (PSEUDO_END): Likewise.
29082 (L): Likewise.
29083 (atom_text_section): Likewise.
29084 * sysdeps/x86/sysdep.h: New file.
29085 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29086 of <sysdeps/generic/sysdep.h>.
29087 (ALIGNARG): Removed.
29088 (ASM_SIZE_DIRECTIVE): Likewise.
29089 (ENTRY): Likewise.
29090 (END): Likewise.
29091 (ENTRY_CHK): Likewise.
29092 (END_CHK): Likewise.
29093 (syscall_error): Likewise.
29094 (mcount): Likewise.
29095 (PSEUDO_END): Likewise.
29096 (L): Likewise.
29097 (atom_text_section): Likewise.
29098
29099 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
29100
29101 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29102 category of LC_CTYPE set to "i18n:2012".
29103 * localedata/locales/i18n_ctype: Regenerate.
29104
29105 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29106
29107 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29108 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29109 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29110 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29111
29112 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29113 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29114 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29115 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29116
29117 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29118
29119 * math/complex.h
29120 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29121 New macro.
29122 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29123 Likewise.
29124 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29125 Likewise.
29126 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29127 (CMPLXF32X): Likewise.
29128 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29129 (CMPLXF64X): Likewise.
29130 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29131 (CMPLXF128X): Likewise.
29132
29133 * math/math.h
29134 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29135 (__MATH_EVAL_FMT2): Define to add 0.0f.
29136
29137 2017-10-31 Alan Modra <amodra@gmail.com>
29138
29139 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29140 include sysdep.h.
29141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29142 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29145 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29148 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29151 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29155 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29156 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29157 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29158 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29159 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29160 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29161 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29162 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29163 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29164 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29165 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29166 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29167 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29168 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29169 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29170 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29171 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29172 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29173 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29174 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29175 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29176 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29177 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29178 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29179 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29180 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29181 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29182 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29183 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29184 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29185 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29186 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29187 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29188 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29189 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29190 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29191 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29192 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29193 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29194 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29195 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29196 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29197 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29198 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29199 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29200 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29201 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29202 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29203 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29204 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29205 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29206 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29207 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29208 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29209 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29210
29211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29212 include sysdep.h and math_ldbl_opt.h.
29213
29214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29215 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29217 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29218 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29219 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29221 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29222 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29223 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29224 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29225 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29226 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29230 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29233 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29234 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29236 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29239 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29240
29241 2017-10-31 Alan Modra <amodra@gmail.com>
29242
29243 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29244 string/strncase_l.c, not string/strncase.c.
29245 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29246 (libc_hidden_def): Redefine.
29247
29248 2017-10-31 Alan Modra <amodra@gmail.com>
29249
29250 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29251 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29252 (__strcasecmp): Don't define.
29253
29254 2017-10-31 Alan Modra <amodra@gmail.com>
29255
29256 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29257 IS_IN (libc).
29258 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29259 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29260 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29261
29262 2017-10-31 Alan Modra <amodra@gmail.com>
29263
29264 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29265 USE_AS_STPNCPY.
29266
29267 2017-10-31 Alan Modra <amodra@gmail.com>
29268
29269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29270 Redefine only when SHARED.
29271
29272 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29273
29274 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29275 Include <bits/math-finite.h> with appropriate macros defined and
29276 undefined.
29277 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29278 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29279 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29280 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29281 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29282
29283 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29284 [!_Mlong_double_] (_Mlong_double_): Likewise.
29285 [!_Mfloat16_] (_Mfloat16_): Likewise.
29286 [!_Mfloat32_] (_Mfloat32_): Likewise.
29287 [!_Mfloat64_] (_Mfloat64_): Likewise.
29288 [!_Mfloat128_] (_Mfloat128_): Likewise.
29289 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29290 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29291 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29292 (_Mdouble_): Define without indirection through those macros.
29293 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29294 [!_Mfloat128_] (_Mfloat128_): Likewise.
29295 [_Mlong_double_] (_Mlong_double_): Likewise.
29296 (_Mdouble_): Define without indirection through those macros.
29297 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29298 not add -D_Mlong_double_=double.
29299 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29300 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29301
29302 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29303
29304 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29305
29306 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29307
29308 * sysdeps/x86/libc-start.c: Reformat.
29309
29310 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29311
29312 [BZ #22353]
29313 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29314 (1): Renamed to ...
29315 (L(Src0)): This.
29316 (L(Src1)): New.
29317 (L(Src2)): Likewise.
29318 (L(1)): Renamed to ...
29319 (L(Src3)): This.
29320
29321 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29322
29323 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29324 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29325 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29326 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29327 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29328 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29329 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29330 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29331 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29332 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29333 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29334 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29335 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29336 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29337 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29338 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29339 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29340 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29341 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29342 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29343 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29344 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29345 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29346 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29347 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29348 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29349 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29350 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29351 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29352 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29353 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29354 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29355 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29356 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29357 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29358 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29359 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29360 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29361 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29362 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29363 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29364 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29365 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29366 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29367 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29368 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29369 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29370 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29371 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29372 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29373 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29374 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29375 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29376 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29377 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29378 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29379 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29380 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29381 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29382 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29383 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29384 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29385 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29386 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29387 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29388 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29389
29390 2017-10-30 Florian Weimer <fweimer@redhat.com>
29391
29392 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29393 always defined.
29394 * io/tst-mkdirat.c (do_test): Likewise.
29395 * io/tst-mkfifoat.c (do_test): Likewise.
29396 * io/tst-mknodat.c (do_test): Likewise.
29397 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29398 * locale/programs/locale.c (select_dirs): Likewise.
29399 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29400 * posix/bug-glob2.c (my_readdir): Likewise.
29401 * posix/tst-dir.c (main): Likewise.
29402 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29403 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29404
29405 2017-10-30 Florian Weimer <fweimer@redhat.com>
29406
29407 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29408 just __USE_GNU.
29409
29410 2017-10-30 Florian Weimer <fweimer@redhat.com>
29411
29412 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29413 Convert to support/test-driver.c.
29414 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29415 New macro parameters.
29416 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29417 * posix/tst-gnuglob.c: New file.
29418 * posix/tst-gnuglob64.c: Likewise.
29419 * posix/Makefile (tests): Add tst-gnuglob64.
29420
29421 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29422
29423 [BZ #19485]
29424 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29425 and use a better translation for March in “mon”.
29426 * localedata/locales/csb_PL: Use more ASCII to improve the
29427 readability of the source.
29428
29429 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29430
29431 [BZ #13953]
29432 * localedata/locales/km_KH: Use ASCII as much
29433 as possible for better readability of the source and
29434 remove useless comments.
29435 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29436 was commented out and apparently wrong anyway because it was
29437 using Lao characters. If Buddhist era should be used
29438 for km_KH, a native speaker should write the correct formaat
29439 for Khmer.
29440 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29441 (According to CLDR, the first weekday for Cambodia is Sunday).
29442 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29443 (These were using Lao characters which must be wrong. If we get
29444 the correct data from a native speaker, we could add it back, until
29445 then it is better not to have name_mr and name_mrs at all than
29446 having it wrong).
29447
29448 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29449
29450 * locale/loadlocale.c: Correct size of
29451 _nl_value_type_LC_<category> arrays.
29452
29453 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29454
29455 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29456 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29457 with appropriate macros defined and undefined.
29458 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29459 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29460 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29461 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29462 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29463
29464 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29465
29466 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29467 "-O2 -march=i586".
29468
29469 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29470
29471 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29472 with lowercase letters to make it agree with CLDR.
29473
29474 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29475
29476 [BZ #15260]
29477 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29478 first letters of yesstr and nostr in yesexpr and noexpr,
29479 not for the full words.
29480 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29481 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29482 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29483 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29484 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29485 first letters of yesstr and nostr in yesexpr and noexpr,
29486 until now only English was matched in yesexpr and noexpr.
29487 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29488 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29489 fil but not for tl. As tl and fil are very similar, using fil
29490 is probably better than using English.
29491
29492 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29493
29494 [BZ #21706]
29495 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29496 in yesstr and nostr.
29497
29498 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29499
29500 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29501 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29502 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29503 Likewise.
29504 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29505 Likewise.
29506 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29507 Likewise.
29508 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29509 Likewise.
29510 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29511 (SNANF128X): Likewise.
29512
29513 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29514 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29515 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29516 (HUGE_VAL_F32): Likewise.
29517 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29518 (HUGE_VAL_F64): Likewise.
29519 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29520 (HUGE_VAL_F32X): Likewise.
29521 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29522 (HUGE_VAL_F64X): Likewise.
29523 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29524 (HUGE_VAL_F128X): Likewise.
29525
29526 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29527
29528 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29529 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29530 for the br_FR locale.
29531
29532 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29533
29534 [BZ #21706]
29535 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29536
29537 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29538
29539 * locale/programs/record-status.h: Define globals, and function
29540 prototypes. Move function bodies...
29541 * locale/programs/record-status.c: ... to here. New file.
29542 * iconv/Makefile (iconv_prog-modules): Add record-status.
29543 * locale/Makefile (lib-modules): Likewise.
29544 * iconv/iconv_prog.c: Remove verbose.
29545 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29546 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29547 record a warning about ASCII compatibility.
29548 * locale/programs/ld-monetary.c (monetary_finish): If
29549 warn_int_curr_symbol is true then record a warning about the symbol
29550 not being in our ISO 4217 list.
29551 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29552 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29553 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29554 (OPT_NO_WARN): Define.
29555 (OPT_WARN): Define.
29556 (options): Add entry for --no-warnings, and --warnings.
29557 (set_warnings): New function to enable/disable warnings.
29558 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29559 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29560 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29561 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29562 Pass flags to generate_locale.
29563 (generate_locale): Accept new flag argument and pass it to localedef
29564 invocation.
29565 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29566 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29567
29568 * localedata/Makefile (test-input-data): Use full file name.
29569 * localedata/da_DK.in: Rename to...
29570 * localedata/da_DK.ISO-8859-1.in: ...this.
29571 * localedata/de_DE.in: Rename to...
29572 * localedata/de_DE.ISO-8859-1.in: ...this.
29573 * localedata/en_US.in: Rename to...
29574 * localedata/en_US.ISO-8859-1.in: ...this.
29575 * localedata/fr_FR.in: Rename to...
29576 * localedata/fr_FR.UTF-8.in: ... this.
29577 * localedata/hr_HR.in: Rename to...
29578 * localedata/hr_HR.ISO-8859-2.in: ...this.
29579 * localedata/hu_HU.in: Rename to...
29580 * localedata/hu_HU.UTF-8.in: ...this.
29581 * localedata/si_LK.in: Rename to...
29582 * localedata/si_LK.UTF-8.in: ...this.
29583 * localedata/sv_SE.in: Rename to...
29584 * localedata/sv_SE.ISO-8859-1.in: ...this.
29585 * localedata/tr_TR.in: Rename to...
29586 * localedata/tr_TR.UTF-8.in: ...this.
29587 * localedata/uk_UA.in: Rename to...
29588 * localedata/uk_UA.UTF-8.in: ...this.
29589 * localedata/sort-test.sh: Test file is locale name with the
29590 suffix.
29591
29592 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29593 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29594 file.
29595 * localedata/locales/i18n_ctype: Regenerate.
29596 * localedata/locales/tr_TR: Likewise.
29597 * localedata/locales/translit_circle: Likewise.
29598 * localedata/locales/translit_cjk_compat: Likewise.
29599 * localedata/locales/translit_combining: Likewise.
29600 * localedata/locales/translit_compat: Likewise.
29601 * localedata/locales/translit_font: Likewise.
29602 * localedata/locales/translit_fraction: Likewise.
29603
29604 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29605
29606 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29607 lxvd2x/stxvd2x with lvx/stvx.
29608 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29609
29610 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29611
29612 * include/alloc_buffer.h: Replace "if if " with "if " in
29613 comments.
29614 * sysdeps/mips/memcpy.S: Likkewise.
29615 * sysdeps/mips/memset.S: Likewise.
29616 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29617 Likewise.
29618 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29619 Likewise.
29620 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29621 Likewise.
29622
29623 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29624
29625 [BZ #15261]
29626 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29627 yesexpr and noexpr.
29628 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29629 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29630 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29631 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29632 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29633 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29634 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29635
29636 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29637
29638 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29639 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29640 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29641 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29642 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29643 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29644 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29645 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29646 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29647 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29648 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29649 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29650
29651 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29652
29653 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29654 as possible for better readability of the source.
29655 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29656 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29657 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29658 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29659 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29660 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29661 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29662 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29663 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29664 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29665 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29666 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29667 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29668 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29669 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29670 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29671 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29672 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29673 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29674 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29675 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29676 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29677 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29678 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29679 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29680 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29681 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29682 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29683 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29684 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29685 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29686 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29687 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29688 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29689 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29690 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29691 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29692 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29693 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29694 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29695 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29696 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29697 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29698 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29699 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29700 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29701 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29702 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29703 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29704 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29705 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29706 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29707 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29708 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29709 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29710 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29711 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29712 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29713 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29714 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29715 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29716 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29717 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29718 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29719 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29720 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29721 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29722 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29723 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29724 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29725 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29726 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29727 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29728 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29729 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29730 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29731 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29732 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29733 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29734 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29735 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29736 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29737 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29738 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29739 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29740 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29741 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29742 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29743 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29744 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29745 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29746 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29747 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29748 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29749 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29750 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29751 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29752 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29753 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29754 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29755 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29756 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29757 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29758 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29759 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29760 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29761 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29762 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29763 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29764 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29765 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29766 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29767 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29768 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29769 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29770 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29771 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29772 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29773 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29774 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29775 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29776 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29777 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29778 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29779 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29780 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29781 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29782 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29783 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29784 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29785 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29786 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29787 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29788 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29789 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29790 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29791 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29792 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29793 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29794 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29795 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29796 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29797 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29798 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29799 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29800 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29801 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29802 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29803 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29804 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29805 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29806 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29807 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29808 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29809 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29810 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29811 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29812 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29813 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29814 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29815 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29816 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29817 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29818 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29819 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29820 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29821 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29822 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29823 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29824 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29825 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29826 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29827 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29828 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29829
29830 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29831
29832 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29833 (Use first letters of yesstr and nostr correctly instead of using
29834 full words).
29835
29836 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29837
29838 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29839 (Use first letters of yesstr and nostr correctly).
29840
29841 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29842
29843 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29844 also check for the first characters of yesstr and nostr.
29845 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29846 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29847
29848 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29849
29850 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29851 also check for Chinese characters.
29852
29853 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29854
29855 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29856 match also for the contents of yesstr and nostr. As the first letter
29857 of yesstr and nostr is equal, checking only for the first letter
29858 is not enough.
29859
29860 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29861
29862 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29863 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29864
29865 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29866
29867 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29868 of main contributor.
29869
29870 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29871
29872 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29873 instead of using English.
29874
29875 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29876
29877 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29878 by including the first letters of nostr and yesexpr in the regexp.
29879 Also make it more readable by using ASCII where possible.
29880
29881 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29882
29883 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29884 the first letter of nostr in the regexp. It agrees with CLDR now.
29885 Also make it more readable by using ASCII where possible.
29886
29887 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29888
29889 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29890 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29891 these strings contain a U+17D6 (which somewhat looks like a colon)
29892 instead of a real colon to separate the full words for “yes”
29893 and “no” from the single letter responses.
29894
29895 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29896
29897 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29898 it agree with CLDR (include the first letter of yesstr).
29899 Also make it more readable by using ASCII where possible.
29900
29901 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29902
29903 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29904 and improve yesexpr and noexpr. The yesstr and nostr apparently
29905 came from CLDR. And CLDR has a bug there: these strings contain
29906 a U+0903 (which looks like a colon) instead of a real colon
29907 to separate the full words for “yes” and “no” from the single
29908 letter responses.
29909
29910 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29911
29912 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29913 letters of the full yesstr and nostr in yesexpr and noexpr.
29914
29915 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29916
29917 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29918 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29919 * localedata/locales/an_ES: Make source more readable by using ASCII
29920 where possible.
29921
29922 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29923
29924 [BZ #20952]
29925 * localedata/locales/yuw_PG: New file.
29926 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29927 * locale/iso-639.def: Add Yau (Uruwa).
29928
29929 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29930
29931 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29932
29933 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29934
29935 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29936 (__libc_realloc): Likewise.
29937 (_mid_memalign): Likewise.
29938 (__libc_calloc): Likewise.
29939
29940 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29941
29942 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29943 by adding the generic +1 and -0 as in all other locales.
29944 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29945 day names and make it more readable by using ASCII where possible.
29946
29947 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29948
29949 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29950 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29951
29952 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29953
29954 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29955 WNOHANG in waitpid call.
29956
29957 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29958
29959 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29960 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29961
29962 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29963 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29964 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29965 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29966 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29967 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29968 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29969 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29970 variables.
29971
29972 2017-10-23 Michael Collison <michael.collison@arm.com>
29973
29974 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29975 with __builtin_sqrt.
29976 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29977 with __builtin_sqrtf.
29978 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29979 with __builtin_ceil.
29980 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29981 with __builtin_ceilf.
29982 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29983 with __builtin_floor.
29984 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29985 with __builtin_floorf.
29986 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29987 with __builtin_fma.
29988 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29989 with __builtin_fmaf.
29990 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29991 with __builtin_fmax.
29992 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29993 with __builtin_fmaxf.
29994 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29995 with __builtin_fmin.
29996 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29997 with __builtin_fminf.
29998 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29999 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30000 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30001 with builtin_rint and conversion to int.
30002 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30003 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30004 with builtin_llround.
30005 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30006 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30007 with builtin_rint and conversion to long int.
30008 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30009 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30010 with builtin_lround.
30011 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30012 with builtin_lroundf.
30013 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30014 statements with __builtin_nearbyint.
30015 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30016 statements with __builtin_nearbyintf.
30017 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30018 with __builtin_rint.
30019 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30020 with __builtin_rintf.
30021 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30022 with __builtin_round.
30023 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30024 with __builtin_roundf.
30025 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30026 with __builtin_trunc.
30027 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30028 with __builtin_truncf.
30029 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30030 and s_l[l]round[f].c too.
30031
30032 2017-10-23 Alan Modra <amodra@gmail.com>
30033
30034 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30035 Adjust stack after restoring regs. Add missing LR cfi_restore.
30036
30037 2017-10-23 Alan Modra <amodra@gmail.com>
30038
30039 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30040 Move LR save and frame setup/teardown and LR restore to
30041 immediately around memset call. Provide cfi.
30042
30043 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30044
30045 * sysdeps/i386/fpu/e_powf.S: Removed.
30046 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30047 * sysdeps/i386/fpu/w_powf.c: Likewise.
30048 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30049 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30050 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30051 Add e_powf-sse2.
30052 (CFLAGS-e_powf-sse2.c): New.
30053 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30054 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30055
30056 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30057
30058 * sysdeps/i386/fpu/e_log2f.S: Removed.
30059 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30060 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30061 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30062 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30063 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30064 Add e_log2f-sse2.
30065 (CFLAGS-e_log2f-sse2.c): New.
30066 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30067 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30068
30069 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30070
30071 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30072 Add e_powf-fma.
30073 (CFLAGS-e_powf-fma.c): New.
30074 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30075 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30076
30077 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30078
30079 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30080 Add e_log2f-fma.
30081 (CFLAGS-e_log2f-fma.c): New.
30082 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30083 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30084
30085 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30086
30087 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30088 Add e_logf-fma.
30089 (CFLAGS-e_logf-fma.c): New.
30090 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30091 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30092
30093 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30094
30095 * sysdeps/i386/fpu/e_logf.S: Removed.
30096 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30097 * sysdeps/i386/fpu/w_logf.c: Likewise.
30098 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30099 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30100 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30101 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30102 Add e_logf-sse2.
30103 (CFLAGS-e_logf-sse2.c): New.
30104 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30105 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30106
30107 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30108
30109 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30110 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30111 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30112 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30113 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30114 Add e_exp2f-sse2.
30115 (CFLAGS-e_exp2f-sse2.c): New.
30116 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30117 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30118
30119 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30120
30121 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30122 Add e_exp2f-fma.
30123 (CFLAGS-e_exp2f-fma.c): New.
30124 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30125 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30126
30127 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30128
30129 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30130 * sysdeps/i386/fpu/e_expf.S: Likewise.
30131 * sysdeps/i386/fpu/math_errf.c: Likewise.
30132 * sysdeps/i386/fpu/w_expf.c: Likewise.
30133 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30134 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30135 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30136 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30137 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30138 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30139 Remove e_expf-ia32.
30140 (CFLAGS-e_expf-sse2.c): New.
30141 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30142 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30143
30144 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30145
30146 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30147 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30148 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30149 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30150 e_expf.c.
30151 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30152 New.
30153 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30154 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30155 Renamed to ...
30156 (__redirect_expf): This.
30157 (SYMBOL_NAME): Changed to expf.
30158 (__ieee754_expf): Renamed to ...
30159 (__expf): This.
30160 (__GI___expf): This.
30161 (__ieee754_expf): Add strong_alias.
30162 (__expf_finite): Likewise.
30163 (__expf): New.
30164 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30165
30166 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30167
30168 [BZ #22332]
30169 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30170 unescaping.
30171
30172 2017-10-21 Florian Weimer <fweimer@redhat.com>
30173
30174 * posix/Makefile (tests): Add tst-glob-tilde.
30175 (tests-special): Add tst-glob-tilde-mem.out
30176 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30177 (tst-glob-tilde-mem.out): Add mtrace check.
30178 * posix/tst-glob-tilde.c: New file.
30179
30180 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30181
30182 * bits/floatn-common.h: New file.
30183 * math/Makefile (headers): Add bits/floatn-common.h.
30184 * bits/floatn.h: Include <bits/floatn-common.h>.
30185 * sysdeps/ia64/bits/floatn.h: Likewise.
30186 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30187 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30188 * sysdeps/powerpc/bits/floatn.h: Likewise.
30189 * sysdeps/x86/bits/floatn.h: Likewise.
30190
30191 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30192
30193 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30194 indicates whether compiler emits an warning for alias for
30195 functions with incompatible types.
30196
30197 [BZ #22273]
30198 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30199 the auxiliary process is terminated by a signal before calling _exit
30200 or execve.
30201
30202 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30203
30204 [BZ #21265]
30205 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30206 New.
30207 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30208 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30209 and bit_arch_XSAVEC_Usable if needed.
30210 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30211 and bit_arch_Use_dl_runtime_resolve_opt.
30212 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30213 Removed.
30214 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30215 (bit_arch_Prefer_No_AVX512): Updated.
30216 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30217 (bit_arch_XSAVEC_Usable): New.
30218 (STATE_SAVE_OFFSET): Likewise.
30219 (STATE_SAVE_MASK): Likewise.
30220 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30221 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30222 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30223 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30224 (index_arch_XSAVEC_Usable): New.
30225 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30226 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30227 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30228 is enabled.
30229 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30230 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30231 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30232 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30233 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30234 _dl_runtime_resolve_xsavec.
30235 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30236 Removed.
30237 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30238 instead of VEC_SIZE.
30239 (REGISTER_SAVE_BND0): Removed.
30240 (REGISTER_SAVE_BND1): Likewise.
30241 (REGISTER_SAVE_BND3): Likewise.
30242 (REGISTER_SAVE_RAX): Always defined to 0.
30243 (VMOV): Removed.
30244 (_dl_runtime_resolve_avx): Likewise.
30245 (_dl_runtime_resolve_avx_slow): Likewise.
30246 (_dl_runtime_resolve_avx_opt): Likewise.
30247 (_dl_runtime_resolve_avx512): Likewise.
30248 (_dl_runtime_resolve_avx512_opt): Likewise.
30249 (_dl_runtime_resolve_sse): Likewise.
30250 (_dl_runtime_resolve_sse_vex): Likewise.
30251 (USE_FXSAVE): New.
30252 (_dl_runtime_resolve_fxsave): Likewise.
30253 (USE_XSAVE): Likewise.
30254 (_dl_runtime_resolve_xsave): Likewise.
30255 (USE_XSAVEC): Likewise.
30256 (_dl_runtime_resolve_xsavec): Likewise.
30257 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30258 Removed.
30259 (_dl_runtime_resolve_avx512_opt): Likewise.
30260 (_dl_runtime_resolve_avx): Likewise.
30261 (_dl_runtime_resolve_avx_opt): Likewise.
30262 (_dl_runtime_resolve_sse): Likewise.
30263 (_dl_runtime_resolve_sse_vex): Likewise.
30264 (_dl_runtime_resolve_fxsave): New.
30265 (_dl_runtime_resolve_xsave): Likewise.
30266 (_dl_runtime_resolve_xsavec): Likewise.
30267
30268 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30269
30270 [BZ #22320]
30271 CVE-2017-15670
30272 * posix/glob.c (__glob): Fix one-byte overflow.
30273
30274 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30275
30276 * malloc/malloc.c (sysdep-cancel.h): Add include.
30277
30278 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30279
30280 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30281
30282 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30283
30284 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30285 (tests): Remove $(objpfx)ga_test depdendency.
30286 * resolv/ga_test.c: Remove file.
30287
30288 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30289
30290 [BZ #18812]
30291 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30292 * localedata/locales/kab_DZ: New file.
30293
30294 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30295
30296 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30297 _dl_relocate_static_pie instead of _dl_start to compute load
30298 address in static PIE.
30299
30300 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30301
30302 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30303
30304 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30305
30306 [BZ #13605]
30307 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30308 * localedata/locales/shn_MM: New file.
30309
30310 2017-10-20 Florian Weimer <fweimer@redhat.com>
30311
30312 [BZ #22321]
30313 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30314 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30315 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30316 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30317 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30318 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30319
30320 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30321
30322 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30323
30324 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30325
30326 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30327
30328 [BZ #22322]
30329 * sysdeps/mips/bits/long-double.h: Move to ....
30330 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30331
30332 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30333
30334 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30335
30336 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30337 H.J. Lu <hongjiu.lu@intel.com>
30338
30339 [BZ #22299]
30340 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30341 GLRO(dl_platform) to NULL.
30342 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30343 (modules-names): Add tst-platformmod-1 and
30344 x86_64/tst-platformmod-2.
30345 (CFLAGS-tst-platform-1.c): New.
30346 (CFLAGS-tst-platformmod-1.c): Likewise.
30347 (CFLAGS-tst-platformmod-2.c): Likewise.
30348 (LDFLAGS-tst-platformmod-2.so): Likewise.
30349 ($(objpfx)tst-platform-1): Likewise.
30350 ($(objpfx)tst-platform-1.out): Likewise.
30351 (tst-platform-1-ENV): Likewise.
30352 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30353 * sysdeps/x86_64/tst-platform-1.c: New file.
30354 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30355 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30356
30357 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30358
30359 [BZ #13994]
30360 * locale/iso-639.def: Add Karbi.
30361 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30362 * localedata/locales/mjw_IN: New file.
30363
30364 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30365
30366 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30367 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30368 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30369 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30370 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30371 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30372 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30373 <bits/floatn.h>.
30374 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30375 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30376 * manual/math.texi (Mathematics): Document additional architecture
30377 support for _Float128.
30378 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30379 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30380 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30381 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30382 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30383 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30384 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30385 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30386 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30387 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30388 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30389 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30390 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30391 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30392 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30393
30394 2017-10-18 Renlin Li <renlin.li@arm.com>
30395
30396 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30397 _DYNAMIC symbol to calculate load address.
30398
30399 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30400
30401 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30402 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30403 summary bits.
30404 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30405 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30406
30407 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30408
30409 [BZ #16777]
30410 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30411 and improve readability by using more ASCII.
30412 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30413 and improve readability by using more ASCII.
30414
30415 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30416
30417 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30418 not all targets support atomics on bool.
30419
30420 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30421
30422 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30423 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30424 __f128.
30425 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30426 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30427 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30428 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30429 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30430 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30431
30432 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30433
30434 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30435 defines.
30436
30437 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30438
30439 [BZ #22159]
30440 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30441 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30442 (do_check_remalloced_chunk): Fix build bug.
30443 (do_check_malloc_state): Add assert that checks arena->top.
30444 (malloc_consolidate): Remove initialization.
30445 (int_mallinfo): Remove call to malloc_consolidate.
30446 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30447
30448 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30449
30450 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30451 (have_fastchunks): Remove.
30452 (clear_fastchunks): Remove.
30453 (set_fastchunks): Remove.
30454 (malloc_state): Add have_fastchunks.
30455 (malloc_init_state): Use have_fastchunks.
30456 (do_check_malloc_state): Remove incorrect invariant checks.
30457 (_int_malloc): Use have_fastchunks.
30458 (_int_free): Likewise.
30459 (malloc_consolidate): Likewise.
30460
30461 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30462
30463 * malloc/malloc.c (tcache_put): Inline.
30464 (tcache_get): Inline.
30465
30466 2017-10-17 Jordi Mallach <jordi@gnu.org>
30467
30468 Aurelien Jarno <aurelien@aurel32.net>
30469 [BZ #2522]
30470 * localedata/locales/ca_ES@valencia: New file.
30471 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30472
30473 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30474
30475 [BZ #22296]
30476 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30477 < 6.x
30478
30479 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30480
30481 * scripts/build-many-glibcs.py (Context.add_all_configs):
30482 Add arm-linux-gnueabihf multiarch extra_glibcs.
30483
30484 * sysdeps/generic/ifunc-init.h: New file.
30485 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30486
30487 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30488
30489 [BZ #22019]
30490 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30491 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30492 * stdlib/tst-strfmon_l.c: adapt test case.
30493
30494 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30495
30496 * sysdeps/generic/float128-abi.h: New file.
30497 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30498 non-__prefixed symbols to ....
30499 * math/Versions: ... here. Include <float128-abi.h>.
30500 * stdlib/Versions ... and here. Include <float128-abi.h>
30501
30502 2017-10-16 Florian Weimer <fweimer@redhat.com>
30503
30504 * version.h (VERSION): Switch to ".9000" as the development
30505 version suffix.
30506
30507 2017-10-16 Florian Weimer <fweimer@redhat.com>
30508
30509 [BZ #22050]
30510 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30511 compat_symbol_reference to access non-default version.
30512
30513 2017-10-16 Florian Weimer <fweimer@redhat.com>
30514
30515 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30516
30517 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30518
30519 * include/shlib-compat.h (compat_symbol_reference): Update
30520 comment.
30521
30522 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30523
30524 * math/Makefile (test-types): Add
30525 $(type-float128-$(float128-alias-fcts)).
30526 * math/test-float128.h (TYPE_STR): Define conditional on
30527 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30528 (ULP_IDX): Likewise.
30529 (ULP_I_IDX): Likewise.
30530
30531 * stdlib/strtold.c: Include <bits/floatn.h>
30532 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30533 and later undefine as macro. Define as weak alias if
30534 [!USE_WIDE_CHAR].
30535 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30536 and later undefine as macro. Define as weak alias if
30537 [USE_WIDE_CHAR].
30538 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30539 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30540 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30541 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30542 Define and later undefine as macro. Define as weak alias if
30543 [USE_WIDE_CHAR].
30544 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30545 <bits/floatn.h>.
30546 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30547 Define and later undefine as macro. Define as weak alias if
30548 [!USE_WIDE_CHAR].
30549 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30550 Define and later undefine as macro. Define as weak alias if
30551 [USE_WIDE_CHAR].
30552
30553 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30554
30555 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30556 record_verbose messages.
30557
30558 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30559
30560 [BZ #22052]
30561 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30562 to silence -O3 -Wall warning with GCC 7.
30563
30564 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30565
30566 * Makeconfig (+link-static-before-libc): Use the first of
30567 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30568 * gmon/Makefile (tests): Add tst-gmon-static.
30569 (tests-static): Likewise.
30570 (CFLAGS-tst-gmon-static.c): New.
30571 (CRT-tst-gmon-static): Likewise.
30572 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30573 (tst-gmon-static-ENV): Likewise.
30574 (tests-special): Likewise.
30575 ($(objpfx)tst-gmon-static.out): Likewise.
30576 (clean-tst-gmon-static-data): Likewise.
30577 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30578 * gmon/tst-gmon-static-gprof.sh: New file.
30579 * gmon/tst-gmon-static.c: Likewise.
30580
30581 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30582
30583 [BZ #22295]
30584 * locale/programs/linereader.c (get_string): Don't warn on
30585 non-symbolic character.
30586
30587 [BZ #22294]
30588 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30589 int_curr_symbol.
30590
30591 [BZ #22292]
30592 * locale/programs/record-status.h: New file
30593 * locale/programs/locale.c: Add comment.
30594 * locale/programs/charmap-dir.c: Don't include error.h.
30595 (charmap_opendir): Use record_error.
30596 * locale/programs/charmap.c: Don't include error.h.
30597 (charmap_read): Use record_error, and record_warning.
30598 (parse_charmap): Likewise.
30599 * locale/programs/ld-address.c: Don't include error.h.
30600 (address_finish): Use record_error, and record_warning.
30601 * locale/programs/ld-collate.c: Don't include error.h.
30602 (collate_finish): Use record_error, and record_error_at_line.
30603 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30604 (ctype_class_new): Likewise.
30605 (ctype_map_new): Likewise.
30606 (set_one_default): Likewise.
30607 (set_class_defaults): Likewise.
30608 (translit_flatten): Likewise.
30609 (allocate_arrays): Use record_error, and record_verbose.
30610 * locale/programs/ld-identification.c: Don't include error.h.
30611 (indentation_finish): Use record_error and record_warning.
30612 * locale/programs/ld-measurement.c: Don't include error.h.
30613 (measurement_finish): Use record_error.
30614 * locale/programs/ld-messages.c
30615 (message_finish): Likewise.
30616 * locale/programs/ld-monetary.c
30617 (monetary_finish): Likewise.
30618 * locale/programs/ld-name.c (name_finish): Use record_error
30619 and record_warning.
30620 * locale/programs/ld-numeric.c
30621 (numeric_finish): Use record_error.
30622 * locale/programs/ld-paper.c: Don't include error.h.
30623 (paper_finish): Use record_error.
30624 * locale/programs/ld-telephone.c: Don't include error.h.
30625 (telephone_finish): Use record_error.
30626 * locale/programs/ld-time.c (time_finish): Likewise.
30627 * locale/programs/linereader.h (lr_error): Make inline func.
30628 * locale/programs/localedef.c: Define recorded_warning_count,
30629 and recorded_error_count.
30630 (main): Use record_error. Use recorded_error_count and
30631 recorded_warning_count to issue correct error returns.
30632 (add_to_readlist): Use record_error.
30633 (find_locale): Likewise.
30634 (load_locale): Likewise.
30635 * locale/programs/localedef.h: Remove be_quiet
30636 and WITH_CUR_LOCALE.
30637 * locale/programs/locarchive.c (compare_from_file): Use
30638 record_error.
30639 * locale/programs/locfile.c (write_locale_data): Use
30640 record_error.
30641 * locale/programs/repertoire.c: Dont include error.h.
30642 (repertoire_complain): Use record_error.
30643 * localedata/tst-fmon.sh: Expect failures from localedef.
30644 * localedata/tst-locale.sh: Likewise.
30645 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30646
30647 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30648 (REPORTS): Likewise.
30649 (check): Likewise.
30650 (i18n): Rename to...
30651 (i18n_ctype): ...this.
30652 (i18n-report): Rename to...
30653 (i18n_ctype-report): ...this.
30654 * localedata/locales/i18n_ctype: Regenerate.
30655 * localedata/locales/i18n: copy i18n_ctype.
30656
30657 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30658
30659 * stdlib/strfroml.c: Include <bits/floatn.h>.
30660 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30661 Define before include of <stdlib.h> and undefine afterwards, then
30662 define as weak alias.
30663
30664 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30665 Undefine and restore default definition. Use
30666 libm_alias_ldouble_other.
30667
30668 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30669
30670 [BZ #22153]
30671 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30672 in coredumps.
30673
30674 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30675
30676 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30677 Assign sym_map to be map for local symbols, as TLS relocations
30678 use sym_map to determine whether the symbol is defined and to
30679 extract the TLS information.
30680 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30681 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30682
30683 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30684
30685 [BZ #22189]
30686 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30687 (math_force_eval): Add powerpc version.
30688
30689 [BZ #22142]
30690 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30691 -DBL_MAX.
30692 (do_test): Likewise.
30693 * stdio-common/tst-printf.sh: Likewise.
30694 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30695 ifdef clause in order to set the carry bit right. Replace r0 by
30696 0 without changing the behavior.
30697
30698 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30699
30700 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30701 <libm-alias-ldouble.h>.
30702 (fabsl): Define using libm_alias_ldouble.
30703 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30704 <libm-alias-ldouble.h>.
30705 (fabsl): Define using libm_alias_ldouble.
30706
30707 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30708 Remove conditional code.
30709
30710 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30711 Rename to __clog10_internal_l.
30712 (__clog10_internal_l): Define aliases using
30713 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30714 with __clog10.
30715
30716 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30717
30718 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30719 * benchtests/sincosf-inputs: New file.
30720 * benchtests/cosf-inputs: New file.
30721 * benchtests/sinf-inputs: New file.
30722
30723 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30724
30725 * posix/tst-spawn.c (do_test): Wait for both children.
30726
30727 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30728
30729 [BZ #22284]
30730 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30731 tests-pie): Add tst-gmon-pie.
30732 (CFLAGS-tst-gmon-pie.c): New.
30733 (CRT-tst-gmon-pie): Likewise.
30734 (tst-gmon-pie-ENV): Likewise.
30735 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30736 ($(objpfx)tst-gmon-pie.out): Likewise.
30737 (clean-tst-gmon-pie-data): Likewise.
30738 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30739 * gmon/gmon.c [PIC]: Include <link.h>.
30740 [PIC] (callback): New function.
30741 (write_hist): Add an argument for load address. Subtract load
30742 address from PCs.
30743 (write_call_graph): Likewise.
30744 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30745 it to write_hist and write_call_graph.
30746 * gmon/tst-gmon-pie.c: New file.
30747
30748 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30749
30750 * math/Makefile (test-types-basic): New variable.
30751 (test-types): Likewise.
30752 (libm-test-support): Use $(test-types) instead of $(types).
30753 (libm-tests-base-normal): Likewise.
30754 (libm-tests-base-finite): Likewise.
30755 (libm-tests-base-inline): Likewise.
30756 (generated): Likewise.
30757 ($(objpfx)libm-test-support-$(t).c): Likewise.
30758 (libm-tests-for-type iterator): Likewise.
30759 (libm-test-support iterator): Likewise.
30760 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30761 (ulp_idx): Use ULP_IDX.
30762 * math/test-ldouble.h: Include <float.h>.
30763 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30764 (ULP_IDX): New macro.
30765 (ULP_I_IDX): Likewise.
30766 * math/test-double.h (ULP_IDX): Likewise.
30767 (ULP_I_IDX): Likewise.
30768 * math/test-float.h (ULP_IDX): Likewise.
30769 (ULP_I_IDX): Likewise.
30770 * math/test-float128.h (ULP_IDX): Likewise.
30771 (ULP_I_IDX): Likewise.
30772
30773 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30774
30775 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30776 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30777 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30778 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30779 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30780 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30781 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30782 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30783 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30784 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30785 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30786 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30787 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30788 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30789 (SINGLE_THREAD_BY_GLOBAL): Define.
30790 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30791 Likewise.
30792 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30793 Likewise.
30794 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30795 Likewise.
30796 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30797 Likewise.
30798 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30799 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30800 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30801 Likewise.
30802
30803 2017-10-11 Andreas Schwab <schwab@suse.de>
30804
30805 * nis/Makefile (aux): Remove.
30806 * nscd/Makefile (aux): Add nscd_hash.
30807 (nscd-modules): Likewise.
30808 ($(objpfx)nscd): Don't depend on libnsl.
30809 * nscd/nscd_hash.c: New file.
30810 * nscd/nscd_hash.h: Likewise.
30811 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30812 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30813 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30814 instead of <nis/rpcsvc/nis.h>.
30815 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30816
30817 2017-10-11 Florian Weimer <fweimer@redhat.com>
30818
30819 [BZ #22078]
30820 Avoid large NSS buffers with many addresses, aliases.
30821 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30822 using dynarrays and struct alloc_buffer.
30823 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30824 (tst-nss-files-hosts-multi): Link with -ldl.
30825 * nss/tst-nss-files-hosts-multi.c: New file.
30826
30827 2017-10-11 Florian Weimer <fweimer@redhat.com>
30828
30829 [BZ #18023]
30830 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30831 scratch_buffer. Eliminate gotos.
30832
30833 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30834
30835 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30836 libm_alias_ldouble_other.
30837 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30838 undefine and redefine.
30839 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30840 (exp10l): Do not define here.
30841 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30842 (weak_alias): Undefine and redefine.
30843 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30844 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30845 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30846 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30847
30848 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30849 [!__fma] (fma): Define using libm_alias_double.
30850 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30851 [!__fmaf] (fmaf): Define using libm_alias_float.
30852 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30853 (fmal): Define using libm_alias_ldouble.
30854
30855 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30856
30857 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30858 New macro.
30859 (libm_alias_double_other): Likewise.
30860 (libm_alias_double_r): Use libm_alias_double_other_r.
30861 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30862 New macro.
30863 (libm_alias_float_other): Likewise.
30864 (libm_alias_float_r): Use libm_alias_float_other_r.
30865 * sysdeps/generic/libm-alias-float128.h
30866 (libm_alias_float128_other_r): New macro.
30867 (libm_alias_float128_other): Likewise.
30868 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30869 * sysdeps/generic/libm-alias-ldouble.h
30870 (libm_alias_ldouble_other_r): New macro.
30871 (libm_alias_ldouble_other): Likewise.
30872 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30873 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30874 (libm_alias_double_other_r): New macro.
30875 (libm_alias_double_other): Likewise.
30876 (libm_alias_double_r): Use libm_alias_double_other_r.
30877 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30878 (libm_alias_ldouble_other_r): New macro.
30879 (libm_alias_ldouble_other): Likewise.
30880 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30881 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30882 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30883 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30884 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30885 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30886 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30887 * math/w_exp2f.c: Use libm_alias_float_other.
30888 * math/w_expf.c: Likewise.
30889 * math/w_log2f.c: Likewise.
30890 * math/w_logf.c: Likewise.
30891 * math/w_powf.c: Likewise.
30892 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30893 [!__exp2f]: Use libm_alias_float_other.
30894 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30895 [!__expf]: Use libm_alias_float_other.
30896 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30897 [!__log2f]: Use libm_alias_float_other.
30898 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30899 [!__logf]: Use libm_alias_float_other.
30900 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30901 [!__powf]: Use libm_alias_float_other.
30902
30903 2017-10-10 Florian Weimer <fweimer@redhat.com>
30904
30905 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30906 function.
30907 (_nss_files_gethostbyname3_r): Call it.
30908
30909 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30910
30911 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30912 error. Remove default definition of declare_mgen_alias.
30913 [!declare_mgen_alias_r]: Likewise.
30914 * sysdeps/generic/math-type-macros-double.h
30915 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30916 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30917 (declare_mgen_alias_r): Likewise.
30918 * sysdeps/generic/math-type-macros-float128.h
30919 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30920 * sysdeps/generic/math-type-macros-ldouble.h
30921 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30922 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30923 macro.
30924 (declare_mgen_alias_r_s): Likewise.
30925 (declare_mgen_alias_r): Likewise.
30926 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30927 (lgamma_r): Define using libm_alias_double_r.
30928 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30929 (lgammaf_r): Define using libm_alias_float_r.
30930 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30931 (lgammal_r): Define using libm_alias_ldouble_r.
30932 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30933 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30934
30935 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30936
30937 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30938 extern declaration.
30939
30940 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30941
30942 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30943
30944 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30945
30946 [BZ #21326]
30947 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30948 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30949 * math/Makefile (test-math-cxx11): New test.
30950 * math/test-math-cxx11.cc: New file.
30951
30952 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30953
30954 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30955
30956 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30957 call to allocate the slave pty file descriptor.
30958
30959 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30960
30961 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30962 [!__fma] (fma): Define using libm_alias_double.
30963 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30964 [!__fma] (fma): Define using libm_alias_double.
30965
30966 * sysdeps/ieee754/float128/float128_private.h: Include
30967 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30968 (libm_alias_ldouble_r): Undefine and redefine.
30969 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30970 <libm-alias-ldouble.h>.
30971 (asinhl): Define using libm_alias_ldouble.
30972 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30973 <libm-alias-ldouble.h>.
30974 (atanl): Define using libm_alias_ldouble.
30975 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30976 <libm-alias-ldouble.h>.
30977 (cbrtl): Define using libm_alias_ldouble.
30978 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30979 <libm-alias-ldouble.h>.
30980 (ceill): Define using libm_alias_ldouble.
30981 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30982 <libm-alias-ldouble.h>.
30983 (copysignl): Define using libm_alias_ldouble.
30984 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30985 <libm-alias-ldouble.h>.
30986 (cosl): Define using libm_alias_ldouble.
30987 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30988 <libm-alias-ldouble.h>.
30989 (erfl): Define using libm_alias_ldouble.
30990 (erfcl): Likewise.
30991 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30992 <libm-alias-ldouble.h>.
30993 (expm1l): Define using libm_alias_ldouble.
30994 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30995 <libm-alias-ldouble.h>.
30996 (fabsl): Define using libm_alias_ldouble.
30997 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30998 <libm-alias-ldouble.h>.
30999 (floorl): Define using libm_alias_ldouble.
31000 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31001 <libm-alias-ldouble.h>.
31002 (fmal): Define using libm_alias_ldouble.
31003 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31004 <libm-alias-ldouble.h>.
31005 (frexpl): Define using libm_alias_ldouble.
31006 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31007 libm_alias_ldouble.
31008 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31009 <libm-alias-ldouble.h>.
31010 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31011 libm_alias_ldouble.
31012 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31013 <libm-alias-ldouble.h>.
31014 (getpayloadl): Define using libm_alias_ldouble.
31015 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31016 <libm-alias-ldouble.h>.
31017 (llrintl): Define using libm_alias_ldouble.
31018 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31019 <libm-alias-ldouble.h>.
31020 (llroundl): Define using libm_alias_ldouble.
31021 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31022 <libm-alias-ldouble.h>.
31023 (logbl): Define using libm_alias_ldouble.
31024 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31025 <libm-alias-ldouble.h>.
31026 (lrintl): Define using libm_alias_ldouble.
31027 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31028 <libm-alias-ldouble.h>.
31029 (lroundl): Define using libm_alias_ldouble.
31030 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31031 <libm-alias-ldouble.h>.
31032 (modfl): Define using libm_alias_ldouble.
31033 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31034 <libm-alias-ldouble.h>.
31035 (nearbyintl): Define using libm_alias_ldouble.
31036 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31037 <libm-alias-ldouble.h>.
31038 (nextafterl): Define using libm_alias_ldouble.
31039 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31040 <libm-alias-ldouble.h>.
31041 (nextupl): Define using libm_alias_ldouble.
31042 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31043 <libm-alias-ldouble.h>.
31044 (remquol): Define using libm_alias_ldouble.
31045 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31046 <libm-alias-ldouble.h>.
31047 (rintl): Define using libm_alias_ldouble.
31048 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31049 <libm-alias-ldouble.h>.
31050 (roundevenl): Define using libm_alias_ldouble.
31051 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31052 <libm-alias-ldouble.h>.
31053 (roundl): Define using libm_alias_ldouble.
31054 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31055 using libm_alias_ldouble.
31056 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31057 <libm-alias-ldouble.h>.
31058 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31059 Define using libm_alias_ldouble.
31060 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31061 <libm-alias-ldouble.h>.
31062 (sincosl): Define using libm_alias_ldouble.
31063 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31064 <libm-alias-ldouble.h>.
31065 (sinl): Define using libm_alias_ldouble.
31066 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31067 <libm-alias-ldouble.h>.
31068 (tanhl): Define using libm_alias_ldouble.
31069 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31070 <libm-alias-ldouble.h>.
31071 (tanl): Define using libm_alias_ldouble.
31072 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31073 <libm-alias-ldouble.h>.
31074 (totalorderl): Define using libm_alias_ldouble.
31075 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31076 <libm-alias-ldouble.h>.
31077 (totalordermagl): Define using libm_alias_ldouble.
31078 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31079 <libm-alias-ldouble.h>.
31080 (truncl): Define using libm_alias_ldouble.
31081 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31082 libm_alias_ldouble.
31083 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31084 libm_alias_ldouble.
31085 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31086 <libm-alias-ldouble.h>.
31087 (weak_alias): Do not undefine and redefine.
31088 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31089 (copysignl): Define with long_double_symbol only if [IS_IN
31090 (libc)].
31091 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31092 <libm-alias-ldouble.h>.
31093 (weak_alias): Do not undefine and redefine.
31094 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31095 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31096 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31097 <libm-alias-ldouble.h>.
31098 (weak_alias): Do not undefine and redefine.
31099 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31100 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31101 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31102 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31103 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31104 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31105 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31106 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31107 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31108 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31109 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31110 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31111 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31112 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31113 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31114 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31115 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31116 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31117 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31118 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31119 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31120 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31121 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31122 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31123 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31124 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31125
31126 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31127
31128 [BZ #22111]
31129 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31130 (tcache_thread_freeres): Set tcache_shutting_down before
31131 freeing the tcache.
31132 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31133 * malloc/tst-malloc-tcache-leak.c: New file.
31134
31135 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31136
31137 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31138 back to powerpc32 file.
31139 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31140 (memrchr): Add __memrchr_power8 to ifunc list.
31141 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31142 extra bytes for unaligned inputs.
31143
31144 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31145
31146 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31147 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31148 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31149 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31150 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31151
31152 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31153
31154 * sysdeps/arm/libm-test-ulps: Update.
31155
31156 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31157 <libm-alias-ldouble.h>.
31158 (asinhl): Define using libm_alias_ldouble.
31159 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31160 <libm-alias-ldouble.h>.
31161 (cbrtl): Define using libm_alias_ldouble.
31162 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31163 <libm-alias-ldouble.h>.
31164 (copysignl): Define using libm_alias_ldouble.
31165 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31166 <libm-alias-ldouble.h>.
31167 (cosl): Define using libm_alias_ldouble.
31168 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31169 <libm-alias-ldouble.h>.
31170 (erfl): Define using libm_alias_ldouble.
31171 (erfcl): Likewise.
31172 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31173 <libm-alias-ldouble.h>.
31174 (fmal): Define using libm_alias_ldouble.
31175 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31176 <libm-alias-ldouble.h>.
31177 (frexpl): Define using libm_alias_ldouble.
31178 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31179 libm_alias_ldouble.
31180 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31181 <libm-alias-ldouble.h>.
31182 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31183 libm_alias_ldouble.
31184 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31185 <libm-alias-ldouble.h>.
31186 (getpayloadl): Define using libm_alias_ldouble.
31187 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31188 <libm-alias-ldouble.h>.
31189 (llrintl): Define using libm_alias_ldouble.
31190 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31191 <libm-alias-ldouble.h>.
31192 (llroundl): Define using libm_alias_ldouble.
31193 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31194 <libm-alias-ldouble.h>.
31195 (lrintl): Define using libm_alias_ldouble.
31196 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31197 <libm-alias-ldouble.h>.
31198 (lroundl): Define using libm_alias_ldouble.
31199 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31200 <libm-alias-ldouble.h>.
31201 (modfl): Define using libm_alias_ldouble.
31202 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31203 <libm-alias-ldouble.h>.
31204 (nextupl): Define using libm_alias_ldouble.
31205 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31206 <libm-alias-ldouble.h>.
31207 (remquol): Define using libm_alias_ldouble.
31208 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31209 <libm-alias-ldouble.h>.
31210 (roundevenl): Define using libm_alias_ldouble.
31211 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31212 <libm-alias-ldouble.h>.
31213 (roundl): Define using libm_alias_ldouble.
31214 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31215 using libm_alias_ldouble.
31216 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31217 <libm-alias-ldouble.h>.
31218 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31219 <libm-alias-ldouble.h>.
31220 (setpayloadsigl): Define using libm_alias_ldouble.
31221 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31222 <libm-alias-ldouble.h>.
31223 (sincosl): Define using libm_alias_ldouble.
31224 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31225 <libm-alias-ldouble.h>.
31226 (sinl): Define using libm_alias_ldouble.
31227 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31228 <libm-alias-ldouble.h>.
31229 (tanhl): Define using libm_alias_ldouble.
31230 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31231 <libm-alias-ldouble.h>.
31232 (tanl): Define using libm_alias_ldouble.
31233 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31234 <libm-alias-ldouble.h>.
31235 (totalorderl): Define using libm_alias_ldouble.
31236 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31237 <libm-alias-ldouble.h>.
31238 (totalordermagl): Define using libm_alias_ldouble.
31239 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31240 libm_alias_ldouble.
31241 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31242 libm_alias_ldouble.
31243
31244 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31245
31246 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31247 memmove_falkor.
31248 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31249 (__libc_ifunc_impl_list): Likewise.
31250 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31251 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31252
31253 * benchtests/bench-memmove-walk.c: New file.
31254 * benchtests/Makefile (string-benchset): Add it.
31255
31256 * benchtests/bench-memset-walk.c: New file.
31257 * benchtests/Makefile (string-benchset): Add it.
31258
31259 * benchtests/bench-memcpy-walk.c: New file.
31260 * benchtests/Makefile (string-benchset): Add it.
31261
31262 2017-10-05 Florian Weimer <fweimer@redhat.com>
31263
31264 nscd: Eliminate compilation time dependency in the build output.
31265 * nscd/nscd_stat.c (STATDATA_VERSION)
31266 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31267 (STATDATA_VERSION_FULL): New macro definitions.
31268 (compilation): Remove.
31269 (struct statdata): Adjust version member.
31270 (send_stats): Set version from STATDATA_VERSION_FULL.
31271 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31272
31273 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31274
31275 * configure.ac (--enable-add-ons): Remove option.
31276 (machine): Do not mention add-ons in comment.
31277 (LIBC_PRECONFIGURE): Likewise.
31278 (add_ons): Remove variable and sanity checks and logic to locate
31279 add-ons.
31280 (add_ons_automatic): Remove variable.
31281 (configured_add_ons): Likewise.
31282 (add_ons_sfx): Likewise.
31283 (add_ons_pfx): Likewise.
31284 (add_on_subdirs): Likewise.
31285 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31286 consideration of add-ons in Implies handling.
31287 (sysdeps_add_ons): Likewise.
31288 * configure: Regenerated.
31289 * libidn/configure.ac: Remove.
31290 * libidn/configure: Likewise.
31291 * sysdeps/unix/inet/configure.ac: New file.
31292 * sysdeps/unix/inet/configure: New generated file.
31293 * sysdeps/unix/inet/Subdirs: Add libidn.
31294 * Makeconfig (sysdeps-srcdirs): Remove variable.
31295 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31296 ($(common-objpfx)config.status): Do not depend on add-on files.
31297 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31298 comment.
31299 (all-subdirs): Do not include $(add-on-subdirs).
31300 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31301 * config.make.in (add-ons): Remove variable.
31302 (add-on-subdirs): Likewise.
31303 (sysdeps-add-ons): Likewise.
31304 * manual/Makefile (add-chapters): Remove.
31305 ($(objpfx)texis): Do not depend on $(add-chapters).
31306 (nonexamples): Do not handle $(add-chapters).
31307 (examples): Do not handle $(add-ons).
31308 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31309 libc-texinfo.sh.
31310 * manual/install.texi (Installation): Do not mention add-ons.
31311 (--enable-add-ons): Do not document configure option.
31312 * INSTALL: Regenerated.
31313 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31314 * manual/maint.texi (Hierarchy Conventions): Do not mention
31315 add-ons.
31316 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31317 --enable-add-ons.
31318 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31319 add-ons.
31320 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31321 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31322
31323 2017-10-05 Andreas Schwab <schwab@suse.de>
31324
31325 [BZ #15142]
31326 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31327 (_IO_flush_all_lockp): Always lock list_all_lock.
31328 (_IO_flush_all_linebuffered): Likewise.
31329 (_IO_unbuffer_all): Likewise.
31330
31331 2017-10-05 Florian Weimer <fweimer@redhat.com>
31332
31333 [BZ #15436]
31334 Do not flush stdio streams on abort.
31335 * stdlib/abort.c (fflush): Remove macro definition.
31336 (abort): Remove stages related to stdio flushing.
31337
31338 2017-10-05 Florian Weimer <fweimer@redhat.com>
31339
31340 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31341
31342 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31343
31344 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31345
31346 2017-10-05 Florian Weimer <fweimer@redhat.com>
31347
31348 * support/support_format_hostent.c (support_format_hostent): Add
31349 more error information for NETDB_INTERNAL.
31350
31351 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31352
31353 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31354 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31355 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31356 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31357 AC_DEFINE if multi-arch is enabled.
31358 * sysdeps/i386/configure: Regenerated.
31359
31360 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31361
31362 * Makeconfig (+link-static-before-libc): Use
31363 $(DEFAULT-LDFLAGS-$(@F)).
31364 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31365 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31366 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31367
31368 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31369
31370 * elf/Makefile (tests): Add tst-main1.
31371 (modules-names): Add tst-main1mod.
31372 ($(objpfx)tst-main1): New.
31373 (CRT-tst-main1): Likewise.
31374 (LDFLAGS-tst-main1): Likewise.
31375 (LDLIBS-tst-main1): Likewise.
31376 (tst-main1mod.so-no-z-defs): Likewise.
31377 * elf/tst-main1.c: New file.
31378 * elf/tst-main1mod.c: Likewise.
31379
31380 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31381
31382 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31383
31384 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31385
31386 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31387 (fma): Define using libm_alias_double.
31388 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31389 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31390 <math_ldbl_opt.h>.
31391 (fmal): Do not define as compat symbol here.
31392 * sysdeps/alpha/fpu/s_fma.c: New file.
31393
31394 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31395
31396 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31397
31398 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31399
31400 [BZ #22229]
31401 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31402 <math_ldbl_opt.h>
31403 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31404 and libc.
31405 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31406 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31407 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31408 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31410 Include <math_ldbl_opt.h>
31411 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31412 and libc.
31413 (compat_symbol): Undefine and redefine.
31414 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31415 <math_ldbl_opt.h>
31416 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31417 (compat_symbol): Undefine and redefine.
31418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31419 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31420 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31421 GLIBC_2_1 for libm.
31422 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31423 GLIBC_2.0 copysignl symbol.
31424 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31425 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31426
31427 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31428
31429 2017-10-04 Florian Weimer <fweimer@redhat.com>
31430
31431 * scripts/check-local-headers.sh: Ignore nspr4 header file
31432 directory in addition to nspr.
31433
31434 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31435
31436 [BZ #17956]
31437 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31438 * configure: Regenerate.
31439 * crypt/Makefile (nss-cpp-flags): New variable.
31440 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31441 (CPPFLAGS-md5-crypt.c): Use it.
31442 * scripts/check-local-headers.sh: Ignore nspr header file
31443 directory.
31444
31445 2017-10-04 Andreas Schwab <schwab@suse.de>
31446
31447 * nis/Makefile (services): Remove compat.
31448 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31449 ($(objpfx)libnss_compat.so): Remove rule.
31450 * nis/Versions (libnss_compat): Remove.
31451 * nss/Makefile (services): Add compat.
31452 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31453 * nss/Versions (libnss_compat): Define.
31454 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31455 Don't include <rpc/types.h>. Replace bool_t by bool.
31456 * nss/nss_compat/compat-initgroups.c: Likewise.
31457 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31458 instead of <rpcsrv/ypclnt.h>.
31459 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31460 yp_get_default_domain.
31461 * nss/nss_compat/compat-pwd.c: Likewise.
31462 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31463 yp_get_default_domain.
31464 * nss/nss_compat/nisdomain.c: New file.
31465 * nss/nss_compat/nisdomain.h: Likewise.
31466
31467 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31468
31469 [BZ #22244]
31470 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31471 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31472
31473 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31474
31475 [BZ #22243]
31476 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31477 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31478
31479 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31480
31481 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31482 "movl main@GOTOFF(%ebx), %eax".
31483
31484 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31485
31486 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31487 allow undefined _DYNAMIC in PIE libc.a.
31488 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31489 Likewse.
31490
31491 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31492
31493 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31494 check _DYNAMIC.
31495
31496 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31497
31498 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31499 check _DYNAMIC.
31500
31501 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31502
31503 * math/test-math-iscanonical.cc (error): Replace bool with int.
31504
31505 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31506
31507 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31508 (modf): Define using libm_alias_double, only if [!__modf].
31509 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31510 <libm-alias-double.h>.
31511 (modf): Define using libm_alias_double, only if [!__modf].
31512 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31513 compat symbol here.
31514 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31515 (weak_alias): Do not undefine and redefine.
31516 (strong_alias): Likewise.
31517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31518 (weak_alias): Likewise.
31519 (strong_alias): Likewise.
31520
31521 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31522 (logb): Define using libm_alias_double, only if [!__logb].
31523 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31524 <libm-alias-double.h>.
31525 (logb): Define using libm_alias_double, only if [!__logb].
31526 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31527 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31528 (weak_alias): Do not undefine and redefine.
31529 (strong_alias): Likewise.
31530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31531 (weak_alias): Likewise.
31532 (strong_alias): Likewise.
31533
31534 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31535
31536 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31537 Check SHARED instead PIC.
31538
31539 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31540
31541 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31542 [!__fmaf] (fmaf): Define using libm_alias_float.
31543
31544 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31545 (frexp): Define using libm_alias_double.
31546 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31547 <libm-alias-double.h>.
31548 (frexp): Define using libm_alias_double.
31549 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31550 compat symbol here.
31551
31552 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31553
31554 [BZ #22235]
31555 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31556 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31557 (CFLAGS-test-math-iscanonical.cc): New variable.
31558 * math/test-math-iscanonical.cc: New file.
31559 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31560 Provide a C++ implementation based on function overloading,
31561 rather than using __MATH_TG, which uses C-only builtins.
31562 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31563 Likewise.
31564 * sysdeps/powerpc/powerpc64le/Makefile
31565 (CFLAGS-test-math-iscanonical.cc): New variable.
31566
31567 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31568
31569 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31570 (ceil): Define using libm_alias_double.
31571 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31572 (floor): Define using libm_alias_double.
31573 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31574 <libm-alias-double.h>.
31575 (llround): Define using libm_alias_double.
31576 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31577 <libm-alias-double.h>.
31578 (lround): Define using libm_alias_double.
31579 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31580 <libm-alias-double.h>.
31581 (nearbyint): Define using libm_alias_double.
31582 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31583 <libm-alias-double.h>.
31584 (remquo): Define using libm_alias_double.
31585 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31586 (rint): Define using libm_alias_double.
31587 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31588 (round): Define using libm_alias_double.
31589 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31590 (trunc): Define using libm_alias_double.
31591 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31592 <libm-alias-double.h>.
31593 (ceil): Define using libm_alias_double.
31594 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31595 <libm-alias-double.h>.
31596 (floor): Define using libm_alias_double.
31597 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31598 <libm-alias-double.h>.
31599 (llround): Define using libm_alias_double.
31600 [_LP64] (lround): Likewise.
31601 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31602 <libm-alias-double.h>.
31603 [!_LP64] (lround): Define using libm_alias_double.
31604 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31605 <libm-alias-double.h>.
31606 (nearbyint): Define using libm_alias_double.
31607 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31608 <libm-alias-double.h>.
31609 (remquo): Define using libm_alias_double.
31610 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31611 <libm-alias-double.h>.
31612 (rint): Define using libm_alias_double.
31613 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31614 <libm-alias-double.h>.
31615 (round): Define using libm_alias_double.
31616 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31617 <libm-alias-double.h>.
31618 (trunc): Define using libm_alias_double.
31619 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31620 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31621 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31622 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31623 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31624 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31625 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31626 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31627 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31628
31629 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31630
31631 * math/w_remainder.c: New file.
31632 * math/w_remainderf.c: New file.
31633 * math/w_remainderl.c: New file.
31634
31635 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31636
31637 * elf/rtld.c (BOOTSTRAP_MAP): New.
31638 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31639 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31640 Likewise.
31641 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31642 Likewise.
31643 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31644 Likewise.
31645
31646 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31647
31648 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31649 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31650 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31651 rtld_hidden_data_ver): Define to empty.
31652 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31653 __assert_perror_fail): Likewise.
31654 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31655 (__rewinddir): Likewise.
31656 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31657 (__profile_frequency): Likewise.
31658 * include/setjmp.h (__sigsetjmp): Likewise.
31659 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31660 __libc_sigaction): Likewise.
31661 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31662 not set hidden attribute.
31663 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31664 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31665 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31666 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31667 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31668 __fxstatat64): Likewise.
31669 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31670 (__uname): Likewise.
31671 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31672 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31673 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31674 (NO_RTLD_HIDDEN): Set.
31675 * sysdeps/mach/hurd/configure: Refresh.
31676 * config.h.in: Refresh.
31677
31678 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31679
31680 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31681 (atan): Define using libm_alias_double.
31682 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31683 (tan): Define using libm_alias_double.
31684 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31685 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31686
31687 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31688 define as weak alias of __atan. Do not define any aliases if
31689 [__atan].
31690 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31691 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31692 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31693 as weak alias of __tan. Do not define any aliases if [__tan].
31694 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31695 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31696 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31697 __atan.
31698 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31699 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31700 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31701 and define as weak alias of __atan.
31702 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31703 __atan.
31704 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31705 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31706 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31707 define as weak alias of __tan.
31708
31709 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31710
31711 * math/w_lgamma.c: New file.
31712 * math/w_lgammaf.c: New file.
31713 * math/w_lgammal.c: New file.
31714
31715 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31716
31717 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31718 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31719 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31720 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31721 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31722 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31723 * sysdeps/i386/fpu/w_log2f.c: New file.
31724 * sysdeps/i386/fpu/w_logf.c: New file.
31725 * sysdeps/i386/fpu/w_powf.c: New file.
31726 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31727 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31728 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31729
31730 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31731 H.J. Lu <hongjiu.lu@intel.com>
31732
31733 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31734 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31735 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31736 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31737 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31738 the new expf code.
31739 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31740 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31741 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31742 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31743 * sysdeps/i386/fpu/w_exp2f.c: New file.
31744 * sysdeps/i386/fpu/w_expf.c: New file.
31745 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31746 * sysdeps/x86_64/fpu/w_expf.c: New file.
31747
31748 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31749
31750 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31751 (log2f): Likewise.
31752 (powf): Likewise.
31753 * math/w_log2f.c: New file.
31754 * math/w_logf.c: New file.
31755 * math/w_powf.c: New file.
31756 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31757 * math/w_logf_compat.c (__logf_compat): Likewise.
31758 * math/w_powf_compat.c (__powf_compat): Likewise.
31759 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31760 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31761 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31762 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31763 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31764 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31765 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31766 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31767 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31768 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31769 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31770 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31771 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31772 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31773 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31775 Likewise.
31776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31777 Likewise.
31778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31779 Likewise.
31780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31781 Likewise.
31782 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31783 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31784 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31785 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31786 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31787 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31788 Likewise.
31789 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31790 Likewise.
31791 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31792 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31793 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31794
31795 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31796
31797 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31798 (sysdep_routines): Add memrchr_power8.
31799 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31800 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31801 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31802 New file.
31803 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31804 (memrchr): Add __memrchr_power8 to ifunc list.
31805 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31806
31807 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31808
31809 [BZ #18822]
31810 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31811 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31812 libc_hidden_def.
31813 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31814 (__posix_fallocate64_l64): Likewise.
31815
31816 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31817
31818 [BZ #18822]
31819 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31820 (__sched_setaffinity_new): Add libc_hidden_proto and
31821 libc_hidden_def.
31822
31823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31824
31825 [BZ #18822]
31826 * include/glob.h (__glob64): Add libc_hidden_proto.
31827 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31828 libc_hidden_def.
31829
31830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31831
31832 [BZ #18822]
31833 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31834 attribute_hidden.
31835
31836 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31837
31838 [BZ #18822]
31839 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31840
31841 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31842
31843 [BZ #18822]
31844 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31845 libc_hidden_def.
31846
31847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31848
31849 [BZ #18822]
31850 * csu/version.c (__libc_print_version): Add attribute_hidden.
31851
31852 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31853
31854 [BZ #18822]
31855 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31856
31857 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31858
31859 [BZ #18822]
31860 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31861
31862 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31863
31864 [BZ #18822]
31865 * nscd/nscd_helper.c (__nis_hash): New prototype.
31866
31867 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31868
31869 [BZ #18822]
31870 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31871 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31872 libc_hidden_def.
31873 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31874 * termios/tcgetattr.c (__tcgetattr): Likewise.
31875
31876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31877
31878 [BZ #18822]
31879 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31880 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31881 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31882 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31883 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31884
31885 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31886
31887 [BZ #18822]
31888 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31889
31890 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31891
31892 [BZ #18822]
31893 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31894 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31895
31896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31897
31898 [BZ #18822]
31899 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31900
31901 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31902
31903 [BZ #18822]
31904 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31905 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31906
31907 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31908
31909 [BZ #18822]
31910 * include/ifreq.h: New file.
31911 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31912 (__ifreq): Likewise.
31913 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31914 (__ifreq): Likewise.
31915
31916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31917
31918 [BZ #18822]
31919 * include/idna.h: New file.
31920 * inet/getnameinfo.c: Include <idna.h> instead of
31921 <libidn/idna.h>.
31922 (__idna_to_unicode_lzlz): Removed.
31923 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31924 <libidn/idna.h>.
31925 (__idna_to_ascii_lz): Removed.
31926 (__idna_to_unicode_lzlz): Likewise.
31927
31928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31929
31930 [BZ #18822]
31931 * include/plural-exp.h: New file.
31932 * intl/plural-exp.c: Include <plural-exp.h> instead of
31933 "plural-exp.h".
31934
31935 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31936
31937 [BZ #18822]
31938 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31939 "getsourcefilter.h".
31940 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31941 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31942 "getsourcefilter.h".
31943 (__get_sol): Removed.
31944
31945 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31946
31947 [BZ #18822]
31948 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31949 to ...
31950 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31951
31952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31953
31954 [BZ #18822]
31955 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31956 attribute_hidden.
31957
31958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31959
31960 [BZ #18822]
31961 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31962
31963 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31964
31965 [BZ #18822]
31966 * include/search.h (__tdestroy): Add libc_hidden_proto.
31967 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31968
31969 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31970
31971 [BZ #18822]
31972 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31973
31974 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31975
31976 [BZ #18822]
31977 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31978 attribute_hidden.
31979
31980 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31981
31982 [BZ #18822]
31983 * include/signal.h (__kill): Add libc_hidden_proto.
31984 (__sigblock): Likewise.
31985 (__sigprocmask): Likewise.
31986 (__sigaltstack): Likewise.
31987 * signal/kill.c (__kill): Add libc_hidden_def.
31988 * signal/sigblock.c (__sigblock): Likewise.
31989 * signal/sigprocmask.c (__sigprocmask): Likewise.
31990 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31991 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31992 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31993 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31994 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31995 Likewise.
31996 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31997 Likewise.
31998 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31999 (__sigprocmask): Likewise.
32000 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32001 Likewise.
32002 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32003 (__sigprocmask): Likewise.
32004 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32005 Likewise.
32006
32007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32008
32009 [BZ #18822]
32010 * include/string.h (__strsep): Add libc_hidden_proto.
32011 * string/strsep.c (__strsep): Add libc_hidden_def.
32012
32013 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32014
32015 [BZ #18822]
32016 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32017 attribute_hidden.
32018 (__spawni): Likewise.
32019
32020 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32021
32022 [BZ #18822]
32023 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32024 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32025 libc_hidden_def.
32026
32027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32028
32029 [BZ #18822]
32030 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32031
32032 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32033
32034 [BZ #18822]
32035 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32036 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32037 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32038 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32039 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32040 Likewise.
32041 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32042 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32043
32044 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32045
32046 [BZ #18822]
32047 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32048 (__dcigettext): Likewise.
32049
32050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32051
32052 [BZ #18822]
32053 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32054 libc_hidden_proto.
32055 (__get_nprocs): Likewise.
32056 (__get_phys_pages): Likewise.
32057 (__get_avphys_pages): Likewise.
32058 (__get_child_max): Add attribute_hidden.
32059 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32060 (__get_nprocs): Likewise.
32061 (__get_phys_pages): Likewise.
32062 (__get_avphys_pages): Likewise.
32063 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32064 libc_hidden_def.
32065 (__get_nprocs): Likewise.
32066 (__get_phys_pages): Likewise.
32067 (__get_avphys_pages): Likewise.
32068 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32069 libc_hidden_def.
32070 (__get_nprocs_conf): Likewise.
32071 (__get_phys_pages): Likewise.
32072 (__get_avphys_pages): Likewise.
32073
32074 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32075
32076 [BZ #18822]
32077 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32078 attribute_hidden.
32079 (__netlink_close): Likewise.
32080 (__netlink_free_handle): Likewise.
32081 (__netlink_request): Likewise.
32082
32083 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32084
32085 [BZ #18822]
32086 * include/rpc/rpc.h (__rpc_thread_variables): Add
32087 attribute_hidden.
32088 (__rpc_thread_svc_cleanup): Likewise.
32089 (__rpc_thread_clnt_cleanup): Likewise.
32090 (__rpc_thread_key_cleanup): Likewise.
32091
32092 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32093
32094 [BZ #18822]
32095 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32096 (__writev): Likewise.
32097 * misc/readv.c (__readv): Add libc_hidden_def.
32098 * misc/writev.c (__writev): Likewise.
32099 * sysdeps/posix/readv.c (__readv): Likewise.
32100 * sysdeps/posix/writev.c (__writev): Likewise.
32101 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32102 (__readv): Likewise.
32103 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32104 (__writev): Likewise.
32105
32106 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32107
32108 [BZ #18822]
32109 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32110 (__regcomp): Add libc_hidden_proto.
32111 (__regexec): Likewise.
32112 (__regfree): Likewise.
32113 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32114 (__regfree): Likewise.
32115 * posix/regexec.c (__regexec): Likewise.
32116
32117 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32118
32119 [BZ #18822]
32120 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32121 (__getutent): Likewise.
32122 (__getutid): Likewise.
32123 (__getutline): Likewise.
32124 (__pututline): Likewise.
32125 (__getutent_r): Likewise.
32126 (__getutid_r): Likewise.
32127 (__getutline_r): Likewise.
32128 (__utmpname): Add attribute_hidden.
32129 (__setutent): Likewise.
32130 (__endutent): Likewise.
32131 * login/getutent.c (__getutent): Add libc_hidden_def.
32132 * login/getutent_r.c (__getutent_r): Likewise.
32133 (__pututline): Likewise.
32134 * login/getutid.c (__getutid): Likewise.
32135 * login/getutid_r.c (__getutid_r): Likewise.
32136 * login/getutline.c (__getutline): Likewise.
32137 * login/getutline_r.c (__getutline_r): Likewise.
32138 * login/updwtmp.c (__updwtmp): Likewise.
32139
32140 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32141
32142 [BZ #18822]
32143 * include/dirent.h (__opendir): Always add attribute_hidden.
32144 (__fdopendir): Likewise.
32145 (__closedir): Likewise.
32146 (__readdir): Likewise.
32147 (__readdir64): Add libc_hidden_proto.
32148 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32149 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32150 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32151 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32152 New alias.
32153
32154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32155
32156 [BZ #18822]
32157 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32158 * include/netdb.h (__gethostbyaddr_r): Likewise.
32159 (__gethostbyname_r): Likewise.
32160 (__gethostbyname2_r): Likewise.
32161 (__getnetbyaddr_r): Likewise.
32162 (__getnetbyname_r): Likewise.
32163 (__getservbyname_r): Likewise.
32164 (__getservbyport_r): Likewise.
32165 (__getprotobyname_r): Likewise.
32166 (__getprotobynumber_r): Likewise.
32167 (__getnetgrent_r): Likewise.
32168 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32169 (__getrpcbynumber_r): Likewise.
32170 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32171
32172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32173
32174 [BZ #18822]
32175 * include/stdio.h (__fcloseall): Add attribute_hidden.
32176 (__getline): Likewise.
32177 (__path_search): Likewise.
32178 (__gen_tempname): Likewise.
32179 (__libc_message): Likewise.
32180 (__flockfile): Likewise.
32181 (__funlockfile): Likewise.
32182 (__fxprintf): Likewise.
32183 (__fxprintf_nocancel): Likewise.
32184
32185 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32186
32187 [BZ #18822]
32188 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32189 (__sgetsgent_r): Likewise.
32190
32191 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32192
32193 [BZ #18822]
32194 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32195 (__statfs64): Likewise.
32196 (__fstatfs64): Likewise.
32197 * include/sys/statvfs.h (__statvfs64): Likewise.
32198 (__fstatvfs64): Likewise.
32199 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32200 (__statfs_filesize_max): Likewise.
32201 (__statfs_symlinks): Likewise.
32202 (__statfs_chown_restricted): Likewise.
32203
32204 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32205
32206 [BZ #18822]
32207 * include/time.h (__tzstring): Add attribute_hidden.
32208 (__tzfile_read): Likewise.
32209 (__tzfile_compute): Likewise.
32210 (__tzfile_default): Likewise.
32211 (__tzset_parse_tz): Likewise.
32212 (__offtime): Likewise.
32213 (__asctime_r): Likewise.
32214 (__tzset): Likewise.
32215 (__tz_convert): Likewise.
32216 (__getdate_r): Likewise.
32217 (__getclktck): Likewise.
32218
32219 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32220
32221 [BZ #18822]
32222 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32223 (__nscd_unmap): Likewise.
32224 (__nscd_cache_search): Likewise.
32225 (__nscd_get_nl_timestamp): Likewise.
32226 (__nscd_getpwnam_r): Likewise.
32227 (__nscd_getpwuid_r): Likewise.
32228 (__nscd_getgrnam_r): Likewise.
32229 (__nscd_getgrgid_r): Likewise.
32230 (__nscd_gethostbyname_r): Likewise.
32231 (__nscd_gethostbyname2_r): Likewise.
32232 (__nscd_gethostbyaddr_r): Likewise.
32233 (__nscd_getai): Likewise.
32234 (__nscd_getgrouplist): Likewise.
32235 (__nscd_getservbyname_r): Likewise.
32236 (__nscd_getservbyport_r): Likewise.
32237 (__nscd_innetgr): Likewise.
32238 (__nscd_setnetgrent): Likewise.
32239
32240 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32241
32242 [BZ #18822]
32243 * include/gmp.h: Declare internal functions only if _ISOMAC is
32244 undefined.
32245 (__mpn_extract_double): Add attribute_hidden.
32246 (__mpn_extract_long_double): Likewise.
32247 (__mpn_extract_float128): Likewise.
32248 (__mpn_construct_float): Likewise.
32249 (__mpn_construct_double): Likewise.
32250 (__mpn_construct_long_double): Likewise.
32251 (__mpn_construct_float128): Likewise.
32252 (mpn_add_1): Likewise.
32253 (mpn_addmul_1): Likewise.
32254 (mpn_add_n): Likewise.
32255 (mpn_cmp): Likewise.
32256 (mpn_divrem): Likewise.
32257 (mpn_lshift): Likewise.
32258 (mpn_mul): Likewise.
32259 (mpn_mul_1): Likewise.
32260 (mpn_rshift): Likewise.
32261 (mpn_sub_1): Likewise.
32262 (mpn_submul_1): Likewise.
32263 (mpn_sub_n): Likewise.
32264
32265 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32266
32267 [BZ #18822]
32268 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32269 (__wcscat): Likewise.
32270 (__btowc): Likewise.
32271 (__wcrtomb): Likewise.
32272 (__mbsrtowcs): Likewise.
32273 (__wcsrtombs): Likewise.
32274 (__mbsnrtowcs): Likewise.
32275 (__wcsnrtombs): Likewise.
32276 (__wcsncpy): Likewise.
32277 (__wcpncpy): Likewise.
32278 (__wmemcpy): Likewise.
32279 (__wmempcpy): Likewise.
32280 (__wmemmove): Likewise.
32281 (__wcschrnul): Likewise.
32282 (__vfwscanf): Likewise.
32283 (__vswprintf): Likewise.
32284 (__fwprintf): Likewise.
32285 (__vfwprintf): Likewise.
32286
32287 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32288
32289 [BZ #18822]
32290 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32291 (__getgrgid_r): Likewise.
32292 (__getgrnam_r): Likewise.
32293 * include/pwd.h (__getpwuid_r): Likewise.
32294 (__getpwnam_r): Likewise.
32295 (__fgetpwent_r): Likewise.
32296 * include/shadow.h (__getspnam_r): Likewise.
32297 (__sgetspent_r): Likewise.
32298 (__fgetspent_r): Likewise.
32299
32300 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32301
32302 [BZ #18822]
32303 * include/unistd.h (__access): Add attribute_hidden.
32304 (__lseek64): Likewise.
32305 (__libc_pread64): Likewise.
32306 (__pipe2): Likewise.
32307 (__sleep): Likewise.
32308 (__chdir): Likewise.
32309 (__fchdir): Likewise.
32310 (__getcwd): Likewise.
32311 (__rmdir): Likewise.
32312 (__execvpe): Likewise.
32313 (__execve): Likewise.
32314 (__setsid): Likewise.
32315 (__getuid): Likewise.
32316 (__geteuid): Likewise.
32317 (__getgid): Likewise.
32318 (__getegid): Likewise.
32319 (__getgroups): Likewise.
32320 (__group_member): Likewise.
32321 (__ttyname_r): Likewise.
32322 (__isatty): Likewise.
32323 (__readlink): Likewise.
32324 (__unlink): Likewise.
32325 (__gethostname): Likewise.
32326 (__profil): Likewise.
32327 (__getdtablesize): Likewise.
32328 (__brk): Likewise.
32329 (__ftruncate): Likewise.
32330 (__ftruncate64): Likewise.
32331
32332 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32333
32334 [BZ #18822]
32335 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32336 * argp/argp-fs-xinl.c: Likewise.
32337 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32338 * argp/argp-parse.c: Include <argp.h>.
32339 * argp/argp-xinl.c: Likewise.
32340 * include/argp-fmtstream.h: New file.
32341 * include/argp.h (__argp_error): Add attribute_hidden.
32342 (__argp_failure): Likewise.
32343 (__argp_input): Likewise.
32344 (__argp_state_help): Likewise.
32345
32346 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32347
32348 [BZ #18822]
32349 * include/wchar.h (____wcstof_l_internal): New prototype.
32350 (____wcstod_l_internal): Likewise.
32351 (____wcstold_l_internal): Likewise.
32352 (____wcstol_l_internal): Likewise.
32353 (____wcstoul_l_internal): Likewise.
32354 (____wcstoll_l_internal): Likewise.
32355 (____wcstoull_l_internal): Likewise.
32356 (____wcstof128_l_internal): Likewise.
32357 * sysdeps/ieee754/float128/wcstof128.c
32358 (____wcstof128_l_internal): Removed.
32359 * sysdeps/ieee754/float128/wcstof128_l.c
32360 (____wcstof128_l_internal): Likewise.
32361 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32362 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32363 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32364 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32365 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32366 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32367 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32368 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32369 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32370 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32371
32372 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32373
32374 [BZ #18822]
32375 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32376 instead of <sys/statvfs.h>.
32377 (__internal_statvfs): Removed.
32378 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32379 instead of <sys/statvfs.h>.
32380 (__internal_statvfs64): Removed.
32381 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32382 "internal_statvfs.h" instead of <sys/statvfs.h>.
32383 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32384 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32385 instead of <sys/statvfs.h>.
32386 (__internal_statvfs): Removed.
32387 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32388 instead of <sys/statvfs.h>.
32389 (__internal_statvfs64): Removed.
32390
32391 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32392
32393 [BZ #18822]
32394 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32395 (__gconv_close): Likewise.
32396 (__gconv): Likewise.
32397 (__gconv_find_transform): Likewise.
32398 (__gconv_lookup_cache): Likewise.
32399 (__gconv_compare_alias_cache): Likewise.
32400 (__gconv_load_cache): Likewise.
32401 (__gconv_get_path): Likewise.
32402 (__gconv_close_transform): Likewise.
32403 (__gconv_release_cache): Likewise.
32404 (__gconv_find_shlib): Likewise.
32405 (__gconv_release_shlib): Likewise.
32406 (__gconv_get_builtin_trans): Likewise.
32407 (__gconv_compare_alias): Likewise.
32408 * include/dlfcn.h (_dlerror_run): Likewise.
32409 * include/stdio.h (__fortify_fail_abort): Likewise.
32410 * include/time.h (__tz_compute): Likewise.
32411 (__strptime_internal): Likewise.
32412 * intl/gettextP.h (_nl_find_domain): Likewise.
32413 (_nl_load_domain): Likewise.
32414 (_nl_find_msg): Likewise.
32415 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32416 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32417 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32418 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32419 (__gai_find_request): Likewise.
32420 (__gai_remove_request): Likewise.
32421 (__gai_notify): Likewise.
32422 (__gai_notify_only): Likewise.
32423 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32424 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32425 (_dl_non_dynamic_init): Likewise.
32426 (_dl_aux_init): Likewise.
32427 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32428 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32429 Likewise.
32430 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32431 (__wcsmbs_clone_conv): Likewise.
32432 (__wcsmbs_named_conv): Likewise.
32433
32434 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32435
32436 [BZ #18822]
32437 * include/stdlib.h (__random): Add attribute_hidden.
32438 (__random_r): Likewise.
32439 (__srandom_r): Likewise.
32440 (__initstate_r): Likewise.
32441 (__setstate_r): Likewise.
32442 (__erand48_r): Likewise.
32443 (__nrand48_r): Likewise.
32444 (__jrand48_r): Likewise.
32445 (__srand48_r): Likewise.
32446 (__seed48_r): Likewise.
32447 (__lcong48_r): Likewise.
32448 (__drand48_iterate): Likewise.
32449 (__setenv): Likewise.
32450 (__unsetenv): Likewise.
32451 (__clearenv): Likewise.
32452 (__ptsname_r): Likewise.
32453 (__posix_openpt): Likewise.
32454 (__add_to_environ): Likewise.
32455 (__realpath): Add libc_hidden_proto.
32456 (__ecvt_r): Likewise.
32457 (__fcvt_r): Likewise.
32458 (__qecvt_r): Likewise.
32459 (__qfcvt_r): Likewise.
32460 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32461 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32462
32463 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32464
32465 [BZ #18822]
32466 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32467 * include/time.h (__mktime_internal): Likewise.
32468 * libio/iolibio.h (__fopen_internal): Likewise.
32469
32470 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32471
32472 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32473 pointer in frame.
32474 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32475 Correct offset used to restore PIC register.
32476
32477 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32478
32479 [BZ libc/22165]
32480 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32481 code to load address of __getcontext_ret when generating PIC code.
32482
32483 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32484
32485 * elf/Makefile (tests-static-internal): Add
32486 tst-tls1-static-non-pie.
32487 (LDFLAGS-tst-tls1-static-non-pie): New.
32488 * elf/tst-tls1-static-non-pie.c: New file.
32489
32490 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32491
32492 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32493 (asinh): Define using libm_alias_double.
32494 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32495 (cbrt): Define using libm_alias_double.
32496 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32497 <libm-alias-double.h>.
32498 (copysign): Define using libm_alias_double.
32499 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32500 (erf): Define using libm_alias_double.
32501 (erfc): Likewise.
32502 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32503 (expm1): Define using libm_alias_double.
32504 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32505 (fabs): Define using libm_alias_double.
32506 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32507 libm_alias_double.
32508 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32509 <libm-alias-double.h>.
32510 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32511 libm_alias_double.
32512 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32513 <libm-alias-double.h>.
32514 (getpayload): Define using libm_alias_double.
32515 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32516 <libm-alias-double.h>.
32517 (llrint): Define using libm_alias_double.
32518 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32519 (lrint): Define using libm_alias_double.
32520 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32521 <libm-alias-double.h>.
32522 (nextup): Define using libm_alias_double.
32523 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32524 <libm-alias-double.h>.
32525 (roundeven): Define using libm_alias_double.
32526 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32527 libm_alias_double.
32528 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32529 <libm-alias-double.h>.
32530 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32531 using libm_alias_double.
32532 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32533 (cos): Define using libm_alias_double.
32534 (sin): Likewise.
32535 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32536 <libm-alias-double.h>.
32537 (sincos): Define using libm_alias_double.
32538 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32539 (tanh): Define using libm_alias_double.
32540 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32541 <libm-alias-double.h>.
32542 (totalorder): Define using libm_alias_double.
32543 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32544 <libm-alias-double.h>.
32545 (totalordermag): Define using libm_alias_double.
32546 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32547 libm_alias_double.
32548 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32549 libm_alias_double.
32550 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32551 <libm-alias-double.h>.
32552 (getpayload): Define using libm_alias_double.
32553 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32554 <libm-alias-double.h>.
32555 (roundeven): Define using libm_alias_double.
32556 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32557 <libm-alias-double.h>.
32558 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32559 <libm-alias-double.h>.
32560 (totalorder): Define using libm_alias_double.
32561 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32562 <libm-alias-double.h>.
32563 (totalordermag): Define using libm_alias_double.
32564 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32565 libc compat symbol here.
32566 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32567 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32568 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32569 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32570 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32571 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32572 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32573 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32574 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32575 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32576
32577 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32578
32579 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32580 _dl_relocate_static_pie instead of _dl_start to compute load
32581 address in static PIE. Return 0 if _DYNAMIC is undefined for
32582 static executable.
32583
32584 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32585
32586 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32587 _DYNAMIC is undefined for static executable.
32588
32589 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32590
32591 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32592
32593 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32594
32595 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32596
32597 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32598
32599 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32600 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32601 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32602 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32603 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32604 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32605 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32606 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32607 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32608 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32609 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32610 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32611 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32612 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32613 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32614 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32615 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32616
32617 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32618
32619 * math/bits/cmathcalls.h (cimag): Remove inline.
32620 (creal): Remove inline.
32621 (conj): Remove inline.
32622
32623 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32624
32625 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32626 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32627 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32628 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32629 (issignalingf_inline): Likewise.
32630 (POWF_LOG2_TABLE_BITS): Likewise.
32631 (POWF_LOG2_POLY_ORDER): Likewise.
32632 (POWF_SCALE_BITS): Likewise.
32633 (POWF_SCALE): Likewise.
32634 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32635 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32636 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32637
32638 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32639
32640 * math/Makefile (type-float-routines): Add e_log2f_data.
32641 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32642 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32643 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32644 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32645 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32646 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32647 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32648
32649 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32650
32651 * math/Makefile (type-float-routines): Add e_logf_data.
32652 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32653 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32654 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32655 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32656 * sysdeps/i386/fpu/e_logf_data.c: New file.
32657 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32658 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32659
32660 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32661
32662 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32663 undefined _DYNAMIC in PIE libc.a.
32664 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32665 Likewse.
32666
32667 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32668
32669 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32670 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32671 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32672 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32673 (__signbit): Remove.
32674 (__signbitl): Remove.
32675 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32676 (__signbit): Remove.
32677 (__signbitl): Remove.
32678 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32679 (__signbit): Remove.
32680 (__signbitl): Remove.
32681 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32682 (__signbit): Remove.
32683 (__signbitl): Remove.
32684 * sysdeps/tile/bits/mathinline.h: Delete file.
32685 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32686 (__signbit): Remove.
32687 (__signbitl): Remove.
32688
32689 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32690
32691 * math/math.h: Improve handling of C99 isgreater macros.
32692 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32693 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32694 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32695 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32696 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32697
32698 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32699
32700 * sysdeps/aarch64/libm-test-ulps: Update.
32701
32702 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32703
32704 [BZ #22225]
32705 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32706 math_opt_barrier on argument when doing arithmetic on it.
32707 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32708 Likewise. Use math_force_eval not math_opt_barrier after
32709 arithmetic.
32710 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32711 math_opt_barrier on argument when doing arithmetic on it.
32712 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32713 Likewise.
32714
32715 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32716
32717 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32718 libc_hidden_def.
32719 (__freeifaddrs): Likewise.
32720
32721 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32722
32723 * include/dirent.h (__dirfd): New declaration.
32724 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32725 alias.
32726 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32727 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32728 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32729 * include/unistd.h (__revoke): New declaration.
32730 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32731 alias.
32732 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32733 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32734 revoke.
32735 * include/dirent.h (__seekdir): New declaration.
32736 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32737 redefine as weak alias.
32738 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32739 of seekdir.
32740 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32741 and use libc_hidden_def on them.
32742 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32743 them.
32744 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32745 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32746 instead of getifaddrs and freeifaddrs.
32747
32748 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32749
32750 [BZ #18822]
32751 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32752 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32753 (__dso_handle): Remove declaration.
32754 * dlfcn/tstatexit.c (__dso_handle): Removed.
32755 (main): Don't check __dso_handle.
32756 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32757 (main): Don't check __dso_handle.
32758 * include/dso_handle.h: New file.
32759 * malloc/mtrace.c: Include <dso_handle.h>.
32760 (mtrace): Pass __dso_handle directly.
32761 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32762 (__dso_handle): Remove declaration.
32763 (__pthread_atfork): Pass __dso_handle directly.
32764 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32765 (__dso_handle): Removed.
32766 * posix/wordexp-test.c: Include <dso_handle.h>.
32767 (__dso_handle): Remove declaration.
32768 (__app_register_atfork): Pass __dso_handle directly.
32769 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32770 (__dso_handle): Remove declaration.
32771 (at_quick_exit): Pass __dso_handle directly.
32772 * stdlib/atexit.c: Include <dso_handle.h>.
32773 (__dso_handle): Remove declaration.
32774 (atexit): Pass __dso_handle directly.
32775 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32776 (__dso_handle): Removed.
32777
32778 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32779
32780 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32781 using VDSO.
32782
32783 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32784
32785 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32786 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32787 values to correct default value for given type.
32788
32789 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32790
32791 [BZ #22101]
32792 * elf/Makefile (tests): Add tst-debug1.
32793 ($(objpfx)tst-debug1): New.
32794 ($(objpfx)tst-debug1.out): Likewise.
32795 ($(objpfx)tst-debug1mod1.so): Likewise.
32796 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32797 with p_filesz == 0.
32798 * elf/tst-debug1.c: New file.
32799
32800 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32801
32802 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32803 Define using __ifunc.
32804
32805 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32806
32807 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32808 exp2f() values.
32809
32810 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32811
32812 [BZ #22156]
32813 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32814
32815 2017-09-26 Florian Weimer <fweimer@redhat.com>
32816
32817 * resolv/Makefile (tests-internal): Fix typo in comment.
32818
32819 2017-09-26 Florian Weimer <fweimer@redhat.com>
32820
32821 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32822
32823 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32824
32825 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32826 Use an union instead of a max_align_t array for __space,
32827 so that __space is the same size on all platforms.
32828 * malloc/scratch_buffer_grow_preserve.c
32829 (__libc_scratch_buffer_grow_preserve): Likewise.
32830
32831 [BZ #22183]
32832 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32833 version to 2.
32834 * posix/Makefile (routines): Add glob-lstat-compat and
32835 glob64-lstat-compat.
32836 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32837 * posix/glob-lstat-compat.c: New file.
32838 * posix/glob64-lstat-compat.c: Likewise.
32839 * posix/tst-glob_lstat_compat.c: Likewise.
32840 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32841 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32842 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32843 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32844 Likewise.
32845 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32846 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32847 * posix/glob.c (glob_lstat): New function.
32848 (glob): Rename to __glob and add versioned symbol to 2.27.
32849 (glob_in_dir): Use glob_lstat.
32850 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32851 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32852 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32853 2.27.
32854 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32855 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32856 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32857 gl_lstat on glob call.
32858 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32859 and glob64 symbols.
32860 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32861 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32862 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32863 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32864 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32865 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32866 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32867 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32868 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32869 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32870 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32871 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32873 Likewise.
32874 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32876 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32877 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32878 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32879 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32880 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32881 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32882 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32883 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32884 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32885 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32886
32887 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32888
32889 * configure.ac (AS): Require binutils 2.25 or later.
32890 * configure: Regenerated.
32891
32892 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32893
32894 [BZ #22207]
32895 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32896 VM size.
32897
32898 2017-09-25 DJ Delorie <dj@redhat.com>
32899
32900 [BZ #22161]
32901 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32902 resetting timeout.
32903
32904 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32905
32906 * sysdeps/ieee754/dbl-64/sincos32.h
32907 [SINCCOS32_H]: Remove define.
32908 [SINCOS32_H]: Define.
32909
32910 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32911
32912 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32913 (exp2f): Likewise.
32914 * math/w_exp2f.c: New file.
32915 * math/w_expf.c: New file.
32916 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32917 * math/w_expf_compat.c (__expf_compat): Likewise.
32918 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32919 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32920 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32921 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32922 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32923 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32924 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32925 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32926 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32927 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32928 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32929 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32930 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32931 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32932 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32933 Likewise.
32934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32935 Likewise.
32936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32937 Likewise.
32938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32939 Likewise.
32940 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32941 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32942 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32943 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32944 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32945 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32946 Likewise.
32947 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32948 Likewise.
32949 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32950 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32951 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32952
32953 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32954
32955 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32956 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32957 (roundtoint, converttoint): Likewise.
32958 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32959 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32960 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32961 * sysdeps/ieee754/flt-32/math_config.h: New file.
32962 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32963 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32964 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32965 * sysdeps/i386/fpu/math_errf.c: New file.
32966 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32967 * sysdeps/ia64/fpu/math_errf.c: New file.
32968 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32969 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32970
32971 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32972
32973 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32974 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32975 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32976 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32977 to make sure that these symbols are defined.
32978 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32979 of <limits.h>
32980 (__need_NULL): Do not define.
32981 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32982 alignment.
32983 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32984 CMGROUP_MAX, cmsgcred): Do not define.
32985 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32986 NULL.
32987 * bits/socket.h: Likewise.
32988 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32989 __gettimeofday instead of gettimeofday.
32990 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32991 instead of settimeofday.
32992
32993 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32994
32995 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32996 (asinhf): Define using libm_alias_float.
32997 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32998 (atanf): Define using libm_alias_float.
32999 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33000 (cbrtf): Define using libm_alias_float.
33001 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33002 (ceilf): Define using libm_alias_float.
33003 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33004 <libm-alias-float.h>.
33005 (copysignf): Define using libm_alias_float.
33006 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33007 (cosf): Define using libm_alias_float.
33008 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33009 (erff): Define using libm_alias_float.
33010 (erfcf): Likewise.
33011 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33012 (expm1f): Define using libm_alias_float.
33013 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33014 (fabsf): Define using libm_alias_float.
33015 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33016 (floorf): Define using libm_alias_float.
33017 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33018 (frexpf): Define using libm_alias_float.
33019 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33020 libm_alias_float.
33021 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33022 <libm-alias-float.h>.
33023 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33024 libm_alias_float.
33025 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33026 <libm-alias-float.h>.
33027 (getpayloadf): Define using libm_alias_float.
33028 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33029 <libm-alias-float.h>.
33030 (llrintf): Define using libm_alias_float.
33031 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33032 <libm-alias-float.h>.
33033 (llroundf): Define using libm_alias_float.
33034 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33035 (logbf): Define using libm_alias_float.
33036 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33037 (lrintf): Define using libm_alias_float.
33038 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33039 (lroundf): Define using libm_alias_float.
33040 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33041 (modff): Define using libm_alias_float.
33042 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33043 <libm-alias-float.h>.
33044 (nearbyintf): Define using libm_alias_float.
33045 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33046 <libm-alias-float.h>.
33047 (nextafterf): Define using libm_alias_float.
33048 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33049 <libm-alias-float.h>.
33050 (nextupf): Define using libm_alias_float.
33051 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33052 <libm-alias-float.h>.
33053 (remquof): Define using libm_alias_float.
33054 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33055 (rintf): Define using libm_alias_float.
33056 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33057 <libm-alias-float.h>.
33058 (roundevenf): Define using libm_alias_float.
33059 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33060 (roundf): Define using libm_alias_float.
33061 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33062 using libm_alias_float.
33063 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33064 <libm-alias-float.h>.
33065 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33066 Define using libm_alias_float.
33067 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33068 <libm-alias-float.h>.
33069 (sincosf): Define using libm_alias_float.
33070 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33071 (sinf): Define using libm_alias_float.
33072 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33073 (tanf): Define using libm_alias_float.
33074 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33075 (tanhf): Define using libm_alias_float.
33076 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33077 <libm-alias-float.h>.
33078 (totalorderf): Define using libm_alias_float.
33079 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33080 <libm-alias-float.h>.
33081 (totalordermagf): Define using libm_alias_float.
33082 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33083 (truncf): Define using libm_alias_float.
33084 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33085 libm_alias_float.
33086 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33087 libm_alias_float.
33088
33089 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33090
33091 [BZ #22146]
33092 math/math.h: Let fpclassify use the builtin in C++ mode, even
33093 when optimazing for size.
33094
33095 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33096
33097 * csu/Makefile (generated): Do not add version-info.h.
33098 (before-compile): Likewise.
33099 (all-Banner-files): Remove variable.
33100 ($(objpfx)version-info.h): Remove rule.
33101 * csu/version.c (banner): Do not include "version-info.h".
33102 * libidn/Banner: Remove.
33103 * manual/contrib.texi (Simon Josefsson): New entry.
33104
33105 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33106
33107 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33108 Remove conditionals on LDBL_MANT_DIG.
33109 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33110 (__ieee754_lgammal_r): Likewise.
33111
33112 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33113
33114 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33115 _Float128 and L().
33116 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33117 _Float128 and L(). Replace _Float128 with long double and L(x)
33118 with xL, throughout the file.
33119 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33120 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33121 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33122 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33123
33124 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33125
33126 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33127 sysdeps/ieee754/ldbl-128ibm.
33128 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33129 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33130 of including it. Keep _Float128 and L() intact. These will be
33131 reviewed by a separate patch.
33132 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33133 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33134 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33135 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33136
33137 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33138
33139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33140 (__finitef128): Define to __redirect___finitef128.
33141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33142 (__isinff128): Define to __redirect___isinff128.
33143 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33144 (__isnanf128): Define to __redirect___isnanf128.
33145
33146 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33147
33148 * sysdeps/powerpc/powerpc64le/Makefile
33149 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33150 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33151
33152 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33153 Carlos O'Donell <carlos@redhat.com>
33154
33155 [BZ #22180]
33156 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33157 * stdlib/test-dlclose-exit-race.c: New file.
33158 * stdlib/test-dlclose-exit-race-helper.c: New file.
33159 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33160
33161 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33162
33163 * crypt/Banner: Remove file.
33164 * nptl/Banner: Likewise.
33165 * resolv/Banner: Likewise.
33166 * soft-fp/Banner: Likewise.
33167 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33168 ($(objpfx)version.d): Remove dependency on banner.h.
33169 ($(objpfx)version.os): Likewise.
33170 * nptl/version.c (banner): Do not include banner.h.
33171 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33172 Jelinek and BIND code.
33173
33174 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33175 Carlos O'Donell <carlos@redhat.com>
33176
33177 * support/xdlfcn.h: New file.
33178 * support/xdlfcn.c: New file.
33179 * support/Makefile (libsupport-routines): Add xdlfcn.
33180 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33181
33182 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33183
33184 [BZ #20142]
33185 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33186 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33187 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33188 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33189 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33190 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33191 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33192 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33193
33194 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33195 Ricky Zhou <rickyz@google.com>
33196 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33197
33198 [BZ #14333]
33199 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33200 Remove atomics.
33201 (__new_exitfn): Fail registration when we finished at_exit processing.
33202 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33203 * stdlib/on_exit.c (__on_exit): Likewise.
33204 * stdlib/exit.c (__exit_funcs_done): New variable.
33205 (__run_exit_handlers): Use __exit_funcs_lock.
33206 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33207 declarations.
33208 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33209 (test-cxa_atexit-race, test-on_exit-race): New tests.
33210 * stdlib/test-atexit-race-common.c: New file.
33211 * stdlib/test-atexit-race.c: New file.
33212 * stdlib/test-at_quick_exit-race.c: New file.
33213 * stdlib/test-cxa_atexit-race.c: New file.
33214 * stdlib/test-on_exit-race.c: New file.
33215
33216 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33217
33218 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33219 * benchtests/exp2f-inputs: Copy of expf-inputs.
33220 * benchtests/log2f-inputs: Copy of logf-inputs.
33221
33222 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33223
33224 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33225 Explicitly take address of first element of array arguments in
33226 call to INLINE_SYSCALL.
33227
33228 2017-09-19 Andreas Schwab <schwab@suse.de>
33229
33230 [BZ #22134]
33231 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33232 execveat first.
33233 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33234 unimplemented.
33235 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33236 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33237 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33238 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33239 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33240 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33241 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33242 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33243 * posix/Makefile (tests): Add tst-fexecve.
33244 * posix/tst-fexecve.c: New file.
33245
33246 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33247
33248 * benchtests/Makefile: Add logf benchmark.
33249 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33250
33251 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33252
33253 * benchtests/Makefile: Add expf benchmark.
33254 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33255
33256 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33257
33258 * csu/Makefile: Add -funwind-tables to libc-start.c.
33259 * debug/Makefile: Add -funwind-tables to backtrace.c.
33260 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33261 * sysdeps/arm/Makefile: Likewise.
33262 * sysdeps/i386/Makefile: Likewise.
33263 * sysdeps/m68k/Makefile: Likewise.
33264 * sysdeps/mips/Makefile: Likewise.
33265 * sysdeps/nios2/Makefile: Likewise.
33266 * sysdeps/sh/Makefile: Likewise.
33267 * sysdeps/sparc/Makefile: Likewise.
33268
33269 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33270
33271 * benchtests/Makefile (bench-math): Add trunc and truncf.
33272 (CFLAGS-bench-trunc.c): New variable.
33273 (CFLAGS-bench-truncf.c): Likewise.
33274 * benchtests/trunc-inputs: New file.
33275 * benchtests/truncf-inputs: Likewise.
33276
33277 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33278
33279 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33280
33281 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33282
33283 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33284 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33285 redefine.
33286 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33287 (exp10l): Define as weak alias.
33288 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33289 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33290 and redefine.
33291 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33292 (remainderl): Define as weak alias.
33293
33294 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33295 (fmal): Define using libm_alias_ldouble.
33296 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33297 (acoshl): Define using libm_alias_ldouble.
33298 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33299 (acosl): Define using libm_alias_ldouble.
33300 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33301 (asinl): Define using libm_alias_ldouble.
33302 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33303 (atan2l): Define using libm_alias_ldouble.
33304 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33305 (atanhl): Define using libm_alias_ldouble.
33306 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33307 (coshl): Define using libm_alias_ldouble.
33308 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33309 (exp10l): Define using libm_alias_ldouble.
33310 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33311 (exp2l): Define using libm_alias_ldouble.
33312 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33313 (expl): Define using libm_alias_ldouble.
33314 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33315 (fmodl): Define using libm_alias_ldouble.
33316 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33317 (hypotl): Define using libm_alias_ldouble.
33318 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33319 (j0l): Define using libm_alias_ldouble.
33320 (y0l): Likewise.
33321 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33322 (j1l): Define using libm_alias_ldouble.
33323 (y1l): Likewise.
33324 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33325 (jnl): Define using libm_alias_ldouble.
33326 (ynl): Likewise.
33327 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33328 (log10l): Define using libm_alias_ldouble.
33329 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33330 (log2l): Define using libm_alias_ldouble.
33331 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33332 (logl): Define using libm_alias_ldouble.
33333 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33334 (powl): Define using libm_alias_ldouble.
33335 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33336 (remainderl): Define using libm_alias_ldouble.
33337 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33338 (sinhl): Define using libm_alias_ldouble.
33339 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33340 (sqrtl): Define using libm_alias_ldouble.
33341 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33342 (tgammal): Define using libm_alias_ldouble.
33343 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33344 (exp10l): Do not use long_double_symbol here.
33345 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33346 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33347 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33348 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33349 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33350 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33351 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33352 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33353 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33354 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33355 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33356 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33357 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33358 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33359 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33360 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33361 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33362 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33363 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33364 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33365 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33366 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33367
33368 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33369
33370 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33371 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33372
33373 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33374
33375 * io/read.c (read): Add libc_hidden_weak.
33376 * sysdeps/mach/hurd/read.c (read): Likewise.
33377 * io/write.c (write): Likewise.
33378 * sysdeps/mach/hurd/write.c (write): Likewise.
33379 * io/pread64.c (__pread64): Likewise.
33380 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33381 * posix/pread64.c (__pread64): Add libc_hidden_def.
33382
33383 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33384
33385 * benchtests/scripts/compare_strings.py: New option -g.
33386 (draw_graph): Print a message that a graph is being generated.
33387 (process_results): Generate graph only if -g is passed.
33388 (main): Process option -g.
33389
33390 * benchtests/scripts/compare_strings.py (process_results):
33391 Better spacing for output.
33392
33393 * benchtests/scripts/compare_strings.py: Use argparse.
33394 * benchtests/README: Document existence of compare_strings.py.
33395
33396 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33397
33398 * math/s_fma.c: Include <libm-alias-double.h>.
33399 (fma): Define using libm_alias_double.
33400 * math/s_nextafter.c: Include <libm-alias-double.h>.
33401 (nextafter): Define using libm_alias_double.
33402 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33403 (acos): Define using libm_alias_double.
33404 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33405 (aocsh): Define using libm_alias_double.
33406 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33407 (asin): Define using libm_alias_double.
33408 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33409 (atan2): Define using libm_alias_double.
33410 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33411 (atanh): Define using libm_alias_double.
33412 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33413 (cosh): Define using libm_alias_double.
33414 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33415 (exp10): Define using libm_alias_double.
33416 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33417 (exp2): Define using libm_alias_double.
33418 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33419 (exp): Define using libm_alias_double.
33420 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33421 (fmod): Define using libm_alias_double.
33422 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33423 (hypot): Define using libm_alias_double.
33424 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33425 (j0): Define using libm_alias_double.
33426 (y0): Likewise.
33427 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33428 (j1): Define using libm_alias_double.
33429 (y1): Likewise.
33430 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33431 (jn): Define using libm_alias_double.
33432 (yn): Likewise.
33433 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33434 (log10): Define using libm_alias_double.
33435 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33436 (log2): Define using libm_alias_double.
33437 * math/w_log_compat.c: Include <libm-alias-double.h>.
33438 (log): Define using libm_alias_double.
33439 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33440 (pow): Define using libm_alias_double.
33441 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33442 (remainder): Define using libm_alias_double.
33443 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33444 (sinh): Define using libm_alias_double.
33445 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33446 (sqrt): Define using libm_alias_double.
33447 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33448 (tgamma): Define using libm_alias_double.
33449 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33450 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33451 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33452 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33453 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33454 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33455 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33456 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33457 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33458 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33459 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33460 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33461 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33462 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33463 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33464 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33465 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33466 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33467 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33468 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33469 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33470 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33471 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33472 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33473 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33474
33475 * math/e_acoshl.c: Remove.
33476 * math/e_acosl.c: Likewise.
33477 * math/e_asinl.c: Likewise.
33478 * math/e_atan2l.c: Likewise.
33479 * math/e_atanhl.c: Likewise.
33480 * math/e_coshl.c: Likewise.
33481 * math/e_expl.c: Likewise.
33482 * math/e_fmodl.c: Likewise.
33483 * math/e_gammal_r.c: Likewise.
33484 * math/e_hypotl.c: Likewise.
33485 * math/e_j0l.c: Likewise.
33486 * math/e_j1l.c: Likewise.
33487 * math/e_jnl.c: Likewise.
33488 * math/e_lgammal_r.c: Likewise.
33489 * math/e_log10l.c: Likewise.
33490 * math/e_log2l.c: Likewise.
33491 * math/e_logl.c: Likewise.
33492 * math/e_powl.c: Likewise.
33493 * math/e_rem_pio2l.c: Likewise.
33494 * math/e_sinhl.c: Likewise.
33495 * math/e_sqrtf128.c: Likewise.
33496 * math/e_sqrtl.c: Likewise.
33497 * math/k_cosl.c: Likewise.
33498 * math/k_sinl.c: Likewise.
33499 * math/k_tanl.c: Likewise.
33500 * math/s_asinhl.c: Likewise.
33501 * math/s_atanl.c: Likewise.
33502 * math/s_cbrtl.c: Likewise.
33503 * math/s_erfl.c: Likewise.
33504 * math/s_expm1l.c: Likewise.
33505 * math/s_log1pl.c: Likewise.
33506 * math/s_tanhl.c: Likewise.
33507
33508 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33509
33510 [BZ #21745]
33511 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33512 [$(subdir) = math] (sysdep_calls): New variable. Has the
33513 previous contents of sysdep_routines, but re-sorted..
33514 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33515 sysdep_calls.
33516 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33517 defined in sysdep_calls and replace by the respective m_* names.
33518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33519 (compat_symbol): Undefine to avoid duplicated compat symbols in
33520 libc.
33521
33522 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33523
33524 * math/s_fmaf.c: Include <libm-alias-float.h>.
33525 (fmaf): Define using libm_alias_float.
33526 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33527 (acosf): Define using libm_alias_float.
33528 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33529 (acoshf): Define using libm_alias_float.
33530 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33531 (asinf): Define using libm_alias_float.
33532 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33533 (atan2f): Define using libm_alias_float.
33534 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33535 (atanhf): Define using libm_alias_float.
33536 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33537 (coshf): Define using libm_alias_float.
33538 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33539 (exp10f): Define using libm_alias_float.
33540 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33541 (fmodf): Define using libm_alias_float.
33542 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33543 (hypotf): Define using libm_alias_float.
33544 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33545 (j0f): Define using libm_alias_float.
33546 (y0f): Likewise.
33547 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33548 (j1f): Define using libm_alias_float.
33549 (y1f): Likewise.
33550 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33551 (jnf): Define using libm_alias_float.
33552 (ynf): Likewise.
33553 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33554 (log10f): Define using libm_alias_float.
33555 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33556 (log2f): Define using libm_alias_float.
33557 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33558 (logf): Define using libm_alias_float.
33559 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33560 (powf): Define using libm_alias_float.
33561 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33562 (remainderf): Define using libm_alias_float.
33563 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33564 (sinhf): Define using libm_alias_float.
33565 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33566 (sqrtf): Define using libm_alias_float.
33567 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33568 (tgammaf): Define using libm_alias_float.
33569
33570 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33571
33572 * include/math.h (roundeven): Change hidden_proto call to
33573 __roundeven.
33574 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33575 alias.
33576 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33577 (y0): Rename to __y0 and define as weak alias.
33578 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33579 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33580 alias.
33581 (y0f): Rename to __y0f and define as weak alias.
33582 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33583 alias.
33584 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33585 (y1): Rename to __y1 and define as weak alias.
33586 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33587 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33588 alias.
33589 (y1f): Rename to __y1f and define as weak alias.
33590 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33591 alias.
33592 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33593 (yn): Rename to __yn and define as weak alias.
33594 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33595 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33596 alias.
33597 (ynf): Rename to __ynf and define as weak alias.
33598 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33599 (fromfp): Define as weak alias.
33600 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33601 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33602 (fromfpx): Define as weak alias.
33603 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33604 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33605 __getpayload and define as weak alias.
33606 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33607 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33608 __roundeven and define as weak alias.
33609 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33610 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33611 __setpayload.
33612 (setpayload): Define as weak alias.
33613 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33614 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33615 __setpayloadsig.
33616 (setpayloadsig): Define as weak alias.
33617 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33618 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33619 __totalorder and define as weak alias.
33620 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33621 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33622 to __totalordermag and define as weak alias.
33623 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33624 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33625 (ufromfp): Define as weak alias.
33626 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33627 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33628 __ufromfpx.
33629 (ufromfpx): Define as weak alias.
33630 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33631 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33632 Rename to __getpayload and define as weak alias.
33633 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33634 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33635 Rename to __roundeven and define as weak alias.
33636 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33637 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33638 Rename to __totalorder and define as weak alias.
33639 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33640 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33641 (totalordermag): Rename to __totalordermag and define as weak
33642 alias.
33643 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33644 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33645 macro.
33646 (__roundevenl): Likewise.
33647 (__totalorderl): Likewise.
33648 (__totalordermagl): Likewise
33649 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33650 __fromfpf128.
33651 (fromfpf128): Define as weak alias.
33652 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33653 __fromfpxf128.
33654 (fromfpxf128): Define as weak alias.
33655 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33656 __setpayloadf128.
33657 (setpayloadf128): Define as weak alias.
33658 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33659 __setpayloadsigf128.
33660 (setpayloadsigf128): Define as weak alias.
33661 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33662 __ufromfpf128.
33663 (ufromfpf128): Define as weak alias.
33664 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33665 __ufromfpxf128.
33666 (ufromfpxf128): Define as weak alias.
33667 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33668 (fromfpf): Define as weak alias.
33669 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33670 __fromfpxf.
33671 (fromfpxf): Define as weak alias.
33672 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33673 __getpayloadf and define as weak alias.
33674 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33675 __roundevenf and define as weak alias.
33676 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33677 __setpayloadf.
33678 (setpayloadf): Define as weak alias.
33679 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33680 __setpayloadsigf.
33681 (setpayloadsigf): Define as weak alias.
33682 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33683 __totalorderf and define as weak alias.
33684 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33685 Rename to __totalordermagf and define as weak alias.
33686 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33687 __ufromfpf.
33688 (ufromfpf): Define as weak alias.
33689 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33690 __ufromfpxf.
33691 (ufromfpxf): Define as weak alias.
33692 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33693 __fromfpl.
33694 (fromfpl): Define as weak alias.
33695 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33696 __fromfpxl.
33697 (fromfpxl): Define as weak alias.
33698 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33699 to __getpayloadl and define as weak alias.
33700 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33701 __roundevenl and define as weak alias.
33702 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33703 __setpayloadl.
33704 (setpayloadl): Define as weak alias.
33705 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33706 __setpayloadsigl.
33707 (setpayloadsigl): Define as weak alias.
33708 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33709 to __totalorderl and define as weak alias.
33710 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33711 Rename to __totalordermagl and define as weak alias.
33712 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33713 __ufromfpl.
33714 (ufromfpl): Define as weak alias.
33715 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33716 __ufromfpxl.
33717 (ufromfpxl): Define as weak alias.
33718 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33719 __fromfpl.
33720 (fromfpl): Define as weak alias.
33721 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33722 __fromfpxl.
33723 (fromfpxl): Define as weak alias.
33724 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33725 Rename to __getpayloadl and define as weak alias.
33726 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33727 to __roundevenl and define as weak alias. Call __roundeven
33728 instead of roundeven.
33729 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33730 __setpayloadl.
33731 (setpayloadl): Define as weak alias.
33732 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33733 __setpayloadsigl.
33734 (setpayloadsigl): Define as weak alias.
33735 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33736 Rename to __totalorderl and define as weak alias.
33737 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33738 Rename to __totalordermagl and define as weak alias.
33739 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33740 __ufromfpl.
33741 (ufromfpl): Define as weak alias.
33742 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33743 __ufromfpxl.
33744 (ufromfpxl): Define as weak alias.
33745 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33746 __fromfpl.
33747 (fromfpl): Define as weak alias.
33748 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33749 __fromfpxl.
33750 (fromfpxl): Define as weak alias.
33751 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33752 __getpayloadl and define as weak alias.
33753 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33754 __roundevenl and define as weak alias.
33755 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33756 __setpayloadl.
33757 (setpayloadl): Define as weak alias.
33758 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33759 __setpayloadsigl.
33760 (setpayloadsigl): Define as weak alias.
33761 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33762 __totalorderl and define as weak alias.
33763 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33764 Rename to __totalordermagl and define as weak alias.
33765 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33766 __ufromfpl.
33767 (ufromfpl): Define as weak alias.
33768 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33769 __ufromfpxl.
33770 (ufromfpxl): Define as weak alias.
33771
33772 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33773
33774 * benchtests/bench-string.h (realloc_bufs): New function.
33775 (test_init): Call it.
33776 * benchtests/bench-memset-large.c (do_test): Likewise.
33777 * benchtests/bench-memset.c (do_test): Likewise.
33778
33779 * benchtests/bench-memset-large.c: Print output in JSON
33780 format.
33781 * benchtests/bench-memset.c: Likewise.
33782
33783 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33784
33785 [BZ #21084]
33786 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33787 * iconvdata/Makefile: Add IBM858.
33788 * iconvdata/gconv-modules: Likewise.
33789 * iconvdata/tst-tables.sh: Likewise.
33790 * iconvdata/ibm858.c: New file.
33791 * localedata/charmaps/IBM858: Likewise.
33792
33793 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33794
33795 [BZ #22023]
33796 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33797 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33798
33799 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33800
33801 [BZ #22112]
33802 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33803 and add tel_int_fmt.
33804
33805 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33806
33807 * sysdeps/generic/libm-alias-float128.h: New file.
33808 * sysdeps/generic/math-type-macros-float128.h: Include
33809 <libm-alias-float128.h>.
33810 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33811
33812 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33813
33814 * sysdeps/generic/libm-alias-ldouble.h: New file.
33815 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33816 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33817 * sysdeps/generic/math-type-macros-ldouble.h: Include
33818 <libm-alias-ldouble.h>.
33819 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33820 libm_alias_ldouble.
33821
33822 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33823
33824 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33825 * math/w_exp_compat.c: ... here.
33826 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33827 * math/w_expf_compat.c: ... here.
33828 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33829 * math/w_expl_compat.c: ... here.
33830 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33831 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33832 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33833 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33834
33835 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33836
33837 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33838 redefine.
33839 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33840 macro.
33841 (ldexpl): Only define as compat symbol for libc, not libm.
33842 (scalbnl): Define as compat symbol for libc here.
33843 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33844 define for [IS_IN (libc)].
33845 (__ldexpl_2): Remove alias.
33846 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33847 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33848 name in long_double_symbol call.
33849 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33850 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33851 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33852 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33853 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33854 Remove macro.
33855 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33856 Define as compat symbol.
33857
33858 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33859
33860 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33861 * sysdeps/unix/sysv/linux/alpha/Makefile
33862 [$(subdir) = csu] (sysdep_routines): Remove rule.
33863
33864 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33865
33866 * sysdeps/generic/libm-alias-double.h: New file.
33867 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33868 * sysdeps/generic/math-type-macros-double.h: Include
33869 <libm-alias-double.h>.
33870 [declare_mgen_alias] (declare_mgen_alias): Define to use
33871 libm_alias_double.
33872 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33873 (M_LIBM_NEED_COMPAT): Remove macro.
33874 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33875 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33876 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33877 code.
33878 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33879 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33880 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33881 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33882 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33883 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33884 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33885 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33886 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33887 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33888 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33889 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33890 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33891 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33892 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33893 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33894 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33895 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33896 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33897 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33898 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33899 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33900 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33901 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33902 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33903 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33904 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33905 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33906 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33907 macro.
33908 (declare_mgen_alias): New macro.
33909 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33910 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33912 (M_LIBM_NEED_COMPAT): Remove macro.
33913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33914 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33915 <first-versions.h>.
33916 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33917 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33918
33919 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33920
33921 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33922 (declare_mgen_alias_2): Remove.
33923 * sysdeps/generic/math-type-macros-double.h
33924 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33925 Likewise.
33926 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33927 alias.
33928 (ldexp): Define with declare_mgen_alias.
33929 (scalbn): Likewise.
33930
33931 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33932
33933 * grp/initgroups.c: Include config.h.
33934 (DEFAULT_CONFIG): New macro.
33935 (internal_getgrouplist): Use DEFAULT_CONFIG.
33936 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33937 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33938 (DEFAULT_DEFCONFIG): New macro.
33939 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33940 * nss/grp-lookup.c: Include config.h
33941 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33942 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33943 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33944 * manual/nss.texi: Update default values section.
33945
33946 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33947
33948 [BZ #21967]
33949 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33950 New.
33951 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33952 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33953 Handle MathVec_Prefer_No_AVX512.
33954 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33955 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33956 is set.
33957
33958 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33959
33960 * posix/sched_primax.c (__sched_get_priority_max): Add
33961 libc_hidden_def.
33962 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33963 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33964 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33965 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33966 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33967 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33968 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33969 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33970 Add aliases.
33971
33972 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33973
33974 * sysdeps/generic/libm-alias-float.h: New file.
33975 * sysdeps/generic/math-type-macros-float.h: Include
33976 <libm-alias-float.h>.
33977 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33978
33979 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33980
33981 [BZ #22093]
33982 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33983 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33984 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33985 (HWCAP_IMPORTANT): Likewise.
33986 (HWCAP_X86_64): New enum.
33987 (HWCAP_X86_AVX512_1): Updated.
33988 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33989 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33990 (modules-names): Add x86_64/tst-x86_64mod-1.
33991 (LDFLAGS-tst-x86_64mod-1.so): New.
33992 ($(objpfx)tst-x86_64-1): Likewise.
33993 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33994 (tst-x86_64-1-clean): Likewise.
33995 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33996 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33997
33998 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33999
34000 * po/sv.po: Update translations.
34001 * po/fr.po: Likewise.
34002
34003 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34004
34005 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34006 seconds.
34007 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34008 seconds.
34009 * elf/rtld-Rules: Fix $(error) use.
34010
34011 2017-09-09 Mike FABIAN <mfabian@redhat.com>
34012
34013 [BZ #14925]
34014 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34015 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34016 * localedata/locales/bn_BD: “Bengali” was still used in some
34017 comments. Change it to “Bangla”.
34018
34019 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34020
34021 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34022
34023 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34024
34025 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34026 thunderx2t99p1 to list of cpu names.
34027 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34028 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34029
34030 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34031
34032 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34033 Use strcmp instead of tunable_is_name.
34034
34035 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34036
34037 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34038 (F_GET_RW_HINT): New macro.
34039 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34040 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34041 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34042 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34043 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34044 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34045 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34046 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34047 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34048
34049 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34050 (F_ADD_SEALS): New macro.
34051 [__USE_GNU] (F_GET_SEALS): Likewise.
34052 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34053 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34054 [__USE_GNU] (F_SEAL_GROW): Likewise.
34055 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34056
34057 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34058
34059 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34060 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34061 * posix/glob_internal.h (__glob_pattern_type):
34062 * posix/glob.c (glob):
34063 * posix/glob_pattern_p.c (__glob_pattern_p):
34064 Use them.
34065
34066 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34067 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34068 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34069 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34070 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34072 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34073 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34074 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34075 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34076 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34077 * sysdeps/wordsize-64/glob.c: Likewise.
34078 * sysdeps/wordsize-64/glob64.c: Likewise.
34079 * sysdeps/wordsize-64/globfree.c: Likewise.
34080 * sysdeps/wordsize-64/globfree64.c: Likewise.
34081 * sysdeps/unix/sysv/linux/glob.c: New file.
34082 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34083 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34084 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34085 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34086 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34087 adds !GLOB_NO_OLD_VERSION as an extra condition.
34088 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34089 using relative path instead of absolute one.
34090 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34091 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34092 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34093 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34094 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34095 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34096
34097 [BZ #1062]
34098 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34099 (glob): Use the same scratch buffer for both getlogin_r and
34100 getpwnam_r. Don’t require preallocation of the login name. This
34101 simplifies storage allocation, and corrects the handling of
34102 long login names.
34103
34104 [BZ #1062]
34105 * posix/glob.c (glob): Port recent patches to platforms
34106 lacking getpwnam_r.
34107 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34108 returns an error number rather than setting errno.
34109
34110 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34111 instead of GCC extension.
34112 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34113 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34114 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34115
34116 [BZ #866]
34117 [BZ #1062]
34118 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34119 * posix/bug-glob1.c: Remove file.
34120 * posix/tst-glob_symlinks.c: New file.
34121 * posix/glob.c (__lstat64): New macro.
34122 (is_dir): New function.
34123 (glob, glob_in_dir): Match symlinks even if they are dangling.
34124 (link_stat, link_exists_p): Remove. All uses removed.
34125
34126 [BZ #1062]
34127 [BZ #19971]
34128 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34129 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34130 All uses removed.
34131
34132 [BZ #1062]
34133 CVE-2017-15671
34134 * posix/Makefile (routines): Add globfree, globfree64, and
34135 glob_pattern_p.
34136 * posix/flexmember.h: New file.
34137 * posix/glob_internal.h: Likewise.
34138 * posix/glob_pattern_p.c: Likewise.
34139 * posix/globfree.c: Likewise.
34140 * posix/globfree64.c: Likewise.
34141 * sysdeps/gnu/globfree64.c: Likewise.
34142 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34143 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34144 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34145 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34146 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34147 * sysdeps/wordsize-64/globfree.c: Likewise.
34148 * sysdeps/wordsize-64/globfree64.c: Likewise.
34149 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34150 [NDEBUG): Remove comments.
34151 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34152 (dirent_type): New type. Use uint_fast8_t not
34153 uint8_t, as C99 does not require uint8_t.
34154 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34155 (struct readdir_result): Use dirent_type. Do not define skip_entry
34156 unless it is needed; this saves a byte on platforms lacking d_ino.
34157 (readdir_result_type, readdir_result_skip_entry):
34158 New functions, replacing ...
34159 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34160 these functions, which were removed. This makes the callers
34161 easier to read. All callers changed.
34162 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34163 (size_add_wrapv, glob_use_alloca): New static functions.
34164 (glob, glob_in_dir): Check for size_t overflow in several places,
34165 and fix some size_t checks that were not quite right.
34166 Remove old code using SHELL since Bash no longer
34167 uses this.
34168 (glob, prefix_array): Separate MS code better.
34169 (glob_in_dir): Remove old Amiga and VMS code.
34170 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34171 separate files.
34172 (glob_in_dir): Do not rely on undefined behavior in accessing
34173 struct members beyond their bounds. Use a flexible array member
34174 instead
34175 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34176 0/1. Caller changed.
34177 (glob): Fix memory leaks.
34178 * posix/glob64 (globfree64): Move to separate file.
34179 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34180 (globfree64): Remove hidden alias.
34181 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34182 oldglob.
34183 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34184 separate file.
34185 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34186 define.
34187 Move compat code to separate file.
34188 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34189 separate file.
34190
34191 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34192
34193 * resolv/tst-resolv-qtypes.c (domain): Changed to
34194 "const char domain[] =".
34195
34196 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34197
34198 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34199 version to 3.1.6.
34200
34201 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34202 (TCP_MD5SIG_EXT): Likewise.
34203 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34204 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34205 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34206
34207 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34208
34209 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34210
34211 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34212
34213 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34214
34215 [BZ #22100]
34216 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34217
34218 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34219
34220 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34221 before assuming that the file is empty. Avoid testing buffer content
34222 when nread == 0.
34223
34224 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34225
34226 [BZ #18858]
34227 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34228 Remove define.
34229 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34230 Likewise.
34231 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34232 Likewise.
34233 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34234 Likewise.
34235 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34236 Likewise.
34237 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34238 Likewise.
34239 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34240 Likewise.
34241
34242 2017-09-06 Florian Weimer <fweimer@redhat.com>
34243
34244 * malloc/dynarray_emplace_enlarge.c
34245 (__libc_dynarray_emplace_enlarge): Add missing else.
34246
34247 2017-09-06 Florian Weimer <fweimer@redhat.com>
34248
34249 [BZ #22096]
34250 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34251 case of failure to obtain the global conf object.
34252
34253 2017-09-06 Florian Weimer <fweimer@redhat.com>
34254
34255 [BZ #22095]
34256 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34257 dynarray allocation failure.
34258
34259 2017-09-06 Florian Weimer <fweimer@redhat.com>
34260
34261 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34262 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34263 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34264 New functions.
34265 (response): Call them. Add 'p', '6' flag processing.
34266 (test_reverse): New function.
34267 (test_get2_any): Call it.
34268 (test_no_inet6): Add 'p' test.
34269 (test_inet6): Likewise.
34270
34271 2017-09-06 Florian Weimer <fweimer@redhat.com>
34272
34273 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34274 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34275 the QNAME.
34276 (test_gai): Adjust query names. Add additional tests.
34277 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34278 test_get2. Adjust query names. Add additional tests.
34279 (test_no_inet6): New function, extracted from threadfunc.
34280 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34281 Add additional tests.
34282
34283 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34284
34285 [BZ #22070]
34286 * localedata/unicode-gen/utf8_gen.py: Set the width for
34287 characters with Prepended_Concatenation_Mark property to 1
34288 * localedata/charmaps/UTF-8: Updated using the improved script.
34289
34290 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34291
34292 [BZ #21750]
34293 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34294 use the range notation for all ranges of neighbouring characters
34295 with the same width.
34296
34297 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34298
34299 * sysdeps/generic/math-type-macros-double.h: Include
34300 <math-svid-compat.h>.
34301 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34302 * sysdeps/generic/math-type-macros-float.h: Include
34303 <math-svid-compat.h>.
34304 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34305 * sysdeps/generic/math-type-macros-ldouble.h: Include
34306 <math-svid-compat.h>.
34307 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34308 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34309 condition.
34310 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34311 * math/w_acosf_compat.c: Likewise.
34312 * math/w_acosh_compat.c: Likewise.
34313 * math/w_acoshf_compat.c: Likewise.
34314 * math/w_acoshl_compat.c: Likewise.
34315 * math/w_acosl_compat.c: Likewise.
34316 * math/w_asin_compat.c: Likewise.
34317 * math/w_asinf_compat.c: Likewise.
34318 * math/w_asinl_compat.c: Likewise.
34319 * math/w_atan2_compat.c: Likewise.
34320 * math/w_atan2f_compat.c: Likewise.
34321 * math/w_atan2l_compat.c: Likewise.
34322 * math/w_atanh_compat.c: Likewise.
34323 * math/w_atanhf_compat.c: Likewise.
34324 * math/w_atanhl_compat.c: Likewise.
34325 * math/w_cosh_compat.c: Likewise.
34326 * math/w_coshf_compat.c: Likewise.
34327 * math/w_coshl_compat.c: Likewise.
34328 * math/w_exp10_compat.c: Likewise.
34329 * math/w_exp10f_compat.c: Likewise.
34330 * math/w_exp10l_compat.c: Likewise.
34331 * math/w_exp2_compat.c: Likewise.
34332 * math/w_exp2f_compat.c: Likewise.
34333 * math/w_exp2l_compat.c: Likewise.
34334 * math/w_fmod_compat.c: Likewise.
34335 * math/w_fmodf_compat.c: Likewise.
34336 * math/w_fmodl_compat.c: Likewise.
34337 * math/w_hypot_compat.c: Likewise.
34338 * math/w_hypotf_compat.c: Likewise.
34339 * math/w_hypotl_compat.c: Likewise.
34340 * math/w_j0_compat.c: Likewise.
34341 * math/w_j0f_compat.c: Likewise.
34342 * math/w_j0l_compat.c: Likewise.
34343 * math/w_j1_compat.c: Likewise.
34344 * math/w_j1f_compat.c: Likewise.
34345 * math/w_j1l_compat.c: Likewise.
34346 * math/w_jn_compat.c: Likewise.
34347 * math/w_jnf_compat.c: Likewise.
34348 * math/w_jnl_compat.c: Likewise.
34349 * math/w_lgamma_r_compat.c: Likewise.
34350 * math/w_lgammaf_r_compat.c: Likewise.
34351 * math/w_lgammal_r_compat.c: Likewise.
34352 * math/w_log10_compat.c: Likewise.
34353 * math/w_log10f_compat.c: Likewise.
34354 * math/w_log10l_compat.c: Likewise.
34355 * math/w_log2_compat.c: Likewise.
34356 * math/w_log2f_compat.c: Likewise.
34357 * math/w_log2l_compat.c: Likewise.
34358 * math/w_log_compat.c: Likewise.
34359 * math/w_logf_compat.c: Likewise.
34360 * math/w_logl_compat.c: Likewise.
34361 * math/w_pow_compat.c: Likewise.
34362 * math/w_powf_compat.c: Likewise.
34363 * math/w_powl_compat.c: Likewise.
34364 * math/w_remainder_compat.c: Likewise.
34365 * math/w_remainderf_compat.c: Likewise.
34366 * math/w_remainderl_compat.c: Likewise.
34367 * math/w_sinh_compat.c: Likewise.
34368 * math/w_sinhf_compat.c: Likewise.
34369 * math/w_sinhl_compat.c: Likewise.
34370 * math/w_sqrt_compat.c: Likewise.
34371 * math/w_sqrtf_compat.c: Likewise.
34372 * math/w_sqrtl_compat.c: Likewise.
34373 * math/w_tgamma_compat.c: Likewise.
34374 * math/w_tgammaf_compat.c: Likewise.
34375 * math/w_tgammal_compat.c: Likewise.
34376 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34377 [LIBM_SVID_COMPAT].
34378 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34379 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34380 [LIBM_SVID_COMPAT].
34381 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34382 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34383 [LIBM_SVID_COMPAT].
34384 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34385 * sysdeps/i386/fpu/w_sqrt.c: New file.
34386 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34387 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34388 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34389 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34390 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34391 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34392 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34393 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34394 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34395 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34396 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34397 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34398 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34399 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34400 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34401 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34402 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34403 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34404 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34405 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34406 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34407 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34408 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34409 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34410 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34411 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34412 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34413 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34414 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34415 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34416 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34417 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34418 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34419 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34420 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34421 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34422 * sysdeps/ia64/fpu/w_log.c: Likewise.
34423 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34424 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34425 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34426 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34427 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34428 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34429 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34430 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34431 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34432 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34433 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34434 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34435 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34436 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34437 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34438 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34439 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34440 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34441 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34442 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34443 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34444 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34445 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34446 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34447 [LIBM_SVID_COMPAT].
34448 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34449 * sysdeps/ieee754/k_standard.c: Likewise.
34450 * sysdeps/ieee754/k_standardf.c: Likewise.
34451 * sysdeps/ieee754/k_standardl.c: Likewise.
34452 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34453 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34454 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34455 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34456 long_double_symbol call on [LIBM_SVID_COMPAT].
34457 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34458 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34459 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34460 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34461 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34462 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34463 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34464 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34465 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34466 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34467 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34468 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34469 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34470 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34471 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34472 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34473 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34474 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34475 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34476 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34477 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34478 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34479
34480 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34481
34482 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34483 * malloc/tst-mallocstate.c: Convert from test-skeleton
34484 to test-driver. Ifdef code using TEST_COMPAT macro.
34485 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34486 * math/test-matherr.c: Likewise.
34487
34488 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34489
34490 [BZ #22086]
34491 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34492 comparing word with byte-swapped constant.
34493
34494 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34495
34496 [BZ #20498]
34497 * locale/iso-639.def: add Miskito.
34498 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34499 * localedata/locales/miq_NI: New file.
34500
34501 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34502
34503 [BZ #18822]
34504 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34505 (__mkdir): Likewise.
34506 * io/chmod.c (__chmod): Add libc_hidden_def.
34507 * io/mkdir.c (__mkdir): Likewise.
34508 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34509 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34510 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34511 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34512
34513 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34514
34515 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34516 version to 4.13.
34517
34518 [BZ #22082]
34519 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34520 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34521
34522 2017-09-04 Florian Weimer <fweimer@redhat.com>
34523
34524 * math/math.h: Issue warning if log is defined.
34525
34526 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34527
34528 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34529 kernel version to 4.13.
34530
34531 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34532
34533 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34534 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34535 parameter.
34536 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34537 just <bits/types.h>.
34538 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34539 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34540 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34541 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34542 * misc/preadv2.c: Include <errno.h>.
34543 * misc/preadv64v2.c: Include <errno.h>.
34544 * misc/pwritev2.c: Include <errno.h>.
34545 * misc/pwritev64v2.c: Include <errno.h>.
34546 * sysdeps/posix/preadv2.c: Include <errno.h>.
34547 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34548 Fix <unistd.h> inclusion.
34549 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34550 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34551 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34552 __strtoul_internal): New functions.
34553 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34554 * sysdeps/posix/system.c: Include <sigsetops.h>.
34555 * sysdeps/mach/hurd/i386/Makefile
34556 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34557 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34558 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34559 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34560 __feraiseexcept_renamed to feraiseexcept instead of
34561 __GI_feraiseexcept.
34562 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34563 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34564 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34565 RWF_NOWAIT): Define to 0 if undefined already.
34566 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34567 boils down to 0.
34568 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34569 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34570
34571 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34572
34573 * manual/math.texi (pow10): Do not document.
34574 (pow10f): Likewise.
34575 (pow10l): Likewise.
34576 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34577 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34578 * math/libm-test-exp10.inc (pow10_test): Remove.
34579 (do_test): Do not call pow10.
34580 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34581 [NO_LONG_DOUBLE] (pow10l): Likewise.
34582 * math/w_exp10f_compat.c (pow10f): Likewise.
34583 * math/w_exp10l_compat.c (pow10l): Likewise.
34584 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34585 (pow10): Make into compat symbol.
34586 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34587 (pow10f): Make into compat symbol.
34588 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34589 (pow10l): Make into compat symbol.
34590 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34591 pow10.
34592 (CFLAGS-nldbl-pow10.c): Remove variable..
34593 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34594 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34595 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34596 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34597 Undefine and redefine.
34598 (pow10l): Make into compat symbol.
34599 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34600 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34601 * sysdeps/arm/libm-test-ulps: Likewise.
34602 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34603 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34604 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34605 * sysdeps/microblaze/libm-test-ulps: Likewise.
34606 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34607 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34608 * sysdeps/nios2/libm-test-ulps: Likewise.
34609 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34610 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34611 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34612 * sysdeps/sh/libm-test-ulps: Likewise.
34613 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34614 * sysdeps/tile/libm-test-ulps: Likewise.
34615 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34616
34617 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34618
34619 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34620
34621 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34622
34623 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34624 "../ChangeLog.old/ChangeLog.8".
34625 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34626 "../ChangeLog.old/ChangeLog.14".
34627
34628 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34629
34630 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34631 Threads Library.
34632
34633 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34634
34635 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34636
34637 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34638
34639 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34640 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34641
34642 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34643
34644 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34645 32 atexit handlers.
34646
34647 2017-09-01 Zack Weinberg <zackw@panix.com>
34648
34649 * math/math.h (HUGE_VAL): Improve commentary.
34650
34651 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34652 Andreas Schwab <schwab@suse.de>
34653
34654 [BZ #21530]
34655 * include/stdio.h (__gen_tempfd): New function.
34656 * stdio-common/Makefile (routines): Add gentempfd.
34657 * stdio-common/gentempfd.c: New file.
34658 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34659 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34660 unnamed file first.
34661
34662 2017-09-01 Florian Weimer <fweimer@redhat.com>
34663
34664 [BZ #21915]
34665 [BZ #21922]
34666 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34667 result to determine success or failure, not the errno value.
34668 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34669 (tst-nss-files-hosts-erange): Link with -ldl.
34670 * nss/tst-nss-files-hosts-erange.c: New file.
34671 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34672 (do_test): Add NO_DATA tests.
34673 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34674 (do_test): Call it.
34675
34676 2017-09-01 Florian Weimer <fweimer@redhat.com>
34677
34678 [BZ #21922]
34679 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34680 coming from gethostbyname2_r.
34681
34682 2017-09-01 Florian Weimer <fweimer@redhat.com>
34683
34684 * support/namespace.h (struct support_chroot_configuration): Add
34685 hosts, host_conf.
34686 (struct support_chroot): Add path_hosts, path_host_conf.
34687 * support/support_chroot.c (write_file): New function.
34688 (support_chroot_create): Call it to process /etc/resolv.conf,
34689 /etc/hosts, /etc/host.conf.
34690 (support_chroot_free): Update.
34691
34692 2017-09-01 Florian Weimer <fweimer@redhat.com>
34693
34694 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34695 status indicates it is set.
34696
34697 2017-09-01 Florian Weimer <fweimer@redhat.com>
34698
34699 [BZ #20532]
34700 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34701 function lookup failures more reliable.
34702
34703 2017-09-01 Florian Weimer <fweimer@redhat.com>
34704
34705 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34706 (getcanonname): Likewise.
34707 (gaih_inet): Likewise.
34708
34709 2017-09-01 Florian Weimer <fweimer@redhat.com>
34710
34711 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34712 (getcanonname): Likewise.
34713 (gaih_inet): Likewise.
34714
34715 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34716 Richard Henderson <rth@twiddle.net>
34717
34718 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34719 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34720 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34721 (IREG_SIZE, OREG_SIZE): New macros.
34722 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34723 (IREG_SIZE, OREG_SIZE): New macros.
34724 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34725 (IREG_SIZE): New macro.
34726 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34727 (IREG_SIZE): New macro.
34728 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34729 New includes.
34730 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34731 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34732 (__CONCATX): Handle exceptions correctly on large values that may
34733 set FE_INVALID.
34734 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34735 Initialize if not already set.
34736 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34737
34738 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34739
34740 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34741 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34742 Likewise.
34743 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34744 Likewise.
34745 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34746 Likewise.
34747 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34748 Likewise.
34749 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34750 Likewise.
34751 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34752 Likewise.
34753 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34754 Likewise.
34755 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34756 (NO_CANCELLATION): Likewise.
34757 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34758 Likewise.
34759 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34760 Likewise.
34761 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34762 Likewise.
34763 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34764 (NO_CANCELLATION): Likewise.
34765 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34766 (NO_CANCELLATION): Likewise.
34767 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34768 Likewise
34769 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34770 Likewise.
34771 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34772 Likewise.
34773 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34774 Likewise.
34775 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34776 hidden prototype.
34777 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34778 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34779
34780 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34781
34782 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34783 in resolver call.
34784
34785 2017-08-31 Florian Weimer <fweimer@redhat.com>
34786
34787 * include/libc-symbols.h (internal_function): Remove.
34788
34789 2017-08-31 Florian Weimer <fweimer@redhat.com>
34790
34791 * stdlib/fmtmsg.c (internal_addseverity): Remove
34792 internal_function.
34793
34794 2017-08-31 Florian Weimer <fweimer@redhat.com>
34795
34796 * stdio-common/printf_fp.c (group_number): Remove
34797 internal_function.
34798 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34799
34800 2017-08-31 Florian Weimer <fweimer@redhat.com>
34801
34802 * posix/fnmatch.c (internal_function): Remove definition.
34803 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34804 * posix/regcomp.c (peek_token, init_word_char)
34805 (duplicate_node_closure, fetch_token, peek_token)
34806 (peek_token_bracket, build_range_exp, build_collating_symbol):
34807 Likewise.
34808 * posix/regex_internal.c (re_string_construct_common)
34809 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34810 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34811 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34812 (re_string_translate_buffer, re_string_reconstruct)
34813 (re_string_peek_byte_case, re_string_fetch_byte_case)
34814 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34815 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34816 (re_node_set_add_intersect, re_node_set_init_union)
34817 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34818 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34819 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34820 (re_acquire_state_context): Likewise.
34821 * posix/regex_internal.h (internal_function): Remove definition.
34822 (re_string_realloc_buffers, build_wcs_buffer)
34823 (build_wcs_upper_buffer, build_upper_buffer)
34824 (re_string_translate_buffer, re_string_context_at)
34825 (re_string_char_size_at, re_string_wchar_at)
34826 (re_string_elem_size_at): Likewise.
34827 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34828 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34829 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34830 (re_search_internal, re_search_2_stub, re_search_stub)
34831 (re_copy_regs, prune_impossible_nodes, check_matching)
34832 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34833 (free_fail_stack_return, sift_states_iter_mb)
34834 (sift_states_backward, build_sifted_states)
34835 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34836 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34837 (check_subexp_limits, sift_states_bkref, merge_state_array)
34838 (find_recover_state, transit_state, merge_state_with_log)
34839 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34840 (transit_state_mb, transit_state_bkref, get_subexp)
34841 (get_subexp_sub, find_subexp_node, check_arrival)
34842 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34843 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34844 (check_node_accept_bytes, find_collation_sequence_value)
34845 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34846 (acquire_init_state_context, check_halt_node_context)
34847 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34848 (sub_epsilon_src_nodes): Likewise.
34849 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34850 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34851 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34852 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34853 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34854 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34855 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34856 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34857 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34858 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34859 (PREADV): Likewise.
34860 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34861 (PREADV): Likewise.
34862 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34863 (PWRITEV): Likewise.
34864 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34865 (PWRITEV): Likewise.
34866 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34867 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34868
34869 2017-08-31 Florian Weimer <fweimer@redhat.com>
34870
34871 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34872 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34873 Remove internal_function.
34874 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34875 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34876 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34877 (__deallocate_stack, __libc_pthread_init)
34878 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34879 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34880 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34881 Likewise.
34882 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34883 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34884 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34885 Likewise.
34886 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34887 (__pthread_mutex_unlock_usercnt): Likewise.
34888
34889 2017-08-31 Florian Weimer <fweimer@redhat.com>
34890
34891 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34892 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34893 (fts_safe_changedir): Remove internal_function.
34894 * io/ftw.c (internal_function): Remove definition.
34895 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34896
34897 2017-08-31 Florian Weimer <fweimer@redhat.com>
34898
34899 * inet/deadline.c (__deadline_current_time)
34900 (__deadline_from_timeval, __deadline_to_ms): Remove
34901 internal_function.
34902 * inet/getnameinfo.c (nrl_domainname): Likewise.
34903 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34904 * inet/inet6_option.c (add_pad): Likewise.
34905 * inet/net-internal.h (__deadline_current_time)
34906 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34907 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34908 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34909 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34910
34911 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34912
34913 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34914 include <bits/nan.h>.
34915 * math/Makefile (headers): Remove bits/nan.h.
34916 * bits/nan.h: Remove.
34917 * sysdeps/ieee754/bits/nan.h: Likewise.
34918 * sysdeps/mips/bits/nan.h: Likewise.
34919
34920 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34921 not include <bits/inf.h>.
34922 * math/Makefile (headers): Remove bits/inf.h.
34923 * bits/inf.h: Remove.
34924 * sysdeps/ieee754/bits/inf.h: Likewise.
34925
34926 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34927 bits/huge_vall.h or bits/huge_val_flt128.h.
34928 (HUGE_VAL): Define directly here.
34929 [__USE_ISOC99] (HUGE_VALF): Likewise.
34930 [__USE_ISOC99] (HUGE_VALL): Likewise.
34931 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34932 (HUGE_VAL_F128): Likewise.
34933 * math/Makefile (headers): Remove bits/huge_val.h,
34934 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34935 * bits/huge_val.h: Remove.
34936 * bits/huge_val_flt128.h: Likewise.
34937 * bits/huge_valf.h: Likewise.
34938 * bits/huge_vall.h: Likewise.
34939 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34940 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34941 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34942 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34943 * sysdeps/sh/bits/huge_val.h: Likewise.
34944 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34945 * sysdeps/x86/bits/huge_vall.h: Likewise.
34946
34947 2017-08-31 Florian Weimer <fweimer@redhat.com>
34948
34949 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34950 internal_function.
34951 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34952 Likewise.
34953 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34954 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34955 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34956 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34957 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34958 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34959 * elf/dl-libc.c (dlerror_run): Likewise.
34960 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34961 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34962 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34963 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34964 Likewise.
34965 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34966 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34967 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34968 * elf/dl-profile.c (_dl_start_profile): Likewise.
34969 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34970 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34971 Likewise.
34972 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34973 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34974 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34975 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34976 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34977 (_dl_allocate_tls_storage): Likewise.
34978 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34979 (_dl_check_all_versions): Likewise.
34980 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34981 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34982 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34983 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34984 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34985 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34986 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34987 internal_function from __dl_start.
34988 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34989 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34990 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34991 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34992 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34993 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34994 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34995 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34996 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34997 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34998 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34999 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35000 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35001 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35002 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35003 Likewise.
35004 (struct rtld_global_ro): Remove internal_function from the
35005 _dl_lookup_symbol_x member.
35006 (_dl_symbol_value): Remove. No longer defined anywhere.
35007 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35008 internal_function.
35009 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35010 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35011 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35012 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35013 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35014 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35015 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35016 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35017 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35018 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35019 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35020 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35021
35022 2017-08-31 Florian Weimer <fweimer@redhat.com>
35023
35024 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35025 Remove internal_function.
35026 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35027 Likewise.
35028 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35029 Likewise.
35030
35031 2017-08-31 Florian Weimer <fweimer@redhat.com>
35032
35033 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35034 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35035 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35036
35037 2017-08-31 Florian Weimer <fweimer@redhat.com>
35038
35039 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35040 (__gai_enqueue_request): Remove internal_function.
35041 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35042 (__gai_remove_request, __gai_notify, __gai_notify_only)
35043 (__gai_sigqueue): Likewise.
35044 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35045 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35046 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35047 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35048 Likewise.
35049
35050 2017-08-31 Florian Weimer <fweimer@redhat.com>
35051
35052 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35053 * include/dirent.h (__opendirat, __getdents, __getdents64)
35054 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35055 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35056 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35057 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35058 Likewise.
35059 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35060
35061 2017-08-31 Florian Weimer <fweimer@redhat.com>
35062
35063 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35064 internal_function.
35065 (GETCWD_RETURN_TYPE): Likewise.
35066
35067 2017-08-31 Florian Weimer <fweimer@redhat.com>
35068
35069 * include/time.h (__tz_compute, __strptime_internal): Remove
35070 internal_function.
35071 * time/strptime_l.c (__strptime_internal): Likewise.
35072 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35073
35074 2017-08-31 Florian Weimer <fweimer@redhat.com>
35075
35076 * iconv/gconv.c (__gconv): Remove internal_function.
35077 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35078 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35079 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35080 (__gconv_release_cache): Likewise.
35081 * iconv/gconv_close.c (__gconv_close): Likewise.
35082 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35083 (read_conf_file, __gconv_get_path): Likewise.
35084 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35085 (__gconv_release_step, gen_steps, increment_counter)
35086 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35087 (__gconv_close_transform, free_modules_db): Likewise.
35088 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35089 Likewise.
35090 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35091 (__gconv_find_transform, __gconv_lookup_cache)
35092 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35093 (__gconv_close_transform, __gconv_release_cache)
35094 (__gconv_loaded_object, __gconv_release_shlib)
35095 (__gconv_compare_alias): Likewise.
35096 * iconv/gconv_open.c (__gconv_open): Likewise.
35097 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35098 * iconv/iconvconfig.c (add_module): Likewise.
35099 * intl/dcigettext.c (plural_lookup, guess_category_value)
35100 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35101 * intl/eval-plural.h (plural_eval): Likewise.
35102 * intl/finddomain.c (_nl_find_domain): Likewise.
35103 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35104 (_nl_load_domain, _nl_find_msg): Likewise.
35105 (internal_function): Remove definition.
35106 * intl/loadinfo.h (internal_function): Likewise.
35107 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35108 internal_function.
35109 * intl/localealias.c (internal_function): Remove definition.
35110 (read_alias_file): Remove internal_function.
35111 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35112 * intl/plural-exp.h (internal_function): Remove definition.
35113 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35114 internal_function.
35115 * intl/plural.c: Regenerate.
35116 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35117 * locale/coll-lookup.c (__collidx_table_lookup)
35118 (__collseq_table_lookup): Likewise.
35119 * locale/coll-lookup.h (__collidx_table_lookup)
35120 (__collseq_table_lookup): Likewise.
35121 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35122 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35123 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35124 (_nl_unload_locale): Likewise.
35125 * locale/localeinfo.h (struct __locale_data): Remove
35126 internal_function from cleanup member.
35127 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35128 (_nl_remove_locale, _nl_load_locale_from_archive)
35129 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35130 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35131 (_nl_cleanup_time): Remove internal_function.
35132 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35133 (_nl_parse_alt_digit): Likewise.
35134 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35135 (_nl_select_era_entry): Likewise.
35136 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35137 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35138 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35139 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35140 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35141
35142 2017-08-31 Florian Weimer <fweimer@redhat.com>
35143
35144 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35145 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35146 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35147 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35148 Likewise.
35149 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35150 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35151 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35152 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35153 Likewise.
35154 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35155
35156 2017-08-31 Florian Weimer <fweimer@redhat.com>
35157
35158 * misc/getttyent.c (skip, value): Remove internal_function.
35159 * misc/syslog.c (openlog_internal): Likewise.
35160 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35161
35162 2017-08-31 Florian Weimer <fweimer@redhat.com>
35163
35164 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35165 (__nss_rewrite_field): Remove internal_function.
35166 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35167 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35168 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35169 * nss/nsswitch.c (nss_parse_file, nss_getline)
35170 (nss_parse_service_list, nss_new_service): Likewise.
35171 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35172 * nss/valid_field.c (__nss_valid_field): Likewise.
35173 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35174
35175 2017-08-31 Florian Weimer <fweimer@redhat.com>
35176
35177 * malloc/arena.c (__malloc_fork_lock_parent)
35178 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35179 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35180 internal_function from defintions.
35181 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35182 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35183 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35184 internal_function from declarations.
35185 * malloc/malloc.c (internal_function): Do not define.
35186 (mem2mem_check): Remove internal_function from declaration.
35187 (munmap_chunk, mremap_chunk): Remove internal_function.
35188 * malloc/mtrace.c (tr_where): Likewise.
35189
35190 2017-08-31 Florian Weimer <fweimer@redhat.com>
35191
35192 * include/rpc/pmap_clnt.h (__get_socket): Remove
35193 internal_function.
35194 * sunrpc/auth_des.c (synchronize): Likewise.
35195 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35196 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35197 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35198 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35199 (key_call): Likewise.
35200 * sunrpc/pm_getport.c (__get_socket): Likewise.
35201 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35202 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35203 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35204 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35205 (invalidate): Likewise.
35206 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35207 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35208 (set_input_fragment, get_input_bytes): Likewise.
35209
35210 2017-08-31 Florian Weimer <fweimer@redhat.com>
35211
35212 * malloc/malloc.c (_int_free): Remove locked variable and related
35213 asserts.
35214
35215 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35216
35217 [BZ #22051]
35218 * Makerules (build-module-helper-objlist): Filter out
35219 $(elf-objpfx)sofini.os.
35220 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35221 needed.
35222
35223 2017-08-31 Florian Weimer <fweimer@redhat.com>
35224
35225 * libio/fcloseall.c: Assume weak_alias is defined.
35226 * libio/feof.c: Likewise.
35227 * libio/fileno.c: Likewise.
35228 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35229 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35230 definitions.
35231 (_IO_file_open): Call __open directly.
35232 (_IO_new_file_sync): Assume ESPIPE is defined.
35233 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35234 (_IO_new_file_write): Call __write directly.
35235 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35236 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35237 * libio/genops.c: Assume _LIBC is defined.
35238 (save_for_backup): Remove internal_function.
35239 * libio/getc.c: Assume weak_alias is defined.
35240 * libio/getwc.c: Likewise.
35241 * libio/iofclose.c: Assume _LIBC is defined.
35242 * libio/iofdopen.c: Likewise.
35243 (_IO_fcntl): Remove macro definition.
35244 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35245 Call __fcntl directly.
35246 * libio/iofflush.c: Assume weak_alias is defined.
35247 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35248 defined.
35249 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35250 * libio/iofgets.c: Likewise.
35251 * libio/iofopen.c: Assume _LIBC is defined.
35252 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35253 * libio/iofputs.c: Assume weak_alias is defined.
35254 * libio/iofread.c: Likewise.
35255 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35256 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35257 * libio/ioftell.c: Assume weak_alias is defined.
35258 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35259 * libio/iofwide.c: Assume _LIBC is defined.
35260 (_IO_fwide): Drop SHARED conditional because it is implied by
35261 SHLIB_COMPAT.
35262 * libio/iofwrite.c: Assume weak_alias is defined.
35263 * libio/iogetdelim.c: Likewise.
35264 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35265 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35266 (_IO_getwline): Call __wmemcpy directly.
35267 * libio/iopopen.c: Assume _LIBC is defined.
35268 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35269 (_IO_close): Remove macro definitions.
35270 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35271 _exit directly.
35272 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35273 directly.
35274 * libio/ioputs.c: Assume weak_alias is defined.
35275 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35276 * libio/iosetbuffer.c: Assume weak_alias is defined.
35277 * libio/iosetvbuf.c: Likewise.
35278 * libio/ioungetc.c: Likewise.
35279 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35280 libc_hidden_def, libc_hidden_weak, NULL are defined.
35281 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35282 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35283 defined.
35284 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35285 definitions.
35286 (_IO_old_file_init_internal): Drop SHARED conditional because it
35287 is implied by SHLIB_COMPAT.
35288 (_IO_old_file_fopen): Call __open directly.
35289 (_IO_old_file_sync): Assume ESPIPE is defined.
35290 (_IO_old_file_write): Call __write directly.
35291 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35292 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35293 Call __fcntl directly.
35294 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35295 (_IO_old_fgetpos): Assume EIO is defined.
35296 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35297 (_IO_old_fgetpos64): Assume EIO is defined.
35298 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35299 (_IO_old_fsetpos): Assume EIO is defined.
35300 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35301 (_IO_old_fsetpos64): Assume EIO is defined.
35302 * libio/oldiopopen.c: Assume _LIBC is defined.
35303 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35304 (_IO_close): Remove macro definitions.
35305 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35306 directly.
35307 (_IO_old_proc_close): Call __close, __waitpid directly.
35308 * libio/put.c: Assume weak_alias is defined.
35309 * libio/stdfiles.c: Assume _LIBC is defined.
35310 * libio/stdio.c: Likewise.
35311 * libio/wfileops.c: Likewise.
35312 (_IO_wfile_sync): Assume ESPIPE is defined.
35313 * libio/wgenops.c: Assume _LIBC is defined.
35314 (save_for_wbackup): Remove internal_function.
35315
35316 2017-08-31 Florian Weimer <fweimer@redhat.com>
35317
35318 * malloc/malloc.c (top_check): Change return type to void. Remove
35319 internal_function.
35320 * malloc/hooks.c (top_check): Likewise.
35321 (malloc_check, realloc_check, memalign_check): Adjust.
35322
35323 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35324
35325 [BZ #21457]
35326 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35327 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35328 sigcontext and namespace requirements.
35329 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35330 * sysdeps/m68k/sys/ucontext.h: Likewise.
35331 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35332 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35333 <bits/sigcontext.h>.
35334 (__ctx): Define earlier.
35335 (mcontext_t): Define structure contents rather than using struct
35336 sigcontext.
35337 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35338 __glibc_reserved1 instead of __reserved.
35339 * sysdeps/unix/sysv/linux/alpha/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/alpha/ucontext-offsets.sym: Use
35345 mcontext_t instead of struct sigcontext.
35346 * sysdeps/unix/sysv/linux/arm/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/hppa/sys/ucontext.h: Do not include
35352 <bits/sigcontext.h>.
35353 (__ctx): Define earlier.
35354 (mcontext_t): Define structure contents rather than using struct
35355 sigcontext.
35356 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35357 mcontext_t instead of struct sigcontext.
35358 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35359 mcontext_t instead of struct sigcontext.
35360 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35361 <bits/sigcontext.h>.
35362 (__ctx): New macro.
35363 (struct __ia64_fpreg_mcontext): New type.
35364 (mcontext_t): Define structure contents rather than using struct
35365 sigcontext.
35366 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35367 (uc_sigmask): Define using __ctx.
35368 (uc_stack): Likewise.
35369 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35370 <bits/sigcontext.h>.
35371 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35372 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35373 <bits/sigcontext.h>.
35374 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35375 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35376 <bits/sigcontext.h>.
35377 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35378 <bits/sigcontext.h>.
35379 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35380 <bits/sigcontext.h>.
35381 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35382 <bits/sigcontext.h>.
35383 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35384 <bits/sigcontext.h>.
35385 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35386 <bits/sigcontext.h>.
35387 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35388 <bits/sigcontext.h>.
35389 (__ctx): Define earlier.
35390 (mcontext_t): Define structure contents rather than using struct
35391 sigcontext.
35392 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35393 <bits/sigcontext.h>. Include <bits/types.h>.
35394 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35395 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35396 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35397 (test-xfail-UNIX98/signal.h/conform): Likewise.
35398 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35399 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35400 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35401 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35402 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35403 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35404 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35405 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35406 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35407
35408 2017-08-30 Florian Weimer <fweimer@redhat.com>
35409
35410 * malloc/dynarray_emplace_enlarge.c
35411 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35412 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35413 * malloc/tst-dynarray.c (test_long_overflow): New function.
35414 (do_test): Call it.
35415
35416 2017-08-30 Florian Weimer <fweimer@redhat.com>
35417
35418 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35419 (set_arena_corrupt): Remove definitions.
35420 (mtrim): Do not check for corrupt arena.
35421 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35422 Likewise.
35423
35424 2017-08-30 Florian Weimer <fweimer@redhat.com>
35425
35426 [BZ #21754]
35427 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35428 check_action.
35429 (ptmalloc_init): Do not set or use check_action.
35430 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35431 call to malloc_printerr. Remove return statement.
35432 (free_check): Likewise. Remove arena unlock.
35433 (top_check): Update comment. Adjust call to malloc_printerr.
35434 Remove heap repair code.
35435 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35436 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35437 (sysmalloc): Adjust call to malloc_printerr.
35438 (munmap_chunk, __libc_realloc): Likewise. Remove return
35439 statement.
35440 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35441 Remove errout label and corresponding gotos.
35442 (_int_free): Likewise. Remove arena unlock.
35443 (do_set_mallopt_check): Do not set check_action.
35444 (malloc_printerr): Adjust parameter list. Do not mark arena as
35445 corrupt.
35446 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35447 comment.
35448 * manual/probes.texi (Memory Allocation Probes): Remove
35449 memory_mallopt_check_action.
35450
35451 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35452
35453 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35454 Use pointer to uint64_t instead of long int for sp.
35455
35456 2017-08-30 Florian Weimer <fweimer@redhat.com>
35457
35458 [BZ #21754]
35459 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35460 without printing a backtrace. Do not leak any information in the
35461 error message.
35462 * manual/memory.texi (Heap Consistency Checking): Update.
35463 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35464
35465 2017-08-30 Florian Weimer <fweimer@redhat.com>
35466
35467 Do not scale NPTL tests with available number of CPUs.
35468 * nptl/tst-cond16.c (count): Set to constant value of 8.
35469 * nptl/tst-cond18.c (count): Likewise.
35470
35471 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35472
35473 [BZ #22035]
35474 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35475 Define to take a second argument that is a macro that
35476 concatentates a suffix, not the suffix itself.
35477 (__CONCAT_d): New macro.
35478 (__CONCAT_f): Likewise.
35479 (__CONCAT_l): Likewise.
35480
35481 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35482
35483 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35484 by child.
35485
35486 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35487 Aurelien Jarno <aurelien@aurel32.net>
35488 Maciej W. Rozycki <macro@imgtec.com>
35489
35490 [BZ #21956]
35491 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35492 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35493 `mips16-syscall6' and `mips16-syscall7'.
35494 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35495 (CFLAGS-mips16-syscall7.c): Remove.
35496 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35497 Remove `__mips16_syscall5', `__mips16_syscall6' and
35498 `__mips16_syscall7'.
35499 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35500 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35501 `__mips_syscall_return'.
35502 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35503 (__mips16_syscall1): Likewise.
35504 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35505 (__mips16_syscall2): Likewise.
35506 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35507 (__mips16_syscall3): Likewise.
35508 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35509 (__mips16_syscall4): Likewise.
35510 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35511 Remove.
35512 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35513 Remove.
35514 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35515 Remove.
35516 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35517 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35518 `__mips16_syscall5'. Remove prototype.
35519 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35520 `__mips16_syscall6'. Remove prototype.
35521 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35522 `__mips16_syscall7'. Remove prototype.
35523 (__nomips16, __mips16_syscall_return): Move to...
35524 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35525 (__nomips16, __mips_syscall_return): ... here.
35526 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35527 `__mips16_syscall_return' to `__mips_syscall_return'.
35528 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35529 `internal_syscall##nr'.
35530 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35531 `internal_syscall##nr'.
35532 (FORCE_FRAME_POINTER): Remove.
35533 (__mips_syscall5): New prototype.
35534 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35535 (__mips_syscall6): New prototype.
35536 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35537 (__mips_syscall7): New prototype.
35538 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35539 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35540 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35541 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35542 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35543 (sysdep_routines): Add libc-do-syscall.
35544 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35545 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35546
35547 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35548
35549 [BZ #21672]
35550 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35551 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35552 (advise_stack_range): New function.
35553 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35554 stack non required to advise_stack_range at allocatestack.c
35555
35556 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35557
35558 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35559
35560 2017-08-29 Florian Weimer <fweimer@redhat.com>
35561
35562 [BZ #22026]
35563 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35564 __end_fct. Mangle __end_fct after setting it to NULL.
35565 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35566 (modules-names, modules-names-tests): Add
35567 tst-gconv-init-failure-mod.
35568 (gconv-modules): New target.
35569 (tst-gconv-init-failure-mod.so): Link against libsupport.
35570 (tst-gconv-init-failure): Depend on gconv-modules,
35571 tst-gconv-init-failure-mod.so.
35572 * iconv/tst-gconv-init-failure-mod.c: New file.
35573 * iconv/tst-gconv-init-failure.c: Likewise.
35574 * iconv/test-gconv-modules: Likewise.
35575
35576 2017-08-29 Florian Weimer <fweimer@redhat.com>
35577
35578 [BZ #22025]
35579 * iconv/gconv_db.c (free_derivation): Remove redundant
35580 parentheses.
35581 (gen_steps): Unconditionally mangle __btowc_fct after
35582 initialization.
35583 (increment_counter): Likewise. Do not call init_fct for internal
35584 modules.
35585
35586 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35587
35588 [BZ #22028]
35589 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35590 (_MSUF_): Remove macro.
35591 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35592 Likewise.
35593 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35594 (__REDIRFROM_X): New macro.
35595 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35596 Likewise.
35597 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35598 (__REDIRTO_X): Likewise.
35599 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35600 arguments.
35601 (__MATH_REDIRCALL_2): Likewise.
35602 (__MATH_REDIRCALL_INTERNAL): Likewise.
35603 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35604 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35605 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35606 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35607 * math/test-finite-macros.c: New file.
35608 * math/Makefile (tests): Add test-finite-macros.
35609 (CFLAGS-test-finite-macros.c): New variable.
35610
35611 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35612 Jeff Law <law@redhat.com>
35613
35614 [BZ #22025]
35615 Mangle NULL pointers in iconv/gconv.
35616 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35617 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35618 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35619 is non-NULL before demangling the end_fct. Check for NULL
35620 end_fct after demangling.
35621 (__gconv_release_step): Demangle the end_fct before checking
35622 it for NULL. Remove assert on __shlibc_handle != NULL.
35623 (gen_steps): Don't check btowc_fct for NULL before mangling.
35624 Demangle init_fct before checking for NULL.
35625 (increment_counter): Likewise.
35626 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35627 end_fct for NULL before mangling.
35628 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35629 for NULL.
35630
35631 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35632
35633 [BZ #21971]
35634 * locale/iso-639.def: add Morisyen.
35635
35636 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35637
35638 [BZ #21930]
35639 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35640 (iszero): New C++ implementation that does not use
35641 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35642 signaling nans are enabled, since __builtin_types_compatible_p
35643 is a C-only feature.
35644 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35645 defined, include ieee754_float128.h for access to the union and
35646 member ieee854_float128.ieee.
35647 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35648 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35649 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35650 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35651 options of test-math-zero on powerpc64le.
35652
35653 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35654
35655 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35656 Change double to float.
35657
35658 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35659
35660 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35661 unconditional.
35662 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35663 conditional code; define contents only for [LIBM_SVID_COMPAT].
35664
35665 2017-08-28 Florian Weimer <fweimer@redhat.com>
35666
35667 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35668 (abi-lp64_be-options): Remove.
35669 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35670 (abi-hard-options): Likewise.
35671 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35672 (abi-o32_hard-options, abi-o32_soft_2008-options)
35673 (abi-o32_hard_2008-options, abi-n32_soft-options)
35674 (abi-n32_hard-options, abi-n32_soft_2008-options)
35675 (abi-n32_hard_2008-options, abi-n64_soft-options)
35676 (abi-n64_hard-options, abi-n64_soft_2008-options)
35677 (abi-n64_hard_2008-options): Likewise.
35678 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35679 (abi-64-v1-options, abi-64-v2-options): Likewise.
35680 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35681 (abi-64-options): Likewise.
35682 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35683 (abi-64-options): Likewise.
35684 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35685 (abi-64-options): Likewise.
35686 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35687 (abi-64-options, abi-x32-options): Likewise.
35688
35689 2017-08-28 Florian Weimer <fweimer@redhat.com>
35690
35691 Store supported list of SYS_* system calls in the source tree.
35692 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35693 (bits/syscall.h): Generate from list file.
35694 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35695 [$(subdir) = misc] (tests): Add tst-syscall-list.
35696 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35697 [$(subdir) = misc] (tst-syscall-list-macros.list)
35698 [$(subdir) = misc] (tst-syscall-list-nr.list)
35699 (tst-syscall-list-sys.list): Helper targets for new
35700 tst-syscall-list test.
35701 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35702 tst-syscall-list.sh.
35703 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35704 target. Do not include bits/syscall.d.
35705 [$(subdir) = misc] (generated): Do not update.
35706 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35707 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35708 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35709 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35710
35711 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35712
35713 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35714 (tst-cxa_atexit, tst-on_exit): Likewise.
35715 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35716 tst-cxa_atexit, and tst-on_exit.
35717 * stdlib/tst-atexit-common.c: New file.
35718 * stdlib/tst-atexit.c: New file.
35719 * stdlib/tst-at_quick_exit.c: New file.
35720 * stdlib/tst-cxa_atexit.c: New file.
35721 * stdlib/tst-on_exit.c: New file.
35722
35723 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35724
35725 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35726 * mach/stack_chk_fail_local.c: New file.
35727 * hurd/stack_chk_fail_local.c: New file.
35728 * mach/Machrules ($(interface-library)-routines): Add
35729 stack_chk_fail_local.
35730 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35731 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35732 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35733 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35734 * hurd/Makefile (CFLAGS-hurdstartup.o,
35735 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35736
35737 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35738
35739 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35740 (index_cpu_*, index_arch_*): Removed.
35741
35742 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35743
35744 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35745 Use uint64_t instead of unsigned long.
35746
35747 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35748
35749 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35750 [__HAVE_DISTINCT_FLOAT128].
35751
35752 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35753 of <bits/math-finite.h>.
35754 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35755 inclusion of <bits/math-finite.h>.
35756 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35757 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35758 __NO_LONG_DOUBLE_MATH].
35759 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35760 (__MATH_REDIRCALL_2): Likewise.
35761 (__MATH_REDIRCALL_INTERNAL): Likewise.
35762 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35763 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35764 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35765
35766 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35767 Remove file.
35768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35769 Likewise.
35770 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35771 Likewise.
35772 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35773 Likewise.
35774 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35775 Likewise.
35776 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35777 Likewise.
35778 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35779 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35780 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35781 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35782 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35783 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35784 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35785 w_sqrtf_compat-ppc32.
35786
35787 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35788
35789 * math/math.h [defined __cplusplus] (issignaling): In the long
35790 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35791 is not defined. Call __issignaling, otherwise.
35792
35793 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35794
35795 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35796 syscall definitions and replace __builtin_expect with __glibc_likely.
35797 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35798 syscall.
35799 (SYSCALL_CANCELLABLE): Removedefinition
35800 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35801 definition.
35802 (PSEUDO_END): Likewise.
35803 [IS_IN (libpthread)] (CENABLE): Likewise.
35804 [IS_IN (libpthread)] (CDISABLE): Likewise.
35805 [IS_IN (libc)] (CENABLE): Likewise.
35806 [IS_IN (libc)] (CENABLE): Likewise.
35807 [IS_IN (librt)] (CDISABLE): Likewise.
35808 [IS_IN (librt)] (CDISABLE): Likewise.
35809 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35810 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35811 definition.
35812 (PSEUDO_END): Likewise.
35813 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35814 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35815 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35816 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35817 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35818 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35819 (CENABLE): Likewise.
35820 (CDISABLE): Likewise.
35821 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35822 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35823 defintion.
35824 (PSEUDO_END): Likewise.
35825 [IS_IN (libpthread)] (CENABLE): Likewise.
35826 [IS_IN (libpthread)] (CDISABLE): Likewise.
35827 [IS_IN (libc)] (CENABLE): Likewise.
35828 [IS_IN (libc)] (CENABLE): Likewise.
35829 [IS_IN (librt)] (CDISABLE): Likewise.
35830 [IS_IN (librt)] (CDISABLE): Likewise.
35831 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35832 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35833 definition.
35834 (PSEUDO_END): Likewise.
35835 [IS_IN (libpthread)] (CENABLE): Likewise.
35836 [IS_IN (libpthread)] (CDISABLE): Likewise.
35837 [IS_IN (libc)] (CENABLE): Likewise.
35838 [IS_IN (libc)] (CENABLE): Likewise.
35839 [IS_IN (librt)] (CDISABLE): Likewise.
35840 [IS_IN (librt)] (CDISABLE): Likewise.
35841 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35842 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35843 definition.
35844 (PSEUDO_END): Likewise.
35845 [IS_IN (libpthread)] (CENABLE): Likewise.
35846 [IS_IN (libpthread)] (CDISABLE): Likewise.
35847 [IS_IN (libc)] (CENABLE): Likewise.
35848 [IS_IN (libc)] (CENABLE): Likewise.
35849 [IS_IN (librt)] (CDISABLE): Likewise.
35850 [IS_IN (librt)] (CDISABLE): Likewise.
35851 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35852 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35853 definition.
35854 (PSEUDO_END): Likewise.
35855 [IS_IN (libpthread)] (CENABLE): Likewise.
35856 [IS_IN (libpthread)] (CDISABLE): Likewise.
35857 [IS_IN (libc)] (CENABLE): Likewise.
35858 [IS_IN (libc)] (CENABLE): Likewise.
35859 [IS_IN (librt)] (CDISABLE): Likewise.
35860 [IS_IN (librt)] (CDISABLE): Likewise.
35861 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35862 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35863 definition.
35864 (PSEUDO_END): Likewise.
35865 [IS_IN (libpthread)] (CENABLE): Likewise.
35866 [IS_IN (libpthread)] (CDISABLE): Likewise.
35867 [IS_IN (libc)] (CENABLE): Likewise.
35868 [IS_IN (libc)] (CENABLE): Likewise.
35869 [IS_IN (librt)] (CDISABLE): Likewise.
35870 [IS_IN (librt)] (CDISABLE): Likewise.
35871 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35872 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35873 definition.
35874 (PSEUDO_END): Likewise.
35875 [IS_IN (libpthread)] (CENABLE): Likewise.
35876 [IS_IN (libpthread)] (CDISABLE): Likewise.
35877 [IS_IN (libc)] (CENABLE): Likewise.
35878 [IS_IN (libc)] (CENABLE): Likewise.
35879 [IS_IN (librt)] (CDISABLE): Likewise.
35880 [IS_IN (librt)] (CDISABLE): Likewise.
35881 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35882 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35883 Remove definition.
35884 (PSEUDO_END): Likewise.
35885 [IS_IN (libpthread)] (CENABLE): Likewise.
35886 [IS_IN (libpthread)] (CDISABLE): Likewise.
35887 [IS_IN (libc)] (CENABLE): Likewise.
35888 [IS_IN (libc)] (CENABLE): Likewise.
35889 [IS_IN (librt)] (CDISABLE): Likewise.
35890 [IS_IN (librt)] (CDISABLE): Likewise.
35891 (SINGLE_THREAD_P): Likewise.
35892 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35893 definition.
35894 (PSEUDO_END): Likewise.
35895 [IS_IN (libpthread)] (CENABLE): Likewise.
35896 [IS_IN (libpthread)] (CDISABLE): Likewise.
35897 [IS_IN (libc)] (CENABLE): Likewise.
35898 [IS_IN (libc)] (CENABLE): Likewise.
35899 [IS_IN (librt)] (CDISABLE): Likewise.
35900 [IS_IN (librt)] (CDISABLE): Likewise.
35901 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35902 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35903 definition.
35904 (PSEUDO_END): Likewise.
35905 [IS_IN (libpthread)] (CENABLE): Likewise.
35906 [IS_IN (libpthread)] (CDISABLE): Likewise.
35907 [IS_IN (libc)] (CENABLE): Likewise.
35908 [IS_IN (libc)] (CENABLE): Likewise.
35909 [IS_IN (librt)] (CDISABLE): Likewise.
35910 [IS_IN (librt)] (CDISABLE): Likewise.
35911 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35912 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35913 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35914 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35915 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35916 definition.
35917 (PSEUDO_END): Likewise.
35918 [IS_IN (libpthread)] (CENABLE): Likewise.
35919 [IS_IN (libpthread)] (CDISABLE): Likewise.
35920 [IS_IN (libc)] (CENABLE): Likewise.
35921 [IS_IN (libc)] (CENABLE): Likewise.
35922 [IS_IN (librt)] (CDISABLE): Likewise.
35923 [IS_IN (librt)] (CDISABLE): Likewise.
35924 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35925 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35926 definition.
35927 (PSEUDO_END): Likewise.
35928 [IS_IN (libpthread)] (CENABLE): Likewise.
35929 [IS_IN (libpthread)] (CDISABLE): Likewise.
35930 [IS_IN (libc)] (CENABLE): Likewise.
35931 [IS_IN (libc)] (CENABLE): Likewise.
35932 [IS_IN (librt)] (CDISABLE): Likewise.
35933 [IS_IN (librt)] (CDISABLE): Likewise.
35934 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35935 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35936 definition.
35937 (PSEUDO_END): Likewise.
35938 [IS_IN (libpthread)] (CENABLE): Likewise.
35939 [IS_IN (libpthread)] (CDISABLE): Likewise.
35940 [IS_IN (libc)] (CENABLE): Likewise.
35941 [IS_IN (libc)] (CENABLE): Likewise.
35942 [IS_IN (librt)] (CDISABLE): Likewise.
35943 [IS_IN (librt)] (CDISABLE): Likewise.
35944 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35945 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35946 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35947 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35948 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35949 definition.
35950 (PSEUDO_END): Likewise.
35951 [IS_IN (libpthread)] (CENABLE): Likewise.
35952 [IS_IN (libpthread)] (CDISABLE): Likewise.
35953 [IS_IN (libc)] (CENABLE): Likewise.
35954 [IS_IN (libc)] (CENABLE): Likewise.
35955 [IS_IN (librt)] (CDISABLE): Likewise.
35956 [IS_IN (librt)] (CDISABLE): Likewise.
35957 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35958 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35959 definition.
35960 (PSEUDO_END): Likewise.
35961 [IS_IN (libpthread)] (CENABLE): Likewise.
35962 [IS_IN (libpthread)] (CDISABLE): Likewise.
35963 [IS_IN (libc)] (CENABLE): Likewise.
35964 [IS_IN (libc)] (CENABLE): Likewise.
35965 [IS_IN (librt)] (CDISABLE): Likewise.
35966 [IS_IN (librt)] (CDISABLE): Likewise.
35967 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35968
35969 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35970
35971 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35972
35973 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35974
35975 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35976
35977 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35978
35979 [BZ #21982]
35980 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35981 middle and outer with size_t instead of int. Repleace %d and
35982 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35983 "MAX (outer, nchars - 64)" to support unsigned outer and
35984 nchars. Also exit loop when outer == 0.
35985
35986 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35987
35988 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35989 * include/signal.h (__sigsuspend_nocancel): Likewise.
35990 * include/time.h (__nanosleep_nocancel): Likewise.
35991 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35992 * login/utmp_file.c: Include non cancellable syscall header.
35993 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35994 prototype.
35995
35996 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35997
35998 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35999 .byte sequences with AVX512F instructions.
36000 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36001 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36002 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36003 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36004 Likewise.
36005 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36006 Likewise.
36007
36008 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36009 Steve Ellcey <sellcey@cavium.com>
36010
36011 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36012 Use PTR_REG macro in cmp instruction.
36013
36014 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36015
36016 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36017 Change the return type of the ifunc resolver to match the return
36018 type of the target function.
36019
36020 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36021
36022 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36023 (preadv64): Likewise.
36024 (pwrite64(: Likewise.
36025 (pwritev64): Likewise.
36026
36027 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36028 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36029 (LOAD_ARGS_0): Likewise.
36030 (LOAD_ARGS_1): Likewise.
36031 (LOAD_ARGS_2): Likewise.
36032 (LOAD_ARGS_3): Likewise.
36033 (LOAD_ARGS_4): Likewise.
36034 (LOAD_ARGS_5): Likewise.
36035 (LOAD_ARGS_6): Likewise.
36036 (LOAD_REGS_0): Likewise.
36037 (LOAD_REGS_1): Likewise.
36038 (LOAD_REGS_2): Likewise.
36039 (LOAD_REGS_3): Likewise.
36040 (LOAD_REGS_4): Likewise.
36041 (LOAD_REGS_5): Likewise.
36042 (LOAD_REGS_6): Likewise.
36043 (ASM_ARGS_0): Likewise.
36044 (ASM_ARGS_1): Likewise.
36045 (ASM_ARGS_2): Likewise.
36046 (ASM_ARGS_3): Likewise.
36047 (ASM_ARGS_4): Likewise.
36048 (ASM_ARGS_5): Likewise.
36049 (ASM_ARGS_6): Likewise.
36050 (LOAD_ARGS_TYPES_1): Likewise.
36051 (LOAD_ARGS_TYPES_2): Likewise.
36052 (LOAD_ARGS_TYPES_3): Likewise.
36053 (LOAD_ARGS_TYPES_4): Likewise.
36054 (LOAD_ARGS_TYPES_5): Likewise.
36055 (LOAD_ARGS_TYPES_6): Likewise.
36056 (LOAD_REGS_TYPES_1): Likewise.
36057 (LOAD_REGS_TYPES_2): Likewise.
36058 (LOAD_REGS_TYPES_3): Likewise.
36059 (LOAD_REGS_TYPES_4): Likewise.
36060 (LOAD_REGS_TYPES_5): Likewise.
36061 (LOAD_REGS_TYPES_6): Likewise.
36062 (TYPEFY): New define.
36063 (ARGIFY): Likewise.
36064 (internal_syscall0): Likewise.
36065 (internal_syscall1): Likewise.
36066 (internal_syscall2): Likewise.
36067 (internal_syscall3): Likewise.
36068 (internal_syscall4): Likewise.
36069 (internal_syscall5): Likewise.
36070 (internal_syscall6): Likewise.
36071 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36072 (INTERNAL_SYSCALL_NCS): Remove define.
36073 (internal_syscall1): Add define.
36074
36075 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36076
36077 * math/w_remainder_compat.c: Remove duplicate inclusion of
36078 math-svid-compat.h.
36079 * math/w_remainderf_compat.c: Likewise.
36080 * math/w_remainderl_compat.c: Likewise.
36081
36082 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36083
36084 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36085
36086 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36087
36088 [BZ #21684]
36089 * math/tgmath.h (__floating_type): Simplify definitions.
36090 (__real_integer_type): New macro.
36091 (__complex_integer_type): Likewise.
36092 (__expr_is_real): Likewise.
36093 (__tgmath_real_type_sub): Update comment to describe handling of
36094 complex types.
36095 (__tgmath_complex_type_sub): New macro.
36096 (__tgmath_complex_type): Likewise.
36097 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36098 (__TGMATH_CF128): Use __expr_is_real.
36099 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36100 __expr_is_real.
36101 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36102 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36103 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36104 integer types.
36105
36106 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36107
36108 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36109 macro.
36110 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36111 alias.
36112 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36113 Likewise.
36114
36115 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36116 nanosleep_not_cancel with __nanosleep_nocancel.
36117 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36118 (__nanosleep_nocancel): New macro.
36119 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36120 function.
36121 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36122 macro.
36123 (__nanosleep_nocancel): New prototype.
36124
36125 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36126 pause_not_cancel with __pause_nocancel.
36127 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36128 (__pause_nocancel): New macro.
36129 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36130 macro.
36131 (__pause_nocancel): New prototype.
36132 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36133
36134 2017-08-22 Martin Sebor <msebor@redhat.com>
36135
36136 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36137 to return a pointer to the same type as the target function.
36138
36139 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36140
36141 [BZ #18822]
36142 [BZ #21986]
36143 * include/printf.h (__printf_fphex): Add attribute_hidden.
36144 (__guess_grouping): New prototype.
36145 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36146 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36147 libc_hidden_proto and libc_hidden_def.
36148 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36149 (__vstrfmon_l): Remove the third argument passed to
36150 __guess_grouping.
36151
36152 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36153
36154 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36155 definition for issignaling that does not rely on __MATH_TG,
36156 since __MATH_TG uses __builtin_types_compatible_p, which is only
36157 available in C mode.
36158 (CFLAGS-test-math-issignaling.cc): New variable.
36159 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36160 * math/test-math-issignaling.cc: New test for C++ implementation
36161 of type-generic issignaling.
36162 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36163 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36164 options of test-math-issignaling on powerpc64le.
36165
36166 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36167
36168 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36169 building libc.a.
36170 (hidden_proto): Likewise.
36171 (hidden_tls_proto): Likewise.
36172 (__hidden_proto): Likewise.
36173
36174 2017-08-22 Florian Weimer <fweimer@redhat.com>
36175
36176 math: Statically link tests of internal functionality.
36177 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36178 atest-exp2.
36179 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36180 (gmp-objs): Remove assignment.
36181 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36182
36183 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36184
36185 [BZ #21987]
36186 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36187 and copy to ...
36188 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36189 ... here.
36190 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36191 ... and here.
36192
36193 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36194 variable definitions above inclusion of ../Rules.
36195
36196 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36197
36198 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36199 case calling __builtin_unreachable.
36200
36201 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36202
36203 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36204 __waitpid_nocancel.
36205 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36206 (__waitpid_nocancel): New macro.
36207 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36208 macro.
36209 (__waitpid_nocancel): Replace macro with a function.
36210 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36211 function.
36212
36213 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36214 __fcntl_nocancel.
36215 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36216 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36217
36218 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36219 __writev_nocancel_nostatus.
36220 (write_call_graph): Likewise.
36221 (write_bb_counts): Likewise.
36222 * resolv/herror.c (herror): Likewise.
36223 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36224 macro.
36225 (__writev_nocancel_nostatus): New macro.
36226 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36227 Remove macro.
36228 (__writev_nocancel_nostatus): New function.
36229
36230 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36231
36232 Revert:
36233 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36234
36235 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36236 building libc.a.
36237 (hidden_proto): Likewise.
36238 (hidden_tls_proto): Likewise.
36239 (__hidden_proto): Likewise.
36240
36241 [BZ #21973]
36242 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36243 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36245 Likewise.
36246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36247 Likewise.
36248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36249 Likewise.
36250 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36251 Likewise.
36252 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36253 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36254 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36255 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36256 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36257 GLIBC_2.0 sqrtl symbol.
36258
36259 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36260 [__USE_MISC] (_LIB_VERSION): Likewise.
36261 [__USE_MISC] (struct exception): Likewise.
36262 [__USE_MISC] (matherr): Likewise.
36263 [__USE_MISC] (DOMAIN): Likewise.
36264 [__USE_MISC] (SING): Likewise.
36265 [__USE_MISC] (OVERFLOW): Likewise.
36266 [__USE_MISC] (UNDERFLOW): Likewise.
36267 [__USE_MISC] (TLOSS): Likewise.
36268 [__USE_MISC] (PLOSS): Likewise.
36269 [__USE_MISC] (HUGE): Likewise.
36270 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36271 * math/math-svid-compat.h: New file.
36272 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36273 and matherrl.
36274 * include/math.h [!_ISOMAC] (__matherr): Remove.
36275 * manual/arith.texi (FP Exceptions): Do not document matherr.
36276 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36277 (tests-internal): New variable.
36278 (install-lib): Do not add libieee.a.
36279 (non-lib.a): Likewise.
36280 (extra-objs): Do not add libieee.a and ieee-math.o.
36281 (CPPFLAGS-s_lib_version.c): Remove variable.
36282 ($(objpfx)libieee.a): Remove rule.
36283 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36284 * math/ieee-math.c: Remove.
36285 * math/libm-test-support.c (matherr): Remove.
36286 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36287 and license notices. Include <math-svid-compat.h> and
36288 <shlib-compat.h>.
36289 (matherr): Undefine as macro. Use compat_symbol_reference.
36290 (_LIB_VERSION): Likewise.
36291 * math/test-matherr-2.c: New file.
36292 * math/test-matherr-3.c: Likewise.
36293 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36294 declaration.
36295 (__kernel_standard_f): Likewise.
36296 (__kernel_standard_l): Likewise.
36297 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36298 <math_private.h>. Include <math-svid-compat.h>.
36299 (_LIB_VERSION): Undefine as macro.
36300 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36301 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36302 [LIBM_SVID_COMPAT], use compat_symbol.
36303 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36304 <math_private.h>. Include <math-svid-compat.h>.
36305 (matherr): Undefine as macro.
36306 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36307 compat_symbol.
36308 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36309 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36310 compat_symbol_reference.
36311 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36312 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36313 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36314 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36315 (MATHERR_D): Remove declaration.
36316 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36317 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36318 [LIBM_BUILD] (pmatherrf): Likewise.
36319 [LIBM_BUILD] (pmatherr): Likewise.
36320 [LIBM_BUILD] (pmatherrl): Likewise.
36321 (DOMAIN): Likewise.
36322 (SING): Likewise.
36323 (OVERFLOW): Likewise.
36324 (UNDERFLOW): Likewise.
36325 (TLOSS): Likewise.
36326 (PLOSS): Likewise.
36327 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36328 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36329 compat_symbol.
36330 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36331 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36332 compat_symbol.
36333 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36334 * math/w_acos_compat.c: Likewise.
36335 * math/w_acosf_compat.c: Likewise.
36336 * math/w_acosh_compat.c: Likewise.
36337 * math/w_acoshf_compat.c: Likewise.
36338 * math/w_acoshl_compat.c: Likewise.
36339 * math/w_acosl_compat.c: Likewise.
36340 * math/w_asin_compat.c: Likewise.
36341 * math/w_asinf_compat.c: Likewise.
36342 * math/w_asinl_compat.c: Likewise.
36343 * math/w_atan2_compat.c: Likewise.
36344 * math/w_atan2f_compat.c: Likewise.
36345 * math/w_atan2l_compat.c: Likewise.
36346 * math/w_atanh_compat.c: Likewise.
36347 * math/w_atanhf_compat.c: Likewise.
36348 * math/w_atanhl_compat.c: Likewise.
36349 * math/w_cosh_compat.c: Likewise.
36350 * math/w_coshf_compat.c: Likewise.
36351 * math/w_coshl_compat.c: Likewise.
36352 * math/w_exp10_compat.c: Likewise.
36353 * math/w_exp10f_compat.c: Likewise.
36354 * math/w_exp10l_compat.c: Likewise.
36355 * math/w_exp2_compat.c: Likewise.
36356 * math/w_exp2f_compat.c: Likewise.
36357 * math/w_exp2l_compat.c: Likewise.
36358 * math/w_fmod_compat.c: Likewise.
36359 * math/w_fmodf_compat.c: Likewise.
36360 * math/w_fmodl_compat.c: Likewise.
36361 * math/w_hypot_compat.c: Likewise.
36362 * math/w_hypotf_compat.c: Likewise.
36363 * math/w_hypotl_compat.c: Likewise.
36364 * math/w_j0_compat.c: Likewise.
36365 * math/w_j0f_compat.c: Likewise.
36366 * math/w_j0l_compat.c: Likewise.
36367 * math/w_j1_compat.c: Likewise.
36368 * math/w_j1f_compat.c: Likewise.
36369 * math/w_j1l_compat.c: Likewise.
36370 * math/w_jn_compat.c: Likewise.
36371 * math/w_jnf_compat.c: Likewise.
36372 * math/w_jnl_compat.c: Likewise.
36373 * math/w_lgamma_main.c: Likewise.
36374 * math/w_lgamma_r_compat.c: Likewise.
36375 * math/w_lgammaf_main.c: Likewise.
36376 * math/w_lgammaf_r_compat.c: Likewise.
36377 * math/w_lgammal_main.c: Likewise.
36378 * math/w_lgammal_r_compat.c: Likewise.
36379 * math/w_log10_compat.c: Likewise.
36380 * math/w_log10f_compat.c: Likewise.
36381 * math/w_log10l_compat.c: Likewise.
36382 * math/w_log2_compat.c: Likewise.
36383 * math/w_log2f_compat.c: Likewise.
36384 * math/w_log2l_compat.c: Likewise.
36385 * math/w_log_compat.c: Likewise.
36386 * math/w_logf_compat.c: Likewise.
36387 * math/w_logl_compat.c: Likewise.
36388 * math/w_pow_compat.c: Likewise.
36389 * math/w_powf_compat.c: Likewise.
36390 * math/w_powl_compat.c: Likewise.
36391 * math/w_remainder_compat.c: Likewise.
36392 * math/w_remainderf_compat.c: Likewise.
36393 * math/w_remainderl_compat.c: Likewise.
36394 * math/w_scalb_compat.c: Likewise.
36395 * math/w_scalbf_compat.c: Likewise.
36396 * math/w_scalbl_compat.c: Likewise.
36397 * math/w_sinh_compat.c: Likewise.
36398 * math/w_sinhf_compat.c: Likewise.
36399 * math/w_sinhl_compat.c: Likewise.
36400 * math/w_sqrt_compat.c: Likewise.
36401 * math/w_sqrtf_compat.c: Likewise.
36402 * math/w_sqrtl_compat.c: Likewise.
36403 * math/w_tgamma_compat.c: Likewise.
36404 * math/w_tgammaf_compat.c: Likewise.
36405 * math/w_tgammal_compat.c: Likewise.
36406 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36407 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36408 * sysdeps/ieee754/k_standard.c: Likewise.
36409 * sysdeps/ieee754/k_standardf.c: Likewise.
36410 * sysdeps/ieee754/k_standardl.c: Likewise.
36411 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36412 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36413 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36414 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36415 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36416 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36417 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36418 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36419 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36420 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36421 Likewise.
36422 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36423 Likewise.
36424 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36425 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36426 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36427 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36428
36429 2017-08-21 Florian Weimer <fweimer@redhat.com>
36430
36431 [BZ #21864]
36432 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36433 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36434 Move before inclusion of ../Rules.
36435
36436 2017-08-21 Florian Weimer <fweimer@redhat.com>
36437
36438 [BZ #21972]
36439 * assert/assert.h (assert): Use static_cast (bool) for C++.
36440 Use the ternary operator in the warning branch for GNU C.
36441 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36442 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36443 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36444 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36445 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36446
36447 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36448
36449 [BZ #18822]
36450 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36451 (__syscall_clock_gettime): Add attribute_hidden.
36452 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36453 (__start_context): Likewise.
36454
36455 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36456
36457 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36458 building libc.a.
36459 (hidden_proto): Likewise.
36460 (hidden_tls_proto): Likewise.
36461 (__hidden_proto): Likewise.
36462
36463 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36464
36465 * include/libc-symbols.h (attribute_hidden): Enable hidden
36466 visibility in libc.a compiled with PIE.
36467
36468 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36469
36470 [BZ #18822]
36471 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36472 Add attribute_hidden.
36473
36474 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36475
36476 [BZ #21864]
36477 * Makerules (all-nonlib): Add $(others-extras).
36478 * catgets/Makefile (others-extras): New.
36479 * elf/Makefile (others-extras): Likewise.
36480 * nss/Makefile (others-extras): Likewise.
36481
36482 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36483
36484 [BZ #18822]
36485 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36486 * elf/dl-open.c: Include <libc-internal.h>.
36487 (__libc_multiple_libcs): Removed.
36488 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36489 <hp-timing.h>.
36490 * include/libc-internal.h (__libc_multiple_libcs): New.
36491 * misc/sbrk.c: Include <libc-internal.h>.
36492 (__libc_multiple_libcs): Removed.
36493
36494 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36495
36496 [BZ #18822]
36497 * grp/initgroups.c (__nss_group_database): Removed.
36498 (__nss_initgroups_database): Likewise.
36499 * nscd/gai.c (__nss_hosts_database): Likewise.
36500 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36501 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36502 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36503 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36504 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36505 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36506 attribute_hidden.
36507 * nss/nsswitch.c (__nss_database_custom): Define only if
36508 USE_NSCD is defined.
36509 (__nss_configure_lookup): Use __nss_database_custom only if
36510 USE_NSCD is defined.
36511 * nss/nsswitch.h (__nss_database_custom): Declare only if
36512 USE_NSCD is defined. Add attribute_hidden.
36513 (__nss_setent): Add attribute_hidden.
36514 (__nss_endent): Likewise.
36515 (__nss_getent_r): Likewise.
36516 (__nss_getent): Likewise.
36517 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36518
36519 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36520
36521 [BZ #18822]
36522 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36523 libc_hidden_proto and libc_hidden_def.
36524
36525 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36526
36527 [BZ #18822]
36528 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36529 Add libc_hidden_proto.
36530 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36531 Add libc_hidden_def.
36532
36533 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36534
36535 [BZ #21974]
36536 * gmon/Makefile (routines): Remove bb_init_func and
36537 bb_exit_func.
36538 (elide-routines.os): Removed.
36539 * gmon/bb_exit_func.c: Likewise.
36540 * gmon/bb_init_func.c: Likewise.
36541 * include/sys/gmon.h (__bb): Likewise.
36542 (__bb_init_func): Likewise.
36543 (__bb_exit_func): Likewise.
36544 * sysdeps/alpha/bb_init_func.S: Likewise.
36545
36546 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36547
36548 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36549 * include/setjmp.h (____longjmp_chk): Here. Add
36550 attribute_hidden.
36551
36552 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36553
36554 [BZ #18822]
36555 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36556 attribute_hidden.
36557 (__strspn_sse2): Likewise.
36558
36559 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36560
36561 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36562 (close_not_cancel_no_status): Likewise.
36563 (__close_nocancel): New macro.
36564 (__close_nocancel_nostatus): Likewise.
36565 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36566 macro.
36567 (close_not_cancel): Likewise.
36568 (close_not_cancel_no_status): Likewise.
36569 (__close_nocancel): New prototype.
36570 (__close_nocancel_nostatus): New function.
36571 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36572 * catgets/open_catalog.c (__open_catalog): Replace
36573 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36574 * gmon/gmon.c (write_gmon): Likewise.
36575 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36576 * intl/loadmsgcat.c (close): Likewise.
36577 * io/ftw.c (open_dir_stream): Likewise.
36578 (ftw_startup): Likewise.
36579 * libio/fileops.c (_IO_file_open): Likewise.
36580 (_IO_file_close_mmap): Likewise.
36581 (_IO_file_close): Likewise.
36582 * libio/iopopen.c (_IO_dup2): Likewise.
36583 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36584 * locale/loadlocale.c (_nl_load_locale): Likewise.
36585 * login/utmp_file.c (pututline_file): Likewise.
36586 (endutent_file): Likewise.
36587 * misc/daemon.c (daemon): Likewise.
36588 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36589 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36590 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36591 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36592 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36593 * nscd/nscd_helper.c (open_socket): Likewise.
36594 (__nscd_open_socket): Likewise.
36595 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36596 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36597 (__nscd_innetgr): Likewise.
36598 * nss/nss_db/db-open.c (internal_setent): Likewise.
36599 * resolv/res-close.c (__res_iclose): Likewise.
36600 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36601 * sysdeps/posix/closedir.c (__closedir): Likewise.
36602 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36603 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36604 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36605 (opendir_tail): Likewise.
36606 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36607 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36608 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36609 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36610 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36611 (gethostid): Likewise.
36612 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36613 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36614 Likewise.
36615 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36616 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36617 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36618 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36619 Likewise.
36620 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36621 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36622 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36623 Likewise.
36624 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36625 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36626 Likewise.
36627 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36628 Likewise.
36629 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36630 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36631 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36632 __close_nocancel.
36633
36634 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36635 (openat_not_cancel_3): Likewise.
36636 (openat64_not_cancel_3): Likewise).
36637 (openat_not_cancel_3): Likewise).
36638 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36639 macro.
36640 (openat_not_cancel_3): Likewise.
36641 (openat64_not_cancel): Likewise.
36642 (openat64_not_cancel_3): Likewise.
36643 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36644 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36645 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36646 __open{64}_nocancel.
36647 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36648 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36649 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36650
36651 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36652
36653 [BZ #18822]
36654 * include/argz.h (__argz_create_sep): New function prototype.
36655 (__argz_append): Likewise.
36656 (__argz_add): Likewise.
36657 (__argz_add_sep): Likewise.
36658 (__argz_delete): Likewise.
36659 (__argz_insert): Likewise.
36660 (__argz_replace): Likewise.
36661 * string/argz.h (__argz_create_sep): Removed.
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
36669 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36670
36671 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36672 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36673 (GNU_PROPERTY_STACK_SIZE): Likewie.
36674 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36675 (GNU_PROPERTY_LOPROC): Likewise.
36676 (GNU_PROPERTY_HIPROC): Likewise.
36677 (GNU_PROPERTY_LOUSER): Likewise.
36678 (GNU_PROPERTY_HIUSER): Likewise.
36679 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36680 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36681 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36682 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36683 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36684 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36685 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36686 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36687 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36688 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36689 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36690 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36691 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36692 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36693 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36694 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36695 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36696 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36697 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36698 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36699 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36700 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36701 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36702
36703 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36704
36705 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36706 in C++ mode.
36707
36708 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36709
36710 [BZ #21930]
36711 * math/math.h (isinf): Check if in C or C++ mode before using
36712 __builtin_types_compatible_p, since this is a C mode feature.
36713
36714 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36715
36716 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36717 (__write_nocancel): New macro.
36718 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36719 Rewrite as a function prototype.
36720 (write_not_cancel): Remove macro.
36721 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36722 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36723 (write_gmon): Likewise.
36724 * libio/fileops.c (_IO_new_file_write): Likewise.
36725 * login/utmp_file.c (pututline_file): Likewise.
36726 (updwtmp_file): Likewise.
36727 * stdio-common/psiginfo.c (psiginfo): Likewise.
36728 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36729 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36730 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36731 Likewise.
36732 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36733 Likewise.
36734
36735 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36736 (__read_nocancel): New macro.
36737 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36738 __read_nocancel.
36739 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36740 macro.
36741 (__read_nocancel): New prototype.
36742 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36743 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36744 with __read_nocancel.
36745 * intl/loadmsgcat.c (read): Likewise.
36746 * libio/fileops.c (_IO_file_read): Likewise.
36747 * locale/loadlocale.c (_nl_load_locale): Likewise.
36748 * login/utmp_file.c (getutent_r_file): Likewise.
36749 (internal_getut_r): Likewise.
36750 (getutline_r_file): Likewise.
36751 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36752 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36753 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36754 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36755 Likewise.
36756 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36757 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36758 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36759 Likewise.
36760 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36761 Likewise.
36762 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36763 Likewise.
36764 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36765 Likewise.
36766 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36767
36768 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36769
36770 [BZ #21966]
36771 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36772 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36773 usable.
36774
36775 2017-08-17 DJ Delorie <dj@redhat.com>
36776
36777 * bug17079.c: Update to new test harness.
36778 * test-digits-dots.c: Likewise.
36779 * test-netdb.c: Likewise.
36780 * tst-field.c: Likewise.
36781 * tst-nss-getpwent.c: Likewise.
36782 * tst-nss-static.c: Likewise.
36783 * tst-nss-test1.c: Likewise.
36784 * tst-nss-test2.c: Likewise.
36785 * tst-nss-test3.c: Likewise.
36786 * tst-nss-test4.c: Likewise.
36787 * tst-nss-test5.c: Likewise.
36788
36789 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36790
36791 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36792 (open_not_cancel_2): Likewise.
36793 (open_nocancel): New macro.
36794 (open64_nocancel): Likewise.
36795 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36796 (open_not_cancel_2): Likewise.
36797 (__open_nocancel): New prototype.
36798 (__open64_nocancel): Likewise.
36799 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36800 __open_nocancel.
36801 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36802 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36803 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36804 with __open_nocancel.
36805 * csu/check_fds.c (check_one_fd): Likewise.
36806 * gmon/gmon.c (write_gmon): Likewise.
36807 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36808 * intl/loadmsgcat.c (open): Likewise.
36809 * libio/fileops.c (_IO_file_open): Likewise.
36810 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36811 * locale/loadlocale.c (_nl_load_locale): Likewise.
36812 * login/utmp_file.c (setutent_file): Likewise.
36813 * misc/daemon.c (daemon): Likewise.
36814 * nss/nss_db/db-open.c (internal_setent): Likewise.
36815 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36816 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36817 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36818 (__opendir): Likewise.
36819 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36820 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36821 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36822 (gethostid): Likewise.
36823 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36824 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36825 Likewise.
36826 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36827 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36828 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36829 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36830 Likewise.
36831 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36832 Likewise.
36833 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36834 Likewise.
36835 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36836 Likewise.
36837 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36838 Likewise.
36839 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36840 Likewise.
36841 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36842 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36843
36844 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36845
36846 * benchtests/bench-skeleton.c (main): Add support for
36847 latency benchmarking.
36848 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36849
36850 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36851
36852 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36853 the startup object.
36854
36855 2017-08-17 Florian Weimer <fweimer@redhat.com>
36856
36857 * include/sys/socket.h (__opensock): Remove internal_function.
36858 * socket/opensock.c (__opensock): Likewise.
36859 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36860
36861 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36862
36863 [BZ #21944]
36864 * signal/bits/types/__sigval_t.h: New file.
36865 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36866 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36867 and define sigval_t using __sigval_t.
36868 * include/bits/types/__sigval_t.h: New file.
36869 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36870 instead of <bits/types/__sigval_t.h>.
36871 (struct sigevent): Use __sigval_t instead of sigval_t.
36872 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36873 instead of <bits/types/__sigval_t.h>.
36874 (siginfo_t): Use __sigval_t instead of sigval_t.
36875 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36876 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36877 (struct sigevent): Use __sigval_t instead of sigval_t.
36878 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36879 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36880 (siginfo_t): Use __sigval_t instead of sigval_t.
36881 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36882
36883 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36884
36885 * NEWS: Remove "[Add new features here]" for 2.27.
36886
36887 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36888
36889 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36890 libc.so.
36891
36892 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36893
36894 * NEWS: Mention x86-64 FMA optimization.
36895
36896 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36897
36898 [BZ #21912]
36899 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36900 Add e_expf-fma.
36901 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36902 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36903 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36904
36905 2017-08-16 Andreas Schwab <schwab@suse.de>
36906
36907 [BZ #16750]
36908 CVE-2009-5064
36909 * elf/ldd.bash.in: Never run file directly.
36910
36911 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36912
36913 [BZ #21955]
36914 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36915 (L(SP_INF_0)): Likewise.
36916
36917 2017-08-15 Florian Weimer <fweimer@redhat.com>
36918
36919 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36920 run-built-tests.
36921
36922 2017-08-15 Florian Weimer <fweimer@redhat.com>
36923
36924 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36925 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36926 BROKEN_THREAD_SIGNALS code.
36927 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36928 request_list): Remove caller_pid member used for
36929 BROKEN_THREAD_SIGNALS.
36930 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36931 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36932 Remove BROKEN_THREAD_SIGNALS support.
36933 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36934 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36935
36936 2017-08-15 Florian Weimer <fweimer@redhat.com>
36937
36938 * gmon/Makefile (tests): Add tst-gmon.
36939 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36940 Set.
36941 (tests-special): Add tst-gmon-prof.out.
36942 (tst-gmon.out): Depend on clean-tst-gmon-data.
36943 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36944 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36945 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36946 startup object.
36947 * aclocal.m4 (GPROF): Set and substitute.
36948 * config.amke.in (GPROF): Set.
36949 * configure: Regenerate.
36950
36951 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36952
36953 * elf/elf.h A (NT_PPC_TAR): New macro.
36954 (NT_PPC_PPR): Likewise.
36955 (NT_PPC_DSCR): Likewise.
36956 (NT_PPC_EBB): Likewise.
36957 (NT_PPC_PMU): Likewise.
36958 (NT_PPC_TM_CGPR): Likewise.
36959 (NT_PPC_TM_CFPR): Likewise.
36960 (NT_PPC_TM_CVMX): Likewise.
36961 (NT_PPC_TM_CVSX): Likewise.
36962 (NT_PPC_TM_SPR): Likewise.
36963 (NT_PPC_TM_CTAR): Likewise.
36964 (NT_PPC_TM_CPPR): Likewise.
36965 (NT_PPC_TM_CDSCR): Likewise.
36966
36967 2017-08-15 Florian Weimer <fweimer@redhat.com>
36968
36969 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36970 regparm (2) instead of internal_function.
36971 (_MCOUNT_DECL): Adjust.
36972
36973 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36974
36975 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36976 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36977
36978 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36979
36980 * conform/data/sys/wait.h-data (si_value): Do not expect for
36981 XPG42.
36982
36983 2017-08-14 Florian Weimer <fweimer@redhat.com>
36984
36985 [BZ #21962]
36986 NSS: Create stubs for accidentally exported lookup functions.
36987 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36988 Remove declaration.
36989 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36990 (ether_hostton): Call __nss_ethers_lookup2 instead.
36991 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36992 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36993 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36994 (setup): Call __nss_netgroup_lookup2 instead.
36995 * nss/Makefile (routines): Add compat-lookup.
36996 * nss/Versions (GLIBC_2.27): Add symbol version.
36997 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36998 (DB_COMPAT_FCT): Remove.
36999 * nss/compat-lookup.c: New file.
37000 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37001 from databases.def.
37002 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37003 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37004 (netname2user): Call __nss_publickey_lookup2 instead.
37005 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37006 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37007 instead.
37008
37009 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37010 Sergei Trofimovich <slyfox@inbox.ru>
37011
37012 [BZ #21908]
37013 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37014 Rename to MMAP2_PAGE_UNIT.
37015 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37016 __OFF_T_MATCHES_OFF64_T is not defined.
37017 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37018 uint64_t.
37019 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37020 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37021
37022 2017-08-14 Florian Weimer <fweimer@redhat.com>
37023
37024 i386: Do not set internal_function.
37025 * config.h.in (USE_REGPARMS, internal_function): Remove.
37026 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37027 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37028
37029 2017-08-14 Florian Weimer <fweimer@redhat.com>
37030
37031 * elf/dl-init.c (_dl_init): Remove internal_function.
37032 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37033 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37034
37035 2017-08-14 Florian Weimer <fweimer@redhat.com>
37036
37037 * elf/rtld.c (_dl_start): Remove internal_function.
37038 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37039 _dl_start.
37040
37041 2017-08-14 Florian Weimer <fweimer@redhat.com>
37042
37043 * elf/dl-fini.c (_dl_fini): Remove internal_function
37044 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37045
37046 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37047
37048 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37049 (bit_cpu_SHSTK): Likewise.
37050 (index_cpu_IBT): Likewise.
37051 (index_cpu_SHSTK): Likewise.
37052 (reg_IBT): Likewise.
37053 (reg_SHSTK): Likewise.
37054 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37055 Handle index_cpu_IBT and index_cpu_SHSTK.
37056
37057 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37058
37059 [BZ #19982]
37060 * po/fr.po: Fix spelling mistake.
37061
37062 2017-08-13 Florian Weimer <fweimer@redhat.com>
37063
37064 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37065 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37066 (_dl_catch_error, _dl_receive_error): Likewise.
37067 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37068 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37069 (_dl_deallocate_tls): Likewise.
37070 * include/dlfcn.h (_dl_addr): Likewise.
37071 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37072 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37073 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37074 Likewise.
37075
37076 2017-08-13 Florian Weimer <fweimer@redhat.com>
37077
37078 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37079 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37080 internal_function.
37081 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37082
37083 2017-08-13 Florian Weimer <fweimer@redhat.com>
37084
37085 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37086 internal_function.
37087 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37088 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37089 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37090 internal_function from _dl_make_stack_executable_hook member.
37091 (_dl_make_stack_executable): Remove internal_function.
37092 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37093 Likewise.
37094 * sysdeps/unix/sysv/linux/dl-execstack.c
37095 (_dl_make_stack_executable): Likewise.
37096
37097 2017-08-13 Florian Weimer <fweimer@redhat.com>
37098
37099 * sysdeps/unix/sysv/linux/netlinkaccess.h
37100 (__netlink_assert_response): Remove internal_function.
37101 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37102 (__netlink_assert_response): Likewise.
37103
37104 2017-08-13 Florian Weimer <fweimer@redhat.com>
37105
37106 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37107 internal_function.
37108 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37109
37110 2017-08-13 Florian Weimer <fweimer@redhat.com>
37111
37112 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37113 internal_function.
37114 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37115 * inet/netgroup.h (__internal_setnetgrent)
37116 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37117 * inet/getnetgrent_r.c (__internal_setnetgrent)
37118 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37119 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37120 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37121 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37122 * nss/nsswitch.h (db_lookup_function): Likewise.
37123
37124 2017-08-13 Florian Weimer <fweimer@redhat.com>
37125
37126 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37127 Remove internal_function.
37128 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37129 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37130 message argument on the stack.
37131 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37132 Likeweise.
37133
37134 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37135
37136 Adapt test case data to the changes in the thousands
37137 separators.
37138
37139 [BZ #20756]
37140 * localedata/tst-langinfo.sh: Adapt test case data.
37141 * stdlib/tst-strfmon_l.c: Likewise.
37142 * stdlib/tst-strtod4.c: Likewise.
37143 * stdlib/tst-strtod5i.c: Likewise.
37144
37145 2017-08-11 Florian Weimer <fweimer@redhat.com>
37146
37147 [BZ #21242]
37148 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37149 Suppress pedantic warning resulting from statement expression.
37150 (__ASSERT_FUNCTION): Add missing __extension__.
37151
37152 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37153
37154 * benchtests/bench-memmove-large.c: Print output in JSON
37155 format.
37156 * benchtests/bench-memmove.c: Likewise.
37157
37158 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37159 * benchtests/bench-memchr.c (do_one_test): Likewise.
37160 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37161 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37162 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37163 * benchtests/bench-memmove.c (do_one_test): Likewise.
37164 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37165 * benchtests/bench-memset.c (do_one_test): Likewise.
37166 * benchtests/bench-string.h (test_init): Remove memsets.
37167
37168 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37169
37170 * manual/lang.texi
37171 (Computing the Width of an Integer Data Type): Rename section to
37172 "Width of an Integer Type". Remove inaccurate statement regarding
37173 lack of C language facilities for determining width of integer
37174 types, and reorder content to improve flow and context of
37175 discussion.
37176
37177 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37178
37179 * lang.texi (va_copy): Change standard from ISO to C99.
37180 (__va_copy): Add standard and header annotation.
37181 Update description for clarity of origins and current use.
37182
37183 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37184
37185 [BZ #21941]
37186 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37187 xssqrtqp requires operands to be in Vector Registers
37188 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37189 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37190 (__ieee754_sqrtf128): Likewise.
37191
37192 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37193
37194 * sysdeps/aarch64/memcmp.S (memcmp):
37195 Rewrite of optimized memcmp.
37196
37197 2017-08-10 Florian Weimer <fweimer@redhat.com>
37198
37199 Introduce ld.so exceptions.
37200 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37201 (_dl_exception_create, _dl_exception_create_format)
37202 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37203 (_dl_catch_exception): Declare.
37204 (_dl_catch_error): Update comment.
37205 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37206 errstring, malloced members with exception member.
37207 (_dl_out_of_memory): Remove.
37208 (fatal_error): New function, extracted from _dl_signal_error.
37209 (_dl_signal_exception, _dl_signal_cexception): New functions.
37210 (_dl_signal_error): Call _dl_exception_create to allocate an
37211 exception object.
37212 (_dl_catch_exception): New function, based on _dl_catch_error.
37213 (_dl_catch_error): Implement using _dl_catch_exception.
37214 * elf/dl-exception.c: New file.
37215 * elf/Makefile (dl-routines): Add dl-exception.
37216 (elide-routines.os): Likewise.
37217 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37218 _dl_exception_create_format, _dl_exception_free.
37219 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37220 _dl_signal_exception.
37221 * elf/dl-lookup.c (make_string): Remove.
37222 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37223 _dl_signal_cexception, _dl_exception_free.
37224 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37225 _dl_signal_exception.
37226 * elf/dl-sym.c (do_sym): Likewise.
37227 * elf/dl-version.c (make_string): Remove.
37228 (match_symbol): Use _dl_exception_create_format,
37229 _dl_signal_cexception, _dl_exception_free.
37230 (_dl_check_map_versions): Likewise.
37231 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37232 _dl_catch_exception.
37233 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37234 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37235 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37236 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37237 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37238 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37239 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37240 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37241 Likewise.
37242 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37244 (ld.so): Likewise.
37245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37246 (ld.so): Likewise.
37247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37248 Likewise.
37249 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37250 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37251 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37252 Likewise.
37253 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37254 Likewise.
37255 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37256
37257 2017-08-10 Florian Weimer <fweimer@redhat.com>
37258
37259 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37260 attribute_hidden, internal_function.
37261 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37262 internal_function.
37263
37264 2017-08-10 Florian Weimer <fweimer@redhat.com>
37265
37266 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37267 function which calls __builtin_unreachable.
37268
37269 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37270
37271 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37272 Indian monetary formatting
37273 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37274 test cases.
37275
37276 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37277
37278 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37279 Fix typo in comment.
37280
37281 [BZ #21928]
37282 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37283 PTRACE_SEIZE_DEVEL): Remove.
37284 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37285 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37286 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37287 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37288 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37289
37290 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37291
37292 * posix/bits/types.h (__qaddr_t): Remove.
37293
37294 [BZ #21457]
37295 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37296 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37297 __glibc_reserved1.
37298 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37299 (ucontext_t): Use __ctx with uc_flags.
37300 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37301 (__ctxt): Likewise.
37302 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37303 __glibc_reserved1.
37304 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37305 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37306 __glibc_reserved1.
37307 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37308 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37309 __glibc_reserved1.
37310 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37311 macro.
37312 (ucontext_t): Use __ctx with uc_flags.
37313 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37314 (ucontext_t): Use __ctx with uc_flags.
37315 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37316 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37317 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37318 (ucontext_t): Use __ctx with uc_flags.
37319 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37320 undefine further down.
37321 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37322 __glibc_reserved1.
37323 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37324 undefine further down.
37325 (ucontext_t): Use __ctx with uc_flags.
37326 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37327 undefine further down.
37328 (ucontext_t): Use __ctx with uc_flags.
37329 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37330 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37331 Rename uc_pad to __glibc_reserved1.
37332 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37333 undefine further down.
37334 (ucontext_t): Use __ctx with uc_flags.
37335 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37336 further down.
37337 (ucontext_t): Use __ctx with uc_flags.
37338 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37339 __ctx with uc_flags.
37340 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37341 (ucontext_t): Use __ctx with uc_flags.
37342 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37343 __ctx with uc_flags.
37344
37345 2017-08-09 Florian Weimer <fweimer@redhat.com>
37346
37347 [BZ #21932]
37348 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37349 before early return.
37350
37351 2017-08-09 Andreas Schwab <schwab@suse.de>
37352
37353 [BZ #21041]
37354 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37355 renamed alias.
37356
37357 [BZ #21041]
37358 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37359 tst-compat-forwarder.
37360 (modules-names): Add tst-compat-forwarder-mod.
37361 ($(objpfx)tst-compat-forwarder): Depend on
37362 $(objpfx)tst-compat-forwarder-mod.so.
37363 * nptl/tst-compat-forwarder.c: New file.
37364 * nptl/tst-compat-forwarder-mod.c: New file.
37365
37366 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37367
37368 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37369 comments.
37370
37371 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37372 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37373 memcpy_falkor.
37374 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37375 Bump.
37376 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37377 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37378 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37379 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37380 Add falkor.
37381 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37382 New macro.
37383
37384 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37385
37386 [BZ #759]
37387 * manual/setjmp.texi (getcontex): Document uc_stack value
37388 compatibility differences.
37389
37390 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37391
37392 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37393 (old_malloc_hook): Likewise.
37394 (old_memalign_hook): Likewise.
37395 (old_realloc_hook): Likewise.
37396 (struct hdr): Likewise.
37397 (flood): Likewise.
37398 (freehook): Likewise.
37399 (mallochook): Likewise.
37400 (memalignhook): Likewise.
37401 (reallochook): Likewise.
37402 (mprobe): Likewise.
37403 * malloc/mtrace.c (mallwatch): Likewise.
37404 (tr_old_free_hook): Likewise.
37405 (tr_old_malloc_hook): Likewise.
37406 (tr_old_realloc_hook): Likewise.
37407 (tr_old_memalign_hook): Likewise.
37408 (tr_where): Likewise.
37409 (lock_and_info): Likewise.
37410 (tr_freehook): Likewise.
37411 (tr_mallochook): Likewise.
37412 (tr_reallochook): Likewise.
37413 (tr_memalignhook): Likewise.
37414 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37415 * misc/mmap.c (__mmap): Likewise.
37416 * misc/mmap64.c (__mmap64): Likewise.
37417 * misc/mprotect.c (__mprotect): Likewise.
37418 * misc/msync.c (msync): Likewise.
37419 * misc/munmap.c (__munmap): Likewise.
37420 * posix/posix_madvise.c (posix_madvise): Likewise.
37421 * socket/send.c (__send): Likewise.
37422 * socket/sendto.c (__sendto): Likewise.
37423 * socket/setsockopt.c (__setsockopt): Likewise.
37424 * string/memcmp.c (__ptr_t): Remove macro.
37425 (MEMCMP): Use void * instead of ptr_t.
37426 * string/memrchr.c (__ptr_t): Remove macro.
37427 (__memrchr): Use void * instead of ptr_t.
37428 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37429 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37430 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37431 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37432 * sysdeps/mach/msync.c (msync): Likewise.
37433 * sysdeps/mach/munmap.c (__munmap): Likewise.
37434 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37435 Likewise.
37436 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37437 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37438 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37439 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37440 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37441 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37442 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37443 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37444 Likewise.
37445 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37446 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37447 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37448 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37449 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37450 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37451 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37452 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37453 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37454 Likewise.
37455 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37456 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37457 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37458 (MEMCMP): Use void * instead of ptr_t.
37459 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37460 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37461
37462 2017-08-08 Florian Weimer <fweimer@redhat.com>
37463
37464 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37465 return statement.
37466
37467 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37468
37469 [BZ #21913]
37470 * csu/libc-tls.c: Include <startup.h> first.
37471 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37472 * elf/dl-tunables.c: Include <startup.h> first.
37473 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37474 * sysdeps/generic/startup.h: New file.
37475 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37476 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37477 (I386_USE_SYSENTER): New. Defined to 0.
37478
37479 2017-08-08 Andreas Schwab <schwab@suse.de>
37480
37481 [BZ #21041]
37482 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37483 * nptl/pt-system.c (system): Likewise.
37484
37485 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37486
37487 [BZ #21780]
37488 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37489 EOPNOTSUPP.
37490 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37491 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37492 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37493 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37494 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37495 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37496 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37497
37498 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37499
37500 [BZ #21899]
37501 * bits/sigaction.h (struct sigaction): Define sa_handler and
37502 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37503 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37504 [__USE_XOPEN_EXTENDED].
37505 (SA_RESTART): Likewise.
37506 (SA_NODEFER): Likewise.
37507 (SA_RESETHAND): Likewise.
37508 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37509 (struct sigaction): Define sa_handler and sa_sigaction using union
37510 also for [__USE_XOPEN_EXTENDED].
37511 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37512 [__USE_XOPEN_EXTENDED].
37513 (SA_RESTART): Likewise.
37514 (SA_NODEFER): Likewise.
37515 (SA_RESETHAND): Likewise.
37516 * sysdeps/unix/sysv/linux/bits/sigaction.h
37517 (struct sigaction): Define sa_handler and sa_sigaction using union
37518 also for [__USE_XOPEN_EXTENDED].
37519 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37520 [__USE_XOPEN_EXTENDED].
37521 (SA_RESTART): Likewise.
37522 (SA_NODEFER): Likewise.
37523 (SA_RESETHAND): Likewise.
37524 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37525 (struct sigaction): Define sa_handler and sa_sigaction using union
37526 also for [__USE_XOPEN_EXTENDED].
37527 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37528 [__USE_XOPEN_EXTENDED].
37529 (SA_RESTART): Likewise.
37530 (SA_NODEFER): Likewise.
37531 (SA_RESETHAND): Likewise.
37532 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37533 (struct sigaction): Define sa_handler and sa_sigaction using union
37534 also for [__USE_XOPEN_EXTENDED].
37535 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37536 [__USE_XOPEN_EXTENDED].
37537 (SA_RESTART): Likewise.
37538 (SA_NODEFER): Likewise.
37539 (SA_RESETHAND): Likewise.
37540 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37541 (struct sigaction): Define sa_handler and sa_sigaction using union
37542 also for [__USE_XOPEN_EXTENDED].
37543 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37544 [__USE_XOPEN_EXTENDED].
37545 (SA_RESTART): Likewise.
37546 (SA_NODEFER): Likewise.
37547 (SA_RESETHAND): Likewise.
37548 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37549 (struct sigaction): Define sa_handler and sa_sigaction using union
37550 also for [__USE_XOPEN_EXTENDED].
37551 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37552 [__USE_XOPEN_EXTENDED].
37553 (SA_RESTART): Likewise.
37554 (SA_NODEFER): Likewise.
37555 (SA_RESETHAND): Likewise.
37556 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37557 (struct sigaction): Define sa_handler and sa_sigaction using union
37558 also for [__USE_XOPEN_EXTENDED].
37559 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37560 [__USE_XOPEN_EXTENDED].
37561 (SA_RESTART): Likewise.
37562 (SA_NODEFER): Likewise. Define directly rather than as alias.
37563 (SA_RESETHAND): Likewise.
37564 (SA_INTERRUPT): Define only for [__USE_MISC].
37565 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37566 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37567 [__USE_MISC].
37568 (SA_STACK): Define only for [__USE_MISC].
37569 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37570 (struct sigaction): Define sa_handler and sa_sigaction using union
37571 also for [__USE_XOPEN_EXTENDED].
37572 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37573 [__USE_XOPEN_EXTENDED].
37574 (SA_RESTART): Likewise.
37575 (SA_NODEFER): Likewise.
37576 (SA_RESETHAND): Likewise.
37577 (SA_NOPTRACE): Define only for [__USE_MISC].
37578
37579 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37580 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37581 (struct catalog_info): Likewise.
37582 * inet/htontest.c (lo): Likewise.
37583 (foo): Likewise.
37584 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37585 * inet/inet_net.c (inet_network): Likewise.
37586 * inet/inet_netof.c (inet_netof): Likewise.
37587 * inet/rcmd.c (__ivaliduser): Likewise.
37588 (iruserok): Likewise.
37589 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37590 * locale/programs/locale-spec.c (locale_special): Likewise.
37591 * nis/nis_findserv.c (struct findserv_req): Likewise.
37592 (__nis_findfastest_with_timeout): Likewise.
37593 * nss/test-netdb.c (test_network): Likewise.
37594 * resolv/inet_neta.c (inet_neta): Likewise.
37595 * resolv/ns_date.c (ns_datetosecs): Likewise.
37596 (SECS_PER_DAY): Likewise.
37597 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37598 Likewise.
37599 * resolv/res_comp.c (__putlong): Likewise.
37600 (__putshort): Likewise.
37601 (_getlong): Likewise.
37602 (_getshort): Likewise.
37603 * resolv/res_debug.c (p_time): Likewise.
37604 (precsize_ntoa): Likewise.
37605 (precsize_aton): Likewise.
37606 (latlon2ul): Likewise.
37607 (loc_aton): Likewise.
37608 (loc_ntoa): Likewise.
37609 * resolv/res_hconf.c (struct netaddr): Likewise.
37610 (_res_hconf_reorder_addrs): Likewise.
37611 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37612 (clnttcp_control): Likewise.
37613 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37614 (clntudp_control): Likewise.
37615 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37616 (clntunix_control): Likewise.
37617 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37618 * sunrpc/rpc/auth.h (union des_block): Likewise.
37619 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37620 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37621 (xdrrec_create): Likewise.
37622 (xdrrec_endofrecord): Likewise.
37623 (flush_out): Likewise.
37624 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37625 (xdrstdio_putlong): Likewise.
37626 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37627 Likewise.
37628
37629 * misc/sys/cdefs.h (__long_double_t): Remove.
37630 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37631 instead of __long_double_t,
37632 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37633
37634 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37635
37636 * benchtests/scripts/compare_strings.py: Avoid display error when
37637 running on a text terminal.
37638
37639 * benchtests/scripts/compare_strings.py (main): Add an
37640 optional -base option.
37641 (process_results): New argument base_func.
37642
37643 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37644 hardcoding memcpy.
37645 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37646 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37647
37648 2017-08-07 Andreas Schwab <schwab@suse.de>
37649
37650 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37651 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37652 * intl/Makefile ($(objpfx)tst-gettext.out)
37653 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37654 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37655 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37656 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37657 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37658 * posix/Makefile ($(objpfx)globtest.out)
37659 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37660 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37661 ($(objpfx)tst-printf.out): Likewise.
37662 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37663 ($(objpfx)tst-setcontext3.out): Likewise.
37664
37665 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37666
37667 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37668 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37669 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37670 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37671 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37672 and mptan-fma.
37673 (CFLAGS-doasin-fma.c): New.
37674 (CFLAGS-dosincos-fma.c): Likewise.
37675 (CFLAGS-e_asin-fma.c): Likewise.
37676 (CFLAGS-e_atan2-fma.c): Likewise.
37677 (CFLAGS-e_exp-fma.c): Likewise.
37678 (CFLAGS-e_log-fma.c): Likewise.
37679 (CFLAGS-e_pow-fma.c): Likewise.
37680 (CFLAGS-halfulp-fma.c): Likewise.
37681 (CFLAGS-mpa-fma.c): Likewise.
37682 (CFLAGS-mpatan-fma.c): Likewise.
37683 (CFLAGS-mpatan2-fma.c): Likewise.
37684 (CFLAGS-mpexp-fma.c): Likewise.
37685 (CFLAGS-mplog-fma.c): Likewise.
37686 (CFLAGS-mpsqrt-fma.c): Likewise.
37687 (CFLAGS-mptan-fma.c): Likewise.
37688 (CFLAGS-s_atan-fma.c): Likewise.
37689 (CFLAGS-sincos32-fma.c): Likewise.
37690 (CFLAGS-slowexp-fma.c): Likewise.
37691 (CFLAGS-slowpow-fma.c): Likewise.
37692 (CFLAGS-s_sin-fma.c): Likewise.
37693 (CFLAGS-s_tan-fma.c): Likewise.
37694 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37695 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37696 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37697 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37698 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37699 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37700 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37701 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37702 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37703 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37704 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37705 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37706 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37707 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37708 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37709 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37710 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37711 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37712 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37713 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37714 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37715 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37716 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37717 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37718 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37719 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37720 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37721 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37722 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37723 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37724 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37725
37726 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37727
37728 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37729 (min_of_type_f): New macro.
37730 (min_of_type_): Likewise.
37731 (min_of_type_l): Likewise.
37732 (min_of_type_f128): Likewise.
37733 (min_of_type): Define using __MATH_TG and taking an expression
37734 argument.
37735 (math_check_force_underflow): Pass expression instead of type to
37736 min_of_type.
37737 (math_check_force_underflow_nonneg): Likewise.
37738
37739 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37740
37741 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37742 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37743 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37744
37745 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37746
37747 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37748 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37749 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37750 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37751 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37752 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37753 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37754 memmove_chk-nonshared and memset_chk-nonshared
37755 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37756 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37757 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37758 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37759 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37760 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37761 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37762 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37763 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37764 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37765 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37766 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37767 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37768 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37769 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37770 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37771 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37772 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37773 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37774 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37775 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37776 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37777 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37778 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37779 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37780 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37781 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37782 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37783 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37784 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37785 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37786 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37787 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37788 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37789 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37790 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37791 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37792 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37793 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37794 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37795 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37796 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37797 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37798 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37799 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37800 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37801 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37802 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37803 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37804 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37805 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37806 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37807 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37808 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37809 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37810 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37811 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37812 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37813 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37814 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37815 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37816 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37817 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37818 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37819 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37820 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37821 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37822 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37823 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37824 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37825 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37826 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37827 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37828 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37829 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37830 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37831 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37832 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37833 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37834 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37835 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37836 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37837 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37838 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37839 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37840 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37841 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37842 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37843 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37844 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37845 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37846 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37847 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37848 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37849 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37850 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37851 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37852 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37853 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37854 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37855 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37856 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37857 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37858 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37859 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37860 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37861 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37862 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37863
37864 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37865
37866 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37867 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37868 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37869 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37870 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37871 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37872 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37873 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37874 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37875 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37876 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37877 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37878 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37879 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37880 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37881 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37882 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37883 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37884 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37885 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37886 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37887 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37888 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37889 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37890 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37891 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37892 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37893 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37894 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37895 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37896 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37897 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37898 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37899 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37900 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37901 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37902 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37903 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37904 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37905 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37906 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37907 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37908 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37909 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37910 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37911 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37912 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37913 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37914 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37915 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37916 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37917 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37918 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37919 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37920 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37921 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37922 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37923 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37924 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37925 ...
37926 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37927 Don't include <sysdep.h> nor <init-arch.h>.
37928 (_ZGVbN2v_cos): Removed.
37929 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37930 ...
37931 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37932 Don't include <sysdep.h> nor <init-arch.h>.
37933 (_ZGVdN4v_cos): Removed.
37934 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37935 ...
37936 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37937 Don't include <sysdep.h> nor <init-arch.h>.
37938 (_ZGVeN8v_cos): Removed.
37939 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37940 ...
37941 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37942 Don't include <sysdep.h> nor <init-arch.h>.
37943 (_ZGVbN2v_exp): Removed.
37944 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37945 ...
37946 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37947 Don't include <sysdep.h> nor <init-arch.h>.
37948 (_ZGVdN4v_exp): Removed.
37949 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37950 ...
37951 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37952 Don't include <sysdep.h> nor <init-arch.h>.
37953 (_ZGVeN8v_exp): Removed.
37954 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37955 ...
37956 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37957 Don't include <sysdep.h> nor <init-arch.h>.
37958 (_ZGVbN2v_log): Removed.
37959 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37960 ...
37961 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37962 Don't include <sysdep.h> nor <init-arch.h>.
37963 (_ZGVdN4v_log): Removed.
37964 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37965 ...
37966 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37967 Don't include <sysdep.h> nor <init-arch.h>.
37968 (_ZGVeN8v_log): Removed.
37969 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37970 ...
37971 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37972 Don't include <sysdep.h> nor <init-arch.h>.
37973 (_ZGVbN2vv_pow): Removed.
37974 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37975 ...
37976 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37977 Don't include <sysdep.h> nor <init-arch.h>.
37978 (_ZGVdN4vv_pow): Removed.
37979 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37980 ...
37981 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37982 Don't include <sysdep.h> nor <init-arch.h>.
37983 (_ZGVeN8vv_pow): Removed.
37984 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37985 ...
37986 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37987 Don't include <sysdep.h> nor <init-arch.h>.
37988 (_ZGVbN2v_sin): Removed.
37989 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37990 ...
37991 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37992 Don't include <sysdep.h> nor <init-arch.h>.
37993 (_ZGVbN4v_sin): Removed.
37994 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37995 ...
37996 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37997 Don't include <sysdep.h> nor <init-arch.h>.
37998 (_ZGVbN8v_sin): Removed.
37999 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38000 ...
38001 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38002 Don't include <sysdep.h> nor <init-arch.h>.
38003 (_ZGVbN2vvv_sincos): Removed.
38004 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38005 ...
38006 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38007 Don't include <sysdep.h> nor <init-arch.h>.
38008 (_ZGVdN4vvv_sincos): Removed.
38009 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38010 ...
38011 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38012 Don't include <sysdep.h> nor <init-arch.h>.
38013 (_ZGVeN8vvv_sincos): Removed.
38014 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38015 ...
38016 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38017 Don't include <sysdep.h> nor <init-arch.h>.
38018 (_ZGVeN16v_cosf): Removed.
38019 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38020 ...
38021 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38022 Don't include <sysdep.h> nor <init-arch.h>.
38023 (_ZGVbN4v_cosf): Removed.
38024 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38025 ...
38026 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38027 Don't include <sysdep.h> nor <init-arch.h>.
38028 (_ZGVdN8v_cosf): Removed.
38029 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38030 ...
38031 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38032 Don't include <sysdep.h> nor <init-arch.h>.
38033 (_ZGVeN16v_expf): Removed.
38034 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38035 ...
38036 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38037 Don't include <sysdep.h> nor <init-arch.h>.
38038 (_ZGVbN4v_expf): Removed.
38039 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38040 ...
38041 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38042 Don't include <sysdep.h> nor <init-arch.h>.
38043 (_ZGVdN8v_expf): Removed.
38044 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38045 ...
38046 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38047 Don't include <sysdep.h> nor <init-arch.h>.
38048 (_ZGVeN16v_logf): Removed.
38049 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38050 ...
38051 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38052 Don't include <sysdep.h> nor <init-arch.h>.
38053 (_ZGVbN4v_logf): Removed.
38054 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38055 ...
38056 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38057 Don't include <sysdep.h> nor <init-arch.h>.
38058 (_ZGVdN8v_logf): Removed.
38059 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38060 ...
38061 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38062 Don't include <sysdep.h> nor <init-arch.h>.
38063 (_ZGVeN16vv_powf): Removed.
38064 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38065 ...
38066 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38067 Don't include <sysdep.h> nor <init-arch.h>.
38068 (_ZGVbN4vv_powf): Removed.
38069 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38070 ...
38071 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38072 Don't include <sysdep.h> nor <init-arch.h>.
38073 (_ZGVdN8vv_powf): Removed.
38074 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38075 ...
38076 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38077 Don't include <sysdep.h> nor <init-arch.h>.
38078 (_ZGVeN16vvv_sincosf): Removed.
38079 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38080 ...
38081 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38082 Don't include <sysdep.h> nor <init-arch.h>.
38083 (_ZGVbN4vvv_sincosf): Removed.
38084 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38085 ...
38086 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38087 Don't include <sysdep.h> nor <init-arch.h>.
38088 (_ZGVdN8vvv_sincosf): Removed.
38089 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38090 ...
38091 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38092 Don't include <sysdep.h> nor <init-arch.h>.
38093 (_ZGVeN16v_sinf): Removed.
38094 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38095 ...
38096 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38097 Don't include <sysdep.h> nor <init-arch.h>.
38098 (_ZGVbN4v_sinf): Removed.
38099 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38100 ...
38101 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38102 Don't include <sysdep.h> nor <init-arch.h>.
38103 (_ZGVdN8v_sinf): Removed.
38104
38105 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38106
38107 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38108 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38109 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38110 s_rint-sse4_1 and s_rintf-sse4_1.
38111 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38112 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38113 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38114 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38115 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38116 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38117 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38118 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38119 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38120 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38121 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38122 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38123 (__ceil): Removed.
38124 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38125 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38126 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38127 (__ceilf): Removed.
38128 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38129 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38130 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38131 (__floor): Removed.
38132 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38133 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38134 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38135 (__floorf): Removed.
38136 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38137 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38138 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38139 (__nearbyint): Removed.
38140 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38141 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38142 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38143 (__nearbyintf): Removed.
38144 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38145 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38146 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38147 (__rint): Removed.
38148 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38149 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38150 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38151 (__rintf): Removed.
38152
38153 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38154
38155 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38156 SHARED. Avoid dynamic relocation against main in static PIE.
38157
38158 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38159
38160 [BZ #21815]
38161 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38162 (LDFLAGS-tst-prelink): Likewise.
38163
38164 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38165
38166 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38167 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38168 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38169 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38170 (INTERNAL_SYSCALL_NCS): Likewise.
38171 (LOADARGS_1): Likewise.
38172 (LOADARGS_5): Likewise.
38173 (RESTOREARGS_1): Likewise.
38174 (RESTOREARGS_5): Likewise.
38175
38176 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38177
38178 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38179 (MEMPCPY_SYMBOL): Likewise.
38180 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38181 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38182 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38183 in libc.a.
38184 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38185 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38186 Likewise.
38187 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38188 (__hidden_ver1): Don't use in libc.a.
38189 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38190 (__mempcpy): Don't create a weak alias in libc.a.
38191 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38192 libc.a.
38193 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38194 (__hidden_ver1): Don't use in libc.a.
38195
38196 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38197
38198 * config.make.in (have-insert): New.
38199 * configure.ac (libc_cv_insert): New. Set to yes if linker
38200 supports INSERT in linker script.
38201 (AC_SUBST(libc_cv_insert): New.
38202 * configure: Regenerated.
38203 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38204 if $(have-insert) == yes.
38205
38206 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38207
38208 * elf/Makefile (tests): Add vismain only if
38209 $(have-protected-data) == yes.
38210 (tests-pie): Likewise.
38211
38212 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38213
38214 [BZ #21871]
38215 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38216 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38217
38218 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38219
38220 [BZ #21790]
38221 * sysdeps/i386/i586/memset.S
38222 (__memset_zero_constant_len_parameter): Removed.
38223 * sysdeps/i386/i686/memset.S
38224 (__memset_zero_constant_len_parameter): Likewise.
38225 * sysdeps/i386/i686/multiarch/memset_chk.S
38226 (__memset_zero_constant_len_parameter): Likewise.
38227 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38228 Likewise.
38229
38230 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38231
38232 * stdlib/getentropy.c (getentropy): Change return type to int.
38233
38234 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38235
38236 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38237
38238 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38239
38240 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38241 u_intN_t.
38242 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38243 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38244 Likewise.
38245 (ieee_float_shape_type): Likewise.
38246 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38247 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38248 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38249 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38250 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38251 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38252 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38253 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38254 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38255 Likewise.
38256 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38257 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38258 (__ieee754_yn): Likewise.
38259 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38260 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38261 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38262 Likewise.
38263 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38264 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38265 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38266 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38267 (__erfc): Likewise.
38268 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38269 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38270 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38271 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38272 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38273 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38274 Likewise.
38275 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38276 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38277 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38278 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38279 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38280 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38281 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38282 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38283 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38284 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38285 (__issignaling): Likewise.
38286 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38287 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38288 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38289 Likewise.
38290 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38291 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38292 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38293 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38294 Likewise.
38295 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38296 Likewise.
38297 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38298 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38299 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38300 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38301 (__erfcf): Likewise.
38302 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38303 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38304 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38305 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38306 Likewise.
38307 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38308 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38309 Likewise.
38310 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38311 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38312 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38313 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38314 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38315 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38316 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38317 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38318 Likewise.
38319 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38320 Likewise.
38321 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38322 Likewise.
38323 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38324 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38325 Likewise.
38326 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38327 Likewise.
38328 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38329 (__ieee754_ynl): Likewise.
38330 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38331 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38332 Likewise.
38333 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38334 Likewise.
38335 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38336 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38337 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38338 Likewise.
38339 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38340 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38341 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38342 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38343 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38344 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38345 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38346 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38347 Likewise.
38348 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38349 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38350 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38351 Likewise.
38352 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38353 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38354 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38355 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38356 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38357 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38358 Likewise.
38359 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38360 Likewise.
38361 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38362 Likewise.
38363 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38364 Likewise.
38365 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38366 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38367 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38368 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38369 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38370 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38371 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38372 Likewise.
38373 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38374 Likewise.
38375 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38376 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38377 Likewise.
38378 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38379 (__ieee754_remainderl): Likewise.
38380 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38381 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38382 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38383 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38384 Likewise.
38385 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38386 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38387 Likewise.
38388 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38389 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38390 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38391 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38392 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38393 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38394 Likewise.
38395 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38396 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38397 (__ieee754_y0l): Likewise.
38398 (pzero): Likewise.
38399 (qzero): Likewise.
38400 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38401 (__ieee754_y1l): Likewise.
38402 (pone): Likewise.
38403 (qone): Likewise.
38404 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38405 (__ieee754_ynl): Likewise.
38406 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38407 (__ieee754_lgammal_r): Likewise.
38408 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38409 Likewise.
38410 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38411 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38412 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38413 (__erfcl): Likewise.
38414 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38415 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38416 Likewise.
38417 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38418 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38419 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38420 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38421 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38422 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38423 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38424 Likewise.
38425 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38426 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38427 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38428 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38429 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38430 Likewise.
38431 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38432 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38433 Likewise.
38434 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38435 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38436 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38437 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38438 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38439
38440 2017-08-03 Florian Weimer <fweimer@redhat.com>
38441
38442 [BZ #21885]
38443 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38444 on memory allocation failure.
38445
38446 2017-08-03 Alan Modra <amodra@gmail.com>
38447
38448 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38449 tst-tlsopt-powerpc.c with function name change and no test harness.
38450 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38451 Call tls_get_addr_opt_test.
38452 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38453 (modules-names): Add mod-tlsopt-powerpc.
38454 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38455 (tst-tlsopt-powerpc): Depend on .so.
38456 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38457 define. Expand use in TLS_GD and TLS_LD.
38458
38459 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38460
38461 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38462 function.
38463 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38464
38465 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38466
38467 [BZ #21686]
38468 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38469 comparing size with that of double.
38470 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38471 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38472 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38473 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38474 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38475 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38476 unsigned __int128 types.
38477
38478 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38479
38480 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38481 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38482 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38483 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38484 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38485
38486 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38487
38488 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38489
38490 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38491
38492 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38493 of SHARED.
38494 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38495 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38496 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38497 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38498 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38499 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38500 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38501
38502 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38503
38504 [BZ #21685]
38505 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38506 bit-field expressions passed to sizeof or typeof.
38507 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38508 (__TGMATH_F128): Likewise.
38509 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38510 (__TGMATH_CF128): Likewise.
38511 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38512 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38513 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38514 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38515 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38516 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38517 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38518 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38519 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38520 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38521 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38522 (__TGMATH_UNARY_IMAG): Likewise.
38523 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38524 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38525 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38526 type.
38527 (define_vars_for_type): Handle bit_field type specially.
38528 (Tests.__init__): Declare structure with bit-field element.
38529
38530 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38531
38532 [BZ #21791]
38533 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38534 (MEMCPY_CHK): Define only if SHARED is defined.
38535 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38536 Likewise.
38537 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38538 Likewise.
38539
38540 See ChangeLog.18 for earlier changes.